Class BaseTextItemHandler
Inheritance
BaseTextItemHandler
Constructors
(constructor)(item, textWhizz, apiClient, colorPreviewService)
Constructs a new instance of the BaseTextItemHandler class
Declaration
protected constructor(item?: BaseTextItem, textWhizz?: typeof TextWhizz, apiClient?: IDesignAtomsApiClient, colorPreviewService?: IListenableColorPreviewService);
Parameters
Properties
_height
Declaration
protected _height: number;
Property Value
_isUpdatingAfterResize
Declaration
protected _isUpdatingAfterResize: boolean;
Property Value
colorSettings
Declaration
get colorSettings(): IPreviewColorSettings;
Property Value
currentTextImage
Declaration
get currentTextImage(): TextImageData;
set currentTextImage(value: TextImageData);
Property Value
isLegacyTextEditor
Declaration
get isLegacyTextEditor(): boolean;
Property Value
isUpdatingAfterResize
Declaration
get isUpdatingAfterResize(): boolean;
set isUpdatingAfterResize(value: boolean);
Property Value
item
Declaration
get item(): BaseTextItem;
set item(item: BaseTextItem);
Property Value
| Type |
Description |
| BaseTextItem |
|
textCropped
Declaration
get textCropped(): boolean;
Property Value
typeName
Declaration
static readonly typeName: string;
Property Value
Methods
_createDataInstance(itemHandler)
Declaration
protected _createDataInstance(itemHandler?: BaseTextItemHandler): BaseTextHandlerData;
Parameters
Returns
_endTransform(changed, resized)
Declaration
_endTransform(changed: any, resized: any): void;
Parameters
| Type |
Name |
Description |
| any |
changed |
|
| any |
resized |
|
Returns
_getBoundsMargin()
Declaration
protected _getBoundsMargin(): number;
Returns
_getColors()
Declaration
protected _getColors(): Color[];
Returns
_getSrc()
Declaration
protected _getSrc(): string;
Returns
_isLoadingImage()
Declaration
protected _isLoadingImage(): boolean;
Returns
_isReady()
Declaration
protected _isReady(): boolean;
Returns
_onAddedOnCanvas(canvas, supressUpdate)
Declaration
protected _onAddedOnCanvas(canvas: ICanvas, supressUpdate?: boolean): void;
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
| boolean |
supressUpdate |
|
Returns
_onItemPropertyChanged(sender, propertyName)
Declaration
protected _onItemPropertyChanged(sender: BaseTextItem, propertyName: string): void;
Parameters
| Type |
Name |
Description |
| BaseTextItem |
sender |
|
| string |
propertyName |
|
Returns
_onRemovedFromCanvas(canvas)
Declaration
protected _onRemovedFromCanvas(canvas: any): void;
Parameters
| Type |
Name |
Description |
| any |
canvas |
|
Returns
_onValidateBeforeCallServiceFailed()
Declaration
protected _onValidateBeforeCallServiceFailed(): void;
Returns
_setDataItem(itemData, itemHandlerData)
Declaration
protected _setDataItem(itemData: BaseTextItem, itemHandlerData: any): void;
Parameters
| Type |
Name |
Description |
| BaseTextItem |
itemData |
|
| any |
itemHandlerData |
|
Returns
_setDefaultTextControlPoints()
Declaration
protected _setDefaultTextControlPoints(): void;
Returns
_setIsImageLoaded(value)
Declaration
protected _setIsImageLoaded(value: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
value |
|
Returns
_setIsLoadingImage(value)
Declaration
protected _setIsLoadingImage(value: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
value |
|
Returns
_updateEmptyTextControlPoints()
Declaration
protected _updateEmptyTextControlPoints(): void;
Returns
_updateImpl(beforeUpdate, afterUpdate)
Declaration
protected _updateImpl(beforeUpdate?: Function, afterUpdate?: Function): Promise<void>;
Parameters
| Type |
Name |
Description |
| Function |
beforeUpdate |
|
| Function |
afterUpdate |
|
Returns
| Type |
Description |
| Promise<void> |
|
_validateBeforeCallService()
Declaration
protected _validateBeforeCallService(): boolean;
Returns
dispose()
Declaration
Returns
drawItemHandler(itemHandlerCtx)
Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
Returns
isEmpty()
Declaration
Returns
isEmptyTextPlaceholder()
Declaration
isEmptyTextPlaceholder(): boolean;
Returns
isVisible()
Declaration
Returns
onResized()
Declaration
Returns
quickUpdate()
Declaration
Returns
transformChanged()
Declaration
transformChanged(): void;
Returns