@hkdigital/lib-core 0.4.73 → 0.4.75

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.
@@ -114,7 +114,9 @@ export default class SceneBase {
114
114
  if (this.state === STATE_LOADING) {
115
115
  const { sourcesLoaded, numberOfSources } = this.progress;
116
116
 
117
- if (sourcesLoaded === numberOfSources && numberOfSources > 0) {
117
+ console.debug( 'SceneBase:check-for-loaded', {sourcesLoaded, numberOfSources} );
118
+
119
+ if (sourcesLoaded === numberOfSources) {
118
120
  this.#state.send(LOADED);
119
121
  }
120
122
  }
@@ -101,6 +101,7 @@ export default class NetworkLoader {
101
101
  this._url = url;
102
102
 
103
103
  this.#state.onenter = (currentState) => {
104
+ console.debug(`loader:onenter [${this._url}] ${currentState}`);
104
105
  this.state = currentState;
105
106
 
106
107
  switch (currentState) {
@@ -326,6 +327,7 @@ export default class NetworkLoader {
326
327
  // this._size = this._buffer.byteLength;
327
328
  // }
328
329
 
330
+ console.debug(`loader:sending-LOADED [${this._url}]`);
329
331
  this.#state.send(LOADED);
330
332
  } catch (e) {
331
333
  this.#state.send(ERROR, e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-core",
3
- "version": "0.4.73",
3
+ "version": "0.4.75",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"