Type Alias: ZoomOut
ZoomOut = () =>
Promise<void>
Function
Automatically frames the entire product perfectly in the viewport.
This action intelligently adjusts the camera position and zoom to ensure the complete product is visible and optimally framed. It's like clicking the "fit to screen" button in design software - instantly giving you the ideal overview of the entire product.
Business value:
- Ensures customers can always see the complete product with one click
- Provides a consistent starting view regardless of previous interactions
- Creates a reliable reset point after customers explore detailed views
Dispatches mimeeq-3d-zoom-out-scene
when the camera starts animating to fit the entire product in view, and
mimeeq-3d-zoom-out-scene-finished
when that zoom has finished.
The returned promise resolves at the same moment as the finished event. It always settles: when there is no 3D scene, when the zoom is skipped, stopped or superseded by another camera transition, or when the scene is cleared or disposed, it resolves without waiting further. Callers that do not await it keep working as before.
Returns
Promise<void>
Examples
// Add a "view entire product" button to your interface
document.getElementById('view-all-button').addEventListener('click', () => {
window.mimeeqApp.actions.zoomOut();
});
// Keep your own loader up until the camera has settled
await window.mimeeqApp.actions.zoomOut();
hideMyLoader();