Skip to content
pixi-silk
GitHub repository
Function

parseSvgPath

import { parseSvgPath } from 'pixi-silk/path';
function parseSvgPath(d: string): BezierPath[];

Reads SVG path data into paths, one per subpath. Every command works, absolute and relative: quadratics and arcs become cubics. Anchor types come from the handles.

Parameters#

ParameterType
dstring

Returns#

BezierPath[]