@xviewer.js/core 1.0.4-alpha.4 → 1.0.4-alpha.6
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 +7 -18
- package/dist/main.cjs.map +1 -1
- package/dist/module.js +6 -17
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -8,7 +8,7 @@ var meshopt_decoder_module_js = require('three/examples/jsm/libs/meshopt_decoder
|
|
|
8
8
|
var THREE = require('three');
|
|
9
9
|
var RGBELoader_js = require('three/examples/jsm/loaders/RGBELoader.js');
|
|
10
10
|
var SVGLoader_js = require('three/examples/jsm/loaders/SVGLoader.js');
|
|
11
|
-
var
|
|
11
|
+
var KTX2Loader_js = require('three/examples/jsm/loaders/KTX2Loader.js');
|
|
12
12
|
var Addons_js = require('three/examples/jsm/Addons.js');
|
|
13
13
|
|
|
14
14
|
function _interopNamespaceDefault(e) {
|
|
@@ -448,7 +448,7 @@ class KTX2Loader extends Loader {
|
|
|
448
448
|
load({ url, path, resourcePath, transcoderPath, manager, texSettings, onLoad, onProgress, onError }) {
|
|
449
449
|
let loader = this._loader;
|
|
450
450
|
if (loader === undefined) {
|
|
451
|
-
loader = this._loader = new
|
|
451
|
+
loader = this._loader = new KTX2Loader_js.KTX2Loader();
|
|
452
452
|
loader.setTranscoderPath(transcoderPath);
|
|
453
453
|
loader.detectSupport(this.viewer.renderer);
|
|
454
454
|
}
|
|
@@ -2272,22 +2272,11 @@ class ComponentScheduler {
|
|
|
2272
2272
|
}
|
|
2273
2273
|
}
|
|
2274
2274
|
constructor(){
|
|
2275
|
-
this.startInvoker = new InvokerOneCall((comp)=>
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
this.
|
|
2280
|
-
!comp.start && comp.update(dt);
|
|
2281
|
-
});
|
|
2282
|
-
this.lastUpdateInvoker = new Invoker((comp, dt)=>{
|
|
2283
|
-
!comp.start && comp.lastUpdate(dt);
|
|
2284
|
-
});
|
|
2285
|
-
this.renderInvoker = new Invoker((comp, dt)=>{
|
|
2286
|
-
!comp.start && comp.render(dt);
|
|
2287
|
-
});
|
|
2288
|
-
this.resizeInvoker = new Invoker((comp, width, height)=>{
|
|
2289
|
-
!comp.start && comp.resize(width, height);
|
|
2290
|
-
});
|
|
2275
|
+
this.startInvoker = new InvokerOneCall((comp)=>comp.start());
|
|
2276
|
+
this.updateInvoker = new Invoker((comp, dt)=>comp.update(dt));
|
|
2277
|
+
this.lastUpdateInvoker = new Invoker((comp, dt)=>comp.lastUpdate(dt));
|
|
2278
|
+
this.renderInvoker = new Invoker((comp, dt)=>comp.render(dt));
|
|
2279
|
+
this.resizeInvoker = new Invoker((comp, width, height)=>comp.resize(width, height));
|
|
2291
2280
|
}
|
|
2292
2281
|
}
|
|
2293
2282
|
|