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

The `edge` kind (spec/04 §5.2): a diagram's edge, the route a layout assigned with its
markers and its label, new in the second cut.

| Channel | Role, family | Types | |
|---|---|---|---|
| `path` | geometry: the layout's routed `Macaw.Draw.IR.Path`, pixels | term | req |
| `label` | text | text, category, number | |
| `head`, `tail` | text: a marker's spelling | category, text | |
| `line` | text: a line's spelling | category, text | |
| `series` | series | category, text, number | |

The markers are `none`, `arrow` (filled), `open` (hollow), `diamond`, `circle` and
`cross`; `open_diamond`, a class diagram's aggregation; and the crow's-foot ends of an
ER diagram, `one`, `zero_or_one`, `one_or_many`
and `zero_or_many`; the lines `solid`, `dashed`, `dotted` and `thick`. Without a
reading, `head` is `arrow`, `tail` `none` and `line` `solid`; a spelling the vocabulary
lacks is the default, never an atom. Parts: `stroke`, `font`. Paint: `stroke`
(`fill: none`). One edge per row: the route stroked in the layer's paint with the
line's dash or width, the head at its end and the tail at its start, each pointing
along the route's bearing there (a filled marker in the paint, a hollow one over the
theme's `background`), and its label at the route's midpoint by length, on a box of the
theme's `background` sized by the text estimate, inked in `text`. Not bent. Anchor: the
midpoint. Budget: `w`. Auxiliary: its rows are a diagram's relations, which its nodes
name.

---

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