bruce-cesium 7.0.6 → 7.0.7

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.
@@ -6360,7 +6360,7 @@
6360
6360
  rego.editing == true ||
6361
6361
  // Part of a collection we did not create, eg. a geojson data source, which may have its own rules for
6362
6362
  // what is in the scene. Our own per-menu-item data sources are fair game.
6363
- (rego.collection && !IsCCollectionOwned(rego.collection)) ||
6363
+ exports.VisualsRegister.IsForeignCollection(rego) ||
6364
6364
  // We won't cull historic records as they may be interpolating their locations.
6365
6365
  Boolean(rego.outline && rego.outline.some(x => !!x.DateTime))) {
6366
6366
  return true;
@@ -7047,6 +7047,13 @@
7047
7047
  return Object.keys(state).length === idKeys;
7048
7048
  }
7049
7049
  (function (VisualsRegister) {
7050
+ /**
7051
+ * Whether a visual lives in a collection somebody else owns, eg. a geojson or KML data source that manages its own scene membership.
7052
+ */
7053
+ function IsForeignCollection(rego) {
7054
+ return Boolean(rego === null || rego === void 0 ? void 0 : rego.collection) && !IsCCollectionOwned(rego.collection);
7055
+ }
7056
+ VisualsRegister.IsForeignCollection = IsForeignCollection;
7050
7057
  let EVisualUpdateType;
7051
7058
  (function (EVisualUpdateType) {
7052
7059
  EVisualUpdateType["Add"] = "ADD";
@@ -40293,7 +40300,7 @@
40293
40300
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
40294
40301
  })(exports.StyleUtils || (exports.StyleUtils = {}));
40295
40302
 
40296
- const VERSION = "7.0.6";
40303
+ const VERSION = "7.0.7";
40297
40304
  /**
40298
40305
  * Updates the environment instance used by bruce-cesium to one specified.
40299
40306
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.