Documentation / Update / getUpdateLayer
getUpdateLayer()
ts
function getUpdateLayer<Animating>(queueNextUpdate): UpdateLayer<Animating>;Defined in: ../../extensions/src/update.ts:130
Updates the animation every frame, providing a subscribe function which allows listening to:
- start - when the animation starts to be updated,
- done - when the animation finishes animating everything
- update - each update frame
Type Parameters
Animating
Animating extends Animatable<unknown>
Parameters
queueNextUpdate
(callback) => void
Returns
UpdateLayer<Animating>