TLMeasureTextOpts
Table of contents
interface TLMeasureTextOpts {}Properties
disableOverflowWrapBreaking
optional
disableOverflowWrapBreaking?: boolean;fontFamily
fontFamily: string;fontSize
fontSize: number;fontStyle
fontStyle: string;fontWeight
fontWeight: string;lineHeight
This must be a number, e.g. 1.35, not a pixel value.
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
TLLoadSnapshotOptionsNext
TLMeasureTextSpanOpts