@xviewer.js/core 1.0.4-alpha.1 → 1.0.4-alpha.2

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/main.cjs CHANGED
@@ -459,11 +459,11 @@ class SVGLoader extends Loader {
459
459
  SVGLoader.Primitive = SVGLoader_js.SVGLoader;
460
460
 
461
461
  class KTX2Loader extends Loader {
462
- load({ url, path, resourcePath, manager, texSettings, onLoad, onProgress, onError }) {
462
+ load({ url, path, resourcePath, transcoderPath, manager, texSettings, onLoad, onProgress, onError }) {
463
463
  let loader = this._loader;
464
464
  if (loader === undefined) {
465
465
  loader = this._loader = new KTX2Loader$1.KTX2Loader();
466
- loader.setTranscoderPath("three/examples/js/libs/basis/");
466
+ loader.setTranscoderPath(transcoderPath);
467
467
  loader.detectSupport(this.viewer.renderer);
468
468
  }
469
469
  loader.manager = manager;
@@ -5011,7 +5011,7 @@ class Viewer extends EventEmitter {
5011
5011
  near: 0.1,
5012
5012
  far: 1000,
5013
5013
  position: new THREE.Vector3(0, 0, 4)
5014
- }, targetFrameRate = -1, fixedFrameTime = false, colorSpace = THREE.SRGBColorSpace, toneMapping = THREE.LinearToneMapping, toneMappingExposure = 1, maxDPR = 1.5, path = "", resourcePath = "", dracoPath = "https://www.gstatic.com/draco/v1/decoders/", orientation = Orientation.AUTO, loader = {}, tasker = {}, ...webglOpts } = {}){
5014
+ }, targetFrameRate = -1, fixedFrameTime = false, colorSpace = THREE.SRGBColorSpace, toneMapping = THREE.LinearToneMapping, toneMappingExposure = 1, maxDPR = 1.5, path = "", resourcePath = "", dracoPath = "https://www.gstatic.com/draco/v1/decoders/", transcoderPath = "three/examples/js/libs/basis/", orientation = Orientation.AUTO, loader = {}, tasker = {}, ...webglOpts } = {}){
5015
5015
  super(), this._instanceId = Viewer.instanceCount++, this._dpr = 1, this._width = 1, this._height = 1, this._viewport = {
5016
5016
  width: 1,
5017
5017
  height: 1,
@@ -5069,6 +5069,7 @@ class Viewer extends EventEmitter {
5069
5069
  path,
5070
5070
  resourcePath,
5071
5071
  dracoPath,
5072
+ transcoderPath,
5072
5073
  manager: this._loadingManager
5073
5074
  };
5074
5075
  this._mount = applyProps(new THREE.Object3D(), {