API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classTweenManager

@codexo/exojs / animation / stable

Owns and advances a collection of Tween instances, driving them once per frame from Application.update. Created tweens are tracked automatically; manually constructed tweens can be opted in via TweenManager.add. Update iteration uses a snapshot so callbacks may freely add or remove tweens during the same frame without corrupting the loop. Completed and stopped tweens are evicted automatically.

0
props
7
methods
0
events
Import
import { TweenManager } from '@codexo/exojs'

Owns and advances a collection of Tween instances, driving them once per frame from Application.update. Created tweens are tracked automatically; manually constructed tweens can be opted in via TweenManager.add.

Update iteration uses a snapshot so callbacks may freely add or remove tweens during the same frame without corrupting the loop. Completed and stopped tweens are evicted automatically.

Constructors 1
new(): TweenManager
Methods 7
add(tween: Tween): this
clear(): this
create(target: T): Tween<T>
destroy(): void
remove(tween: Tween): this
sequence(tweens: readonly Tween<object>[]): Tween
update(deltaSeconds: number): void
Source