@mocanvas/mocanvas · interface

RichTextSVGProps

interface RichTextSVGProps

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


Properties · 10

bounds: SvgTextBox

The box to lay the text out in, in the SVG's own coordinates.

color: string
fontFamily?: DefaultFontStyle
fontSize: number
fontWeight?: string | number
padding?: number
richText: RichTextSource

The document to draw.

textAlign?: DefaultHorizontalAlignStyle
verticalAlign: DefaultVerticalAlignStyle
wrap?: boolean

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.