A cell: one component placed in a surface (spec/06 §3.2).
component, the component's name as its package registers it, matched by spelling;kind, the kind it renders as,:contentby default;settings, its settings by parameter name, inline, plain data;slots, each slot bound to a source:%{source: name, fields: %{role => field}, params: %{name => value}}, amanyrole's fields a list;place, where it sits in the grid:%{x, y, w, h}(spec/06 §3.3).
Names are strings; an atom is read as its spelling, and no atom is made from one.
Summary
Functions
A cell's keys, in order.
A cell from a keyword list or a map with atom keys: {:ok, cell} or every fault at
once, by path from the cell.
Types
@type place() :: %{ x: non_neg_integer(), y: non_neg_integer(), w: pos_integer(), h: pos_integer() }
Functions
@spec keys() :: [atom(), ...]
A cell's keys, in order.
@spec new(keyword() | map()) :: {:ok, t()} | {:error, [Macaw.Layers.Fault.t(), ...]}
A cell from a keyword list or a map with atom keys: {:ok, cell} or every fault at
once, by path from the cell.