Optional
autoApply?: booleanIf true the camera position and target will be applied immediately
Optional
camera?: CameraThe camera to fit. If not provided the current camera will be used
Optional
cameraNearFar?: "keep" | "auto"Set to 'auto' to update the camera near or far plane based on the fitted-objects bounds
Optional
cameraOffset?: Partial<Vector3Like>Offset the camera position in world space
Optional
centerCamera?: "none" | "y"If set to "y" the camera will be centered in the y axis
Optional
context?: ContextThe context to use. If not provided the current context will be used
Optional
currentZoom?: numberOptional
debug?: booleanWhen enabled debug rendering will be shown
Optional
fitDirection?: Vector3LikeThe direction from which the camera should be fitted in worldspace. If not defined the current camera's position will be used
Optional
fitOffset?: numberFit offset: A factor to multiply the distance to the objects by
Optional
fov?: numberField of view (FOV) for the camera
Optional
maxZoom?: numberOptional
minZoom?: numberOptional
objects?: Object3D[] | Object3DThe objects to fit the camera to. If not provided the scene children will be used
Optional
relativeCameraOffset?: Partial<Vector3Like>Offset the camera position relative to the size of the objects being focused on (e.g. x: 0.5).
Value range: -1 to 1
Optional
relativeTargetOffset?: Partial<Vector3Like>Offset the camera target position relative to the size of the objects being focused on.
Value range: -1 to 1
Optional
targetOffset?: Partial<Vector3Like>Offset the camera target position in world space
Options for fitting the camera to the scene. Used in OrbitControls.fitCamera