Creates a new CameraFlightAnimation instance.
Optional
cfg: { duration: number }Optional configuration.
Default animation duration in seconds for CameraFlightAnimation.flyTo.
Readonly
cameraThe Camera controlled by this CameraFlightAnimation.
True once this Component has been destroyed.
Don't use this Component if this is true
.
Protected
dirtyUnique ID of this Component.
Readonly
onFires when the camera animation is cancelled.
Readonly
onFires when the camera animation starts.
Readonly
onFires when the camera animation completes.
Readonly
viewThe View that owns this CameraFlightAnimation.
Gets the flight duration in seconds.
Default value is 0.5
.
Sets the flight duration in seconds.
Stops any flight currently in progress.
Default value is 0.5
.
When flying to a SceneModel, ViewObject or boundary, indicates if the CameraFlightAnimation always adjusts the distance of Camera.eye from Camera.look to ensure that the target always fits in view.
When false, the eye will remain fixed at its current distance from the look position.
Default value is true
.
When flying to a SceneModel, ViewObject or boundary, indicates if the CameraFlightAnimation always adjusts the distance of Camera.eye from Camera.look to ensure that the target always fits in view.
When false, the eye will remain fixed at its current distance from the look position.
Default value is true
.
Gets how much of the perspective field-of-view, in degrees, that a target ViewObject should fill the canvas when calling CameraFlightAnimation.flyTo or CameraFlightAnimation.jumpTo.
Default value is 45
.
Sets how much of the perspective field-of-view, in degrees, that a target ViewObject should fill the canvas when calling CameraFlightAnimation.flyTo or CameraFlightAnimation.jumpTo.
Default value is 45
.
Indicates if this CameraFlightAnimation will orient the Camera in the direction that it is flying.
Default value is false
.
Indicates if this CameraFlightAnimation will orient the Camera in the direction that it is flying.
Default value is false
.
Cancels a flight in progress, without calling the arrival callback.
Protected
cleanForces this component to action any deferred state updates.
Protected
cleanGives this component an opportunity to action any defered state updates.
Protected
errorProtected
Logs an error for this component to the JavaScript console.
The console message will have this format: [ERROR] [<component type> =<component id>: <message>
The error message to log
Animates the camera to a target viewpoint or bounding volume.
eye
, look
, and up
are provided, the camera will interpolate to that exact pose.Parameters defining the flight target and behavior.
Optional
callback: (arg0: any) => voidOptional callback invoked after the flight completes.
Instantly moves the camera to a specified viewpoint or bounding volume, without animation.
eye
, look
, and up
are provided, the camera will immediately assume that pose.Target camera state or bounding box.
Protected
logProtected
Logs a message for this component.
The message will have this format: [LOG] [<component type> <component id>: <message>
The message to log
Protected
setFlags this component as having a defered state updates it needs to perform.
Stops an earlier CameraFlightAnimation.flyTo, fires arrival callback, then "stopped" event.
Protected
warnProtected
Logs a warning for this component to the JavaScript console.
The console message will have this format: [WARN] [<component type> =<component id>: <message>
The warning message to log
Emits an event when the Component has been destroyed.
Animates a View's Camera to smoothly transition to a specified target, such as a component, bounding box, or viewpoint.
Use @xeokit/sdk/cameraflight to create cinematic camera motions.