@mocanvas/mocanvas · interface

PathBuilderCommandOpts

interface PathBuilderCommandOpts

Per-command settings shared by every command that draws a line.


Properties · 3

mergeWithPrevious?: boolean

When converting to a dash- or dot-style line, whether this segment is merged with the previous one when the dash pattern is measured. Merging keeps a dash running across a corner instead of restarting at it.

offset?: number

When converting to a draw-style line, how far this point may wander from where it was placed.

roundness?: number

When converting to a draw-style line, how much to round the end of this line.

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.