Download node_modules/three/src/textures/DataTexture.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/textures/DataTexture.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/textures/DataTexture.js
-
curl -L -o DataTexture.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/textures/DataTexture.js
603 Bytes
| import { Texture } from './Texture.js'; | |
| import { NearestFilter } from '../constants.js'; | |
| class DataTexture extends Texture { | |
| constructor( data = null, width = 1, height = 1, format, type, mapping, wrapS, wrapT, magFilter = NearestFilter, minFilter = NearestFilter, anisotropy, colorSpace ) { | |
| super( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace ); | |
| this.isDataTexture = true; | |
| this.image = { data: data, width: width, height: height }; | |
| this.generateMipmaps = false; | |
| this.flipY = false; | |
| this.unpackAlignment = 1; | |
| } | |
| } | |
| export { DataTexture }; | |