MCPcopy
hub / github.com/palantir/plottable / normalizePath

Function normalizePath

test/testMethods.ts:154–156  ·  view source on GitHub ↗
(pathString: string)

Source from the content-addressed store, hash-verified

152
153// for IE, whose paths look like "M 0 500 L" instead of "M0,500L"
154export 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>)

Callers 2

areaVerticesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected