flywave-map-controls.cameraanimation
Home > @flywave/flywave-map-controls > CameraAnimation
CameraAnimation class
Abstract class used as base to define camera animations.
Signature:
export declare abstract class CameraAnimation
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Creates a new |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| number | Duration of a whole animation in milliseconds. Defaults to | |
| (amount: number) => number | Easing function that control acceleration. Defaults to [[EasingFunction.Linear]]. | |
| boolean | Returns | |
| MapView | ||
string | (Optional) | ||
| () => void | (Optional) Callback that gets triggered once the animation ends. | |
| number | Number of times the animation should be repeated. Defaults to | |
| boolean |
| |
| boolean |
| |
| TWEEN.Tween<GeoCoordinates | Record<string, number>> | (Optional) Tweening controller. |
Methods
Method | Modifiers | Description |
|---|---|---|
| Start the animation. | |
| ||
Update function is to be called before the next frame is rendered. |