@mocanvas/mocanvas · interface

TextShapeSizeInput

interface TextShapeSizeInput

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

autoSize: boolean
editor?: Editor | null

The editor whose rich-text extensions apply, when there is one.

font?: DefaultFontStyle

@deprecated v5 renamed this to fontFamily.

fontFamily?: DefaultFontStyle
fontSize: number
text: RichTextSource

The label, in either spelling: a plain string or a rich-text document.

w: number

Current wrap width, used when autoSize is off.

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.