Skip to content

ConnectorFactoryHandler

Connector Factory Handler

Extends

Constructors

new ConnectorFactoryHandler()

new ConnectorFactoryHandler(id, options?): ConnectorFactoryHandler

Parameters

id: string

options?: Partial<HandlerOptions>

Returns

ConnectorFactoryHandler

Inherited from

Handler.constructor

Source

editor.ts:1440

Properties

dragPoint

dragPoint: number[]

Inherited from

Handler.dragPoint

Source

editor.ts:1438


dragStartPoint

dragStartPoint: number[]

Inherited from

Handler.dragStartPoint

Source

editor.ts:1437


dragging

dragging: boolean

Inherited from

Handler.dragging

Source

editor.ts:1436


headAnchor

headAnchor: number[]

Source

handlers/connector-handler.ts:20


headEnd

headEnd: null | Shape = null

Source

handlers/connector-handler.ts:19


id

id: string

Inherited from

Handler.id

Source

editor.ts:1434


options

options: HandlerOptions

Inherited from

Handler.options

Source

editor.ts:1435


shape

shape: null | Connector = null

Source

handlers/connector-handler.ts:21


snapper

snapper: HandlerSnapper

Source

handlers/connector-handler.ts:22


tailAnchor

tailAnchor: number[]

Source

handlers/connector-handler.ts:18


tailEnd

tailEnd: null | Shape = null

Source

handlers/connector-handler.ts:17

Methods

activate()

activate(editor): void

Activate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.activate

Source

editor.ts:1473


complete()

complete(editor): void

Trigger when the handler action is complete

Parameters

editor: Editor

Returns

void

Inherited from

Handler.complete

Source

editor.ts:1464


deactivate()

deactivate(editor): void

Deactivate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.deactivate

Source

editor.ts:1481


drawDragging()

drawDragging(editor, e): void

Draw dragging

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.drawDragging

Source

handlers/connector-handler.ts:154


drawHeadHovering()

drawHeadHovering(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:142


drawHovering()

drawHovering(editor, e): void

Draw hovering

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.drawHovering

Source

handlers/connector-handler.ts:149


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Inherited from

Handler.drawSelection

Source

editor.ts:1587


drawTailHovering()

drawTailHovering(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:135


finalize()

finalize(editor, e): void

Finalize handler

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.finalize

Source

handlers/connector-handler.ts:110


initialize()

initialize(editor, e): void

Initialize handler

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.initialize

Source

handlers/connector-handler.ts:33


keyDown()

keyDown(editor, e): boolean

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

boolean

Inherited from

Handler.keyDown

Source

editor.ts:1569


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Inherited from

Handler.keyUp

Source

editor.ts:1582


onActionPerformed()

onActionPerformed(editor): void

Triggered when action is performed (unclude undo and redo)

Parameters

editor: Editor

Returns

void

Overrides

Handler.onActionPerformed

Source

handlers/connector-handler.ts:131


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Overrides

Handler.onActivate

Source

handlers/connector-handler.ts:122


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Overrides

Handler.onDeactivate

Source

handlers/connector-handler.ts:127


pointerDown()

pointerDown(editor, e): void

pointerDown

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.pointerDown

Source

editor.ts:1523


pointerMove()

pointerMove(editor, e): void

pointerMove

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.pointerMove

Abstract

Source

editor.ts:1552


pointerUp()

pointerUp(editor, e): void

pointerUp

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Inherited from

Handler.pointerUp

Abstract

Source

editor.ts:1539


reset()

reset(): void

Reset the states of handler

Returns

void

Overrides

Handler.reset

Source

handlers/connector-handler.ts:24


update()

update(editor, e): void

Update handler

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.update

Source

handlers/connector-handler.ts:69


updateHovering()

updateHovering(editor, e): void

Update handler when hovering (not dragging)

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.updateHovering

Source

handlers/connector-handler.ts:104