Class TextWhizzInitData
Data required to initialize the text engine wrapper.
Constructors
(constructor)(itemHandler, colorPreviewService)
Constructs a new instance of the TextWhizzInitData class
Declaration
constructor(itemHandler: NewBaseTextItemHandler, colorPreviewService: IColorPreviewService);
Parameters
Properties
colorPalette
Declaration
get colorPalette(): Collection<IColorData>;
Property Value
defaultCharStyle
Declaration
get defaultCharStyle(): ICharStyle | null;
Property Value
| Type |
Description |
| unknown | null |
|
defaultParagraphStyle
Declaration
get defaultParagraphStyle(): IParagraphStyle | null;
Property Value
end
Declaration
get end(): number | null;
Property Value
| Type |
Description |
| number | null |
|
firstBaselineMinOffset
Declaration
get firstBaselineMinOffset(): number | null;
Property Value
| Type |
Description |
| number | null |
|
firstBaselineOffset
Declaration
get firstBaselineOffset(): FirstBaselineOffset | null;
Property Value
frames
Declaration
get frames(): ITextFrameData;
Property Value
| Type |
Description |
| IFontRegistry |
|
isFitToPath
Declaration
get isFitToPath(): boolean | null;
Property Value
| Type |
Description |
| boolean | null |
|
isTextBounded
Declaration
get isTextBounded(): boolean;
Property Value
isTextVertical
Declaration
get isTextVertical(): boolean;
Property Value
overflowStrategy
Declaration
get overflowStrategy(): OverflowStrategy | null;
Property Value
previewScale
Declaration
get previewScale(): number;
Property Value
rectangle
Declaration
get rectangle(): RectangleF;
Property Value
start
Declaration
get start(): number | null;
Property Value
| Type |
Description |
| number | null |
|
text
Declaration
get text(): string | Text;
set text(value: string | Text);
Property Value
| Type |
Description |
| string | unknown |
|
verticalAlignment
Declaration
get verticalAlignment(): TextVerticalAlignment | null;
Property Value
wrappingPath
Declaration
get wrappingPath(): IWrappingPathData;
Property Value
| Type |
Description |
| IFontRegistry |
|
Methods
getActualFrames()
Declaration
getActualFrames(): ITextFrameData;
Returns
| Type |
Description |
| IFontRegistry |
|
getDefaultInlineStyle(item, colorPreviewService)
Declaration
static getDefaultInlineStyle(item: BaseTextItem, colorPreviewService: IColorPreviewService): Promise<ICharStyle>;
Parameters
Returns
| Type |
Description |
| Promise<unknown> |
|
getDefaultParagraphStyle(item)
Declaration
static getDefaultParagraphStyle(item: BaseTextItem): IParagraphStyle;
Parameters
| Type |
Name |
Description |
| BaseTextItem |
item |
|
Returns
update(customText)
Declaration
update(customText?: string): Promise<void>;
Parameters
| Type |
Name |
Description |
| string |
customText |
|
Returns
| Type |
Description |
| Promise<void> |
|