Skip to content

AnimationFrame

Defined in: packages/three-flatland/src/animation/types.ts:6

A single frame in an animation sequence.

optional data?: Record<string, unknown>

Defined in: packages/three-flatland/src/animation/types.ts:14

Custom data attached to this frame


optional duration?: number

Defined in: packages/three-flatland/src/animation/types.ts:10

Duration of this frame in milliseconds (overrides animation fps)


optional event?: string

Defined in: packages/three-flatland/src/animation/types.ts:12

Event to fire when this frame is reached


frame: SpriteFrame

Defined in: packages/three-flatland/src/animation/types.ts:8

Reference to the sprite frame