Skip to content

@graphty/graphty-element / extend / GraphBounds

Interface: GraphBounds ​

Defined in: graphty-element/src/camera/types.ts:33

An axis-aligned box around the elements a view is being asked to frame, in world units.

Properties ​

center ​

readonly center: Vec3

Defined in: graphty-element/src/camera/types.ts:36


max ​

readonly max: Vec3

Defined in: graphty-element/src/camera/types.ts:35


maxDimension ​

readonly maxDimension: number

Defined in: graphty-element/src/camera/types.ts:39

The largest of the three sides.


measured ​

readonly measured: number

Defined in: graphty-element/src/camera/types.ts:45

How many elements the box was measured over. Zero means it is the element's default box, which is what an empty graph and an unmeasured one both produce -- a view that wants to behave differently for "nothing to frame" checks this rather than inspecting the numbers.


min ​

readonly min: Vec3

Defined in: graphty-element/src/camera/types.ts:34


size ​

readonly size: Vec3

Defined in: graphty-element/src/camera/types.ts:37