Public function

Turn an array of points into a path of quadradic curves.

Signature
function getSvgPathFromPoints(points: VecLike[], closed?: boolean): string
Parameters
NameDescription

points

VecLike[]

The points returned from perfect-freehand

closed

boolean

Whether the stroke is closed

Returns
string
References

VecLike

Source

packages/editor/src/lib/utils/getSvgPathFromPoints.ts

getPolygonVerticesgetUserPreferences