Skip to content

SelectHandler

Select Handler

Extends

Constructors

new SelectHandler()

new SelectHandler(id, options?): SelectHandler

Parameters

id: string

options?: Partial<HandlerOptions>

Returns

SelectHandler

Inherited from

Handler.constructor

Source

editor.ts:1440

Properties

dragPoint

dragPoint: number[]

Inherited from

Handler.dragPoint

Source

editor.ts:1438


dragStartPoint

dragStartPoint: number[]

Inherited from

Handler.dragStartPoint

Source

editor.ts:1437


dragging

dragging: boolean

Inherited from

Handler.dragging

Source

editor.ts:1436


id

id: string

Inherited from

Handler.id

Source

editor.ts:1434


options

options: HandlerOptions

Inherited from

Handler.options

Source

editor.ts:1435

Methods

activate()

activate(editor): void

Activate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.activate

Source

editor.ts:1473


complete()

complete(editor): void

Trigger when the handler action is complete

Parameters

editor: Editor

Returns

void

Inherited from

Handler.complete

Source

editor.ts:1464


deactivate()

deactivate(editor): void

Deactivate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.deactivate

Source

editor.ts:1481


drawDragging()

drawDragging(editor, e): void

Draw dragging

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.drawDragging

Source

editor.ts:1597


drawHovering()

drawHovering(editor, e): void

Draw hovering

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.drawHovering

Source

editor.ts:1592


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Overrides

Handler.drawSelection

Source

handlers/select-handler.ts:327


finalize()

finalize(editor, e): void

Finalize handler

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.finalize

Source

editor.ts:1518


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

handlers/select-handler.ts:16


initialize()

initialize(editor, e): void

Initialize handler

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.initialize

Source

editor.ts:1503


keyDown()

keyDown(editor, e): boolean

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

boolean

Overrides

Handler.keyDown

Source

handlers/select-handler.ts:297


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Overrides

Handler.keyUp

Source

handlers/select-handler.ts:322


onActionPerformed()

onActionPerformed(editor): void

Triggered when action is performed (unclude undo and redo)

Parameters

editor: Editor

Returns

void

Inherited from

Handler.onActionPerformed

Source

editor.ts:1498


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Inherited from

Handler.onActivate

Source

editor.ts:1488


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Inherited from

Handler.onDeactivate

Source

editor.ts:1493


pointerDown()

pointerDown(editor, e): void

handle pointer down event

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerDown

Source

handlers/select-handler.ts:37


pointerMove()

pointerMove(editor, e): void

handle pointer move event

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerMove

Source

handlers/select-handler.ts:142


pointerUp()

pointerUp(editor, e): void

handle pointer up event

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerUp

Source

handlers/select-handler.ts:219


reset()

reset(): void

Reset the states of handler

Returns

void

Inherited from

Handler.reset

Source

editor.ts:1455


update()

update(editor, e): void

Update handler

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.update

Source

editor.ts:1508


updateHovering()

updateHovering(editor, e): void

Update handler when hovering (not dragging)

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.updateHovering

Source

editor.ts:1513