Back to Website
Show / Hide Table of Contents

Class LayoutItemHandler

Inheritance
ItemHandler
BaseRectangleItemHandler
GroupItemHandler
LayoutItemHandler
Package: @aurigma/design-atoms

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
Type Name Description
LayoutItem item
ItemHandler[] itemHandlers
History_2 _history
typeof TextWhizz textWhizz

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

_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
Type Description
{ [name: string]: RotatedRectangleF; }

_transformedRectangle

Declaration
_transformedRectangle: RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

item

Declaration
get item(): LayoutItem;
Property Value
Type Description
LayoutItem

typeName

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

Methods

_endTransform(changed, resized, suppressOnChanged)

Declaration
_endTransform(changed: any, resized: any, suppressOnChanged: any): void;
Parameters
Type Name Description
any changed
any resized
any suppressOnChanged
Returns
Type Description
void

_getChildrenHighlights()

Declaration
protected _getChildrenHighlights(): RotatedRectangleF[];
Returns
Type Description
RotatedRectangleF[]

_getHighlightRectangle()

Declaration
protected _getHighlightRectangle(): RotatedRectangleF;
Returns
Type Description
RotatedRectangleF

_getRectangle()

Declaration
protected _getRectangle(): RotatedRectangleF;
Returns
Type Description
RotatedRectangleF

_isGroupHandler()

Declaration
protected _isGroupHandler(): boolean;
Returns
Type Description
boolean

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

_onItemPropertyChanged(sender, propertyName)

Declaration
protected _onItemPropertyChanged(sender: LayoutItem, propertyName: string): void;
Parameters
Type Name Description
LayoutItem sender
string propertyName
Returns
Type Description
void

_onItemRemoved(data)

Declaration
protected _onItemRemoved(data?: {
        item: Item;
        index: number;
    }): void;
Parameters
Type Name Description
{ item: Item; index: number; } data
Returns
Type Description
void

_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
Type Name Description
ItemHandler sender
Returns
Type Description
Promise<void>

drawItemHandler(itemHandlerCtx)

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

generateAndApplyAutolayoutSettings(alignItems, orientation, margin, justifyContent)

Declaration
generateAndApplyAutolayoutSettings(alignItems?: AutoLayoutAlignItems, orientation?: AutoLayoutOrientation, margin?: number, justifyContent?: AutoLayoutJustifyContent): void;
Parameters
Type Name Description
AutoLayoutAlignItems alignItems
AutoLayoutOrientation orientation
number margin
AutoLayoutJustifyContent justifyContent
Returns
Type Description
void

getControlBounds()

Declaration
getControlBounds(): RectangleF;
Returns
Type Description
RectangleF

getLayoutEvent()

Declaration
getLayoutEvent(): EventObject<boolean>;
Returns
Type Description
EventObject<boolean>

getOrderedItems()

Declaration
getOrderedItems(): any;
Returns
Type Description
any

getSelectionRectangle()

Declaration
getSelectionRectangle(): RotatedRectangleF;
Returns
Type Description
RotatedRectangleF

getVisibilityStateChangedEvent()

Declaration
getVisibilityStateChangedEvent(): EventObject<void>;
Returns
Type Description
EventObject<void>

isChildVisible(childItemHandler)

Declaration
isChildVisible(childItemHandler: ItemHandler): boolean;
Parameters
Type Name Description
ItemHandler childItemHandler
Returns
Type Description
boolean

isEmpty()

Declaration
isEmpty(): boolean;
Returns
Type Description
boolean

isVisible()

Declaration
isVisible(): boolean;
Returns
Type Description
boolean

onResized()

Declaration
onResized(): boolean;
Returns
Type Description
boolean

setItemHandlers(itemHandlers)

Declaration
setItemHandlers(itemHandlers: ItemHandler[]): void;
Parameters
Type Name Description
ItemHandler[] itemHandlers
Returns
Type Description
void

setRectangle(rectangle, suppressOnChanged, updateChildren)

Declaration
setRectangle(rectangle: RotatedRectangleF, suppressOnChanged?: boolean, updateChildren?: boolean): void;
Parameters
Type Name Description
RotatedRectangleF rectangle
boolean suppressOnChanged
boolean updateChildren
Returns
Type Description
void

setSourceRectangle(rectangle)

Declaration
setSourceRectangle(rectangle: RotatedRectangleF): void;
Parameters
Type Name Description
RotatedRectangleF rectangle
Returns
Type Description
void

startTransform()

Declaration
startTransform(): void;
Returns
Type Description
void

waitUpdate()

Declaration
waitUpdate(): 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