Back to Website
Show / Hide Table of Contents

Class BaseTextItemHandler

Inheritance
ItemHandler
BaseRectangleItemHandler
ShapeItemHandler
RectangleItemHandler
BaseTextItemHandler
Package: @aurigma/design-atoms

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
Type Name Description
BaseTextItem item
typeof TextWhizz textWhizz
IDesignAtomsApiClient apiClient
IListenableColorPreviewService colorPreviewService

Properties

_height

Declaration
protected _height: number;
Property Value
Type Description
number

_isUpdatingAfterResize

Declaration
protected _isUpdatingAfterResize: boolean;
Property Value
Type Description
boolean

colorSettings

Declaration
get colorSettings(): IPreviewColorSettings;
Property Value
Type Description
IPreviewColorSettings

currentTextImage

Declaration
get currentTextImage(): TextImageData;

set currentTextImage(value: TextImageData);
Property Value
Type Description
TextImageData

isLegacyTextEditor

Declaration
get isLegacyTextEditor(): boolean;
Property Value
Type Description
boolean

isUpdatingAfterResize

Declaration
get isUpdatingAfterResize(): boolean;

set isUpdatingAfterResize(value: boolean);
Property Value
Type Description
boolean

item

Declaration
get item(): BaseTextItem;

set item(item: BaseTextItem);
Property Value
Type Description
BaseTextItem

textCropped

Declaration
get textCropped(): boolean;
Property Value
Type Description
boolean

typeName

Declaration
static readonly typeName: string;
Property Value
Type Description
string

Methods

_createDataInstance(itemHandler)

Declaration
protected _createDataInstance(itemHandler?: BaseTextItemHandler): BaseTextHandlerData;
Parameters
Type Name Description
BaseTextItemHandler itemHandler
Returns
Type Description
BaseTextHandlerData

_endTransform(changed, resized)

Declaration
_endTransform(changed: any, resized: any): void;
Parameters
Type Name Description
any changed
any resized
Returns
Type Description
void

_getBoundsMargin()

Declaration
protected _getBoundsMargin(): number;
Returns
Type Description
number

_getColors()

Declaration
protected _getColors(): Color[];
Returns
Type Description
Color[]

_getSrc()

Declaration
protected _getSrc(): string;
Returns
Type Description
string

_isLoadingImage()

Declaration
protected _isLoadingImage(): boolean;
Returns
Type Description
boolean

_isReady()

Declaration
protected _isReady(): boolean;
Returns
Type Description
boolean

_onAddedOnCanvas(canvas, supressUpdate)

Declaration
protected _onAddedOnCanvas(canvas: ICanvas, supressUpdate?: boolean): void;
Parameters
Type Name Description
ICanvas canvas
boolean supressUpdate
Returns
Type Description
void

_onItemPropertyChanged(sender, propertyName)

Declaration
protected _onItemPropertyChanged(sender: BaseTextItem, propertyName: string): void;
Parameters
Type Name Description
BaseTextItem sender
string propertyName
Returns
Type Description
void

_onRemovedFromCanvas(canvas)

Declaration
protected _onRemovedFromCanvas(canvas: any): void;
Parameters
Type Name Description
any canvas
Returns
Type Description
void

_onValidateBeforeCallServiceFailed()

Declaration
protected _onValidateBeforeCallServiceFailed(): void;
Returns
Type Description
void

_setDataItem(itemData, itemHandlerData)

Declaration
protected _setDataItem(itemData: BaseTextItem, itemHandlerData: any): void;
Parameters
Type Name Description
BaseTextItem itemData
any itemHandlerData
Returns
Type Description
void

_setDefaultTextControlPoints()

Declaration
protected _setDefaultTextControlPoints(): void;
Returns
Type Description
void

_setIsImageLoaded(value)

Declaration
protected _setIsImageLoaded(value: boolean): void;
Parameters
Type Name Description
boolean value
Returns
Type Description
void

_setIsLoadingImage(value)

Declaration
protected _setIsLoadingImage(value: boolean): void;
Parameters
Type Name Description
boolean value
Returns
Type Description
void

_updateEmptyTextControlPoints()

Declaration
protected _updateEmptyTextControlPoints(): void;
Returns
Type Description
void

_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
Type Description
boolean

dispose()

Declaration
dispose(): void;
Returns
Type Description
void

drawItemHandler(itemHandlerCtx)

Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
Type Name Description
CanvasRenderingContext2D itemHandlerCtx
Returns
Type Description
void

isEmpty()

Declaration
isEmpty(): boolean;
Returns
Type Description
boolean

isEmptyTextPlaceholder()

Declaration
isEmptyTextPlaceholder(): boolean;
Returns
Type Description
boolean

isVisible()

Declaration
isVisible(): boolean;
Returns
Type Description
boolean

onResized()

Declaration
onResized(): boolean;
Returns
Type Description
boolean

quickUpdate()

Declaration
quickUpdate(): void;
Returns
Type Description
void

transformChanged()

Declaration
transformChanged(): void;
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback