Expand description
Core scene-graph data model for FD documents.
The document is a DAG (Directed Acyclic Graph) where nodes represent visual elements (shapes, text, groups) and edges represent parent→child containment. Styles and animations are attached to nodes. Layout is constraint-based — no absolute coordinates are stored in the format.
Structs§
- Anim
Keyframe - A property animation keyframe.
- Anim
Properties - Animatable property overrides.
- Color
- RGBA color. Stored as 4 × f32 [0.0, 1.0].
- Font
Spec - Gradient
Stop - A gradient stop.
- Resolved
Bounds - Resolved absolute bounding box after constraint solving.
- Scene
Graph - The complete FD document — a DAG of
SceneNodevalues. - Scene
Node - A single node in the scene graph.
- Shadow
- Stroke
- Style
- A reusable style set that nodes can reference via
use: style_name.
Enums§
- Anim
Trigger - The trigger for an animation.
- Annotation
- Structured annotation attached to a scene node.
Parsed from
##lines in the FD format. - Constraint
- Constraint-based layout — no absolute coordinates in the format.
- Easing
- Easing function.
- Layout
Mode - Group layout mode (for children arrangement).
- Node
Kind - The node kinds in the scene DAG.
- Paint
- Fill or stroke paint.
- PathCmd
- A single path command (SVG-like but simplified).
- Stroke
Cap - Stroke
Join