overrides for corner style, anchor, and connection-point offsets
Options for linkRoutingStraight.
Optional ReadonlycornerRadius?: numberCorner radius at vertices, in px.
Optional ReadonlycornerType?: "line" | "point" | "cubic" | "gap"Corner style applied at manual vertices.
Optional ReadonlymarkerSelector?: stringThe attrs selector that holds the marker definitions.
Optional Readonlymode?: LinkModeWhich side of an element or port each link end attaches to; see LinkMode for how each value behaves.
Optional Readonlyperpendicular?: booleanAnchor links perpendicular to the element edge instead of at its center.
Optional ReadonlysourceOffset?: numberOffset (in px) applied to the connection point at the source end.
Optional ReadonlystraightWhenDisconnected?: booleanFall back to a straight line while either end is still unconnected (e.g. mid-drag).
Optional ReadonlytargetOffset?: numberOffset (in px) applied to the connection point at the target end.
Paper link defaults for straight routing
Straight-line routing: links are drawn as a direct line from source to target, with no obstacle avoidance. The simplest, lowest-overhead routing.
Returns a
LinkRoutingbundle for the PaperlinkRoutingprop that sets the paper's router, connector, anchor, and connection point in one step. For other looks, reach for linkRoutingOrthogonal (right-angle segments that steer around elements) or linkRoutingSmooth (curved links).