Skip to main content

Type Alias: DecreaseZoom()

DecreaseZoom = (step?) => Promise<void>

Function

Decreases the camera zoom level to see more of the product and its surroundings.

This action moves the camera farther away from the product, giving viewers a broader perspective. It's ideal for showcasing the product's overall proportions, viewing larger furniture arrangements, or seeing how multiple components fit together.

Business value:

  • Helps customers understand the overall size and scale of products
  • Shows how products fit within an environment or alongside other pieces
  • Provides context for furniture arrangements or room layouts

Parameters

step?

number

How much to zoom out - larger values create a more dramatic change (optional)

Returns

Promise<void>

Promise that resolves when the zoom operation is complete

Example

// Add a "zoom out" button to your product page
document.getElementById('zoom-out-button').addEventListener('click', () => {
window.mimeeqApp.actions.decreaseZoom();
});

// Zoom out by a larger amount for a dramatic wide view
window.mimeeqApp.actions.decreaseZoom(2);