Skip to content

MirrorFactoryHandler

Mirror Factory Handler

Extends

Constructors

new MirrorFactoryHandler()

new MirrorFactoryHandler(id, options?): MirrorFactoryHandler

Parameters

id: string

options?: Partial<HandlerOptions>

Returns

MirrorFactoryHandler

Inherited from

Handler.constructor

Source

editor.ts:1382

Properties

dragPoint

dragPoint: number[]

Source

handlers/mirror-handler.ts:15


dragStartPoint

dragStartPoint: number[]

Source

handlers/mirror-handler.ts:14


dragging

dragging: boolean = false

Source

handlers/mirror-handler.ts:13


id

id: string

Inherited from

Handler.id

Source

editor.ts:1379


options

options: HandlerOptions

Inherited from

Handler.options

Source

editor.ts:1380


shape

shape: null | Mirror = null

Source

handlers/mirror-handler.ts:16

Methods

activate()

activate(editor): void

Activate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.activate

Source

editor.ts:1408


complete()

complete(editor): void

Trigger when the handler action is complete

Parameters

editor: Editor

Returns

void

Inherited from

Handler.complete

Source

editor.ts:1399


deactivate()

deactivate(editor): void

Deactivate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.deactivate

Source

editor.ts:1416


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Inherited from

Handler.drawSelection

Source

editor.ts:1461


finalize()

finalize(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/mirror-handler.ts:56


initialize()

initialize(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/mirror-handler.ts:25


keyDown()

keyDown(editor, e): boolean

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

boolean

Overrides

Handler.keyDown

Source

handlers/mirror-handler.ts:114


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Inherited from

Handler.keyUp

Source

editor.ts:1456


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Overrides

Handler.onActivate

Source

handlers/mirror-handler.ts:124


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Overrides

Handler.onDeactivate

Source

handlers/mirror-handler.ts:128


pointerDown()

pointerDown(editor, e): void

pointerDown

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerDown

Source

handlers/mirror-handler.ts:74


pointerMove()

pointerMove(editor, e): void

pointerMove

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerMove

Source

handlers/mirror-handler.ts:89


pointerUp()

pointerUp(editor, e): void

pointerUp

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerUp

Source

handlers/mirror-handler.ts:105


reset()

reset(): void

Reset the states of handler

Returns

void

Overrides

Handler.reset

Source

handlers/mirror-handler.ts:18


update()

update(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/mirror-handler.ts:39