Class NewCurvedTextItemHandler
Inheritance
NewCurvedTextItemHandler
Constructors
(constructor)(fontRegistry, textEditorControllerFactory, item, textWhizz, apiClient, colorPreviewService, colorParser)
Constructs a new instance of the NewCurvedTextItemHandler class
Declaration
constructor(fontRegistry: FontRegistry, textEditorControllerFactory: ITextEditorControllerFactory, item?: CurvedTextItem, textWhizz?: typeof TextWhizz, apiClient?: IDesignAtomsApiClient, colorPreviewService?: IListenableColorPreviewService, colorParser?: IColorParser);
Parameters
Properties
item
Declaration
get item(): CurvedTextItem;
set item(item: CurvedTextItem);
Property Value
typeName
Declaration
static readonly typeName: string;
Property Value
Methods
_addTextWhizzFrames(handler)
Declaration
protected _addTextWhizzFrames(handler: TextWhizz.TextHandler): void;
Parameters
| Type |
Name |
Description |
| TextWhizz.TextHandler |
handler |
|
Returns
_applyTransform(item, transform, center)
Declaration
protected _applyTransform(item: BaseTextItem, transform: Transform, center: PointF): Promise<void>;
Parameters
Returns
| Type |
Description |
| Promise<void> |
|
_drawBaseline(ctx)
Declaration
protected _drawBaseline(ctx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
ctx |
|
Returns
_drawHandlerEffects(ctx)
Declaration
protected _drawHandlerEffects(ctx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
ctx |
|
Returns
_getBaselineDrawStates()
Declaration
protected _getBaselineDrawStates(): ItemHandlerState[];
Returns
_getEndTransformTrigger(resized)
Declaration
protected _getEndTransformTrigger(resized: boolean): string;
Parameters
| Type |
Name |
Description |
| boolean |
resized |
|
Returns
_onItemPropertyChanged(sender, propertyName)
Declaration
protected _onItemPropertyChanged(sender: CurvedTextItem, propertyName: string): void;
Parameters
Returns
_updateRectangleAfterTextScale(item, transform)
Declaration
protected _updateRectangleAfterTextScale(item: CurvedTextItem, transform: Transform): Promise<void>;
Parameters
Returns
| Type |
Description |
| Promise<void> |
|
getFramesData()
Declaration
getFramesData(): ITextFrameData;
Returns
| Type |
Description |
| IFontRegistry |
|
getWrappingPathData()
Declaration
getWrappingPathData(): IWrappingPathData;
Returns
| Type |
Description |
| IFontRegistry |
|
setTextWhizzWrappingPath(handler)
Declaration
setTextWhizzWrappingPath(handler: TextWhizz.TextHandler): void;
Parameters
| Type |
Name |
Description |
| TextWhizz.TextHandler |
handler |
|
Returns
updateRectangle(rectangle, updateFromTextEdit)
Declaration
updateRectangle(rectangle: RectangleF, updateFromTextEdit: boolean): Promise<void>;
Parameters
| Type |
Name |
Description |
| RectangleF |
rectangle |
|
| boolean |
updateFromTextEdit |
|
Returns
| Type |
Description |
| Promise<void> |
|
updateTextWhizzFrames(handler)
Declaration
updateTextWhizzFrames(handler: TextWhizz.TextHandler): void;
Parameters
| Type |
Name |
Description |
| TextWhizz.TextHandler |
handler |
|
Returns
waitInitFrontEndRendering()
Declaration
protected waitInitFrontEndRendering(): Promise<void>;
Returns
| Type |
Description |
| Promise<void> |
|