@mocanvas/mocanvas · interface

ArrowShapeUtilDisplayValues

interface ArrowShapeUtilDisplayValues extends TLDefaultDisplayValues

What an arrow paints with.

An arrow is a body, two terminals and a label, and all four are sized by the shape's own scale, which the shared set knows nothing about. The label's padding is here for the same reason a geo shape's is: anything measuring the label has to agree with what draws it.


Properties · 4

labelFontFamily: string

The label's CSS font stack.

labelFontSize: number

The label's font size in page units, scale applied.

labelPadding: number

Padding between the body and its label, in page units.

scaledStrokeWidth: number

The body's width in page units, scale applied.

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.