new CameraZoomRange(rangeParams)
Creates an instance of a camera zoom range object with an object literal.
Declaration
constructor(rangeParams: Partial<CameraZoomRangeData>);Discussion
Calling the constructor with an CameraZoomRangeData object literal creates a CameraZoomRange instance that constrains the camera.
Both minCameraDistance and maxCameraDistance must be greater than or equal to 0. The minCameraDistance must be lower than or equal to the maxCameraDistance.