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

The `radial` step (spec/04 §5.2, §7.2): a radial tree or dendrogram of a hierarchy, laid
out by `Macaw.Draw.Layout.Radial` (macaw_draw spec/08 §15) around the plot's center
(`needs: [:frame]`), for the `node` and `edge` kinds of a mind map.

`id` and `by` (the parent, `nil` or `""` for the root) stratify the rows; `layout` is
`tree` (default) or `cluster`; the radius is half the plot's shorter side less `margin`
(`40`), the root at `inner_radius` (`0`). Each node's box is sized from its `label` (its
id without one) by the text estimate at `font_size` with `padding`.

`output: "nodes"` answers one row per node in pre-order: the input's columns with
`depth`, `angle`, `radius`, `x`, `y` (the center), `width`, `height` and `anchor`
(`start` or `end`, so a label reads outward). `output: "links"` one row per
parent–child pair: `source`, `target` and the radial link's `path` of `link` (`curve`,
`elbow`, `line`), with its ends' places and bearings. A cycle, a second root or a parent
that is no node is `{"by", {:hierarchy, reason}}`.

# `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*
