Type Alias: AnimationLoopProps
AnimationLoopProps =
object
Defined in: modules/engine/src/animation-loop/animation-loop.ts:32
AnimationLoop properties
Properties
animationFrameProvider?
optionalanimationFrameProvider?:AnimationFrameProvider
Defined in: modules/engine/src/animation-loop/animation-loop.ts:50
Experimental v10 work-in-progress frame source.
autoResizeViewport?
optionalautoResizeViewport?:boolean
Defined in: modules/engine/src/animation-loop/animation-loop.ts:48
device
device:
Device|Promise<Device>
Defined in: modules/engine/src/animation-loop/animation-loop.ts:33
mobileQuality?
optionalmobileQuality?:Readonly<Record<string,boolean|number>>
Defined in: modules/engine/src/animation-loop/animation-loop.ts:36
Optional application-provided quality settings for adaptive renderers.
onAddHTML?
optionalonAddHTML?: (div) =>string
Defined in: modules/engine/src/animation-loop/animation-loop.ts:38
Parameters
div
HTMLDivElement
Returns
string
onError?
optionalonError?: (reason) =>void
Defined in: modules/engine/src/animation-loop/animation-loop.ts:43
Parameters
reason
Error
Returns
void
onFinalize?
optionalonFinalize?: (animationProps) =>void
Defined in: modules/engine/src/animation-loop/animation-loop.ts:42
Parameters
animationProps
Returns
void
onInitialize?
optionalonInitialize?: (animationProps) =>Promise<unknown>
Defined in: modules/engine/src/animation-loop/animation-loop.ts:39
Parameters
animationProps
Returns
Promise<unknown>
onRender?
optionalonRender?: (animationProps) =>unknown
Defined in: modules/engine/src/animation-loop/animation-loop.ts:41
Encode a frame. Return false when no GPU work was encoded to skip device submission.
Parameters
animationProps
Returns
unknown
stats?
optionalstats?:Stats
Defined in: modules/engine/src/animation-loop/animation-loop.ts:45