Skip to content
pixi-silk
GitHub repository
Function

pathToSvg

import { pathToSvg } from 'pixi-silk/path';
function pathToSvg(path: BezierPath, precision?: number): string;

The path as SVG path data (M, L, C, Z), rounded to precision decimals.

Parameters#

ParameterTypeDefault value
pathBezierPathundefined
precisionnumber2

Returns#

string