getSvgPathFromStrokePoints

See source code

Turn an array of stroke points into a path of quadratic curves.

function getSvgPathFromStrokePoints(
  points: StrokePoint[],
  closed?: boolean,
): string;

Parameters

NameDescription

points

The stroke points returned from perfect-freehand

closed

boolean;

Whether the shape is closed

Returns

string;
Prev
getStrokePoints
Next
getUncroppedSize