Download node_modules/three/src/textures/CanvasTexture.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/textures/CanvasTexture.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/textures/CanvasTexture.js
-
curl -L -o CanvasTexture.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/textures/CanvasTexture.js
361 Bytes
| import { Texture } from './Texture.js'; | |
| class CanvasTexture extends Texture { | |
| constructor( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { | |
| super( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ); | |
| this.isCanvasTexture = true; | |
| this.needsUpdate = true; | |
| } | |
| } | |
| export { CanvasTexture }; | |