@mocanvas/editor · interface
interface EditorTextMeasureThis 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): EditorTextHtmlMeasurementMeasure 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): EditorTextMeasurementmocanvas 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.