TLMeasureTextOpts
See source codeTable of contents
interface TLMeasureTextOpts {}Properties
disableOverflowWrapBreaking
optional
disableOverflowWrapBreaking?: booleanfontFamily
fontFamily: stringfontSize
fontSize: numberfontStyle
fontStyle: stringfontWeight
fontWeight: stringlineHeight
This must be a number, e.g. 1.35, not a pixel value.
lineHeight: numbermaxWidth
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 | numbermeasureScrollWidth
optional
measureScrollWidth?: booleanminWidth
optional
minWidth?: null | numberotherStyles
optional
otherStyles?: Record<string, string>padding
padding: stringPrev
TLLoadSnapshotOptionsNext
TLMeasureTextSpanOpts