(pathString: string)
| 152 | |
| 153 | // for IE, whose paths look like "M 0 500 L" instead of "M0,500L" |
| 154 | export function normalizePath(pathString: string) { |
| 155 | return pathString.replace(/ *([A-Z]) */g, "$1").replace(/ /g, ","); |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Decomposes a normalized path-string ("d" attribute from a <path>) |
no outgoing calls
no test coverage detected