bruce-cesium 7.6.5 → 7.6.6

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.
@@ -24139,6 +24139,13 @@
24139
24139
  this.historicAttrDateTime = newDateTime.toISOString();
24140
24140
  }
24141
24141
  }
24142
+ /*
24143
+ * Returns the viewer clock's current time as ISO, or null without a viewer.
24144
+ */
24145
+ sceneDateTime() {
24146
+ var _a;
24147
+ return ((_a = this.viewer) === null || _a === void 0 ? void 0 : _a.clock) ? Cesium.JulianDate.toDate(this.viewer.clock.currentTime).toISOString() : null;
24148
+ }
24142
24149
  viewerDateTimeDispose() {
24143
24150
  var _a;
24144
24151
  (_a = this.viewerDateTimeChangeRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
@@ -24422,7 +24429,8 @@
24422
24429
  api: this.api,
24423
24430
  scenario: this.scenario,
24424
24431
  historicKey: this.historicAttrKey,
24425
- historicPoint: (this.historicAttrKey || this.historic) ? this.historicAttrDateTime : null,
24432
+ // Non-historic items still read as at the scene's time, matching the info view.
24433
+ historicPoint: (this.historicAttrKey || this.historic) ? this.historicAttrDateTime : this.sceneDateTime(),
24426
24434
  expandSources: true,
24427
24435
  expandLocation: true,
24428
24436
  schemaId: this.schemaId,
@@ -56077,7 +56085,7 @@ void main() {
56077
56085
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
56078
56086
  })(exports.StyleUtils || (exports.StyleUtils = {}));
56079
56087
 
56080
- const VERSION = "7.6.5";
56088
+ const VERSION = "7.6.6";
56081
56089
  /**
56082
56090
  * Updates the environment instance used by bruce-cesium to one specified.
56083
56091
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.