interface AnimationAPI {
    get isScheduled(): boolean;
    cancel(): void;
    from(fromData: TJSPositionDataRelative, options?: TweenOptions): BasicAnimation;
    fromTo(fromData: TJSPositionDataRelative, toData: TJSPositionDataRelative, options?: TweenOptions): BasicAnimation;
    getScheduled(): BasicAnimation[];
    quickTo(keys: Iterable<AnimationKey, any, any>, options?: QuickTweenOptions): QuickToCallback;
    to(toData: TJSPositionDataRelative, options?: TweenOptions): BasicAnimation;
}

Accessors

  • get isScheduled(): boolean
  • Returns if there are scheduled animations whether active or pending for this TJSPosition instance.

    Returns boolean

    Are there scheduled animations.

Methods

  • Cancels all animation instances for this TJSPosition instance.

    Returns void

  • Provides a tween from given position data to the current position.

    Parameters

    Returns BasicAnimation

    A control object that can cancel animation and provides a finished Promise.

  • Returns all currently scheduled AnimationControl instances for this TJSPosition instance.

    Returns BasicAnimation[]

    All currently scheduled animation controls for this TJSPosition instance.

  • Provides a tween to given position data from the current position.

    Parameters

    Returns BasicAnimation

    A control object that can cancel animation and provides a finished Promise.