@mocanvas/editor · interface

EditorTextMeasure

interface EditorTextMeasure

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


Methods · 3

measureHtml(html: string, opts: EditorTextMeasureHtmlOptions): EditorTextHtmlMeasurement

Measure one block of HTML, as a rich-text label is laid out.

measureHtmlBatch(items: readonly {

Measure many blocks in one layout pass — one reflow instead of N.

measureText(text: string, opts: EditorTextMeasureOptions): EditorTextMeasurement

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.