LinkRoutingStraightOptions
Options for linkRoutingStraight.
Remarks​
The inherited mode and straightWhenDisconnected options have no
effect on straight routing; they apply only to linkRoutingOrthogonal
and linkRoutingSmooth.
Extends​
BaseLinkOptions
Properties​
cornerRadius?​
readonly optional cornerRadius?: number;
Corner radius at vertices, in px.
Default​
0
cornerType?​
readonly optional cornerType?: "line" | "point" | "cubic" | "gap";
Corner style applied at manual vertices.
Default​
'point'
markerSelector?​
readonly optional markerSelector?: string;
The attrs selector that holds the marker definitions.
Default​
'line'
mode?​
readonly optional mode?: LinkMode;
Which side of an element or port each link end attaches to; see LinkMode for how each value behaves.
Default​
'auto'
perpendicular?​
readonly optional perpendicular?: boolean;
Anchor links perpendicular to the element edge instead of at its center.
Default​
false
sourceOffset?​
readonly optional sourceOffset?: number;
Offset (in px) applied to the connection point at the source end.
Default​
0
straightWhenDisconnected?​
readonly optional straightWhenDisconnected?: boolean;
Fall back to a straight line while either end is still unconnected (e.g. mid-drag).
Default​
true
targetOffset?​
readonly optional targetOffset?: number;
Offset (in px) applied to the connection point at the target end.
Default​
0