@mocanvas/editor · interface

EditorTextMeasureOptions

interface EditorTextMeasureOptions

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


Properties · 7

fontFamily: string
fontSize: number
fontStyle?: string

CSS font-style, e.g. "italic".

fontWeight?: string | number
lineHeight: number

Unitless line height (multiplier of the font size).

maxWidth?: number | null

Wrap width in CSS px, including padding. null (or omitted) measures a single unwrapped run per paragraph — callers toggling wrapping on and off pass null rather than deleting the key.

padding?: number | string

Padding applied on every side; included in the returned w/h.

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.