@mocanvas/editor · interface
interface TLMeasureTextOpts extends EditorTextMeasureOptionsHow a run of text should be laid out before it is measured.
Mirrors the CSS the canvas will eventually paint with, because a measurement that does not match the paint is worse than no measurement at all.
Properties · 1
minWidth?: numberNever report a width below this, whatever the text measures.
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.