Skip to main content

Home > @jsplumbtoolkit/connector-editors-orthogonal > OrthogonalEditor

OrthogonalEditor class

Signature:

export declare class OrthogonalEditor extends EditorBase<OrthogonalConnector> 

Extends: EditorBase<OrthogonalConnector>

Constructors

ConstructorModifiersDescription
(constructor)(surface, params)Constructs a new instance of the OrthogonalEditor class

Properties

PropertyModifiersTypeDescription
geometryInternalOrthogonalConnectorGeometry
segmentHandlesArray<{ geometry: OrthogonalSegment; el: HTMLElement; }>
segmentsArray<OrthogonalSegment>
typestaticstring

Methods

MethodModifiersDescription
_clearHandles(excludeHandle)clear all handles, except, optionally, the one provided.
_elementDragged(p)
_elementDragging(p)
_setHandlePosition(segmentInfo, mid)
_update(args)updates the current origin of the connector's SVG element (the location of its to left corner wrt the origin of the jsplumb instance's container). Then updates the offset of the source and target points from the origin of the SVG element. Finally, extracts the control point information from the connection, either as geometry (if previously edited or set) or from the computed control points.