Skip to content

Commit

Permalink
Add circle shape Safari fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Dec 1, 2024
1 parent e54a235 commit c6cfb3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/orbit-arc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -71,6 +71,7 @@

path.setAttribute('d', d);
path.setAttribute('stroke', arcColor);

// path.setAttribute('stroke-width', strokeWidth);
}

Expand Down

0 comments on commit c6cfb3f

Please sign in to comment.