getSvgPathFromStrokePoints
Turn an array of stroke points into a path of quadratic curves.
The path uses relative commands with coordinates rounded to hundredths of a pixel, which renders identically to the absolute 4-decimal form but is much smaller and faster to build.
function getSvgPathFromStrokePoints(
points: StrokePoint[],
closed?: boolean,
): string;Parameters
| Name | Description |
|---|---|
| The stroke points returned from perfect-freehand |
| Whether the shape is closed |
Returns
string;Prev
getStrokePointsNext
getUncroppedSize