Skip to content

parsePath

parsePath(pathString): TComplexPathData

Defined in: src/util/path/index.ts:857

Parameters

pathString

string

Returns

TComplexPathData

An array of SVG path commands

Example

parsePath('M 3 4 Q 3 5 2 1 4 0 Q 9 12 2 1 4 0') === [
['M', 3, 4],
['Q', 3, 5, 2, 1, 4, 0],
['Q', 9, 12, 2, 1, 4, 0],
];