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

The design-level node kinds of the frame document (spec/02 §2, §3, §6): the design, its
meta, slots, variables, theme, styles and their parts, paints, defaults, layout grid,
interaction and labels.

`Macaw.Frame.Document.Schema` builds every kind's table from this module,
`Schema.Frame` and `Schema.Layer` once, at compile time; read the tables through it.

# `curve_types`

```elixir
@spec curve_types() :: [atom(), ...]
```

The curve types of macaw_draw spec/07 a `curve` part names.

# `describe`

```elixir
@spec describe(term()) :: [Macaw.Frame.Document.Schema.Spec.t()] | {:error, list()}
```

The key specs of a design-level node kind, in the order of its table in spec/02;
`{:error, [{[], {:enum, kinds}}]}` for a kind this module does not describe.

    iex> [first | _] = Macaw.Frame.Document.Schema.Design.describe(:design)
    iex> first.key
    :meta

# `eases`

```elixir
@spec eases() :: [atom(), ...]
```

The easing curves of macaw_draw spec/07's ease a motion part names (§3.10).

# `field_types`

```elixir
@spec field_types() :: [atom(), ...]
```

The six data-model types a slot's `types` may name (§2.3).

# `kinds`

```elixir
@spec kinds() :: [atom(), ...]
```

The node kinds this module describes, in spec/02 §1.2's order.

# `parts`

```elixir
@spec parts() :: [atom(), ...]
```

A style's parts: the keys merged by §3.5's rule rather than replaced (§1.5).

# `rotate_type`

```elixir
@spec rotate_type() :: tuple()
```

The type of a label's and a layer label's `rotate` (§5.5, §6.1).

# `symbol_types`

```elixir
@spec symbol_types() :: [atom(), ...]
```

The symbol types of macaw_draw spec/07 a `marker` part names.

---

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