Interface: ClusterGeometry
Defined in: api/geometry.ts:127
Per-cluster geometry extracted after layout, in points.
name is the cluster subgraph's name (e.g. cluster6); for nested clusters the name encodes the hierarchy, so no explicit parent link is exposed. x/y/width/height describe the cluster's bounding box, following the same frame convention as BoundsGeometry: with yAxis:'down' (x, y) is the top-left corner; with yAxis:'up' (x, y) is the lower-left corner (native graphviz frame). These are the raw box corners graphviz computed — the same values render() rounds to emit the class="cluster" polygon, so a consumer quantizing to SVG precision gets byte-conformant geometry.
See
lib/common/types.h:GD_bb (of a cluster subgraph)
Properties
height
height: number;Defined in: api/geometry.ts:133
name
name: string;Defined in: api/geometry.ts:129
Cluster subgraph name (e.g. cluster6); encodes nesting.
width
width: number;Defined in: api/geometry.ts:132
x
x: number;Defined in: api/geometry.ts:130
y
y: number;Defined in: api/geometry.ts:131