()
| 2864 | } |
| 2865 | |
| 2866 | handleResize() { |
| 2867 | const width = window.innerWidth; |
| 2868 | const height = window.innerHeight; |
| 2869 | this.renderer.setSize(width, height); |
| 2870 | this.camera.aspect = width / height; |
| 2871 | this.camera.updateProjectionMatrix(); |
| 2872 | if (typeof this.requestRender === "function") { |
| 2873 | this.requestRender(); |
| 2874 | } |
| 2875 | } |
| 2876 | |
| 2877 | animate() { |
| 2878 | this.renderRequested = false; |