@mocanvas/mocanvas · interface

DashedPathBuilderOpts

interface DashedPathBuilderOpts extends BasePathBuilderOpts

Draw the path as evenly spaced dashes or dots.


Properties · 5

end?: PathDashTerminal

Terminal treatment for the last dash of each run.

lengthRatio?: number

Dash length as a multiple of the stroke width.

snap?: number

Round the gap so a whole number of dashes fits the run exactly.

start?: PathDashTerminal

Terminal treatment for the first dash of each run.

style: "dashed" | "dotted"

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.