Interface Animation
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>,
options?: QuickTweenOptions,
): QuickToCallback;
to(toData: TJSPositionDataRelative, options?: TweenOptions): BasicAnimation;
}
Index
Accessors
Methods
Methods
cancel
- Cancels all animation instances for this TJSPosition instance. - Returns void
from
- Provides a tween from given position data to the current position. - Parameters- fromData: TJSPositionDataRelativeThe starting position. 
- Optionaloptions: TweenOptions- Optional tween parameters. 
 - Returns BasicAnimation- A control object that can cancel animation and provides a - finishedPromise.
- fromData: TJSPositionDataRelative
fromTo 
- fromTo(
 fromData: TJSPositionDataRelative,
 toData: TJSPositionDataRelative,
 options?: TweenOptions,
 ): BasicAnimationProvides a tween from given position data to the given position. Parameters- fromData: TJSPositionDataRelativeThe starting position. 
- toData: TJSPositionDataRelativeThe ending position. 
- Optionaloptions: TweenOptions- Optional tween parameters. 
 Returns BasicAnimationA control object that can cancel animation and provides a finishedPromise.
- fromData: TJSPositionDataRelative
getScheduled 
- Returns all currently scheduled AnimationControl instances for this TJSPosition instance. - Returns BasicAnimation[]- All currently scheduled animation controls for this TJSPosition instance. 
quickTo 
- Returns a function that provides an optimized way to constantly update a to-tween. - Parameters- keys: Iterable<AnimationKey>The keys for quickTo. 
- Optionaloptions: QuickTweenOptions- Optional quick tween parameters. 
 - Returns QuickToCallback- quick-to tween function. 
- keys: Iterable<AnimationKey>
to
- Provides a tween to given position data from the current position. - Parameters- toData: TJSPositionDataRelativeThe destination position. 
- Optionaloptions: TweenOptions- Optional tween parameters. 
 - Returns BasicAnimation- A control object that can cancel animation and provides a - finishedPromise.
- toData: TJSPositionDataRelative
Returns if there are scheduled animations whether active or pending for this TJSPosition instance.