EdgeRoute
How one edge was drawn.
Used as Input
0
functions accept this type(+16 nested)
Used as Output
0
functions return this type(+11 nested)
Type Definition
43 nested items
struct— How one edge was drawn.
kind*:RouteKind— How an edge was routed.
variant 1:"direct"— A route between two adjacent layers, with no routing waypoints.
variant 2:struct— A long edge, routed through a chain of waypoints.
variant 3:"selfloop"— An edge from a node to itself, drawn as a rounded bump out of one of its borders
variant 4:struct— One lane of a bundle: several edges sharing a source and a target, routed once as a single
variant 5:"unrouted"— No polyline of at least two points. The layered pipeline does not return it.
variant 2:()
points*:Vec<Point>— Border-to-border polyline, source first. At least two points for a routed edge, four for
source_port:Option<PortInfo>— Where the polyline leaves the source node, or
None when there is no polyline.variant 1:PortInfo— How an edge attaches to one of its nodes.
variant 2:()
target_port:Option<PortInfo>— Where the polyline enters the target node, or
None when there is no polyline.variant 1:PortInfo— How an edge attaches to one of its nodes.
variant 2:()
Example JSON Value
json
{
"kind": "direct",
"points": [
{
"x": 0.2,
"y": 0.2
}
]
}