Skip to content

MotionRegistry

Defined in: animation/motion.ts:184

The drivers one App knows. Per App and not global because a driver reaches live per-App state (the timeline’s player flags, spine’s manager), which a second App in the same process must not share.

new MotionRegistry(): MotionRegistry

MotionRegistry

context(world, entity, params): MotionContext

Defined in: animation/motion.ts:208

The context for driving entity this tick, REUSED across entities: the alternative is an object and three closures per animated entity per frame. A driver must not keep it — it describes only the call it was handed to.

World

number

MotionParams

MotionContext


driverFor(motion): MotionDriver<AnimatorMotion> | undefined

Defined in: animation/motion.ts:199

AnimatorMotion

MotionDriver<AnimatorMotion> | undefined


has(kind): boolean

Defined in: animation/motion.ts:195

string

boolean


register<M>(kind, driver): void

Defined in: animation/motion.ts:187

M extends AnimatorMotion

M["kind"]

MotionDriver<M>

void


unregister(kind): void

Defined in: animation/motion.ts:191

string

void