Skip to content

TextFactoryHandler

Text Factory Handler

Extends

Constructors

new TextFactoryHandler()

new TextFactoryHandler(id, options?): TextFactoryHandler

Parameters

id: string

options?: Partial<HandlerOptions>

Returns

TextFactoryHandler

Inherited from

Handler.constructor

Source

editor.ts:1358

Properties

id

id: string

Inherited from

Handler.id

Source

editor.ts:1355


options

options: HandlerOptions

Inherited from

Handler.options

Source

editor.ts:1356


shape

shape: null | Text = null

Source

handlers/text-handler.ts:11

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

Inherited from

Handler.drawSelection

Source

editor.ts:1437


keyDown()

keyDown(editor, e): void

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Inherited from

Handler.keyDown

Source

editor.ts:1427


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Inherited from

Handler.keyUp

Source

editor.ts:1432


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Overrides

Handler.onActivate

Source

handlers/text-handler.ts:33


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Overrides

Handler.onDeactivate

Source

handlers/text-handler.ts:37


pointerDown()

pointerDown(editor, e): void

pointerDown

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerDown

Source

handlers/text-handler.ts:21


pointerMove()

pointerMove(editor, e): void

pointerMove

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.pointerMove

Abstract

Source

editor.ts:1422


pointerUp()

pointerUp(editor, e): void

pointerUp

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.pointerUp

Abstract

Source

editor.ts:1416


reset()

reset(): void

Reset the states of handler

Returns

void

Overrides

Handler.reset

Source

handlers/text-handler.ts:13