@ccgrapher/layout
v0.4.0
Published
Turns a validated workflow graph into positioned nodes and routed edges.
Maintainers
Readme
@ccgrapher/layout
Turns a validated workflow graph into positioned nodes and routed edges.
import { layoutGraph } from "@ccgrapher/layout";
const { nodes, edges, width, height } = layoutGraph(graph);Wraps dagre with ranker: "longest-path" so the rows it produces match the ranks
@ccgrapher/core computes — the drawing can never contradict the layer count the
linter prints. Node sizes come from measuring the wrapped label, so no coordinate
is ever authored by hand.
