Skip to content

Interface: LayoutSnapshot

Defined in: api/geometry.ts:145

Plain, JSON-serializable snapshot of the graph's computed geometry.

clusters lists every cluster subgraph (recursively, nested clusters each get their own entry) with a computed bounding box; it is empty for graphs without clusters.

See

lib/common/types.h:GD_bb, ND_coord, ED_spl, GD_clust

Properties

bounds

ts
bounds: BoundsGeometry;

Defined in: api/geometry.ts:146


clusters

ts
clusters: ClusterGeometry[];

Defined in: api/geometry.ts:149


edges

ts
edges: EdgeGeometry[];

Defined in: api/geometry.ts:148


nodes

ts
nodes: NodeGeometry[];

Defined in: api/geometry.ts:147