Skip to main content
Rust4PM

Layout

One laid-out drawing.
Used as Input

16

functions accept this type

Used as Output

11

functions return this type

Type Definition

83 nested items
Layout— One laid-out drawing.
bounds*:Rect— An axis-aligned rectangle from its top-left min to its bottom-right max. The default is
edges*:Vec<EdgeRoute>— One entry per input edge, in crate::EdgeId order.
junctions:Vec<Point>— Where a merged edge branches off a shared trunk (crate::Routing::merge_edges), for a
lanes:Vec<Lane>— The swimlanes of a drawing with crate::GroupLanes::Strict lanes, in order along the
layer_count*:u32— Number of layers in a layered drawing, or of depth rows in a tidy tree. 0 for an empty
nodes*:Vec<Placement>— One entry per input node, in crate::NodeId order.
reversed*:Vec<EdgeId>— Edges the layering saw the other way round: Those the cycle breaker reversed, plus those
[items]:EdgeId— Index of an edge in Graph::edges.
stats*:LayoutStats— Counters from the run that produced a Layout.
dummy_count*:u32— Routing waypoints (dummy nodes) the long edges were cut into.

Example JSON Value

json
{
  "bounds": {
    "max": {
      "x": 0.2,
      "y": 0.2
    },
    "min": {
      "x": 0.2,
      "y": 0.2
    }
  },
  "edges": [
    {
      "kind": "direct",
      "points": [
        {
          "x": 0.2,
          "y": 0.2
        }
      ]
    }
  ],
  "layer_count": 1,
  "nodes": [
    {
      "center": {
        "x": 0.2,
        "y": 0.2
      },
      "order": 1,
      "size": {
        "height": 0.2,
        "width": 0.2
      }
    }
  ],
  "reversed": [
    1
  ],
  "stats": {
    "dummy_count": 1
  }
}

Functions Accepting This Type(16)

Functions Returning This Type(11)