Expand description
§dendryform-layout
Shared layout engine that produces a LayoutPlan from a Diagram.
The layout plan contains relative positioning, geometry, and connector routing. Format-specific renderers (HTML, SVG) consume this plan to produce output in their native coordinate systems.
§Quick Start
use dendryform_layout::compute_layout;
let diagram = dendryform_parse::parse_yaml_file("examples/taproot/architecture.yaml").unwrap();
let plan = compute_layout(&diagram).unwrap();
println!("Layers: {}", plan.layers.len());Structs§
- Connector
Geometry - Layout of a connector between tiers.
- Container
Geometry - Layout of a container wrapping nested tiers.
- Flow
Labels Geometry - Layout of flow labels between tiers.
- Header
Geometry - Header geometry — title and subtitle positioning.
- Layout
Plan - The complete layout plan for a diagram.
- Legend
Geometry - Layout of the legend.
- Node
Geometry - A positioned node within a tier grid.
- Tier
Geometry - Layout of a tier (horizontal band of nodes).
- Viewport
Hint - Preferred viewport configuration for rendering.
Enums§
- Layer
Geometry - A single positioned layer in the layout.
- Layout
Error - Errors that occur during layout computation.
Functions§
- compute_
layout - Computes a layout plan from a validated diagram.
- version
- Returns the version of the dendryform-layout crate.