Skip to main content

Home > @jsplumbtoolkit/connector-orthogonal > OrthogonalConnector

OrthogonalConnector class#

Signature:

export declare class OrthogonalConnector extends AbstractConnector 

Extends: AbstractConnector

Constructors#

ConstructorModifiersDescription
(constructor)(connection, params)Constructs a new instance of the OrthogonalConnector class

Properties#

PropertyModifiersTypeDescription
alwaysRespectStubsboolean
connectionConnection
cornerRadiusnumber
geometryOrthogonalConnectorGeometry
isLoopbackCurrentlyboolean
lastOrientationnumber
lastxnumber
lastynumber
loopbackRadiusnumber
midpointnumber
orthogonalSegmentsArray<OrthogonalSegment>
trimThresholdnumber
typestring
typestaticstring

Methods#

MethodModifiersDescription
_compute(paintInfo, params)
exportGeometry()This connector exports the source/target points as source and target respectively, as well as an array labelled segments, which is the list of corner points. There are, therefore, n+1 segments in a geometry whose segments array contains n entries.
getDefaultStubs()
importGeometry(geometry)
setAnchorOrientation(idx, orientation)
setSegmentPosition(segment, pos)
trim()
writeSegments(segments, paintInfo)