Skip to main content

Crate grafik

Crate grafik 

Source
Expand description

Seeded spatial simulation for Grafik living diagrams.

The simulate interface accepts one bounded result plus browser-measured geometry and returns a complete, renderer-neutral Trace. The implementation performs no I/O, reads no ambient randomness or clock, and has no knowledge of the DOM.

Structs§

ActionContent
One caller-provided action displayed as a native browser control.
DiagramEdge
One stable directed topology edge.
DiagramNode
One stable generated diagram node.
DiagramPlan
Complete renderer-neutral diagram topology.
EdgePort
A spatial-field attachment point on a panel edge.
EffectParameters
Seeded bounded parameters carried by an effect plan.
EffectPhase
One controlled interval in an effect plan.
EffectPlan
One generated decorative pattern and its complete phase plan.
FactContent
One key/value fact displayed in a receipt.
InteractionScript
One trigger and the generated effect plans it runs.
NodeGeometry
Browser-measured geometry for one stable scene or diagram node.
Point
A point in the browser’s CSS-pixel coordinate space.
ReceiptContent
Bounded semantic display content used to generate a receipt scene.
Rect
A rectangular panel and spatial-field exclusion zone.
SceneAction
One generated native action description.
SceneBudgets
Hard caller limits that may only narrow Grafik’s absolute budgets.
SceneNode
One stable node in the logical receipt tree.
ScenePlan
Complete renderer-neutral receipt and diagram description.
SceneRequest
Complete controlled input for renderer-neutral scene generation.
SceneSimulationInput
Complete controlled input for one measured scene interaction.
SceneTrace
Complete replayable renderer-neutral scene interaction.
SimulationInput
Complete controlled input for one connector simulation.
Trace
A complete replayable spatial evolution.

Enums§

ButtonSize
Semantic size of a native action control.
DiagramForm
Generated diagram family.
Edge
A selectable edge of a panel.
EffectPattern
Bounded decorative primitive selected by scene generation.
EffectTarget
Stable target of a generated decorative effect.
FinalDisposition
Final disposition of one bounded operation.
GridRole
Curated placement role interpreted responsively by a browser adapter.
InteractionTrigger
Trigger selecting one deterministic interaction script.
LayoutProfile
Curated responsive receipt arrangement.
QuestionTone
Theme-aware palette role for a decorative uncertainty mark.
ResultSource
Provenance of a bounded final result supplied to the simulation.
SceneError
Validation, budget, geometry, interaction, or serialization failure.
SceneEvent
One renderer-neutral event in a measured scene interaction.
SceneNodeContent
Structured content carried by one scene node.
SceneNodeKind
Stable kind of one scene-tree node.
SceneRecipe
Curated amount of decorative motion and variation in a scene.
SimulationError
A validation or serialization failure at the simulation interface.
SpatialEvent
One renderer-neutral evolution event in a spatial trace.
VisualRole
Semantic visual intent interpreted by a concrete renderer.

Functions§

generate_scene
Generates one complete deterministic renderer-neutral receipt scene.
simulate
Evolves one seeded, bounded outcome profile into renderer-neutral events.
simulate_scene
Simulates one declared scene interaction against browser-measured geometry.