getBoundingBox
Returns the bounding box for a list of spaces.
Example
Usage
const spaceIds = ["space-1", "space-2"];
const boundingBox = viewer2d.getBoundingBox(spaceIds);Parameters
spaceIds
List of space ids.
Type | Required |
|---|---|
Array[String] | Yes |
Return Value
The bounding box of the spaces.
Type |
|---|
Box3 |
Example
{
max: {
x: 100,
y: 100,
z: 0,
},
min: {
x: 0,
y: 0,
z: 0,
},
}