@aninest/extensions / Update
Update
Updates the animation every screen refresh, providing a subscribe function which allows listening to:
- start - when the animation starts to be updated,
- stop - when the animation finishes animating everything
- update - each update frame It will only update the animation when necessary, i.e. when the animation has been started and there are still things to animate.
Index
Type Aliases
Type alias | Description |
---|---|
UpdateLayer | An update layer that can be mounted to an animation. Allows listening to: - start - when the animation starts to be updated, - stop - when the animation finishes animating everything - update - each update frame |
Functions
Function | Description |
---|---|
getUpdateLayer | Updates the animation every frame, providing a subscribe function which allows listening to: - start - when the animation starts to be updated, - stop - when the animation finishes animating everything - update - each update frame |