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:1358

Properties

dragPoint

dragPoint: number[]

Source

handlers/connector-handler.ts:17


dragStartPoint

dragStartPoint: number[]

Source

handlers/connector-handler.ts:16


dragging

dragging: boolean = false

Source

handlers/connector-handler.ts:15


headAnchor

headAnchor: number[]

Source

handlers/connector-handler.ts:21


headEnd

headEnd: null | Shape = null

Source

handlers/connector-handler.ts:20


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 | Connector = null

Source

handlers/connector-handler.ts:22


tailAnchor

tailAnchor: number[]

Source

handlers/connector-handler.ts:19


tailEnd

tailEnd: null | Shape = null

Source

handlers/connector-handler.ts:18

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


drawDragging()

drawDragging(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:175


drawHeadHovering()

drawHeadHovering(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:164


drawHovering()

drawHovering(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:171


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Inherited from

Handler.drawSelection

Source

editor.ts:1437


drawTailHovering()

drawTailHovering(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:157


finalize()

finalize(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:81


initialize()

initialize(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:35


keyDown()

keyDown(editor, e): boolean

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

boolean

Overrides

Handler.keyDown

Source

handlers/connector-handler.ts:139


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/connector-handler.ts:149


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Overrides

Handler.onDeactivate

Source

handlers/connector-handler.ts:153


pointerDown()

pointerDown(editor, e): void

pointerDown

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerDown

Source

handlers/connector-handler.ts:97


pointerMove()

pointerMove(editor, e): void

pointerMove

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerMove

Source

handlers/connector-handler.ts:113


pointerUp()

pointerUp(editor, e): void

pointerUp

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerUp

Source

handlers/connector-handler.ts:130


reset()

reset(): void

Reset the states of handler

Returns

void

Overrides

Handler.reset

Source

handlers/connector-handler.ts:24


update()

update(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/connector-handler.ts:60