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

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

    Returns BasicAnimation[]

    All currently scheduled animation controls for this TJSPosition instance.