ConnectorFactoryHandler
Connector Factory Handler
Extends
Constructors
new ConnectorFactoryHandler()
new ConnectorFactoryHandler(
id
,options
?):ConnectorFactoryHandler
Parameters
• id: string
• options?: Partial
<HandlerOptions
>
Returns
Inherited from
Source
Properties
dragPoint
dragPoint:
number
[]
Source
handlers/connector-handler.ts:18
dragStartPoint
dragStartPoint:
number
[]
Source
handlers/connector-handler.ts:17
dragging
dragging:
boolean
=false
Source
handlers/connector-handler.ts:16
headAnchor
headAnchor:
number
[]
Source
handlers/connector-handler.ts:22
headEnd
headEnd:
null
|Shape
=null
Source
handlers/connector-handler.ts:21
id
id:
string
Inherited from
Source
options
options:
HandlerOptions
Inherited from
Source
shape
shape:
null
|Connector
=null
Source
handlers/connector-handler.ts:23
tailAnchor
tailAnchor:
number
[]
Source
handlers/connector-handler.ts:20
tailEnd
tailEnd:
null
|Shape
=null
Source
handlers/connector-handler.ts:19
Methods
activate()
activate(
editor
):void
Activate the handler
Parameters
• editor: Editor
Returns
void
Inherited from
Source
complete()
complete(
editor
):void
Trigger when the handler action is complete
Parameters
• editor: Editor
Returns
void
Inherited from
Source
deactivate()
deactivate(
editor
):void
Deactivate the handler
Parameters
• editor: Editor
Returns
void
Inherited from
Source
drawDragging()
drawDragging(
editor
,e
):void
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Source
handlers/connector-handler.ts:176
drawHeadHovering()
drawHeadHovering(
editor
,e
):void
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Source
handlers/connector-handler.ts:165
drawHovering()
drawHovering(
editor
,e
):void
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Source
handlers/connector-handler.ts:172
drawSelection()
drawSelection(
editor
):void
Draw ghost for the selected shape
Parameters
• editor: Editor
Returns
void
Inherited from
Source
drawTailHovering()
drawTailHovering(
editor
,e
):void
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Source
handlers/connector-handler.ts:158
finalize()
finalize(
editor
,e
):void
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Source
handlers/connector-handler.ts:82
initialize()
initialize(
editor
,e
):void
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Source
handlers/connector-handler.ts:36
keyDown()
keyDown(
editor
,e
):boolean
keyDown
Parameters
• editor: Editor
• e: KeyboardEvent
Returns
boolean
Overrides
Source
handlers/connector-handler.ts:140
keyUp()
keyUp(
editor
,e
):void
keyUp
Parameters
• editor: Editor
• e: KeyboardEvent
Returns
void
Inherited from
Source
onActivate()
onActivate(
editor
):void
Triggered when activated
Parameters
• editor: Editor
Returns
void
Overrides
Source
handlers/connector-handler.ts:150
onDeactivate()
onDeactivate(
editor
):void
Triggered when deactivate
Parameters
• editor: Editor
Returns
void
Overrides
Source
handlers/connector-handler.ts:154
pointerDown()
pointerDown(
editor
,e
):void
pointerDown
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Overrides
Source
handlers/connector-handler.ts:98
pointerMove()
pointerMove(
editor
,e
):void
pointerMove
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Overrides
Source
handlers/connector-handler.ts:114
pointerUp()
pointerUp(
editor
,e
):void
pointerUp
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void
Overrides
Source
handlers/connector-handler.ts:131
reset()
reset():
void
Reset the states of handler
Returns
void
Overrides
Source
handlers/connector-handler.ts:25
update()
update(
editor
,e
):void
Parameters
• editor: Editor
• e: CanvasPointerEvent
Returns
void