Skip to content

Handler

Handler

Extended by

Constructors

new Handler()

new Handler(id, options?): Handler

Parameters

id: string

options?: Partial<HandlerOptions>

Returns

Handler

Source

editor.ts:1358

Properties

id

id: string

Source

editor.ts:1355


options

options: HandlerOptions

Source

editor.ts:1356

Methods

activate()

activate(editor): void

Activate the handler

Parameters

editor: Editor

Returns

void

Source

editor.ts:1384


complete()

complete(editor): void

Trigger when the handler action is complete

Parameters

editor: Editor

Returns

void

Source

editor.ts:1375


deactivate()

deactivate(editor): void

Deactivate the handler

Parameters

editor: Editor

Returns

void

Source

editor.ts:1392


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Source

editor.ts:1437


keyDown()

keyDown(editor, e): void

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Source

editor.ts:1427


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Source

editor.ts:1432


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Source

editor.ts:1399


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Source

editor.ts:1404


pointerDown()

pointerDown(editor, e): void

pointerDown

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Abstract

Source

editor.ts:1410


pointerMove()

pointerMove(editor, e): void

pointerMove

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Abstract

Source

editor.ts:1422


pointerUp()

pointerUp(editor, e): void

pointerUp

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Abstract

Source

editor.ts:1416


reset()

reset(): void

Reset the states of handler

Returns

void

Source

editor.ts:1370