SelectHandler
Select Handler
Extends
Constructors
new SelectHandler()
new SelectHandler(
id
,options
?):SelectHandler
Parameters
• id: string
• options?: Partial
<HandlerOptions
>
Returns
Inherited from
Source
Properties
dragPoint
dragPoint:
number
[]
Inherited from
Source
dragStartPoint
dragStartPoint:
number
[]
Inherited from
Source
dragging
dragging:
boolean
Inherited from
Source
id
id:
string
Inherited from
Source
options
options:
HandlerOptions
Inherited from
Source
Methods
activate()
activate(
editor
):void
Activate the handler
Parameters
• editor: Editor
Returns
void
Inherited from
Source
complete()
complete(
editor
):void
Trigger when the handler action is complete
Parameters
• editor: Editor
Returns
void
Inherited from
Source
deactivate()
deactivate(
editor
):void
Deactivate the handler
Parameters
• editor: Editor
Returns
void
Inherited from
Source
drawDragging()
drawDragging(
editor
,e
):void
Draw dragging
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Inherited from
Source
drawHovering()
drawHovering(
editor
,e
):void
Draw hovering
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Inherited from
Source
drawSelection()
drawSelection(
editor
):void
Draw ghost for the selected shape
Parameters
• editor: Editor
Returns
void
Overrides
Source
handlers/select-handler.ts:379
finalize()
finalize(
editor
,e
):void
Finalize handler
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Inherited from
Source
getShapeAt()
getShapeAt(
editor
,e
):null
|Shape
Returns a shape (with manipulator area) located at the position e.
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
null
| Shape
Source
initialize()
initialize(
editor
,e
):void
Initialize handler
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Inherited from
Source
keyDown()
keyDown(
editor
,e
):boolean
keyDown
Parameters
• editor: Editor
• e: KeyboardEvent
Returns
boolean
Overrides
Source
handlers/select-handler.ts:337
keyUp()
keyUp(
editor
,e
):void
keyUp
Parameters
• editor: Editor
• e: KeyboardEvent
Returns
void
Overrides
Source
handlers/select-handler.ts:374
onActionPerformed()
onActionPerformed(
editor
):void
Triggered when action is performed (unclude undo and redo)
Parameters
• editor: Editor
Returns
void
Inherited from
Source
onActivate()
onActivate(
editor
):void
Triggered when activated
Parameters
• editor: Editor
Returns
void
Inherited from
Source
onDeactivate()
onDeactivate(
editor
):void
Triggered when deactivate
Parameters
• editor: Editor
Returns
void
Inherited from
Source
pointerDown()
pointerDown(
editor
,e
):void
handle pointer down event
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Overrides
Source
pointerMove()
pointerMove(
editor
,e
):void
handle pointer move event
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Overrides
Source
handlers/select-handler.ts:158
pointerUp()
pointerUp(
editor
,e
):void
handle pointer up event
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Overrides
Source
handlers/select-handler.ts:245
reset()
reset():
void
Reset the states of handler
Returns
void
Inherited from
Source
update()
update(
editor
,e
):void
Update handler
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Inherited from
Source
updateHovering()
updateHovering(
editor
,e
):void
Update handler when hovering (not dragging)
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void