@mocanvas/mocanvas · function

dashArray

declare function dashArray(dash: number, strokeWidth: number): string | undefined

stroke-dasharray for an engine dash id (0 solid, 1 dashed, 2 dotted, 3 draw). Solid and draw strokes have no dash array.

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.