TLMeasureTextOpts

See source code
Table of contents
interface TLMeasureTextOpts {}

Properties

disableOverflowWrapBreaking

optional
disableOverflowWrapBreaking?: boolean

fontFamily

fontFamily: string

fontSize

fontSize: number

fontStyle

fontStyle: string

fontWeight

fontWeight: string

lineHeight

lineHeight: number

maxWidth

When maxWidth is a number, the text will be wrapped to that maxWidth. When maxWidth is null, the text will be measured without wrapping, but explicit line breaks and space are preserved.

maxWidth: null | number

measureScrollWidth

optional
measureScrollWidth?: boolean

minWidth

optional
minWidth?: null | number

otherStyles

optional
otherStyles?: Record<string, string>

padding

padding: string

Prev
TLLoadSnapshotOptions
Next
TLMeasureTextSpanOpts