@mocanvas/mocanvas · interface

GeoShapeUtilDisplayValues

interface GeoShapeUtilDisplayValues extends TLDefaultDisplayValues

What a geo shape paints with.

A geo shape is an outline *and* a label, and the label has a size and a padding of its own that anything measuring the shape has to agree with — which is why they are reported rather than recomputed at each call site. All three have the shape's scale applied, unlike the shared set's fontSize.


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 outline and its label, in page units.

scaledStrokeWidth: number

The outline'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.