@mocanvas/editor · interface
interface EditorTextMeasureHtmlOptionsOptions for measuring a block of HTML. Distinct from
EditorTextMeasureOptions: padding is a CSS string here because the
measurer sets it on a real element, and otherStyles is applied verbatim.
Properties · 9
fontFamily: stringfontSize: numberfontStyle?: stringfontWeight?: string | numberlineHeight: numberUnitless line height (multiplier of the font size).
maxWidth?: numberWrap width in CSS px. Omit for a single unwrapped run.
measureScrollWidth?: booleanAlso report the unwrapped content width as scrollWidth.
otherStyles?: Record<string, string>Extra CSS declarations set on the probe element.
padding?: stringCSS padding shorthand, e.g. "0px" — included in the returned w/h.
Mentioned here
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.