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

The Frame (spec/01 §1): one visual, which every chart, map and diagram is. It draws one
frame document (spec/02), whose frames, each a coordinate model with its layers, axes
and legend, share one text summary and one keyboard reach.

| Component | Name | Kind | Isolation |
|---|---|---|---|
| Frame | `"macaw.frame"` | `:content` | `:contained` |

`Macaw.Frame` is `use Macaw.Frame.Component` with macaw_frame's own package alone,
`Macaw.Frame.Package` (spec/01 §2.3): the first cut's layer kinds, the five coordinate
models and the spatial steps. A host enabling another package of layer kinds builds a
Frame of its own with `use Macaw.Frame.Component, name: …, packages: [...]`.

Its callbacks: `parameters/0` (§2.1), `declarations/1` (§2.2,
`Macaw.Frame.Declarations`), `variables/1` (§5.4), `budget/3` (spec/05 §2,
`Macaw.Frame.Budget`), the contained value's transitions (§3, `Macaw.Frame.Value`) and
`render/2` (§4, `Macaw.Frame.Render`). Its value is held by its host: `macaw_live`'s
contained cell on a Macaw page, a test or an adopter's own host elsewhere.

The drawing library under it is `Macaw.Draw`, which knows nothing of components.

# `__registry__`

```elixir
@spec __registry__() :: map()
```

The registry this Frame resolves its layer kinds and coordinate models through.

---

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