API

Class InterpolatingBehavior<C>

Animate camera property changes with an interpolation effect

Type Parameters

Implements

Index
easingFunction: EasingFunction = ...

The easing function to use for interpolation

easingMode: number = EasingFunction.EASINGMODE_EASEINOUT

The easing mode (default is EASINGMODE_EASEINOUT)

transitionDuration: number = 450

Duration of the animation in milliseconds

  • Animates camera properties to new values.

    Type Parameters

    • K extends string | number | symbol

    Parameters

    • properties: Map<K, AllowedAnimValue>

      defines the property values to animate to

    • transitionDuration: number = ...

      defines the transition duration in milliseconds

    • easingFn: EasingFunction = ...

      defines the easing function to use

    • OptionalupdateAnimation: (key: string, animation: Animation) => void

      defines an optional callback used to update each generated animation

    Returns Promise<void>

    a promise that resolves when the animation completes

  • Redirects any in-flight transition toward the given property values, reusing the time remaining in the current transition. No-op when nothing is currently animating.

    Type Parameters

    • K extends string | number | symbol

    Parameters

    • properties: Map<K, AllowedAnimValue>

      defines the property values to redirect toward

    Returns void

    Prefer animatePropertiesAsync(properties, remainingDurationMs), which makes the duration explicit. This method is retained for backward compatibility.