@mocanvas/mocanvas · interface

SvgTextOptions

interface SvgTextOptions

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


Properties · 9

align?: DefaultHorizontalAlignStyle | "start" | "middle" | "end"

@deprecated v5 renamed this to textAlign.

color: string

CSS colour for the glyphs.

fontFamily: string
fontSize: number
fontWeight?: string | number
padding?: number

Inset from the box edges on every side.

textAlign?: DefaultHorizontalAlignStyle | "start" | "middle" | "end"

Horizontal alignment. Named align before v5; align is still accepted.

verticalAlign: DefaultVerticalAlignStyle
wrap?: boolean

Soft-wrap paragraphs at the box width (minus padding).

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.