Expand description
Surfaces: the state a renderer keeps for each surface, and what it derives from it.
Runtime::apply takes a batch the way crate::Validator does (all or
nothing) and, beyond validating it, applies it: components are stored, the
data model updated (null deletes), and every touched surface evaluated, so
a template that does not parse or an @index outside a list is reported to
the agent rather than shown as a broken surface.
Runtime::tree resolves a surface for drawing: a Node per component
instance (a list template gives one per item), its properties with every
binding and call evaluated, its failing checks, and its children.
Runtime::input writes what the user enters (two-way binding), and
Runtime::dispatch runs a component’s action on the user’s gesture,
giving the action to send the agent or the effects of a local function.
Structs§
- Action
Error - Why an action could not run.
- Dispatch
- What a gesture produced.
- Gesture
- Where a gesture came from.
- Node
- One component instance, resolved for drawing.
- Runtime
- A renderer’s surfaces, headless.
Constants§
- MAX_
TREE_ DEPTH - How deep a component tree may nest before resolution stops, so a cycle the validator did not see cannot recurse without end.