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. Custom updatables (such as TweenSequencer) can be registered via TweenManager.addTicker so they share the same frame tick. 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
10
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.

Custom updatables (such as TweenSequencer) can be registered via TweenManager.addTicker so they share the same frame tick.

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 10
add(tween: Tween): this
addTicker(ticker: Ticker): this
clear(): this
create(target: T): Tween<T>
createSequencer(): TweenSequencer
destroy(): void
remove(tween: Tween): this
removeTicker(ticker: Ticker): this
sequence(tweens: readonly Tween<object>[]): Tween
update(delta: Time): void
Source