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#
| Parameter | Type | Default value |
|---|---|---|
path | BezierPath | undefined |
precision | number | 2 |
Returns#
string