@xviewer.js/core 1.0.0-alpha.14 → 1.0.0-alpha.15

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.
package/dist/module.js CHANGED
@@ -2903,7 +2903,7 @@ class ResourceManager {
2903
2903
  onError: reject
2904
2904
  });
2905
2905
  } else {
2906
- reject("missing loader for " + ext);
2906
+ reject("ResourceManager.loadAsset: missing loader for " + ext);
2907
2907
  }
2908
2908
  }
2909
2909
  });
@@ -3124,6 +3124,7 @@ class Viewer extends EventEmitter {
3124
3124
  this.addLoader(aGLTFLoader);
3125
3125
  this.addLoader(aHDRLoader);
3126
3126
  this.addLoader(aTextureLoader);
3127
+ this.addLoader(aJSONLoader);
3127
3128
  }
3128
3129
  _frame(time) {
3129
3130
  this._time = time;
@@ -3331,7 +3332,7 @@ class Viewer extends EventEmitter {
3331
3332
  parent.add(node);
3332
3333
  this._componentManager.addComponent(node, ins);
3333
3334
  } else {
3334
- throw Error("unsuport object");
3335
+ throw Error("Viewer.addNode: unsuport object");
3335
3336
  }
3336
3337
  if (component) {
3337
3338
  const components = Array.isArray(component) ? component : [
@@ -3420,7 +3421,7 @@ class Viewer extends EventEmitter {
3420
3421
  if (target.every((v)=>v.isMaterial)) {
3421
3422
  Viewer.CompileMaterial(this._renderer, this._scene, this._camera, target);
3422
3423
  } else {
3423
- throw Error("unsuport material");
3424
+ throw Error("Viewer.compile: unsuport material");
3424
3425
  }
3425
3426
  } else if (typeof target === "object") {
3426
3427
  if (target.isMaterial) {