Skip to main content

Type Alias: MakeAnimationLoopProps

MakeAnimationLoopProps = Omit<AnimationLoopProps, "onCreateDevice" | "onInitialize" | "onRedraw" | "onFinalize"> & object

Defined in: modules/engine/src/animation-loop/make-animation-loop.ts:11

Props accepted while constructing an animation loop from a template.

Type Declaration​

adapters?​

optional adapters?: Adapter[]

List of adapters to use when creating the device

onAfterRender?​

optional onAfterRender?: (animationProps, animationLoopTemplate) => unknown

Runs after the template has encoded its frame and before the animation loop submits it.

Parameters​

animationProps​

AnimationProps

animationLoopTemplate​

AnimationLoopTemplate | null

Returns​

unknown