Skip to main content

flywave-map-controls.camerarotationanimationoptions

Home > @flywave/flywave-map-controls > CameraRotationAnimationOptions

CameraRotationAnimationOptions interface

Options for a camera animation.

Signature:

export interface CameraRotationAnimationOptions 

Properties

Property

Modifiers

Type

Description

axis?

THREE.Vector3

(Optional) Fixed rotation axis of camera. Defaults to [0,0,1] for z-axis.

duration?

number

(Optional) Duration of a whole animation in milliseconds. Defaults to 10 seconds.

easing?

EasingFunction | ((k: number) => number)

(Optional) Easing function that control acceleration. Defaults to [[EasingFunction.Linear]].

endAngle?

number

(Optional) End angle. May be greater than 360 in case more than one rotation is required.

repeat?

number

(Optional) Number of times the animation should be repeated. Defaults to 0.

startAngle?

number

(Optional) Start angle in degrees. Defaults to 0.