mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 04:00:33 +08:00
Merge pull request #27864 from mayfieldiv/patch-1
three: WebGLRenderer: Rename animate() to setAnimationLoop()
This commit is contained in:
5
types/three/three-core.d.ts
vendored
5
types/three/three-core.d.ts
vendored
@@ -5658,6 +5658,11 @@ export class WebGLRenderer implements Renderer {
|
||||
* A build in function that can be used instead of requestAnimationFrame. For WebVR projects this function must be used.
|
||||
* @param callback The function will be called every available frame. If `null` is passed it will stop any already ongoing animation.
|
||||
*/
|
||||
setAnimationLoop(callback: Function): void;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link WebGLRenderer#setAnimationLoop .setAnimationLoop()} instead.
|
||||
*/
|
||||
animate(callback: Function): void;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user