# `Macaw.Frame.Layers.Lane`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/layers/lane.ex#L1)

The `lane` kind (spec/04 §5.2): a band a diagram's layout assigned, with its header and
label, new in the second cut: a swimlane, a Gantt chart's section, a sequence diagram's
participant and its lifeline.

| Channel | Role, family | Types | |
|---|---|---|---|
| `y0`, `y1` | position: the band's top and bottom, the layout's pixels | number | req |
| `x0`, `x1` | position: a vertical lane's left and right | number | |
| `label` | text | text, category, number | req |
| `series` | series | category, text, number | |

Options: `header` (`120`), the header's thickness in pixels. Parts: `stroke`, `font`.
Paint: `stroke`. One lane per row. **Horizontal** (no `x0` and `x1`): a band across
the plot from `y0` to `y1` outlined in the paint, and a header `header` wide at its left
filled with the theme's `surface`, the label centered in it. **Vertical** (`x0` and `x1`
given, a sequence's participant): a header box from `x0` to `x1` and `y0` down
`min(header, y1 − y0)`, the label centered in it, and the lifeline from the header's
middle down to `y1`, dashed. Every label is inked in the theme's `text`. Not bent.
Anchor: the header's center. Budget: `w`. Auxiliary: it frames the diagram's rows.

---

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