MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / handleResize

Method handleResize

assets/main.js:2866–2875  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

initThreeSceneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected