Class GroupItemHandler
Inheritance
GroupItemHandler
Constructors
(constructor)(item, itemHandlers, textWhizz)
Constructs a new instance of the GroupItemHandler class
Declaration
constructor(item: GroupItem, itemHandlers?: ItemHandler[], textWhizz?: typeof TextWhizz);
Parameters
Properties
_cachedPermissions
Declaration
_cachedPermissions: Permission;
Property Value
_calculateRectangleFromChild
Declaration
protected get _calculateRectangleFromChild(): boolean;
Property Value
_onChildItemHandlerChanging
Declaration
protected _onChildItemHandlerChanging: (sender: Item) => void;
Property Value
| Type |
Description |
| (sender: Item) => void |
|
item
Declaration
Property Value
itemHandlers
Declaration
get itemHandlers(): Collection<ItemHandler>;
set itemHandlers(value: Collection<ItemHandler>);
Property Value
typeName
Declaration
static readonly typeName: string;
Property Value
Methods
Declaration
_endTransform(changed: any, resized: any, supressOnChanged?: boolean): void;
Parameters
| Type |
Name |
Description |
| any |
changed |
|
| any |
resized |
|
| boolean |
supressOnChanged |
|
Returns
_getChildrenHighlights()
Declaration
protected _getChildrenHighlights(): RotatedRectangleF[];
Returns
_getColors()
Declaration
protected _getColors(): Color[];
Returns
_getRectangle()
Declaration
protected _getRectangle(): RotatedRectangleF;
Returns
_getRectangleFromChildren()
Declaration
protected _getRectangleFromChildren(): RotatedRectangleF;
Returns
_onAddedOnCanvas(canvas)
Declaration
protected _onAddedOnCanvas(canvas: ICanvas): void;
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
Returns
_onChildItemPropertyChanged(sender, property)
Declaration
protected _onChildItemPropertyChanged(sender: Item, property: string): void;
Parameters
| Type |
Name |
Description |
| Item |
sender |
|
| string |
property |
|
Returns
_onItemAdded(data)
Declaration
protected _onItemAdded(data?: {
item: Item;
index: number;
}): void;
Parameters
| Type |
Name |
Description |
| {
item: Item;
index: number;
} |
data |
|
Returns
_onItemHandlerAdded(data)
Declaration
protected _onItemHandlerAdded(data?: {
item: ItemHandler;
index: number;
}): void;
Parameters
| Type |
Name |
Description |
| {
item: ItemHandler;
index: number;
} |
data |
|
Returns
_onItemHandlerRemoved(data)
Declaration
protected _onItemHandlerRemoved(data?: {
item: ItemHandler;
index: number;
}): void;
Parameters
| Type |
Name |
Description |
| {
item: ItemHandler;
index: number;
} |
data |
|
Returns
_onItemPropertyChanged(sender, propertyName)
Declaration
protected _onItemPropertyChanged(sender: GroupItem, propertyName: string): void;
Parameters
| Type |
Name |
Description |
| GroupItem |
sender |
|
| string |
propertyName |
|
Returns
_onItemRemoved(data)
Declaration
protected _onItemRemoved(data?: {
item: Item;
index: number;
}): void;
Parameters
| Type |
Name |
Description |
| {
item: Item;
index: number;
} |
data |
|
Returns
_onRemovedFromCanvas(canvas)
Declaration
protected _onRemovedFromCanvas(canvas: ICanvas): void;
Parameters
| Type |
Name |
Description |
| ICanvas |
canvas |
|
Returns
Declaration
protected _onTransformRectangle(startRectangle: RotatedRectangleF, endRectangle: RotatedRectangleF, highlightOnly: boolean): void;
Parameters
Returns
_updateImpl()
Declaration
protected _updateImpl(): Promise<void>;
Returns
| Type |
Description |
| Promise<void> |
|
applyToItems(func)
Declaration
applyToItems(func: (handler: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (handler: ItemHandler) => any |
func |
|
Returns
drawItemHandler(itemHandlerCtx)
Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
Returns
getHighlightRectangles(options)
Declaration
getHighlightRectangles(options?: IGetHighlightRectanglesOptions): RotatedRectangleF[];
Parameters
| Type |
Name |
Description |
| IGetHighlightRectanglesOptions |
options |
|
Returns
getNestedItemHandlers(excludeGroupItems, reversedZorder, onlyVisible)
Declaration
getNestedItemHandlers(excludeGroupItems?: boolean, reversedZorder?: boolean, onlyVisible?: boolean): ItemHandler[];
Parameters
| Type |
Name |
Description |
| boolean |
excludeGroupItems |
|
| boolean |
reversedZorder |
|
| boolean |
onlyVisible |
|
Returns
getOrderedItems()
Declaration
getOrderedItems(): Item[];
Returns
getPermissions()
Declaration
getPermissions(): Permission;
Returns
isChildVisible(itemHandler)
Declaration
isChildVisible(itemHandler: ItemHandler): boolean;
Parameters
Returns
isHighlightNeeded()
Declaration
isHighlightNeeded(): boolean;
Returns
onResized()
Declaration
Returns
quickUpdate()
Declaration
Returns
replaceItemHandler(oldHandler, newHandler)
Declaration
replaceItemHandler(oldHandler: ItemHandler, newHandler: ItemHandler): void;
Parameters
Returns
resetPermissions()
Declaration
resetPermissions(): void;
Returns
setItemHandlers(itemHandlers)
Declaration
setItemHandlers(itemHandlers: ItemHandler[]): void;
Parameters
Returns
setRectangle(rectangle, supressOnChanged)
Declaration
setRectangle(rectangle: RotatedRectangleF, supressOnChanged?: boolean): void;
Parameters
Returns
Declaration
Returns
Declaration
transformChanged(): void;
Returns
updateNestedItemHandlers(updateFunc)
Declaration
updateNestedItemHandlers(updateFunc: HandlerUpdateFunc): boolean;
Parameters
Returns