Interface: StatusObservers
Tracks readiness, loading, export, AR and 3D activity. Each observer replays its current value and then emits changes.
Example
const { settled } = window.mimeeqApp.observers.status;
const subscription = settled.subscribe(({ newValue }) => console.log('Settled', newValue));
Properties
appReady
appReady:
StateObservable<boolean>
True once the mounted 3D engine has initialized.
Example
if (window.mimeeqApp.observers.status.appReady.getValue()) console.log('3D engine ready');
ar
ar:
StateObservable<ArState>
The built-in AR flow's state. ready means the desktop QR link or mobile viewer file
is available. Closing or leaving the view returns the state to closed.
busy
busy:
StateObservable<boolean>
True while any 3D task in the queue is unfinished, including tasks that have yet to start.
Example
window.mimeeqApp.observers.status.busy.subscribe(({ newValue }) => {
document.body.toggleAttribute('data-scene-busy', !!newValue);
});
firstRender
firstRender:
StateObservable<boolean>
True once the mounted 3D scene has drawn its first frame. Resets when the scene is replaced or disposed.
Example
window.mimeeqApp.observers.status.firstRender.subscribe(({ newValue }) => {
if (newValue) console.log('First 3D frame drawn');
});
loadError
loadError:
StateObservable<EmbedLoadError|null>
The current embed's last load failure, including an HTTP status when available. A new load
clears it to null.
Listen for mimeeq-app-config-error to handle failures before the API is available.
loading
loading:
StateObservable<boolean>
True while the main product is loading or its data is absent. Same value as product.isLoading.
Example
window.mimeeqApp.observers.status.loading.subscribe(({ newValue }) => {
document.body.toggleAttribute('data-loading-product', !!newValue);
});
pdf
pdf:
StateObservable<boolean>
True while at least one PDF is being generated by a PDF action or the built-in export. Returns to false after every pending generation finishes or fails.
Example
window.mimeeqApp.observers.status.pdf.subscribe(({ newValue }) => {
document.body.toggleAttribute('data-generating-pdf', !!newValue);
});
priceLoading
priceLoading:
StateObservable<boolean>
True while a price calculation is pending or running. Same value as pricing.isPriceLoading.
Example
console.log(window.mimeeqApp.observers.status.priceLoading.getValue());
productListLoading
productListLoading:
StateObservable<boolean>
True while the product list is loading. Same value as productList.isLoading.
Example
console.log(window.mimeeqApp.observers.status.productListLoading.getValue());
productLoaded
productLoaded:
StateObservable<boolean>
True while the main product data is present.
Example
if (window.mimeeqApp.observers.status.productLoaded.getValue()) console.log('Product available');
sceneActivity
sceneActivity:
StateObservable<SceneActivity[]>
Active reasons for drawing the 3D scene, in a fixed order.
dragging means an item is being moved or rotated. Camera orbit reports cameraMoving or cameraGesture.
Auto-rotation contributes cameraMoving while the camera is turning.
An idle refresh contributes no reason.
Example
if (window.mimeeqApp.observers.status.sceneActivity.getValue()?.includes('dragging')) {
console.log('Item is being dragged');
}
sceneFrozen
sceneFrozen:
StateObservable<boolean>
True while the canvas loader is visible or sceneActivity is empty. Periodic idle refreshes count as frozen.
Example
console.log(window.mimeeqApp.observers.status.sceneFrozen.getValue());
sceneSettled
sceneSettled:
StateObservable<boolean>
True when both settled and sceneFrozen are true.
Example
if (window.mimeeqApp.observers.status.sceneSettled.getValue()) console.log('Scene settled');
settled
settled:
StateObservable<boolean>
True when productLoaded && !loading && !uiBlocked && !busy and sceneActivity excludes dragging.
Pending engine tasks keep the configurator unsettled even between canvas loader phases.
Camera motion can continue while the configurator is settled.
Example
window.mimeeqApp.observers.status.settled.subscribe(({ newValue }) => {
document.body.toggleAttribute('data-configurator-settled', !!newValue);
});
uiBlocked
uiBlocked:
StateObservable<boolean>
True while the canvas loader is visible, the scene is capturing an image, or a PDF is being generated.
Example
window.mimeeqApp.observers.status.uiBlocked.subscribe(({ newValue }) => {
document.body.toggleAttribute('data-ui-blocked', !!newValue);
});
uiBlockedBy
uiBlockedBy:
StateObservable<UiBlockedReason[]>
Distinct reasons for active canvas loader entries, image capture and PDF generation, in a fixed order.
Unknown and unlabeled loader entries contribute other. Returns an empty array when unblocked.
Example
console.log(window.mimeeqApp.observers.status.uiBlockedBy.getValue()?.join(', '));