lythreeframe 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -854,7 +854,7 @@ class LYAssetManager {
854
854
  this.assetPointer = new Map();
855
855
  this.loadingManager = new three.LoadingManager();
856
856
  this.dracoLoader = new Addons_js.DRACOLoader(this.loadingManager);
857
- this.dracoLoader.setDecoderPath(`/public/draco/`);
857
+ this.dracoLoader.setDecoderPath(`./public/draco/`);
858
858
  this.dracoLoader.setDecoderConfig({ type: "js" });
859
859
  this.dracoLoader.preload();
860
860
  this.gltfLoader = new Addons_js.GLTFLoader(this.loadingManager);
@@ -852,7 +852,7 @@ class LYAssetManager {
852
852
  this.assetPointer = new Map();
853
853
  this.loadingManager = new LoadingManager();
854
854
  this.dracoLoader = new DRACOLoader(this.loadingManager);
855
- this.dracoLoader.setDecoderPath(`/public/draco/`);
855
+ this.dracoLoader.setDecoderPath(`./public/draco/`);
856
856
  this.dracoLoader.setDecoderConfig({ type: "js" });
857
857
  this.dracoLoader.preload();
858
858
  this.gltfLoader = new GLTFLoader(this.loadingManager);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",