@motion-script/core / toCubicSubpaths
Function: toCubicSubpaths()
toCubicSubpaths(
commands):CubicSubpath[]
Defined in: attributes/shape/path/morph.ts:184
Parse a PathData into cubic subpaths. Handles every absolute/relative command
and the smooth shorthands (S/s/T/t) by reflecting the previous control point,
exactly as the SVG spec dictates. The pen state mirrors calculatePathLength.
Parameters
commands
Returns
CubicSubpath[]