Type Alias: SetZoom()
SetZoom = (
zoom
) =>Promise
<void
>
Function
Sets a specific zoom level for the camera view.
This action gives you precise control over how close or far the camera is from the product. It's like adjusting a zoom lens on a camera - smaller values bring you closer to examine details, while larger values give you a broader perspective of the whole product.
Business value:
- Creates the perfect framing for product screenshots or presentations
- Helps customers focus on specific details like material textures or connectors
- Provides consistent product views across different devices or screens
Parameters
zoom
number
The distance of the camera from the product - smaller numbers zoom in closer, larger numbers zoom out further
Returns
Promise
<void
>
Promise that resolves when the zoom adjustment is complete
Example
// Zoom in close to examine material details
window.mimeeqApp.actions.setZoom(2);
// Zoom out to see the entire product in context
window.mimeeqApp.actions.setZoom(10);
// Create an interactive zoom slider control for your website
const zoomSlider = document.getElementById('zoom-slider');
zoomSlider.addEventListener('input', (e) => {
const zoomLevel = parseFloat(e.target.value);
window.mimeeqApp.actions.setZoom(zoomLevel);
});