@mocanvas/mocanvas · function
declare function svgPath(d: string): Path2DA path from SVG path data.
The Path2D(d) constructor is the shortest route from the engine's path
encoding (which already serializes to a d string for export) to a canvas
path, and it is what the consumer's own utils use.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.