Skip to content

getSmoothPathFromPoints

getSmoothPathFromPoints(points, correction?): TSimplePathData

Parameters

points: Point[]

Array of points

correction?: number = 0

Apply a correction to the path (usually we use width / 1000). If value is undefined 0 is used as the correction value.

Returns

TSimplePathData

An array of SVG path commands

Defined in

src/util/path/index.ts:910