@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/module.js CHANGED
@@ -439,11 +439,11 @@ class SVGLoader extends Loader {
439
439
  SVGLoader.Primitive = SVGLoader$1;
440
440
 
441
441
  class KTX2Loader extends Loader {
442
- load({ url, path, resourcePath, manager, texSettings, onLoad, onProgress, onError }) {
442
+ load({ url, path, resourcePath, transcoderPath, manager, texSettings, onLoad, onProgress, onError }) {
443
443
  let loader = this._loader;
444
444
  if (loader === undefined) {
445
445
  loader = this._loader = new KTX2Loader$1();
446
- loader.setTranscoderPath("three/examples/js/libs/basis/");
446
+ loader.setTranscoderPath(transcoderPath);
447
447
  loader.detectSupport(this.viewer.renderer);
448
448
  }
449
449
  loader.manager = manager;
@@ -4991,7 +4991,7 @@ class Viewer extends EventEmitter {
4991
4991
  near: 0.1,
4992
4992
  far: 1000,
4993
4993
  position: new Vector3(0, 0, 4)
4994
- }, targetFrameRate = -1, fixedFrameTime = false, colorSpace = SRGBColorSpace, toneMapping = LinearToneMapping, toneMappingExposure = 1, maxDPR = 1.5, path = "", resourcePath = "", dracoPath = "https://www.gstatic.com/draco/v1/decoders/", orientation = Orientation.AUTO, loader = {}, tasker = {}, ...webglOpts } = {}){
4994
+ }, targetFrameRate = -1, fixedFrameTime = false, colorSpace = SRGBColorSpace, toneMapping = 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 } = {}){
4995
4995
  super(), this._instanceId = Viewer.instanceCount++, this._dpr = 1, this._width = 1, this._height = 1, this._viewport = {
4996
4996
  width: 1,
4997
4997
  height: 1,
@@ -5049,6 +5049,7 @@ class Viewer extends EventEmitter {
5049
5049
  path,
5050
5050
  resourcePath,
5051
5051
  dracoPath,
5052
+ transcoderPath,
5052
5053
  manager: this._loadingManager
5053
5054
  };
5054
5055
  this._mount = applyProps(new Object3D(), {