Interface: CameraObservers
Tracks interactive camera state for custom camera controls. Each stream emits immediately. Null means the value is unavailable. Pose and zoom streams are sampled during motion.
Example
const subscription = window.mimeeqApp.observers.camera.zoomLevel.subscribe(({ newValue }) => {
if (newValue != null) console.log(newValue);
});
window.addEventListener('pagehide', () => subscription.unsubscribe(), { once: true });
Properties
autoFitLocked
autoFitLocked:
StateObservable<boolean|null>
Reports whether the active camera is locked against auto-fit by the author or integration. Use it to decide whether to offer a fit control. Null means no active camera.
Example
console.log(window.mimeeqApp.observers.camera.autoFitLocked.getValue());
autoRotateEnabled
autoRotateEnabled:
StateObservable<boolean|null>
Reports whether idle rotation is enabled for the active camera, including while it waits. Use it to synchronize a rotation toggle. Null means no active camera.
Example
console.log(window.mimeeqApp.observers.camera.autoRotateEnabled.getValue());
isAnimating
isAnimating:
StateObservable<boolean|null>
Reports whether a finite camera transition is running. Use it to detect programmatic movement. Idle rotation and gesture inertia are separate. Null means no active camera.
Example
console.log(window.mimeeqApp.observers.camera.isAnimating.getValue());
position
position:
StateObservable<CameraPoint|null>
Reports the camera eye position in Y-up scene units. Use it with the other pose point to capture a viewpoint. Null means the active pose is unavailable.
Example
console.log(window.mimeeqApp.observers.camera.position.getValue());
projectionMode
projectionMode:
StateObservable<CameraProjectionMode|null>
Reports the camera projection for projection toggle controls. Null means no active interactive camera.
Example
console.log(window.mimeeqApp.observers.camera.projectionMode.getValue());
target
target:
StateObservable<CameraPoint|null>
Reports the camera look-at point in Y-up scene units. Use it with the other pose point to capture a viewpoint. Null means the active pose is unavailable.
Example
console.log(window.mimeeqApp.observers.camera.target.getValue());
viewMode
viewMode:
StateObservable<"top"|"other"|null>
Reports top when the camera looks within one degree of straight down, and other for any other available pose. Use it for a plan-view indicator. Null means the current view is unavailable.
Example
console.log(window.mimeeqApp.observers.camera.viewMode.getValue());
zoomLevel
zoomLevel:
StateObservable<number|null>
Reports eye-to-target distance in perspective or half the visible height in orthographic projection. Use it to synchronize a zoom control in scene units. Smaller values zoom in. Null means no available zoom.
Example
console.log(window.mimeeqApp.observers.camera.zoomLevel.getValue());
zoomLimits
zoomLimits:
StateObservable<CameraZoomLimits|null>
Reports the range accepted by setZoom in the current projection’s zoom units. Null endpoints are unbounded. A null range means no active camera.
Example
console.log(window.mimeeqApp.observers.camera.zoomLimits.getValue());