Skip to content

ImageFactoryHandler

Image Factory Handler

Extends

Constructors

new ImageFactoryHandler()

new ImageFactoryHandler(id, options?): ImageFactoryHandler

Parameters

id: string

options?: Partial<HandlerOptions>

Returns

ImageFactoryHandler

Inherited from

Handler.constructor

Source

editor.ts:1328

Properties

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

Inherited from

Handler.drawSelection

Source

editor.ts:1407


keyDown()

keyDown(editor, e): void

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Inherited from

Handler.keyDown

Source

editor.ts:1397


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Inherited from

Handler.keyUp

Source

editor.ts:1402


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Overrides

Handler.onActivate

Source

handlers/image-handler.ts:9


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

pointerDown

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.pointerDown

Abstract

Source

editor.ts:1380


pointerMove()

pointerMove(editor, e): void

pointerMove

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.pointerMove

Abstract

Source

editor.ts:1392


pointerUp()

pointerUp(editor, e): void

pointerUp

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.pointerUp

Abstract

Source

editor.ts:1386


reset()

reset(): void

Reset the states of handler

Returns

void

Inherited from

Handler.reset

Source

editor.ts:1340