Provides a public API for grouping multiple TJSPosition animations together and is accessible from TJSPosition.Animate.

AnimationAPI

interface AnimationGroupAPI {
    cancel(positionGroup: PositionGroup): void;
    cancelAll(): void;
    from(
        positionGroup: PositionGroup,
        fromData: TJSPositionDataRelative | GroupDataCallback,
        options?: TweenOptions | GroupTweenOptionsCallback,
    ): BasicAnimation;
    fromTo(
        positionGroup: PositionGroup,
        fromData: TJSPositionDataRelative | GroupDataCallback,
        toData: TJSPositionDataRelative | GroupDataCallback,
        options?: TweenOptions | GroupTweenOptionsCallback,
    ): BasicAnimation;
    getScheduled(
        positionGroup: PositionGroup,
    ): {
        controls: BasicAnimation[];
        entry: Positionable;
        position: TJSPosition;
    }[];
    isAnimationKey(key: unknown): key is AnimationKey;
    isScheduled(
        positionGroup: PositionGroup,
        options?: ScheduleOptions,
    ): boolean;
    quickTo(
        positionGroup: PositionGroup,
        keys: Iterable<AnimationKey, any, any>,
        options?: QuickTweenOptions | GroupQuickTweenOptionsCallback,
    ): GroupQuickToCallback;
    to(
        positionGroup: PositionGroup,
        toData: TJSPositionDataRelative | GroupDataCallback,
        options?: TweenOptions | GroupTweenOptionsCallback,
    ): BasicAnimation;
}

Methods

  • Cancels any animation for given PositionGroup data.

    Parameters

    Returns void

  • Cancels all TJSPosition animation.

    Returns void

  • Returns the status for the entire position group specified if all position instances of the group are scheduled.

    Parameters

    Returns boolean

    True if all are scheduled / false if just one position instance in the group is not scheduled.