Class LayoutItemHandler
Inheritance
LayoutItemHandler
Constructors
(constructor)(item, itemHandlers, _history, textWhizz)
Constructs a new instance of the LayoutItemHandler class
Declaration
constructor(item: LayoutItem, itemHandlers: ItemHandler[], _history: History, textWhizz?: typeof TextWhizz);
Parameters
Properties
_applyMatrix
Declaration
protected _applyMatrix: (matrix: Matrix, finished: boolean, newAngle?: number) => void;
Property Value
| Type |
Description |
| (matrix: Matrix, finished: boolean, newAngle?: number) => void |
|
_calculateRectangleFromChild
Declaration
protected get _calculateRectangleFromChild(): boolean;
Property Value
_onChildItemChanged
Declaration
protected _onChildItemChanged: (sender: any) => void;
Property Value
| Type |
Description |
| (sender: any) => void |
|
_onChildItemHandlerChanging
Declaration
protected _onChildItemHandlerChanging: (sender: Item) => void;
Property Value
| Type |
Description |
| (sender: Item) => void |
|
_onChildItemHandlerLayout
Declaration
protected _onChildItemHandlerLayout: (changed: boolean) => void;
Property Value
| Type |
Description |
| (changed: boolean) => void |
|
_onChildItemHandlerVisibilityChanged
Declaration
protected _onChildItemHandlerVisibilityChanged: () => void;
Property Value
| Type |
Description |
| () => void |
|
_rectMap
Declaration
_rectMap: {
[name: string]: RotatedRectangleF;
};
Property Value
Declaration
_transformedRectangle: RotatedRectangleF;
Property Value
item
Declaration
Property Value
typeName
Declaration
static readonly typeName: string;
Property Value
Methods
Declaration
_endTransform(changed: any, resized: any, suppressOnChanged: any): void;
Parameters
| Type |
Name |
Description |
| any |
changed |
|
| any |
resized |
|
| any |
suppressOnChanged |
|
Returns
_getChildrenHighlights()
Declaration
protected _getChildrenHighlights(): RotatedRectangleF[];
Returns
_getHighlightRectangle()
Declaration
protected _getHighlightRectangle(): RotatedRectangleF;
Returns
_getRectangle()
Declaration
protected _getRectangle(): RotatedRectangleF;
Returns
_isGroupHandler()
Declaration
protected _isGroupHandler(): boolean;
Returns
_onAddedOnCanvas(canvas)
Declaration
protected _onAddedOnCanvas(canvas: any): Promise<void>;
Parameters
| Type |
Name |
Description |
| any |
canvas |
|
Returns
| Type |
Description |
| Promise<void> |
|
_onItemAdded(data)
Declaration
protected _onItemAdded(data?: {
item: Item;
index: number;
}): Promise<void>;
Parameters
| Type |
Name |
Description |
| {
item: Item;
index: number;
} |
data |
|
Returns
| Type |
Description |
| Promise<void> |
|
_onItemHandlerAdded(data)
Declaration
protected _onItemHandlerAdded(data?: {
item: ItemHandler;
index: number;
}): Promise<void>;
Parameters
| Type |
Name |
Description |
| {
item: ItemHandler;
index: number;
} |
data |
|
Returns
| Type |
Description |
| Promise<void> |
|
_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: LayoutItem, propertyName: string): void;
Parameters
| Type |
Name |
Description |
| LayoutItem |
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: any): Promise<void>;
Parameters
| Type |
Name |
Description |
| any |
canvas |
|
Returns
| Type |
Description |
| Promise<void> |
|
applyLayout(sender)
Declaration
applyLayout(sender?: ItemHandler): Promise<void>;
Parameters
Returns
| Type |
Description |
| Promise<void> |
|
drawItemHandler(itemHandlerCtx)
Declaration
drawItemHandler(itemHandlerCtx: CanvasRenderingContext2D): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
itemHandlerCtx |
|
Returns
generateAndApplyAutolayoutSettings(alignItems, orientation, margin, justifyContent)
Declaration
generateAndApplyAutolayoutSettings(alignItems?: AutoLayoutAlignItems, orientation?: AutoLayoutOrientation, margin?: number, justifyContent?: AutoLayoutJustifyContent): void;
Parameters
Returns
getControlBounds()
Declaration
getControlBounds(): RectangleF;
Returns
getLayoutEvent()
Declaration
getLayoutEvent(): EventObject<boolean>;
Returns
getOrderedItems()
Declaration
Returns
getSelectionRectangle()
Declaration
getSelectionRectangle(): RotatedRectangleF;
Returns
getVisibilityStateChangedEvent()
Declaration
getVisibilityStateChangedEvent(): EventObject<void>;
Returns
isChildVisible(childItemHandler)
Declaration
isChildVisible(childItemHandler: ItemHandler): boolean;
Parameters
Returns
isEmpty()
Declaration
Returns
isVisible()
Declaration
Returns
onResized()
Declaration
Returns
setItemHandlers(itemHandlers)
Declaration
setItemHandlers(itemHandlers: ItemHandler[]): void;
Parameters
Returns
setRectangle(rectangle, suppressOnChanged, updateChildren)
Declaration
setRectangle(rectangle: RotatedRectangleF, suppressOnChanged?: boolean, updateChildren?: boolean): void;
Parameters
| Type |
Name |
Description |
| RotatedRectangleF |
rectangle |
|
| boolean |
suppressOnChanged |
|
| boolean |
updateChildren |
|
Returns
setSourceRectangle(rectangle)
Declaration
setSourceRectangle(rectangle: RotatedRectangleF): void;
Parameters
Returns
Declaration
Returns
waitUpdate()
Declaration
waitUpdate(): Promise<void>;
Returns
| Type |
Description |
| Promise<void> |
|