Interface ITextMeasurer
Handler for measuring text.
Package: @aurigma/design-atoms-text
Methods
isTextCropped()
Indicates if text is cropped.
Declaration
isTextCropped(): boolean;
Returns
Type | Description |
---|---|
boolean |
measureText(scale, isExtendToBlackBox)
Measures text.
Declaration
measureText(scale: number, isExtendToBlackBox?: boolean): RectangleF;
Parameters
Type | Name | Description |
---|---|---|
number | scale |
scale. |
boolean | isExtendToBlackBox |
indicates if extend to black box. |
Returns
Type | Description |
---|---|
RectangleF |
measureTextFrame(useActiveText)
Measures the text frame.
Declaration
measureTextFrame(useActiveText: boolean): RectangleF;
Parameters
Type | Name | Description |
---|---|---|
boolean | useActiveText |
true if you want to use the currently active text, false if the item's original text. |
Returns
Type | Description |
---|---|
RectangleF |