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, options?): 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
- from
To (fromData, toData, options?): 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
- get
Scheduled (): BasicAnimation[] Returns all currently scheduled AnimationControl instances for this TJSPosition instance.
Returns BasicAnimation[]
All currently scheduled animation controls for this TJSPosition instance.
quickTo
- quick
To (keys, options?): 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, options?): 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.