Buckets:
| ; | |
| Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); | |
| const THREE = require("three"); | |
| const GLTFLoader = require("./GLTFLoader.cjs"); | |
| class VRMLoader extends THREE.Loader { | |
| constructor(manager) { | |
| super(manager); | |
| this.gltfLoader = new GLTFLoader.GLTFLoader(manager); | |
| } | |
| load(url, onLoad, onProgress, onError) { | |
| const scope = this; | |
| this.gltfLoader.load( | |
| url, | |
| function(gltf) { | |
| try { | |
| scope.parse(gltf, onLoad); | |
| } catch (e) { | |
| if (onError) { | |
| onError(e); | |
| } else { | |
| console.error(e); | |
| } | |
| scope.manager.itemError(url); | |
| } | |
| }, | |
| onProgress, | |
| onError | |
| ); | |
| } | |
| setDRACOLoader(dracoLoader) { | |
| this.gltfLoader.setDRACOLoader(dracoLoader); | |
| return this; | |
| } | |
| parse(gltf, onLoad) { | |
| onLoad(gltf); | |
| } | |
| } | |
| exports.VRMLoader = VRMLoader; | |
| //# sourceMappingURL=VRMLoader.cjs.map | |
Xet Storage Details
- Size:
- 945 Bytes
- Xet hash:
- 17fc0f10703d5b6e0d30547d11ffff3b243d28bcf1daadb20616b712584272fc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.