Skip to content

Commit

Permalink
Remove commas from svg path definitions
Browse files Browse the repository at this point in the history
Comma isn't valid in the d attribute of path elements and although it works in Chrome/Safari, it breaks in Firefox.

see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path
  • Loading branch information
20after4 committed Mar 29, 2024
1 parent d611eef commit 0fbd92f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/system-flow-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ export class SystemFlowCard extends LitElement {
}

const svgLineMapByPosition = {
'left': (pc, ipc) => `M 100 ${ipc}, C 50 ${ipc}, 50 ${pc}, 0 ${pc}`,
'top': (pc, ipc) => `M ${ipc} 100, C ${ipc} 50, ${pc} 50, ${pc} 0`,
'right': (pc, ipc) => `M 0 ${ipc}, C 50 ${ipc}, 50 ${pc}, 100 ${pc}`,
'bottom': (pc, ipc) => `M ${ipc} 0, C ${ipc} 50, ${pc} 50, ${pc} 100`,
'left': (pc, ipc) => `M 100 ${ipc} C 50 ${ipc} 50 ${pc} 0 ${pc}`,
'top': (pc, ipc) => `M ${ipc} 100 C ${ipc} 50 ${pc} 50 ${pc} 0`,
'right': (pc, ipc) => `M 0 ${ipc} C 50 ${ipc} 50 ${pc} 100 ${pc}`,
'bottom': (pc, ipc) => `M ${ipc} 0 C ${ipc} 50 ${pc} 50 ${pc} 100`,
};

const avgSystemTotal = elements
Expand Down

0 comments on commit 0fbd92f

Please sign in to comment.