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