Skip to content

EllipseFactoryHandler

Ellipse Factory Handler

Extends

Constructors

new EllipseFactoryHandler()

new EllipseFactoryHandler(id, options?): EllipseFactoryHandler

Parameters

id: string

options?: Partial<HandlerOptions>

Returns

EllipseFactoryHandler

Inherited from

Handler.constructor

Source

editor.ts:1328

Properties

dragPoint

dragPoint: number[]

Source

handlers/ellipse-handler.ts:14


dragStartPoint

dragStartPoint: number[]

Source

handlers/ellipse-handler.ts:13


dragging

dragging: boolean = false

Source

handlers/ellipse-handler.ts:12


id

id: string

Inherited from

Handler.id

Source

editor.ts:1325


options

options: HandlerOptions

Inherited from

Handler.options

Source

editor.ts:1326


shape

shape: null | Ellipse = null

Source

handlers/ellipse-handler.ts:15

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


drawDragging()

drawDragging(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/ellipse-handler.ts:134


drawHovering()

drawHovering(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/ellipse-handler.ts:132


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Inherited from

Handler.drawSelection

Source

editor.ts:1407


finalize()

finalize(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/ellipse-handler.ts:55


initialize()

initialize(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/ellipse-handler.ts:24


keyDown()

keyDown(editor, e): boolean

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

boolean

Overrides

Handler.keyDown

Source

handlers/ellipse-handler.ts:114


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/ellipse-handler.ts:124


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Overrides

Handler.onDeactivate

Source

handlers/ellipse-handler.ts:128


pointerDown()

pointerDown(editor, e): void

pointerDown

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerDown

Source

handlers/ellipse-handler.ts:71


pointerMove()

pointerMove(editor, e): void

pointerMove

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerMove

Source

handlers/ellipse-handler.ts:87


pointerUp()

pointerUp(editor, e): void

pointerUp

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerUp

Source

handlers/ellipse-handler.ts:105


reset()

reset(): void

Reset the states of handler

Returns

void

Overrides

Handler.reset

Source

handlers/ellipse-handler.ts:17


update()

update(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/ellipse-handler.ts:38