We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba0bddd commit 4349acfCopy full SHA for 4349acf
src/viewer.js
@@ -1570,6 +1570,13 @@ class Viewer {
1570
this.update(true, notify);
1571
}
1572
1573
+ /**
1574
+ * Centers the camera view on all visible objects in the scene.
1575
+ * Calculates a bounding box that encompasses all visible ObjectGroup instances
1576
+ * and sets the camera target to the center of that bounding box.
1577
+ *
1578
+ * @param {boolean} [notify=true] - Whether to notify listeners of the camera update
1579
+ */
1580
centerVisibleObjects(notify = true) {
1581
const groups = this.nestedGroup.groups;
1582
0 commit comments