From c6cfb3f8b1f6c2195e99d16f2ffe4113f565750d Mon Sep 17 00:00:00 2001 From: Juan Martin Date: Sun, 1 Dec 2024 17:39:39 +0300 Subject: [PATCH] Add circle shape Safari fallback --- src/js/orbit-arc.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/orbit-arc.js b/src/js/orbit-arc.js index 4389948..24de45c 100644 --- a/src/js/orbit-arc.js +++ b/src/js/orbit-arc.js @@ -56,8 +56,8 @@ const svg = this.shadowRoot.querySelector('svg'); const path = this.shadowRoot.querySelector('path'); const defs = this.shadowRoot.querySelector('defs'); - - if (shape !== 'none') { + if (shape === 'circle') path.setAttribute('stroke-linecap', 'round'); + if (shape !== 'none' && shape !== 'circle') { defs.innerHTML = ''; // Limpiar defs previos defs.appendChild(this.createMarker('head', 'end')); defs.appendChild(this.createMarker('tail', 'start')); @@ -71,6 +71,7 @@ path.setAttribute('d', d); path.setAttribute('stroke', arcColor); + // path.setAttribute('stroke-width', strokeWidth); }