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:1328

Properties

dragStartPoint

dragStartPoint: number[]

Source

handlers/select-handler.ts:13


dragging

dragging: boolean = false

Source

handlers/select-handler.ts:12


id

id: string

Inherited from

Handler.id

Source

editor.ts:1325


options

options: HandlerOptions

Inherited from

Handler.options

Source

editor.ts:1326

Methods

activate()

activate(editor): void

Activate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.activate

Source

editor.ts:1354


complete()

complete(editor): void

Trigger when the handler action is complete

Parameters

editor: Editor

Returns

void

Inherited from

Handler.complete

Source

editor.ts:1345


deactivate()

deactivate(editor): void

Deactivate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.deactivate

Source

editor.ts:1362


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Overrides

Handler.drawSelection

Source

handlers/select-handler.ts:269


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:23


keyDown()

keyDown(editor, e): void

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Overrides

Handler.keyDown

Source

handlers/select-handler.ts:240


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Overrides

Handler.keyUp

Source

handlers/select-handler.ts:264


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Inherited from

Handler.onActivate

Source

editor.ts:1369


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Inherited from

Handler.onDeactivate

Source

editor.ts:1374


pointerDown()

pointerDown(editor, e): void

handle pointer down event

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerDown

Source

handlers/select-handler.ts:44


pointerMove()

pointerMove(editor, e): void

handle pointer move event

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerMove

Source

handlers/select-handler.ts:108


pointerUp()

pointerUp(editor, e): void

handle pointer up event

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerUp

Source

handlers/select-handler.ts:184


reset()

reset(): void

Reset the states of handler

Returns

void

Overrides

Handler.reset

Source

handlers/select-handler.ts:15