bruce-cesium 6.8.2 → 6.8.4

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.
@@ -10675,6 +10675,7 @@
10675
10675
  if ((_a = payload.renderQueue) === null || _a === void 0 ? void 0 : _a.length) {
10676
10676
  this.distributeForRender(payload.renderQueue);
10677
10677
  }
10678
+ this.doEntityCheck(Object.keys(this.renderedEntities));
10678
10679
  this.viewer.scene.requestRender();
10679
10680
  }
10680
10681
  }
@@ -14505,7 +14506,7 @@
14505
14506
  }
14506
14507
  // Returns null (fall back to a normal Dispose()) if the tileset hasn't finished loading yet.
14507
14508
  PrepareHandoff() {
14508
- var _a, _b;
14509
+ var _a, _b, _c;
14509
14510
  if (this.disposed || !this.cTileset || this.cTileset.isDestroyed()) {
14510
14511
  return null;
14511
14512
  }
@@ -14523,8 +14524,9 @@
14523
14524
  }
14524
14525
  // Not transferred, the receiving manager sets up its own fresh copy if needed.
14525
14526
  this.viewerDateTimeDispose();
14526
- (_a = this.tileLoadRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
14527
- (_b = this.tileUnloadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
14527
+ (_a = this.styler) === null || _a === void 0 ? void 0 : _a.Dispose();
14528
+ (_b = this.tileLoadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
14529
+ (_c = this.tileUnloadRemoval) === null || _c === void 0 ? void 0 : _c.call(this);
14528
14530
  this.tileLoadRemoval = null;
14529
14531
  this.tileUnloadRemoval = null;
14530
14532
  const payload = {
@@ -17090,6 +17092,7 @@
17090
17092
  if ((_a = payload.renderQueue) === null || _a === void 0 ? void 0 : _a.length) {
17091
17093
  this.distributeForRender(payload.renderQueue);
17092
17094
  }
17095
+ this.doEntityCheck(Object.keys(this.renderedEntities));
17093
17096
  this.viewer.scene.requestRender();
17094
17097
  }
17095
17098
  }
@@ -17912,6 +17915,14 @@
17912
17915
  this._osmIdToBruceId = payload.osmIdToBruceId;
17913
17916
  this.totalLoaded = payload.totalLoaded;
17914
17917
  if (this.sourceId) {
17918
+ if (this.item.ghostLoading == true) {
17919
+ this.cTileset.style = new Cesium.Cesium3DTileStyle({
17920
+ color: "rgba(255, 255, 250, 0.98)"
17921
+ });
17922
+ }
17923
+ else {
17924
+ this.cTileset.style = undefined;
17925
+ }
17915
17926
  this.visualsManager.ReassignMenuItem({
17916
17927
  fromMenuItemId: payload.sourceMenuItemId,
17917
17928
  toMenuItemId: this.item.id,
@@ -18309,7 +18320,7 @@
18309
18320
  }
18310
18321
  // Returns null (fall back to a normal Dispose()) if the tileset hasn't finished loading yet.
18311
18322
  PrepareHandoff() {
18312
- var _a, _b;
18323
+ var _a, _b, _c;
18313
18324
  if (this.disposed || !this.cTileset || this.cTileset.isDestroyed()) {
18314
18325
  return null;
18315
18326
  }
@@ -18325,8 +18336,9 @@
18325
18336
  clearInterval(this.handoffRestyleInterval);
18326
18337
  this.handoffRestyleInterval = null;
18327
18338
  }
18328
- (_a = this.tileLoadRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
18329
- (_b = this.tileUnloadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
18339
+ (_a = this.styler) === null || _a === void 0 ? void 0 : _a.Dispose();
18340
+ (_b = this.tileLoadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
18341
+ (_c = this.tileUnloadRemoval) === null || _c === void 0 ? void 0 : _c.call(this);
18330
18342
  this.tileLoadRemoval = null;
18331
18343
  this.tileUnloadRemoval = null;
18332
18344
  const payload = {
@@ -37434,7 +37446,7 @@
37434
37446
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
37435
37447
  })(exports.StyleUtils || (exports.StyleUtils = {}));
37436
37448
 
37437
- const VERSION = "6.8.2";
37449
+ const VERSION = "6.8.4";
37438
37450
  /**
37439
37451
  * Updates the environment instance used by bruce-cesium to one specified.
37440
37452
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.