(value: string | null)
| 546 | } |
| 547 | |
| 548 | private static parseLineDash(value: string | null): number[] | null { |
| 549 | if (!value) return null; |
| 550 | |
| 551 | const list = value.split(/,|\s+/); |
| 552 | if (list.findIndex(str => str.endsWith('%')) > 0) { |
| 553 | useLogger().warn(`SVG: percentage line dash are ignored`); |
| 554 | return null; |
| 555 | } |
| 556 | return list.map(str => parseFloat(str)); |
| 557 | } |
| 558 | |
| 559 | private static parseDashOffset(value: string | null): number | null { |
| 560 | if (!value) return null; |
no test coverage detected