@antv/layout is a layout algorithm library for graph visualization. It ships with a wide range of layouts, unifies graph data and layout APIs, and turns graph structures into renderable coordinates. TypeScriptWebWorker
| Type | Layout | Layout |
|---|---|---|
| Force (iterative) | ForceAtlas2 Large graphs with acceleration support. | Force Rich parameters and fine-grained control. |
| Fruchterman Classic force layout for small/medium graphs. | D3Force A wrapper around d3-force simulation. | |
| D3Force3D 3D force layout with z output. | ||
| Hierarchy/flow | Dagre Directed hierarchical layout with labels/placeholders. | AntVDagre Production-grade Dagre variant. |
| Circular/radial | Circular Circular/spiral distribution with ordering controls. | Concentric Layer by concentric value. |
| Radial Radial structure centered on a focus node. | ||
| Regular/init | Grid Stable grid positions. | Random Random coordinates for placeholders. |
| Others | MDS Distance-constraint-driven dimensionality reduction. | |
| Composite/Combo | ComboCombined Multi-level composite layout with combo bounds. |
Here is a minimal layout run using CircularLayout: