Skip to content

@ue-too/board / index / ZoomHandlerClampConfig

型別別名: ZoomHandlerClampConfig

ZoomHandlerClampConfig = object

定義於: packages/board/src/camera/camera-rig/zoom-handler.ts:44

Configuration for zoom level boundary clamping.

備註

Controls whether zoom operations should be constrained to camera's zoom boundaries.

When clampZoom is true, zoom handlers enforce BoardCamera.zoomBoundaries limits (min/max zoom levels). When false, zoom can exceed configured boundaries.

範例

typescript
const config: ZoomHandlerClampConfig = {
  clampZoom: true  // Enforce zoom boundaries
};

camera.zoomBoundaries = { min: 0.5, max: 4.0 };
// Zoom will be clamped to [0.5, 4.0] range

屬性

clampZoom

clampZoom: boolean

定義於: packages/board/src/camera/camera-rig/zoom-handler.ts:48

Whether to enforce zoom level boundaries.