@mocanvas/editor · interface
interface PerfectDashOptionsOptions for getPerfectDashProps.
Properties · 7
closed?: booleanWhether the path is closed, in which case both terminals are ignored.
end?: PerfectDashTerminalHow it meets the end.
forceSolid?: booleanReturn a solid stroke regardless of style — for a zoom level where dashes are noise.
lengthRatio?: numberDash length as a multiple of the stroke width. Defaults to 4 dashed, 100 dotted.
snap?: numberSnap the dash count to a multiple of this. 4 keeps a closed shape symmetric.
start?: PerfectDashTerminalHow the pattern meets the start of an open path.
style?: "solid" | "dashed" | "dotted" | "draw" | (string & {})The dash style being drawn. Anything but dashed/dotted returns a solid stroke.
Mentioned here
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.