@mocanvas/mocanvas · interface
interface PlainTextLabelPropsShape labels, in the three forms a shape needs them.
The DOM label (PlainTextLabel / RichTextLabel) is what a
shape body renders; RichTextSVG is what the exporter renders, and it
has to produce real <text> elements rather than a foreignObject, because
a foreignObject is not rendered by most SVG consumers — including the
rasteriser in several browsers.
Methods · 1
onChange(text: string): voidProperties · 14
color: stringfontFamily?: DefaultFontStylefontSize: numberheight?: numberisEditing: booleanpadding?: numberplaceholder?: stringshape: UnknownShapesingleLine?: booleantext: stringtextAlign?: DefaultHorizontalAlignStyleverticalAlign: DefaultVerticalAlignStylewidth?: numberwrap: booleanMentioned here
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.