Interface: DimensionsObservers
Observes the current product's dimension controls and measurements.
Example
const dimensions = window.mimeeqApp.observers.dimensions;
dimensions.visible.subscribe(({ newValue }) => console.log(newValue));
Properties
available
available:
StateObservable<boolean>
Whether the product and embed settings allow dimensions to be shown.
Example
console.log(window.mimeeqApp.observers.dimensions.available.getValue());
custom
custom:
StateObservable<CustomDimension[]>
The current product's custom measurements, or an empty list when none are configured.
Example
window.mimeeqApp.observers.dimensions.custom.subscribe(({ newValue }) => console.log(newValue));
unit
unit:
StateObservable<Nullable<UnitLength>>
The current display unit, or null until one is set.
Example
console.log(window.mimeeqApp.observers.dimensions.unit.getValue());
values
values:
StateObservable<Nullable<ModelDimensions>>
The current width, height and depth in millimetres, or null when unavailable or the modular scene is empty.
Example
console.log(window.mimeeqApp.observers.dimensions.values.getValue()?.width);
visible
visible:
StateObservable<boolean>
Whether the main dimensions are currently visible.
Example
window.mimeeqApp.observers.dimensions.visible.subscribe(({ newValue }) => console.log(newValue));