bruce-cesium 7.0.3 → 7.0.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.
@@ -6068,6 +6068,11 @@
6068
6068
  }
6069
6069
  return obj;
6070
6070
  }
6071
+ /*
6072
+ * Cache identity for a terrain provider we cannot name, which is anything without our own metadata on it and not
6073
+ * Cesium's own flat ellipsoid. Deliberately not FlatTerrain, see shouldCullEntity.
6074
+ */
6075
+ const UNRECOGNISED_TERRAIN_ID = "unrecognised-terrain";
6071
6076
  const boundingSphereCache = new BModels.LRUCache(100000);
6072
6077
  function getPositionsFromEntity(viewer, entity) {
6073
6078
  let positions = [];
@@ -6185,7 +6190,7 @@
6185
6190
  let boundingSphere;
6186
6191
  const terrainId = (_c = (_b = (_a = exports.ViewUtils.GatherTerrainTile({
6187
6192
  viewer
6188
- })) === null || _a === void 0 ? void 0 : _a.terrain) === null || _b === void 0 ? void 0 : _b.tilesetId) !== null && _c !== void 0 ? _c : BModels.ProjectViewTile.EDefaultTerrain.FlatTerrain;
6193
+ })) === null || _a === void 0 ? void 0 : _a.terrain) === null || _b === void 0 ? void 0 : _b.tilesetId) !== null && _c !== void 0 ? _c : UNRECOGNISED_TERRAIN_ID;
6189
6194
  const cacheKey = terrainId + cEntity.id;
6190
6195
  const cacheData = boundingSphereCache.Get(cacheKey);
6191
6196
  if (cacheData) {
@@ -40189,7 +40194,7 @@
40189
40194
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
40190
40195
  })(exports.StyleUtils || (exports.StyleUtils = {}));
40191
40196
 
40192
- const VERSION = "7.0.3";
40197
+ const VERSION = "7.0.4";
40193
40198
  /**
40194
40199
  * Updates the environment instance used by bruce-cesium to one specified.
40195
40200
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.