Creates a new CameraFlightAnimation instance.
Optionalcfg: { duration: number }Optional configuration.
Default animation duration in seconds for CameraFlightAnimation.flyTo.
ReadonlycameraThe Camera controlled by this CameraFlightAnimation.
True once this Component has been destroyed.
Don't use this Component if this is true.
ProtecteddirtyUnique ID of this Component.
ReadonlyonFires when the camera animation is cancelled.
ReadonlyonFires when the camera animation starts.
ReadonlyonFires when the camera animation completes.
ReadonlyviewThe 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.
ProtectedcleanForces this component to action any deferred state updates.
ProtectedcleanGives this component an opportunity to action any defered state updates.
ProtectederrorProtectedLogs 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.
Optionalcallback: (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.
ProtectedlogProtectedLogs a message for this component.
The message will have this format: [LOG] [<component type> <component id>: <message>
The message to log
ProtectedsetFlags this component as having a defered state updates it needs to perform.
Stops an earlier CameraFlightAnimation.flyTo, fires arrival callback, then "stopped" event.
ProtectedwarnProtectedLogs 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.