@mocanvas/mocanvas · interface

PathBuilderLineOpts

interface PathBuilderLineOpts extends PathBuilderCommandOpts

Settings for a command that *starts* a run — moveTo, and the two static builders. Beyond PathBuilderCommandOpts it decides what geometry the run contributes and how its dashes terminate.


Properties · 3

dashEnd?: PathDashTerminal

Terminal treatment for the last dash of the run.

dashStart?: PathDashTerminal

Terminal treatment for the first dash of the run.

geometry?: false | Omit<Geometry2dOptions, "isClosed">

The geometry this run contributes, or false for a run that is painted but never hit-tested. isClosed is not settable: whether a run is closed is decided by whether it ends in close().

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.