# `Macaw.Frame.Transforms.Swimlanes`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/transforms/swimlanes.ex#L1)

The `swimlanes` step (spec/04 §5.2, §7.2): a layered graph banded into lanes by
`Macaw.Draw.Layout.Swimlanes` (macaw_draw spec/08 §13), in the plot (`needs: [:frame]`), for the
`node`, `edge` and `lane` kinds of a process map or an activity diagram.

It reads the graph as `layered` does (its `fields`, `id`, `label`, `shape`, `nodes`,
`edges`, `font_size` and `padding`), each node's lane its `lane` column (`"group"`, the
diagrams' node group, spec/13 §7.3); the lanes are the distinct lanes in order of first
appearance, a node with none in the lane `""`. `direction` (`lr`, lanes stacked top to
bottom and the flow left to right, or `tb`), `routing` (`orthogonal`), `rank_sep`,
`node_sep` and `header` (`30`) reach the layout.

`output: "nodes"` and `"edges"` answer `layered`'s rows, a node's with its `lane`;
`output: "lanes"` one row per lane: `id`, `label`, its band `x0`, `y0`, `x1`, `y1` and its
label's center `label_x`, `label_y`, what a `lane` layer draws.

# `phrase`

```elixir
@spec phrase() :: String.t()
```

What the frame is called when a data layer's rows are laid out by this step (spec/11 §2.2).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
