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

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


options

options: HandlerOptions

Inherited from

Handler.options

Source

editor.ts:1356

Methods

activate()

activate(editor): void

Activate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.activate

Source

editor.ts:1384


complete()

complete(editor): void

Trigger when the handler action is complete

Parameters

editor: Editor

Returns

void

Inherited from

Handler.complete

Source

editor.ts:1375


deactivate()

deactivate(editor): void

Deactivate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.deactivate

Source

editor.ts:1392


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Overrides

Handler.drawSelection

Source

handlers/select-handler.ts:274


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


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Overrides

Handler.keyUp

Source

handlers/select-handler.ts:269


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Inherited from

Handler.onActivate

Source

editor.ts:1399


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Inherited from

Handler.onDeactivate

Source

editor.ts:1404


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


pointerUp()

pointerUp(editor, e): void

handle pointer up event

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerUp

Source

handlers/select-handler.ts:186


reset()

reset(): void

Reset the states of handler

Returns

void

Overrides

Handler.reset

Source

handlers/select-handler.ts:15