Back to Website
Show / Hide Table of Contents

Class SelectionHandler

Package: @aurigma/design-atoms

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
Type Name Description
HitTestManager hitTestManager
Canvas _canvas
SnapLinesHandler _snapLinesHandler
IInteractiveZonesHandler _interactiveZonesHandler

Properties

addSelectedItemHandlersChanged

Declaration
addSelectedItemHandlersChanged: (handler: AnyFunction) => void;
Property Value
Type Description
(handler: AnyFunction) => void

allowManipulation

Declaration
get allowManipulation(): boolean;
Property Value
Type Description
boolean

allowMove

Declaration
get allowMove(): boolean;
Property Value
Type Description
boolean

border

Declaration
get border(): ILtrb;
Property Value
Type Description
ILtrb

ch

Declaration
static readonly ch: number[];
Property Value
Type Description
number[]

currentItemHandler

Declaration
get currentItemHandler(): BaseRectangleItemHandler;
Property Value
Type Description
BaseRectangleItemHandler

cw

Declaration
static readonly cw: number[];
Property Value
Type Description
number[]

enabled

Declaration
get enabled(): boolean;
Property Value
Type Description
boolean

ignoreSimpleMode

Declaration
set ignoreSimpleMode(value: boolean);
Property Value
Type Description
boolean

isDragging

Declaration
get isDragging(): boolean;
Property Value
Type Description
boolean

isIdle

Declaration
get isIdle(): boolean;
Property Value
Type Description
boolean

isResizing

Declaration
get isResizing(): boolean;
Property Value
Type Description
boolean

isRotating

Declaration
get isRotating(): boolean;
Property Value
Type Description
boolean

locked

Declaration
get locked(): boolean;
Property Value
Type Description
boolean

manipulationPermissions

Declaration
get manipulationPermissions(): ManipulationPermissions;
Property Value
Type Description
ManipulationPermissions

multipleSelectionEnabled

Declaration
get multipleSelectionEnabled(): boolean;

set multipleSelectionEnabled(value: boolean);
Property Value
Type Description
boolean

parentRectangle

Declaration
get parentRectangle(): RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

rectangle

Declaration
get rectangle(): RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

rectangleSigns

Declaration
get rectangleSigns(): RectangleSignsType;
Property Value
Type Description
RectangleSignsType

region

Declaration
get region(): RectangleF;
Property Value
Type Description
RectangleF

removeSelectedItemHandlersChanged

Declaration
removeSelectedItemHandlersChanged: (handler: AnyFunction) => void;
Property Value
Type Description
(handler: AnyFunction) => void

resizeIndex

Declaration
get resizeIndex(): number;
Property Value
Type Description
number

selectedItemHandlers

Declaration
get selectedItemHandlers(): Collection<BaseRectangleItemHandler>;
Property Value
Type Description
Collection<BaseRectangleItemHandler>

selectionHitTestManager

Declaration
get selectionHitTestManager(): SelectionHitTestManager;
Property Value
Type Description
SelectionHitTestManager

visibleRectangle

Declaration
get visibleRectangle(): RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

Methods

addCurrentItemChanged(listener)

Declaration
addCurrentItemChanged(listener: (item: BaseRectangleItemHandler) => void): void;
Parameters
Type Name Description
(item: BaseRectangleItemHandler) => void listener
Returns
Type Description
void

addOnSelectionChanged(handler)

Declaration
addOnSelectionChanged(handler: () => any): void;
Parameters
Type Name Description
() => any handler
Returns
Type Description
void

addSelectedItemHandler(itemHandler)

Declaration
addSelectedItemHandler(itemHandler: BaseRectangleItemHandler): void;
Parameters
Type Name Description
BaseRectangleItemHandler itemHandler
Returns
Type Description
void

clearSelectedItemHandlers()

Declaration
clearSelectedItemHandlers(): void;
Returns
Type Description
void

disable()

Declaration
disable(): void;
Returns
Type Description
void

dispose()

Declaration
dispose(): void;
Returns
Type Description
void

enable()

Declaration
enable(): void;
Returns
Type Description
void

getHighlightRectangles()

Declaration
getHighlightRectangles(): RotatedRectangleF[];
Returns
Type Description
RotatedRectangleF[]

getSelectionDrawingParams()

Declaration
getSelectionDrawingParams(): ISelectionOptions;
Returns
Type Description
ISelectionOptions

isItemHandlerSelected(itemHandler)

Declaration
isItemHandlerSelected(itemHandler: BaseRectangleItemHandler): boolean;
Parameters
Type Name Description
BaseRectangleItemHandler itemHandler
Returns
Type Description
boolean

isOnlyThisItemHandlerSelected(itemHandler)

Declaration
isOnlyThisItemHandlerSelected(itemHandler: BaseRectangleItemHandler): boolean;
Parameters
Type Name Description
BaseRectangleItemHandler itemHandler
Returns
Type Description
boolean

lock(saveSelectedItems)

Declaration
lock(saveSelectedItems?: boolean): void;
Parameters
Type Name Description
boolean saveSelectedItems
Returns
Type Description
void

move(args, state)

Declaration
move(args: IMoveParams, state: InputState): void;
Parameters
Type Name Description
IMoveParams args
InputState state
Returns
Type Description
void

moveByPoint(args, state, ignoreSnapLines, startPoint)

Declaration
moveByPoint(args: IMoveByPointParams, state: InputState, ignoreSnapLines: boolean, startPoint?: PointF): void;
Parameters
Type Name Description
IMoveByPointParams args
InputState state
boolean ignoreSnapLines
PointF startPoint
Returns
Type Description
void

removeCurrentItemChanged(listener)

Declaration
removeCurrentItemChanged(listener: (item: BaseRectangleItemHandler) => void): void;
Parameters
Type Name Description
(item: BaseRectangleItemHandler) => void listener
Returns
Type Description
void

removeOnSelectionChanged(handler)

Declaration
removeOnSelectionChanged(handler: () => any): void;
Parameters
Type Name Description
() => any handler
Returns
Type Description
void

removeSelectedItemHandler(itemHandler)

Declaration
removeSelectedItemHandler(itemHandler: BaseRectangleItemHandler): void;
Parameters
Type Name Description
BaseRectangleItemHandler itemHandler
Returns
Type Description
void

resizeByPoint(args, state, startPoint)

Declaration
resizeByPoint(args: IResizeByPointParams, state: InputState, startPoint?: PointF): void;
Parameters
Type Name Description
IResizeByPointParams args
InputState state
PointF startPoint
Returns
Type Description
void

rotateByPoint(args, state, startPoint)

Declaration
rotateByPoint(args: IRotateByPointParams, state: InputState, startPoint?: PointF): void;
Parameters
Type Name Description
IRotateByPointParams args
InputState state
PointF startPoint
Returns
Type Description
void

setSelectedItemHandlers(itemHandlers, dontClean)

Declaration
setSelectedItemHandlers(itemHandlers: BaseRectangleItemHandler[], dontClean?: boolean): void;
Parameters
Type Name Description
BaseRectangleItemHandler[] itemHandlers
boolean dontClean
Returns
Type Description
void

unlock()

Declaration
unlock(): void;
Returns
Type Description
void

update(force)

Declaration
update(force?: boolean): void;
Parameters
Type Name Description
boolean force
Returns
Type Description
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