@mocanvas/mocanvas · interface
interface TextShapePropsThis one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Properties · 9
autoSize: booleancolor: DefaultColorStylefont: DefaultFontStylerichText: RichTextThe label as a rich-text document; see NoteShapeProps.richText.
scale: numbersize: DefaultSizeStyletext?: stringThe label as plain text — optional and derived; see NoteShapeProps.text.
textAlign: DefaultHorizontalAlignStyleHow the paragraphs are aligned inside the shape's own width.
Typed as the whole horizontal-align set because that is the style the
shape declares, and a record written by an older client may hold one of
its -legacy values. readTextProps narrows every one of them to
start / middle / end, so nothing downstream has to know they exist.
w: numbermocanvas 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.