bruce-cesium 3.7.7 → 3.7.8

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.
@@ -10310,12 +10310,12 @@
10310
10310
  * @returns
10311
10311
  */
10312
10312
  Manager.prototype.renderAsIndividuals = function (entities, force) {
10313
- var _a, _b, _c, _d, _e, _f;
10313
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
10314
10314
  if (force === void 0) { force = false; }
10315
10315
  return __awaiter(this, void 0, void 0, function () {
10316
- var toRemove, i, entity, _g, updated, cEntities, i, entity, id, cEntity, rego, visual, wasClustered, tagIds, rego_1;
10317
- return __generator(this, function (_h) {
10318
- switch (_h.label) {
10316
+ var toRemove, i, entity, _k, updated, cEntities, i, entity, id, cEntity, rego, visual, wasClustered, tagIds, rego_1;
10317
+ return __generator(this, function (_l) {
10318
+ switch (_l.label) {
10319
10319
  case 0:
10320
10320
  if ((_a = this.item.BruceEntity) === null || _a === void 0 ? void 0 : _a.historicAttrKey) {
10321
10321
  toRemove = entities.filter(function (x) { var _a; return !((_a = x.Bruce) === null || _a === void 0 ? void 0 : _a.historicAttrKey); });
@@ -10340,7 +10340,7 @@
10340
10340
  force: force
10341
10341
  })];
10342
10342
  case 1:
10343
- _g = _h.sent(), updated = _g.updated, cEntities = _g.entities;
10343
+ _k = _l.sent(), updated = _k.updated, cEntities = _k.entities;
10344
10344
  if (this.disposed) {
10345
10345
  this.doDispose();
10346
10346
  return [2 /*return*/];
@@ -10378,7 +10378,14 @@
10378
10378
  requestRender: false
10379
10379
  });
10380
10380
  }
10381
- else if (updated.get(id)) {
10381
+ else if (updated.get(id) && rego) {
10382
+ rego.name = cEntity.name;
10383
+ rego.visual = cEntity;
10384
+ rego.entityTypeId = entity.Bruce["EntityType.ID"];
10385
+ rego.tagIds = ((_f = entity.Bruce) === null || _f === void 0 ? void 0 : _f["Layer.ID"]) ? [].concat(entity.Bruce["Layer.ID"]) : [];
10386
+ rego.historicDateTime = (_g = entity.Bruce) === null || _g === void 0 ? void 0 : _g.historicDateTime;
10387
+ rego.historicAttrKey = (_h = entity.Bruce) === null || _h === void 0 ? void 0 : _h.historicAttrKey;
10388
+ rego.cdn = this.item.cdnEnabled;
10382
10389
  // We manually trigger an update event since the graphic was updated but not recreated.
10383
10390
  this.visualsManager.OnUpdate.Trigger({
10384
10391
  type: exports.VisualsRegister.EVisualUpdateType.Update,
@@ -10393,7 +10400,7 @@
10393
10400
  menuItemId: this.item.id,
10394
10401
  requestRender: false
10395
10402
  });
10396
- (_f = this.clustering) === null || _f === void 0 ? void 0 : _f.RemoveEntity(id, false);
10403
+ (_j = this.clustering) === null || _j === void 0 ? void 0 : _j.RemoveEntity(id, false);
10397
10404
  }
10398
10405
  }
10399
10406
  this.viewer.scene.requestRender();
@@ -11198,7 +11205,10 @@
11198
11205
  requestRender: false
11199
11206
  });
11200
11207
  }
11201
- else if (updated.get(id)) {
11208
+ else if (updated.get(id) && rego) {
11209
+ rego.visual = cEntity;
11210
+ rego.entityTypeId = entity.Bruce["EntityType.ID"];
11211
+ rego.name = cEntity.name;
11202
11212
  // We manually trigger an update event since the graphic was updated but not recreated.
11203
11213
  this.visualsManager.OnUpdate.Trigger({
11204
11214
  type: exports.VisualsRegister.EVisualUpdateType.Update,
@@ -11802,7 +11812,10 @@
11802
11812
  requestRender: false
11803
11813
  });
11804
11814
  }
11805
- else if (updated.get(id)) {
11815
+ else if (updated.get(id) && rego) {
11816
+ rego.visual = cEntity;
11817
+ rego.entityTypeId = entity.Bruce["EntityType.ID"];
11818
+ rego.name = cEntity.name;
11806
11819
  // We manually trigger an update event since the graphic was updated but not recreated.
11807
11820
  this.visualsManager.OnUpdate.Trigger({
11808
11821
  type: exports.VisualsRegister.EVisualUpdateType.Update,
@@ -12012,7 +12025,10 @@
12012
12025
  requestRender: false
12013
12026
  });
12014
12027
  }
12015
- else if (updated.get(id)) {
12028
+ else if (updated.get(id) && rego) {
12029
+ rego.visual = cEntity;
12030
+ rego.entityTypeId = entity.Bruce["EntityType.ID"];
12031
+ rego.name = cEntity.name;
12016
12032
  // We manually trigger an update event since the graphic was updated but not recreated.
12017
12033
  this.visualsManager.OnUpdate.Trigger({
12018
12034
  type: exports.VisualsRegister.EVisualUpdateType.Update,
@@ -23432,7 +23448,7 @@
23432
23448
  ViewRenderEngine.Render = Render;
23433
23449
  })(exports.ViewRenderEngine || (exports.ViewRenderEngine = {}));
23434
23450
 
23435
- var VERSION = "3.7.7";
23451
+ var VERSION = "3.7.8";
23436
23452
 
23437
23453
  exports.VERSION = VERSION;
23438
23454
  exports.CesiumParabola = CesiumParabola;