Skip to main content

Crate dendryform_layout

Crate dendryform_layout 

Source
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§

ConnectorGeometry
Layout of a connector between tiers.
ContainerGeometry
Layout of a container wrapping nested tiers.
FlowLabelsGeometry
Layout of flow labels between tiers.
HeaderGeometry
Header geometry — title and subtitle positioning.
LayoutPlan
The complete layout plan for a diagram.
LegendGeometry
Layout of the legend.
NodeGeometry
A positioned node within a tier grid.
TierGeometry
Layout of a tier (horizontal band of nodes).
ViewportHint
Preferred viewport configuration for rendering.

Enums§

LayerGeometry
A single positioned layer in the layout.
LayoutError
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.