Back to Website
Show / Hide Table of Contents

Class NewPlainTextItemHandler

Inheritance
ItemHandler
BaseRectangleItemHandler
ShapeItemHandler
NewBaseTextItemHandler
NewPlainTextItemHandler
Package: @aurigma/design-atoms

Constructors

(constructor)(fontRegistry, textEditorControllerFactory, item, textWhizz, apiClient, colorPreviewServce, colorParser)

Constructs a new instance of the NewPlainTextItemHandler class

Declaration
constructor(fontRegistry: FontRegistry, textEditorControllerFactory: ITextEditorControllerFactory, item?: PlainTextItem, textWhizz?: typeof TextWhizz, apiClient?: IDesignAtomsApiClient, colorPreviewServce?: IListenableColorPreviewService, colorParser?: IColorParser);
Parameters
Type Name Description
FontRegistry fontRegistry
ITextEditorControllerFactory textEditorControllerFactory
PlainTextItem item
typeof TextWhizz textWhizz
IDesignAtomsApiClient apiClient
IListenableColorPreviewService colorPreviewServce
IColorParser colorParser

Properties

item

Declaration
get item(): PlainTextItem;

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

typeName

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

Methods

_addTextWhizzFrames(handler)

Declaration
protected _addTextWhizzFrames(handler: TextWhizz.TextHandler): void;
Parameters
Type Name Description
TextWhizz.TextHandler handler
Returns
Type Description
void

_applyTransform(item, transform, center)

Declaration
protected _applyTransform(item: BaseTextItem, transform: Transform, center: PointF): Promise<void>;
Parameters
Type Name Description
BaseTextItem item
Transform transform
PointF center
Returns
Type Description
Promise<void>

_getDefaultPermissions()

Declaration
protected _getDefaultPermissions(): IPermissions;
Returns
Type Description
IPermissions

_getEndTransformTrigger(resized)

Declaration
protected _getEndTransformTrigger(resized: boolean): string;
Parameters
Type Name Description
boolean resized
Returns
Type Description
string

_getPreviewScaleLimits()

Declaration
protected _getPreviewScaleLimits(): {
        min: number;
        max: number;
    };
Returns
Type Description
{ min: number; max: number; }

_onItemPropertyChanged(sender, propertyName)

Declaration
protected _onItemPropertyChanged(sender: PlainTextItem, propertyName: string): Promise<void>;
Parameters
Type Name Description
PlainTextItem sender
string propertyName
Returns
Type Description
Promise<void>

_updateRectangleAfterTextScale(item, transform)

Declaration
protected _updateRectangleAfterTextScale(item: PlainTextItem, transform: Transform): Promise<void>;
Parameters
Type Name Description
PlainTextItem item
Transform transform
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
Type Description
void

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
Type Description
void

waitInitFrontEndRendering()

Declaration
protected waitInitFrontEndRendering(): Promise<void>;
Returns
Type Description
Promise<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