Class SelectionHandler
Constructors
(constructor)(hitTestManager, _canvas, _snapLinesHandler, _interactiveZonesHandler)
Constructs a new instance of the SelectionHandler class
Declaration
constructor(hitTestManager: HitTestManager, _canvas: Canvas, _snapLinesHandler: SnapLinesHandler, _interactiveZonesHandler: IInteractiveZonesHandler);
Parameters
Properties
addSelectedItemHandlersChanged
Declaration
addSelectedItemHandlersChanged: (handler: AnyFunction) => void;
Property Value
allowManipulation
Declaration
get allowManipulation(): boolean;
Property Value
allowMove
Declaration
get allowMove(): boolean;
Property Value
border
Declaration
Property Value
ch
Declaration
static readonly ch: number[];
Property Value
| Type |
Description |
| number[] |
|
currentItemHandler
Declaration
get currentItemHandler(): BaseRectangleItemHandler;
Property Value
cw
Declaration
static readonly cw: number[];
Property Value
| Type |
Description |
| number[] |
|
enabled
Declaration
Property Value
ignoreSimpleMode
Declaration
set ignoreSimpleMode(value: boolean);
Property Value
isDragging
Declaration
get isDragging(): boolean;
Property Value
isIdle
Declaration
Property Value
isResizing
Declaration
get isResizing(): boolean;
Property Value
isRotating
Declaration
get isRotating(): boolean;
Property Value
locked
Declaration
Property Value
manipulationPermissions
Declaration
get manipulationPermissions(): ManipulationPermissions;
Property Value
multipleSelectionEnabled
Declaration
get multipleSelectionEnabled(): boolean;
set multipleSelectionEnabled(value: boolean);
Property Value
parentRectangle
Declaration
get parentRectangle(): RotatedRectangleF;
Property Value
rectangle
Declaration
get rectangle(): RotatedRectangleF;
Property Value
rectangleSigns
Declaration
get rectangleSigns(): RectangleSignsType;
Property Value
region
Declaration
get region(): RectangleF;
Property Value
removeSelectedItemHandlersChanged
Declaration
removeSelectedItemHandlersChanged: (handler: AnyFunction) => void;
Property Value
resizeIndex
Declaration
get resizeIndex(): number;
Property Value
selectedItemHandlers
Declaration
get selectedItemHandlers(): Collection<BaseRectangleItemHandler>;
Property Value
selectionHitTestManager
Declaration
get selectionHitTestManager(): SelectionHitTestManager;
Property Value
visibleRectangle
Declaration
get visibleRectangle(): RotatedRectangleF;
Property Value
Methods
addCurrentItemChanged(listener)
Declaration
addCurrentItemChanged(listener: (item: BaseRectangleItemHandler) => void): void;
Parameters
Returns
addOnSelectionChanged(handler)
Declaration
addOnSelectionChanged(handler: () => any): void;
Parameters
| Type |
Name |
Description |
| () => any |
handler |
|
Returns
addSelectedItemHandler(itemHandler)
Declaration
addSelectedItemHandler(itemHandler: BaseRectangleItemHandler): void;
Parameters
Returns
clearSelectedItemHandlers()
Declaration
clearSelectedItemHandlers(): void;
Returns
disable()
Declaration
Returns
dispose()
Declaration
Returns
enable()
Declaration
Returns
getHighlightRectangles()
Declaration
getHighlightRectangles(): RotatedRectangleF[];
Returns
getSelectionDrawingParams()
Declaration
getSelectionDrawingParams(): ISelectionOptions;
Returns
isItemHandlerSelected(itemHandler)
Declaration
isItemHandlerSelected(itemHandler: BaseRectangleItemHandler): boolean;
Parameters
Returns
isOnlyThisItemHandlerSelected(itemHandler)
Declaration
isOnlyThisItemHandlerSelected(itemHandler: BaseRectangleItemHandler): boolean;
Parameters
Returns
lock(saveSelectedItems)
Declaration
lock(saveSelectedItems?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
saveSelectedItems |
|
Returns
move(args, state)
Declaration
move(args: IMoveParams, state: InputState): void;
Parameters
| Type |
Name |
Description |
| IMoveParams |
args |
|
| InputState |
state |
|
Returns
moveByPoint(args, state, ignoreSnapLines, startPoint)
Declaration
moveByPoint(args: IMoveByPointParams, state: InputState, ignoreSnapLines: boolean, startPoint?: PointF): void;
Parameters
Returns
removeCurrentItemChanged(listener)
Declaration
removeCurrentItemChanged(listener: (item: BaseRectangleItemHandler) => void): void;
Parameters
Returns
removeOnSelectionChanged(handler)
Declaration
removeOnSelectionChanged(handler: () => any): void;
Parameters
| Type |
Name |
Description |
| () => any |
handler |
|
Returns
removeSelectedItemHandler(itemHandler)
Declaration
removeSelectedItemHandler(itemHandler: BaseRectangleItemHandler): void;
Parameters
Returns
resizeByPoint(args, state, startPoint)
Declaration
resizeByPoint(args: IResizeByPointParams, state: InputState, startPoint?: PointF): void;
Parameters
Returns
rotateByPoint(args, state, startPoint)
Declaration
rotateByPoint(args: IRotateByPointParams, state: InputState, startPoint?: PointF): void;
Parameters
Returns
setSelectedItemHandlers(itemHandlers, dontClean)
Declaration
setSelectedItemHandlers(itemHandlers: BaseRectangleItemHandler[], dontClean?: boolean): void;
Parameters
Returns
unlock()
Declaration
Returns
update(force)
Declaration
update(force?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
force |
|
Returns