@mocanvas/mocanvas · function

measureRichText

declare function measureRichText(editor: Editor | null | undefined, richText: RichTextSource, opts: TextMeasureHtmlOptions): TextHtmlMeasurement

Measure a rich-text value directly: render it, then hand it to the shared measurer. The convenience form of the two calls above.

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.