Class ItemHandler
Constructors
(constructor)(item)
Constructs a new instance of the ItemHandler class
Declaration
constructor(item?: Item);
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Properties
_callbacks
Declaration
protected _callbacks: any[];
Property Value
_controlPoints
Declaration
protected _controlPoints: PointF[];
Property Value
_handlerUpdated
Declaration
protected _handlerUpdated: Deferred<void>;
Property Value
| Type |
Description |
| Deferred<void> |
|
_isDisposed
Declaration
protected _isDisposed: boolean;
Property Value
_itemPropertyChangedEvent
Declaration
protected _itemPropertyChangedEvent: EventWithSenderArg<ItemHandler, string>;
Property Value
_permissions
Declaration
protected _permissions: Permission;
Property Value
_tag
Declaration
Property Value
_throttleSizeChanging
Declaration
protected _throttleSizeChanging: any;
Property Value
_uniqueId
Declaration
protected _uniqueId: string;
Property Value
blendMode
Declaration
get blendMode(): BlendMode;
Property Value
bounds
Declaration
get bounds(): RectangleF;
Property Value
canvas
Declaration
get canvas(): ICanvas;
set canvas(value: ICanvas);
Property Value
changeItemOnUpdate
Declaration
get changeItemOnUpdate(): boolean;
set changeItemOnUpdate(value: boolean);
Property Value
controlPoints
Declaration
get controlPoints(): PointF[];
set controlPoints(v: PointF[]);
Property Value
DEFAULT_CONTAINER_TRANSPARENCY_ENABLED
Declaration
static readonly DEFAULT_CONTAINER_TRANSPARENCY_ENABLED = true;
DEFAULT_CONTAINER_TRANSPARENCY_LEVEL
Declaration
static readonly DEFAULT_CONTAINER_TRANSPARENCY_LEVEL = 0.8;
hasLayoutAncestor
Declaration
get hasLayoutAncestor(): boolean;
Property Value
index
Declaration
Property Value
isLoadingImage
Declaration
get isLoadingImage(): boolean;
set isLoadingImage(value: boolean);
Property Value
isNormalRenderingType
Declaration
get isNormalRenderingType(): boolean;
Property Value
isUpdating
Declaration
get isUpdating(): boolean;
Property Value
item
Declaration
Property Value
layer
Declaration
get layer(): Layer;
set layer(v: Layer);
Property Value
locked
Declaration
get locked(): boolean;
set locked(v: boolean);
Property Value
name
Declaration
get name(): string;
set name(v: string);
Property Value
parentGroupItemHandler
Declaration
get parentGroupItemHandler(): GroupItemHandler;
Property Value
ready
Declaration
Property Value
renderState
Declaration
get renderState(): RenderState;
set renderState(v: RenderState);
Property Value
tag
Declaration
get tag(): any;
set tag(v: any);
Property Value
typeName
Declaration
static readonly typeName: string;
Property Value
uniqueId
Declaration
get uniqueId(): string;
set uniqueId(v: string);
Property Value
visible
Declaration
get visible(): boolean;
set visible(v: boolean);
Property Value
Methods
_applyDataItem(item, itemHandlerData)
Declaration
protected _applyDataItem(item: any, itemHandlerData: any): void;
Parameters
| Type |
Name |
Description |
| any |
item |
|
| any |
itemHandlerData |
|
Returns
_callService(methodName, data, success, failure, externalCanvas)
Declaration
protected _callService(methodName: any, data: any, success: any, failure: any, externalCanvas: ICanvas): void;
Parameters
| Type |
Name |
Description |
| any |
methodName |
|
| any |
data |
|
| any |
success |
|
| any |
failure |
|
| ICanvas |
externalCanvas |
|
Returns
_createDataInstance(itemHandler)
Declaration
protected _createDataInstance(itemHandler?: ItemHandler): ItemHandlerData;
Parameters
Returns
_dispatchReadyEvent()
Declaration
protected _dispatchReadyEvent(): void;
Returns
_getColors()
Declaration
protected _getColors(): Color[];
Returns
_getDataItem()
Declaration
protected _getDataItem(): string;
Returns
_getDefaultPermissions()
Declaration
protected _getDefaultPermissions(): IPermissions;
Returns
_getItem()
Declaration
protected _getItem(): Item;
Returns
_getItemPermissions()
Declaration
protected _getItemPermissions(): IPermissions;
Returns
_getLayer()
Declaration
protected _getLayer(): Layer;
Returns
_isGroupHandler()
Declaration
protected _isGroupHandler(): boolean;
Returns
_isIgnorePermissionsMode()
Declaration
protected _isIgnorePermissionsMode(): boolean;
Returns
_isLoadingImage()
Declaration
protected _isLoadingImage(): boolean;
Returns
_isReady()
Declaration
protected _isReady(): boolean;
Returns
_modifyItem(modify)
Declaration
protected _modifyItem(modify: (i: Item) => void): void;
Parameters
| Type |
Name |
Description |
| (i: Item) => void |
modify |
|
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: Item, propertyName: string): void;
Parameters
| Type |
Name |
Description |
| Item |
sender |
|
| string |
propertyName |
|
Returns
_onItemVisibilityChanged()
Declaration
protected _onItemVisibilityChanged(): void;
Returns
_onRemovedFromCanvas(canvas)
Declaration
protected _onRemovedFromCanvas(canvas: any): void;
Parameters
| Type |
Name |
Description |
| any |
canvas |
|
Returns
_onValidateBeforeCallServiceFailed()
Declaration
protected _onValidateBeforeCallServiceFailed(): void;
Returns
_refreshState()
Declaration
protected _refreshState(): void;
Returns
_setDataItem(item, itemHandlerData)
Declaration
protected _setDataItem(item: Item, itemHandlerData: any): void;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
| any |
itemHandlerData |
|
Returns
_setIsLoadingImage(value)
Declaration
protected _setIsLoadingImage(value: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
value |
|
Returns
_setItem(item)
Declaration
protected _setItem(item: Item): void;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
_subscribeItemEvents()
Declaration
protected _subscribeItemEvents(): void;
Returns
_unsubscribeItemEvents()
Declaration
protected _unsubscribeItemEvents(): void;
Returns
_update(additionalArgs, beforeUpdate, afterUpdate)
Declaration
protected _update(additionalArgs: any, beforeUpdate: any, afterUpdate: any): void;
Parameters
| Type |
Name |
Description |
| any |
additionalArgs |
|
| any |
beforeUpdate |
|
| any |
afterUpdate |
|
Returns
_updateActiveWebServiceCall(callPromise)
Declaration
protected _updateActiveWebServiceCall(callPromise: Utils.ICancelablePromise<any>): Promise<void>;
Parameters
| Type |
Name |
Description |
| Utils.ICancelablePromise<any> |
callPromise |
|
Returns
| Type |
Description |
| Promise<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> |
|
_updateVisibility()
Declaration
protected _updateVisibility(): void;
Returns
_validateBeforeCallService()
Declaration
protected _validateBeforeCallService(): boolean;
Returns
addChanged(handler)
Declaration
addChanged(handler: (sender: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (sender: ItemHandler) => any |
handler |
|
Returns
addChanging(handler)
Declaration
addChanging(handler: (sender: Item) => any): void;
Parameters
| Type |
Name |
Description |
| (sender: Item) => any |
handler |
|
Returns
addItemPropertyChanged(handler)
Declaration
addItemPropertyChanged(handler: (sender: ItemHandler, propertyName: string) => any): void;
Parameters
| Type |
Name |
Description |
| (sender: ItemHandler, propertyName: string) => any |
handler |
|
Returns
addReady(handler)
Declaration
addReady(handler: (sender: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (sender: ItemHandler) => any |
handler |
|
Returns
beginUpdate()
Declaration
Returns
dispose()
Declaration
Returns
draw(itemHandlerCtx, clippingPath, textureCanvas, textureCanvasCtx, memoryCanvas, memoryCanvasCtx, canvasRenderer, isMasked)
Declaration
draw(itemHandlerCtx: CanvasRenderingContext2D, clippingPath: Path, textureCanvas: HTMLCanvasElement, textureCanvasCtx: CanvasRenderingContext2D, memoryCanvas: HTMLCanvasElement, memoryCanvasCtx: CanvasRenderingContext2D, canvasRenderer: ICanvasRenderer, isMasked: boolean): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
| Path |
clippingPath |
|
| HTMLCanvasElement |
textureCanvas |
|
| CanvasRenderingContext2D |
textureCanvasCtx |
|
| HTMLCanvasElement |
memoryCanvas |
|
| CanvasRenderingContext2D |
memoryCanvasCtx |
|
| ICanvasRenderer |
canvasRenderer |
|
| boolean |
isMasked |
|
Returns
drawItemHandler(itemHandlerCtx, originalCtx)
Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D, originalCtx?: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
| CanvasRenderingContext2D |
originalCtx |
|
Returns
Declaration
endTransform(changed: boolean, resized: boolean, supressOnChanged?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
changed |
|
| boolean |
resized |
|
| boolean |
supressOnChanged |
|
Returns
endUpdate()
Declaration
Returns
getChangedEvent()
Declaration
getChangedEvent(): EventObject<ItemHandler>;
Returns
getChangingEvent()
Declaration
getChangingEvent(): EventObject<Item>;
Returns
getColors()
Declaration
Returns
getData(type)
Declaration
getData(type: "asObject"): ItemHandlerData;
Parameters
| Type |
Name |
Description |
| "asObject" |
type |
|
Returns
getData()
Declaration
Returns
getPermissions()
Declaration
getPermissions(): Permission;
Returns
getTypeName()
Declaration
Returns
hasBlendMode()
Declaration
Returns
hitTest(point)
Declaration
hitTest(point: PointF): IHitTestResult;
Parameters
| Type |
Name |
Description |
| PointF |
point |
|
Returns
initialize()
Declaration
Returns
isEmpty()
Declaration
Returns
isGroupHandler(itemHandler)
Declaration
static isGroupHandler(itemHandler: any): itemHandler is IGroupHandler;
Parameters
| Type |
Name |
Description |
| any |
itemHandler |
|
Returns
isHighlightNeeded()
Declaration
isHighlightNeeded(): boolean;
Returns
isLocked()
Declaration
Returns
isVisible()
Declaration
Returns
onErrorResponse(error, activeCall)
Declaration
onErrorResponse(error: any, activeCall?: WebServiceCallType): void;
Parameters
| Type |
Name |
Description |
| any |
error |
|
| WebServiceCallType |
activeCall |
|
Returns
onSuccessResponse(activeCall)
Declaration
onSuccessResponse(activeCall?: WebServiceCallType): void;
Parameters
| Type |
Name |
Description |
| WebServiceCallType |
activeCall |
|
Returns
processEvent(e)
Declaration
processEvent(e: any): void;
Parameters
| Type |
Name |
Description |
| any |
e |
|
Returns
quickUpdate()
Declaration
Returns
raiseChanged()
Declaration
Returns
raiseChanging(param)
Declaration
raiseChanging(param?: Item): void;
Parameters
| Type |
Name |
Description |
| Item |
param |
|
Returns
removeChanged(handler)
Declaration
removeChanged(handler: (sender: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (sender: ItemHandler) => any |
handler |
|
Returns
removeChanging(handler)
Declaration
removeChanging(handler: (sender: Item) => any): void;
Parameters
| Type |
Name |
Description |
| (sender: Item) => any |
handler |
|
Returns
removeItemPropertyChanged(handler)
Declaration
removeItemPropertyChanged(handler: (sender: ItemHandler, propertyName: string) => any): void;
Parameters
| Type |
Name |
Description |
| (sender: ItemHandler, propertyName: string) => any |
handler |
|
Returns
removeReady(handler)
Declaration
removeReady(handler: (sender: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (sender: ItemHandler) => any |
handler |
|
Returns
resetPermissions()
Declaration
resetPermissions(): void;
Returns
setData(v)
Declaration
Parameters
| Type |
Name |
Description |
| any |
v |
|
Returns
Declaration
Returns
Declaration
protected transformChanged(): void;
Returns
update(beforeUpdate, afterUpdate)
Declaration
update(beforeUpdate?: Function, afterUpdate?: Function): void;
Parameters
| Type |
Name |
Description |
| Function |
beforeUpdate |
|
| Function |
afterUpdate |
|
Returns
updateActiveColorWebServiceCall(callPromise, updateForAll)
Declaration
updateActiveColorWebServiceCall(callPromise: Utils.ICancelablePromise<any>, updateForAll: boolean): Promise<void>;
Parameters
| Type |
Name |
Description |
| Utils.ICancelablePromise<any> |
callPromise |
|
| boolean |
updateForAll |
|
Returns
| Type |
Description |
| Promise<void> |
|
updateAsync(beforeUpdate, afterUpdate)
Declaration
updateAsync(beforeUpdate?: Function, afterUpdate?: Function): Promise<void>;
Parameters
| Type |
Name |
Description |
| Function |
beforeUpdate |
|
| Function |
afterUpdate |
|
Returns
| Type |
Description |
| Promise<void> |
|
updated()
Declaration
Returns
updateForExternalCanvas(canvas)
Declaration
updateForExternalCanvas(canvas: ICanvas): void;
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
Returns
updateItem(item)
Declaration
updateItem(item: Item): void;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
validateActiveColorWebServiceCall()
Declaration
validateActiveColorWebServiceCall(): void;
Returns
waitUpdate()
Declaration
waitUpdate(): Promise<void>;
Returns
| Type |
Description |
| Promise<void> |
|