Simple DOM element to measure text size for non-rich text. Supports text wrapping and letterSpacing based on HTML spans
Usage
const textMeasurer = new TextMeasurer()textMeasurer.naturalBounds('Hello world').width Copy
const textMeasurer = new TextMeasurer()textMeasurer.naturalBounds('Hello world').width
Simple DOM element to measure text size for non-rich text. Supports text wrapping and letterSpacing based on HTML spans
Usage