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

The realized model (spec/03 §1.2): what every callback after `realize/3` reads.

visualize's `%Visualize.Chart.Frame{}` narrowed to what the model owns:

  * `name` - the model's name; `module` the module that realized it;
  * `frame` - the frame's name in the document, a string;
  * `size` - `{width, height}` of the frame's own pixel box (§1.4), and `box` that box as
    `[x, y, w, h]` in the component's pixels, `component` the component's own size;
  * `margin` - `%{top, right, bottom, left}` in pixels, after a legend grew it (§3.3);
  * `plot` - `%{width, height}`, the box less the margins;
  * `scales` - the realized `Macaw.Draw.Scale` structs by name (§2);
  * `domains` - the extents the model was given rather than inferring (§2.5, §6.3);
  * `projection` - a `Macaw.Draw.Geo.Projection` in a geographic model;
  * `layout` - the layout's run in a layout model (§9.2);
  * `panels` - the facet's panel values in order; `inner` its inner model's name, and
    `panel_model` the inner model realized over one panel's plot;
  * `legend_fit` - `nil`, `%{status: :drawn, entries: n}` or `%{status: :omitted,
    reason: r, entries: n}` (§3.3.4);
  * `measurer` - the Frame's resolved text measurer, which everything laid out over the
    model measures on (a `Macaw.Layers.Text.Measurer`, macaw_layers#63), `nil` for a
    model realized outside a Frame, which measures by the estimate;
  * `system` and `zone` - the viewer's unit system and display zone;
  * `node` - the frame node it was realized from, `reads` the slots a delivery to which
    realizes it again (§1.2), `realized` the scales this realization built rather than
    reused, `layers` what the model knows of its layers (kinds, readings and labels,
    never their rows), `writes_from` what its writes depend on (§5.1), `sync` the
    cell's group, and `warnings` the warning-level faults it found (§2.3).

It holds no theme, no rows and no scene: those are the Frame's contained value's.

# `t`

```elixir
@type t() :: %Macaw.Frame.Coordinates.Model{
  box: [number()],
  component: {number(), number()},
  domains: %{required(String.t()) =&gt; term()},
  frame: String.t() | nil,
  inner: atom() | nil,
  layers: [map()],
  layout: map() | nil,
  legend_fit: map() | nil,
  margin: %{top: number(), right: number(), bottom: number(), left: number()},
  measurer: Macaw.Layers.Text.Measurer.t() | nil,
  module: module() | nil,
  name: atom(),
  node: map(),
  panel_model: t() | nil,
  panels: [term()],
  plot: %{width: number(), height: number()},
  projection: struct() | nil,
  reads: [String.t()],
  realized: [String.t()],
  scale_nodes: term(),
  scales: %{required(String.t()) =&gt; struct()},
  size: {number(), number()},
  sync: String.t() | nil,
  system: atom(),
  warnings: [Macaw.Base.Fault.t()],
  writes_from: map(),
  zone: String.t() | nil
}
```

---

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