Download node_modules/three/src/loaders/Cache.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/loaders/Cache.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/loaders/Cache.js
-
curl -L -o Cache.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/loaders/Cache.js
503 Bytes
| const Cache = { | |
| enabled: false, | |
| files: {}, | |
| add: function ( key, file ) { | |
| if ( this.enabled === false ) return; | |
| // console.log( 'THREE.Cache', 'Adding key:', key ); | |
| this.files[ key ] = file; | |
| }, | |
| get: function ( key ) { | |
| if ( this.enabled === false ) return; | |
| // console.log( 'THREE.Cache', 'Checking key:', key ); | |
| return this.files[ key ]; | |
| }, | |
| remove: function ( key ) { | |
| delete this.files[ key ]; | |
| }, | |
| clear: function () { | |
| this.files = {}; | |
| } | |
| }; | |
| export { Cache }; | |