Skip to main content

Type Alias: ApplyZoomInput

ApplyZoomInput = (direction, hold?, options?) => Promise<void>

Function

Applies wheel-style camera zoom input. Use for custom wheel or press-and-hold buttons. The hold flag defaults to false. A hold must be paired with releaseZoomInput using the same options. Pass { pauseAutoRotate: true } to use runtime camera handling and defer idle rotation. Set ignoreDuringZoomAll: true on both calls to ignore presses during Zoom All.

Parameters​

direction​

ZoomInputDirection

hold?​

boolean

options?​

CameraZoomInputOptions

Returns​

Promise<void>

Example​

const { actions } = window.mimeeqApp;
await actions.applyZoomInput('in', true, { pauseAutoRotate: true });
await actions.releaseZoomInput({ pauseAutoRotate: true });