Back to Website
Show / Hide Table of Contents

Class ShapeItemHandler

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

Constructors

(constructor)(path, item, textWhizz, apiClient, colorPreviewService)

Constructs a new instance of the ShapeItemHandler class

Declaration
constructor(path?: Path, item?: ShapeItem, textWhizz?: typeof TextWhizz, apiClient?: IDesignAtomsApiClient, colorPreviewService?: IListenableColorPreviewService);
Parameters
Type Name Description
Path path
ShapeItem item
typeof TextWhizz textWhizz
IDesignAtomsApiClient apiClient
IListenableColorPreviewService colorPreviewService

Properties

_addedOnCanvasEvent

Declaration
protected _addedOnCanvasEvent: EventObject<void>;
Property Value
Type Description
EventObject<void>

_apiClient

Declaration
protected _apiClient: IDesignAtomsApiClient;
Property Value
Type Description
IDesignAtomsApiClient

_areColorPreviewsReady

Declaration
protected get _areColorPreviewsReady(): boolean;
Property Value
Type Description
boolean

_isLoadedPath

Declaration
protected _isLoadedPath: boolean;
Property Value
Type Description
boolean

_isLoadingPath

Declaration
protected _isLoadingPath: boolean;
Property Value
Type Description
boolean

_isReadyToDraw

Declaration
protected get _isReadyToDraw(): boolean;
Property Value
Type Description
boolean

_originalPathId

Declaration
protected _originalPathId: string;
Property Value
Type Description
string

_path

Declaration
protected _path: Path;
Property Value
Type Description
Path

_pathChangedDelegate

Declaration
protected _pathChangedDelegate: any;
Property Value
Type Description
any

item

Declaration
get item(): ShapeItem;

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

originalPath

Declaration
get originalPath(): Path;

set originalPath(path: Path);
Property Value
Type Description
Path

typeName

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

Methods

_createDataInstance(itemHandler)

Declaration
protected _createDataInstance(itemHandler?: ShapeItemHandler): ShapeHandlerData;
Parameters
Type Name Description
ShapeItemHandler itemHandler
Returns
Type Description
ShapeHandlerData

_getActualBorderWidth()

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

_getBoundsMargin()

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

_getColors()

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

_getItemColorPreviews()

Declaration
protected _getItemColorPreviews(): {
        fillColorPreview?: RgbColor;
        borderColorPreview?: RgbColor;
        altBorderColorPreview?: RgbColor;
    };
Returns
Type Description
{ fillColorPreview?: RgbColor; borderColorPreview?: RgbColor; altBorderColorPreview?: RgbColor; }

_getTransformedPath()

Declaration
protected _getTransformedPath(): Path;
Returns
Type Description
Path

_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: ShapeItem, propertyName: string): void;
Parameters
Type Name Description
ShapeItem sender
string propertyName
Returns
Type Description
void

_setDataItem(item, itemHandlerData)

Declaration
protected _setDataItem(item: ShapeItem, itemHandlerData: any): void;
Parameters
Type Name Description
ShapeItem item
any itemHandlerData
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>

drawItemHandler(itemHandlerCtx)

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

getOriginalPathId()

Declaration
getOriginalPathId(): string;
Returns
Type Description
string

getTextWrappingPath()

Declaration
getTextWrappingPath(): Path;
Returns
Type Description
Path

onTextWhizzInit()

Declaration
onTextWhizzInit(): void;
Returns
Type Description
void

setOriginalPathId(id)

Declaration
setOriginalPathId(id: string): Promise<void>;
Parameters
Type Name Description
string id
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