Skip to main content
Rust4PM

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 3:"selfloop"— An edge from a node to itself, drawn as a rounded bump out of one of its borders
variant 5:"unrouted"— No polyline of at least two points. The layered pipeline does not return it.
label_anchor:Option<Point>— Where to centre this edge's label, when crate::Edge::label_size is set.
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 2:()
target_port:Option<PortInfo>— Where the polyline enters the target node, or None when there is no polyline.
variant 2:()

Example JSON Value

json
{
  "kind": "direct",
  "points": [
    {
      "x": 0.2,
      "y": 0.2
    }
  ]
}