Skip to content

Commit 9e66620

Browse files
committed
Fix try: SVG vector-effect for Firefox visibility
1 parent 1dcb6a6 commit 9e66620

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

dist/system-flow-card.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/system-flow-card.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,11 @@ export class SystemFlowCard extends LitElement {
233233
}
234234

235235
const svgLineMapByPosition = {
236-
'left': (pc, ipc) => `M 100 ${ipc}, C 50 ${ipc}, 50 ${pc}, 0 ${pc}`,
237-
'top': (pc, ipc) => `M ${ipc} 100, C ${ipc} 50, ${pc} 50, ${pc} 0`,
238-
'right': (pc, ipc) => `M 0 ${ipc}, C 50 ${ipc}, 50 ${pc}, 100 ${pc}`,
239-
'bottom': (pc, ipc) => `M ${ipc} 0, C ${ipc} 50, ${pc} 50, ${pc} 100`,
236+
// FIX: Remove all commas from the path 'd' attribute. Use spaces only.
237+
'left': (pc, ipc) => `M 100 ${ipc} C 50 ${ipc} 50 ${pc} 0 ${pc}`,
238+
'top': (pc, ipc) => `M ${ipc} 100 C ${ipc} 50 ${pc} 50 ${pc} 0`,
239+
'right': (pc, ipc) => `M 0 ${ipc} C 50 ${ipc} 50 ${pc} 100 ${pc}`,
240+
'bottom': (pc, ipc) => `M ${ipc} 0 C ${ipc} 50 ${pc} 50 ${pc} 100`,
240241
};
241242

242243
const avgSystemTotal = elements

0 commit comments

Comments
 (0)