@mocanvas/mocanvas · type

PathDashTerminal

type PathDashTerminal = "none" | "outset" | "skip"

How a dashed run starts or ends.

"none" leaves the terminal alone, "outset" pushes it half a dash out so a corner reads as solid, and "skip" drops the terminal dash entirely.

SEMANTICS-ASSUMED: the documented spelling of this is @tldraw/editor's PerfectDashTerminal, which mocanvas does not export yet (it belongs to the editor package's dash helpers). The three names above are the terminal treatments a dash generator has to distinguish; when the editor publishes its own alias the two are structurally the same string union.

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.