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: TJSPositionDataRelative
The starting position.
Optionaloptions: TweenOptionsOptional 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: TJSPositionDataRelative
The starting position.
- toData: TJSPositionDataRelative
The ending position.
Optionaloptions: TweenOptionsOptional tween parameters.
Returns BasicAnimation
A 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: QuickTweenOptionsOptional 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: TJSPositionDataRelative
The destination position.
Optionaloptions: TweenOptionsOptional 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.