Skip to content

API > @blocksuite/blocks > getSvgPathFromStroke

Function: getSvgPathFromStroke ​

getSvgPathFromStroke(points, closed = true): string

Parameters ​

ParameterTypeDefault value
pointsIVec[]undefined
closedbooleantrue

Returns ​

string

Defined In ​

packages/blocks/src/surface-block/utils/math-utils.ts:181