dendryform-layout 0.1.0

Shared layout engine that produces a LayoutPlan from a Diagram
Documentation

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());