@mocanvas/mocanvas · function

geometryToSvgPaths

declare function geometryToSvgPaths(geometry: Geometry2d, style: StyleWords): string

One <path> per leaf geometry, filled only where the leaf is a closed, filled outline and stroked with the shape's stroke. Empty leaves are skipped.

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.