Skip to content

AutoZoomOptions

AutoZoomOptions = object

Defined in: types.ts:251

optional allowZoomingOut?: boolean

Defined in: types.ts:271

When false, the camera never zooms out beyond the initial amount to fit large element rects. Defaults to true.


optional amount?: number

Defined in: types.ts:255

0–1: fraction of output dimensions visible in the zoomed viewport (default 0.5)


optional centering?: object

Defined in: types.ts:261

Per-locator-type centering (0–1). 1 = camera always centers on target (no dead zone). 0 = camera only moves if target exits the viewport. 0.5 = target can move freely in the center 50% without panning. Defaults: cursor=0.5, input=1, click=0.5

optional click?: number

How tightly the camera follows cursor moves that precede a click (default 0.5)

optional cursor?: number

How tightly the camera follows free cursor movements (default 0.5)

optional input?: number

How tightly the camera follows input/ZoomMove targets (default 1)


optional duration?: number

Defined in: types.ts:253


optional easing?: Easing

Defined in: types.ts:252


optional postZoomInOutDelay?: number

Defined in: types.ts:275

Delay in milliseconds to hold the zoomed-in state after the zoom-in animation completes, and to hold the full view after the zoom-out animation completes. Defaults to 500.