@mocanvas/mocanvas · interface

BasePathBuilderOpts

interface BasePathBuilderOpts

What every rendering of a path needs, whatever its style.


Properties · 4

forceSolid?: boolean

Ignore the style and draw one solid stroke — what a tiny shape or a print export wants.

onlyFilled?: boolean

Emit only the runs that asked for a fill, dropping stroke-only runs.

props?: SVGProps<SVGPathElement & SVGGElement>

Extra attributes for the element PathBuilder.toSvg returns.

strokeWidth: number

Stroke width, in the path's own units. Dash lengths and draw jitter scale off it.

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.