API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTweenSystem
Owns and advances a collection of Tween instances, driving them once per frame from Application.update. A tween enters the update list when Tween.start is called and leaves it again on completion or Tween.stop, so the system only ever holds tweens that are running or paused - regardless of whether it was created here or handed over via TweenSystem.add. Custom updatables (such as TweenSequencer) can be registered via TweenSystem.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.
import { TweenSystem } from '@codexo/exojs'Owns and advances a collection of Tween instances, driving them once per frame from Application.update. A tween enters the update list when Tween.start is called and leaves it again on completion or Tween.stop, so the system only ever holds tweens that are running or paused - regardless of whether it was created here or handed over via TweenSystem.add.
Custom updatables (such as TweenSequencer) can be registered via TweenSystem.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.
new(): TweenSystemaddTicker(ticker: TickerAny object that can be driven each frame by a delta in seconds.): thisclear(): thisdestroy(): voidremoveTicker(ticker: TickerAny object that can be driven each frame by a delta in seconds.): thissequence(tweens: readonly TweenAnimates numeric properties of `target` from their current value to a configured end value over a duration in seconds. Supports easing, delay, repeat (with opt…<object>[]): TweenAnimates numeric properties of `target` from their current value to a configured end value over a duration in seconds. Supports easing, delay, repeat (with opt…