Skip to main content

Module layout

Module layout 

Source
Expand description

Deterministic layered DAG layout (Sugiyama method) for Manifest.

Produces node positions + bounding rect via dagre-dgl-rs. All computation is pure and wasm-safe (no threads, filesystem, randomness, or SystemTime). The same input yields byte-identical JSON on native and wasm32 targets.

Structs§

LayoutOptions
Configuration knobs for layout. All values are pinned for determinism.
LayoutResult
Result of running layout on a manifest.
NodePosition
The computed position for a single node.
Point
A 2D point (center of a node).
Rect
An axis-aligned rectangle (bounding box).

Functions§

layout
Computes a layered DAG layout for manifest with the given options.