Download node_modules/three/src/renderers/webgl/WebGLProperties.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/renderers/webgl/WebGLProperties.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/renderers/webgl/WebGLProperties.js
-
curl -L -o WebGLProperties.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/renderers/webgl/WebGLProperties.js
560 Bytes
| function WebGLProperties() { | |
| let properties = new WeakMap(); | |
| function get( object ) { | |
| let map = properties.get( object ); | |
| if ( map === undefined ) { | |
| map = {}; | |
| properties.set( object, map ); | |
| } | |
| return map; | |
| } | |
| function remove( object ) { | |
| properties.delete( object ); | |
| } | |
| function update( object, key, value ) { | |
| properties.get( object )[ key ] = value; | |
| } | |
| function dispose() { | |
| properties = new WeakMap(); | |
| } | |
| return { | |
| get: get, | |
| remove: remove, | |
| update: update, | |
| dispose: dispose | |
| }; | |
| } | |
| export { WebGLProperties }; | |