bruce-cesium 6.0.0 → 6.0.1

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.
@@ -10715,21 +10715,20 @@
10715
10715
  CesiumAnimatedInOut.AnimateOut = AnimateOut;
10716
10716
  })(exports.CesiumAnimatedInOut || (exports.CesiumAnimatedInOut = {}));
10717
10717
 
10718
- // Constants for update source types
10719
- const UPDATE_SOURCES = {
10720
- TREE_CASCADE: "tree-cascade",
10721
- TILESET_DISPOSE: "tileset-dispose",
10722
- OSM_TILESET_DISPOSE: "osm-tileset-dispose",
10723
- ADD_REGO_REPLACE: "add-rego-replace",
10724
- ENTITIES_LOADED_REMOVE: "entities-loaded-remove",
10725
- ENTITIES_LOADED_CLEAR: "entities-loaded-clear",
10726
- ENTITIES_LOADED_DISPOSE: "entities-loaded-dispose",
10727
- ENTITIES_TAG_FILTER: "entities-tag-filter",
10728
- ENTITIES_DISABLED: "entities-disabled",
10729
- ENTITIES_DISPOSE: "entities-dispose",
10730
- RELATIONS_FILTER: "relations-filter",
10731
- RELATIONS_DISPOSE: "relations-dispose" // Triggered when relations render manager is disposed.
10732
- };
10718
+ (function (UpdateSource) {
10719
+ UpdateSource["TREE_CASCADE"] = "tree-cascade";
10720
+ UpdateSource["TILESET_DISPOSE"] = "tileset-dispose";
10721
+ UpdateSource["OSM_TILESET_DISPOSE"] = "osm-tileset-dispose";
10722
+ UpdateSource["ADD_REGO_REPLACE"] = "add-rego-replace";
10723
+ UpdateSource["ENTITIES_LOADED_REMOVE"] = "entities-loaded-remove";
10724
+ UpdateSource["ENTITIES_LOADED_CLEAR"] = "entities-loaded-clear";
10725
+ UpdateSource["ENTITIES_LOADED_DISPOSE"] = "entities-loaded-dispose";
10726
+ UpdateSource["ENTITIES_TAG_FILTER"] = "entities-tag-filter";
10727
+ UpdateSource["ENTITIES_DISABLED"] = "entities-disabled";
10728
+ UpdateSource["ENTITIES_DISPOSE"] = "entities-dispose";
10729
+ UpdateSource["RELATIONS_FILTER"] = "relations-filter";
10730
+ UpdateSource["RELATIONS_DISPOSE"] = "relations-dispose"; // Triggered when relations render manager is disposed.
10731
+ })(exports.UpdateSource || (exports.UpdateSource = {}));
10733
10732
  /**
10734
10733
  * Returns if a given visual is alive and in the scene.
10735
10734
  * @param viewer
@@ -11201,7 +11200,7 @@
11201
11200
  });
11202
11201
  }
11203
11202
  // Trigger update event.
11204
- if (this.onUpdate && source !== UPDATE_SOURCES.TREE_CASCADE) {
11203
+ if (this.onUpdate && source !== exports.UpdateSource.TREE_CASCADE) {
11205
11204
  const update = {
11206
11205
  type: EVisualUpdateType.Update,
11207
11206
  entityId: state.entityId
@@ -11292,7 +11291,7 @@
11292
11291
  }
11293
11292
  }
11294
11293
  // Trigger update event.
11295
- if (this.onUpdate && source !== UPDATE_SOURCES.TREE_CASCADE) {
11294
+ if (this.onUpdate && source !== exports.UpdateSource.TREE_CASCADE) {
11296
11295
  const keys = Object.keys(states);
11297
11296
  for (let i = 0; i < keys.length; i++) {
11298
11297
  const key = keys[i];
@@ -11574,7 +11573,7 @@
11574
11573
  if (source) {
11575
11574
  update.source = source;
11576
11575
  }
11577
- if (source !== UPDATE_SOURCES.TREE_CASCADE) {
11576
+ if (source !== exports.UpdateSource.TREE_CASCADE) {
11578
11577
  (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11579
11578
  }
11580
11579
  }
@@ -11740,7 +11739,7 @@
11740
11739
  if (source) {
11741
11740
  update.source = source;
11742
11741
  }
11743
- if (source !== UPDATE_SOURCES.TREE_CASCADE) {
11742
+ if (source !== exports.UpdateSource.TREE_CASCADE) {
11744
11743
  (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11745
11744
  }
11746
11745
  }
@@ -11786,7 +11785,7 @@
11786
11785
  if (params === null || params === void 0 ? void 0 : params.source) {
11787
11786
  update.source = params.source;
11788
11787
  }
11789
- if ((params === null || params === void 0 ? void 0 : params.source) !== UPDATE_SOURCES.TREE_CASCADE) {
11788
+ if ((params === null || params === void 0 ? void 0 : params.source) !== exports.UpdateSource.TREE_CASCADE) {
11790
11789
  (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11791
11790
  }
11792
11791
  if ((params === null || params === void 0 ? void 0 : params.requestRender) != false) {
@@ -11936,7 +11935,7 @@
11936
11935
  if (source) {
11937
11936
  update.source = source;
11938
11937
  }
11939
- if (source !== UPDATE_SOURCES.TREE_CASCADE) {
11938
+ if (source !== exports.UpdateSource.TREE_CASCADE) {
11940
11939
  (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11941
11940
  }
11942
11941
  }
@@ -12048,7 +12047,7 @@
12048
12047
  if (params === null || params === void 0 ? void 0 : params.source) {
12049
12048
  update.source = params.source;
12050
12049
  }
12051
- if ((params === null || params === void 0 ? void 0 : params.source) !== UPDATE_SOURCES.TREE_CASCADE) {
12050
+ if ((params === null || params === void 0 ? void 0 : params.source) !== exports.UpdateSource.TREE_CASCADE) {
12052
12051
  (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
12053
12052
  }
12054
12053
  }
@@ -12064,7 +12063,7 @@
12064
12063
  menuItemId: rego.menuItemId,
12065
12064
  doUpdate: false,
12066
12065
  requestRender: false,
12067
- source: UPDATE_SOURCES.ADD_REGO_REPLACE
12066
+ source: exports.UpdateSource.ADD_REGO_REPLACE
12068
12067
  });
12069
12068
  }
12070
12069
  const entityId = rego.entityId;
@@ -12088,7 +12087,7 @@
12088
12087
  if (source) {
12089
12088
  update.source = source;
12090
12089
  }
12091
- if (source !== UPDATE_SOURCES.TREE_CASCADE) {
12090
+ if (source !== exports.UpdateSource.TREE_CASCADE) {
12092
12091
  (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
12093
12092
  }
12094
12093
  if (requestRender != false) {
@@ -12210,7 +12209,7 @@
12210
12209
  if (source) {
12211
12210
  update.source = source;
12212
12211
  }
12213
- if (source !== UPDATE_SOURCES.TREE_CASCADE) {
12212
+ if (source !== exports.UpdateSource.TREE_CASCADE) {
12214
12213
  (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
12215
12214
  }
12216
12215
  if (doesInclude) {
@@ -12249,7 +12248,7 @@
12249
12248
  if (source) {
12250
12249
  update.source = source;
12251
12250
  }
12252
- if (source !== UPDATE_SOURCES.TREE_CASCADE) {
12251
+ if (source !== exports.UpdateSource.TREE_CASCADE) {
12253
12252
  (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
12254
12253
  }
12255
12254
  this.rego[entityId] = entityRegos.filter(r => r.menuItemId !== menuItemId);
@@ -12284,7 +12283,7 @@
12284
12283
  if (source) {
12285
12284
  update.source = source;
12286
12285
  }
12287
- if (source !== UPDATE_SOURCES.TREE_CASCADE) {
12286
+ if (source !== exports.UpdateSource.TREE_CASCADE) {
12288
12287
  (_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(update);
12289
12288
  }
12290
12289
  if (doUpdate && menuItemId) {
@@ -12391,7 +12390,7 @@
12391
12390
  if (source) {
12392
12391
  update.source = source;
12393
12392
  }
12394
- if (source !== UPDATE_SOURCES.TREE_CASCADE) {
12393
+ if (source !== exports.UpdateSource.TREE_CASCADE) {
12395
12394
  (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
12396
12395
  }
12397
12396
  this.queueUpdate({
@@ -13428,14 +13427,14 @@
13428
13427
  this.visualsManager.RemoveRegos({
13429
13428
  menuItemId: this.item.id,
13430
13429
  retainTagIds: tagsToRender,
13431
- source: UPDATE_SOURCES.ENTITIES_TAG_FILTER
13430
+ source: exports.UpdateSource.ENTITIES_TAG_FILTER
13432
13431
  });
13433
13432
  (_j = this.clustering) === null || _j === void 0 ? void 0 : _j.Dispose();
13434
13433
  }
13435
13434
  else {
13436
13435
  this.visualsManager.RemoveRegos({
13437
13436
  menuItemId: this.item.id,
13438
- source: UPDATE_SOURCES.ENTITIES_DISABLED
13437
+ source: exports.UpdateSource.ENTITIES_DISABLED
13439
13438
  });
13440
13439
  (_k = this.clustering) === null || _k === void 0 ? void 0 : _k.Dispose();
13441
13440
  return;
@@ -13577,7 +13576,7 @@
13577
13576
  this.disposed = true;
13578
13577
  this.visualsManager.RemoveRegos({
13579
13578
  menuItemId: this.item.id,
13580
- source: UPDATE_SOURCES.ENTITIES_DISPOSE
13579
+ source: exports.UpdateSource.ENTITIES_DISPOSE
13581
13580
  });
13582
13581
  (_a = this.entityCheckRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
13583
13582
  (_b = this.viewMonitorRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
@@ -14432,7 +14431,7 @@
14432
14431
  this.visualsManager.RemoveRegos({
14433
14432
  entityId: x,
14434
14433
  menuItemId: this.item.id,
14435
- source: UPDATE_SOURCES.ENTITIES_LOADED_REMOVE
14434
+ source: exports.UpdateSource.ENTITIES_LOADED_REMOVE
14436
14435
  });
14437
14436
  this.renderedEntities[x] = false;
14438
14437
  });
@@ -14449,7 +14448,7 @@
14449
14448
  this.item.BruceEntity.Entities = [];
14450
14449
  this.visualsManager.RemoveRegos({
14451
14450
  menuItemId: this.item.id,
14452
- source: UPDATE_SOURCES.ENTITIES_LOADED_CLEAR
14451
+ source: exports.UpdateSource.ENTITIES_LOADED_CLEAR
14453
14452
  });
14454
14453
  this.renderedEntities = {};
14455
14454
  this.recreateGetter();
@@ -14514,7 +14513,7 @@
14514
14513
  this.disposed = true;
14515
14514
  this.visualsManager.RemoveRegos({
14516
14515
  menuItemId: this.item.id,
14517
- source: UPDATE_SOURCES.ENTITIES_LOADED_DISPOSE
14516
+ source: exports.UpdateSource.ENTITIES_LOADED_DISPOSE
14518
14517
  });
14519
14518
  for (let i = 0; i < this.sources.length; i++) {
14520
14519
  const source = this.sources[i];
@@ -18698,7 +18697,7 @@
18698
18697
  requestRender: false,
18699
18698
  menuItemId: this.item.id,
18700
18699
  doRemove: false,
18701
- source: UPDATE_SOURCES.TILESET_DISPOSE
18700
+ source: exports.UpdateSource.TILESET_DISPOSE
18702
18701
  });
18703
18702
  // Might have to do something smarter since siblings could still be OK.
18704
18703
  this.loadedCesiumEntities[rego.entityId] = null;
@@ -18982,7 +18981,7 @@
18982
18981
  this.visualsManager.RemoveRegos({
18983
18982
  menuItemId: this.item.id,
18984
18983
  doRemove: false,
18985
- source: UPDATE_SOURCES.TILESET_DISPOSE
18984
+ source: exports.UpdateSource.TILESET_DISPOSE
18986
18985
  });
18987
18986
  this.viewerDateTimeDispose();
18988
18987
  }
@@ -19481,7 +19480,7 @@
19481
19480
  }
19482
19481
  this.visualsManager.RemoveRegos({
19483
19482
  menuItemId: this.item.id,
19484
- source: UPDATE_SOURCES.OSM_TILESET_DISPOSE
19483
+ source: exports.UpdateSource.OSM_TILESET_DISPOSE
19485
19484
  });
19486
19485
  this.featureQueue = [];
19487
19486
  }
@@ -20670,7 +20669,7 @@
20670
20669
  entityId: rego.entityId,
20671
20670
  menuItemId: this.item.id,
20672
20671
  requestRender: false,
20673
- source: UPDATE_SOURCES.RELATIONS_FILTER
20672
+ source: exports.UpdateSource.RELATIONS_FILTER
20674
20673
  });
20675
20674
  }
20676
20675
  }
@@ -20718,7 +20717,7 @@
20718
20717
  this.disposed = true;
20719
20718
  this.register.RemoveRegos({
20720
20719
  menuItemId: this.item.id,
20721
- source: UPDATE_SOURCES.RELATIONS_DISPOSE
20720
+ source: exports.UpdateSource.RELATIONS_DISPOSE
20722
20721
  });
20723
20722
  }
20724
20723
  /**
@@ -20979,7 +20978,7 @@
20979
20978
  menuItemId: this.item.id,
20980
20979
  relation: relation,
20981
20980
  requestRender: false,
20982
- source: UPDATE_SOURCES.RELATIONS_FILTER
20981
+ source: exports.UpdateSource.RELATIONS_FILTER
20983
20982
  });
20984
20983
  }
20985
20984
  const key = RelationRenderEngine.GetRenderGroupId(relation);
@@ -33221,11 +33220,10 @@
33221
33220
  }
33222
33221
  }
33223
33222
 
33224
- const VERSION = "6.0.0";
33223
+ const VERSION = "6.0.1";
33225
33224
 
33226
33225
  exports.VERSION = VERSION;
33227
33226
  exports.isOutlineChanged = isOutlineChanged;
33228
- exports.UPDATE_SOURCES = UPDATE_SOURCES;
33229
33227
  exports.CesiumParabola = CesiumParabola;
33230
33228
  exports.CESIUM_INSPECTOR_KEY = CESIUM_INSPECTOR_KEY;
33231
33229
  exports.CESIUM_TIMELINE_KEY = CESIUM_TIMELINE_KEY;