Skip to main content

Interface: SceneObservers

Tracks measured 3D geometry for standard and modular products.

Example​

const { bounds } = window.mimeeqApp.observers.scene;
console.log(bounds.getValue()?.height);

Properties​

bounds​

bounds: StateObservable<Nullable<SceneBounds>>

Reports the scene’s measured bounds in metres. Use it for overall dimensions. Null means no measured geometry. Dragged items update their bounds when the drag ends.

Example​

const bounds = window.mimeeqApp.observers.scene.bounds.getValue();
if (bounds) console.log('Width in metres', bounds.width);

instanceBounds​

instanceBounds: StateObservable<Record<string, SceneBounds>>

Reports measured modular item bounds in metres, keyed by instance ID. An empty map means no measured items. Missing entries include removed items. Dragged items update when the drag ends.

Example​

const bounds = window.mimeeqApp.observers.scene.instanceBounds.getValue() ?? {};
for (const [instanceId, item] of Object.entries(bounds)) console.log(instanceId, item.height);