@mocanvas/mocanvas · interface

LabelMeasureOptions

interface LabelMeasureOptions

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 6

editor?: Editor | null

The editor the label belongs to, used to pick up its configured rich-text extensions. Optional: without one the default extension set is used.

font?: DefaultFontStyle

@deprecated v5 renamed this to fontFamily.

fontFamily?: DefaultFontStyle

The label's font style token. Named font before v5; font is still accepted and means the same thing.

fontSize: number
maxWidth?: number

Wrap width in px including padding; omit for no soft wrapping.

padding?: number

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.