@ue-too/board / ZoomHandlerClampConfig
Type Alias: ZoomHandlerClampConfig
ZoomHandlerClampConfig =
object
Defined in: packages/board/src/camera/camera-rig/zoom-handler.ts:44
Configuration for zoom level boundary clamping.
Remarks
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.
Example
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] rangeProperties
clampZoom
clampZoom:
boolean
Defined in: packages/board/src/camera/camera-rig/zoom-handler.ts:48
Whether to enforce zoom level boundaries.