Creates a new instance of the connector editor.
connector editor properties.
Protected
_containerSVG group container encapsulating all the connector's elements.
Protected
_isIs connector selected?
Protected
_languageLanguage (localization) subsystem instance.
Protected
_stateCurrent state of the connector editor.
Protected
Optional
activeActive manipulation grip.
Connector being edited by this connector editor.
Protected
controlContainer for control elements.
Protected
grip1First manipulation grip
Protected
grip2Second manipulation grip.
Protected
manipulationInitial X coordinate where pointer manipulation has started.
Protected
manipulationInitial Y coordinate where pointer manipulation has started.
Optional
movingReference to the port being moved.
Protected
overlayHTML overlay container for editor elements like text editor, etc.
Protected
prevXPointer's X coordinate after the previous pointer event.
Protected
prevYPointer's Y coordinate after the previous pointer event.
Returns the SVG group container for the connector's elements.
Returns true if the connector is currently selected.
Returns diagram editor property panels for the connector.
Protected
settingsReturns editor settings.
Returns current state of the connector editor.
Protected
addProtected
createCreates a control grip (for resizing).
created grip.
Handles double-click event on the connector - opens the text editor for the label.
pointer location.
Optional
target: EventTargetimmediate event target.
Protected
hideHandles pointer manipulation depending on the editor's state (movement, resizing, etc.)
pointer location.
Handles pointerdown
event on the connector editor.
pointer location.
Optional
target: EventTargetimmediate pointer event target.
Handles the pointerup
event.
pointer location.
Protected
positionProtected
positionProtected
resizeResizes the connector.
pointer location.
Restores the connector's state and adjusts the editor accordingly.
connector's state.
connector's end points.
Protected
setupProtected
showOptional
onFired when the connector creation is completed.
Optional
onFired when the connector is changed (moved, edited, etc.).
Generated using TypeDoc
ConnectorBaseEditor covers basic connector creating and editing features. It is used to edit most of the common connector types that don't require some special editor treatment.