bruce-cesium 3.7.8 → 3.7.9
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.
- package/dist/bruce-cesium.es5.js +16 -28
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +15 -27
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/getters/entity-filter-getter.js +3 -18
- package/dist/lib/rendering/getters/entity-filter-getter.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +11 -8
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/getters/entity-filter-getter.d.ts +0 -2
- package/package.json +2 -2
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -9804,10 +9804,11 @@
|
|
|
9804
9804
|
this.sources = [];
|
|
9805
9805
|
};
|
|
9806
9806
|
Manager.prototype.ReRender = function (params) {
|
|
9807
|
+
var _a;
|
|
9807
9808
|
return __awaiter(this, void 0, void 0, function () {
|
|
9808
9809
|
var entityIds, force, entities, data, e_1;
|
|
9809
|
-
return __generator(this, function (
|
|
9810
|
-
switch (
|
|
9810
|
+
return __generator(this, function (_b) {
|
|
9811
|
+
switch (_b.label) {
|
|
9811
9812
|
case 0:
|
|
9812
9813
|
entityIds = params.entityIds, force = params.force, entities = params.entities;
|
|
9813
9814
|
if (entities && !entityIds) {
|
|
@@ -9828,17 +9829,19 @@
|
|
|
9828
9829
|
this.renderEntities(entities, true);
|
|
9829
9830
|
return [3 /*break*/, 4];
|
|
9830
9831
|
case 1:
|
|
9831
|
-
|
|
9832
|
+
_b.trys.push([1, 3, , 4]);
|
|
9832
9833
|
return [4 /*yield*/, bruceModels.Entity.GetListByIds({
|
|
9833
9834
|
api: this.apiGetter.getApi(),
|
|
9834
|
-
entityIds: entityIds
|
|
9835
|
+
entityIds: entityIds,
|
|
9836
|
+
historicKey: (_a = this.item.BruceEntity) === null || _a === void 0 ? void 0 : _a.historicAttrKey,
|
|
9837
|
+
historicPoint: this.viewer.clock.currentTime.toString()
|
|
9835
9838
|
})];
|
|
9836
9839
|
case 2:
|
|
9837
|
-
data =
|
|
9840
|
+
data = _b.sent();
|
|
9838
9841
|
this.renderEntities(data.entities, true);
|
|
9839
9842
|
return [3 /*break*/, 4];
|
|
9840
9843
|
case 3:
|
|
9841
|
-
e_1 =
|
|
9844
|
+
e_1 = _b.sent();
|
|
9842
9845
|
console.error(e_1);
|
|
9843
9846
|
return [3 /*break*/, 4];
|
|
9844
9847
|
case 4: return [3 /*break*/, 8];
|
|
@@ -9848,8 +9851,8 @@
|
|
|
9848
9851
|
return [3 /*break*/, 8];
|
|
9849
9852
|
case 6: return [4 /*yield*/, this.doEntityCheck(entityIds)];
|
|
9850
9853
|
case 7:
|
|
9851
|
-
|
|
9852
|
-
|
|
9854
|
+
_b.sent();
|
|
9855
|
+
_b.label = 8;
|
|
9853
9856
|
case 8: return [2 /*return*/];
|
|
9854
9857
|
}
|
|
9855
9858
|
});
|
|
@@ -13699,9 +13702,6 @@
|
|
|
13699
13702
|
var integrity = this.tagIds == null ? "" : this.tagIds.join();
|
|
13700
13703
|
if (this.historicAttrKey) {
|
|
13701
13704
|
integrity += this.historicAttrKey;
|
|
13702
|
-
if (this.historicAttrDateTime) {
|
|
13703
|
-
integrity += this.historicAttrDateTime;
|
|
13704
|
-
}
|
|
13705
13705
|
}
|
|
13706
13706
|
return integrity;
|
|
13707
13707
|
};
|
|
@@ -13729,9 +13729,9 @@
|
|
|
13729
13729
|
return;
|
|
13730
13730
|
}
|
|
13731
13731
|
var delayQueue = new bruceModels.DelayQueue(function () {
|
|
13732
|
-
var current = _this.
|
|
13732
|
+
var current = _this.historicAttrDateTime;
|
|
13733
13733
|
_this.updateHistoricDateTime();
|
|
13734
|
-
if (current != _this.
|
|
13734
|
+
if (current != _this.historicAttrDateTime) {
|
|
13735
13735
|
_this.updateState();
|
|
13736
13736
|
}
|
|
13737
13737
|
}, 250);
|
|
@@ -13750,8 +13750,6 @@
|
|
|
13750
13750
|
Getter.prototype.updateHistoricDateTime = function () {
|
|
13751
13751
|
if (!this.historicAttrKey) {
|
|
13752
13752
|
this.historicAttrDateTime = null;
|
|
13753
|
-
this.historicAttrDateTimeMin = null;
|
|
13754
|
-
this.historicAttrDateTimeMax = null;
|
|
13755
13753
|
return;
|
|
13756
13754
|
}
|
|
13757
13755
|
var isChanged = function (before, after) {
|
|
@@ -13766,16 +13764,8 @@
|
|
|
13766
13764
|
};
|
|
13767
13765
|
var oldDateTime = this.historicAttrDateTime ? new Date(this.historicAttrDateTime) : null;
|
|
13768
13766
|
var newDateTime = Cesium.JulianDate.toDate(this.viewer.clock.currentTime);
|
|
13769
|
-
|
|
13770
|
-
var newDateMin = this.viewer.clock.startTime ? Cesium.JulianDate.toDate(this.viewer.clock.startTime) : null;
|
|
13771
|
-
var oldDateMax = this.historicAttrDateTimeMax ? new Date(this.historicAttrDateTimeMax) : null;
|
|
13772
|
-
var newDateMax = this.viewer.clock.stopTime ? Cesium.JulianDate.toDate(this.viewer.clock.stopTime) : null;
|
|
13773
|
-
if (isChanged(oldDateTime, newDateTime) ||
|
|
13774
|
-
isChanged(oldDateMin, newDateMin) ||
|
|
13775
|
-
isChanged(oldDateMax, newDateMax)) {
|
|
13767
|
+
if (isChanged(oldDateTime, newDateTime)) {
|
|
13776
13768
|
this.historicAttrDateTime = newDateTime.toISOString();
|
|
13777
|
-
this.historicAttrDateTimeMin = newDateMin === null || newDateMin === void 0 ? void 0 : newDateMin.toISOString();
|
|
13778
|
-
this.historicAttrDateTimeMax = newDateMax === null || newDateMax === void 0 ? void 0 : newDateMax.toISOString();
|
|
13779
13769
|
}
|
|
13780
13770
|
};
|
|
13781
13771
|
Getter.prototype.viewerDateTimeDispose = function () {
|
|
@@ -13942,8 +13932,6 @@
|
|
|
13942
13932
|
api: this.api,
|
|
13943
13933
|
historicKey: this.historicAttrKey,
|
|
13944
13934
|
historicPoint: this.historicAttrDateTime,
|
|
13945
|
-
historicFrom: this.historicAttrKey ? this.historicAttrDateTimeMin : null,
|
|
13946
|
-
historicTo: this.historicAttrKey ? this.historicAttrDateTimeMax : null,
|
|
13947
13935
|
filter: {
|
|
13948
13936
|
pageSize: PAGE_SIZE,
|
|
13949
13937
|
pageIndex: curCell.FetchPageIndex,
|
|
@@ -23448,7 +23436,7 @@
|
|
|
23448
23436
|
ViewRenderEngine.Render = Render;
|
|
23449
23437
|
})(exports.ViewRenderEngine || (exports.ViewRenderEngine = {}));
|
|
23450
23438
|
|
|
23451
|
-
var VERSION = "3.7.
|
|
23439
|
+
var VERSION = "3.7.9";
|
|
23452
23440
|
|
|
23453
23441
|
exports.VERSION = VERSION;
|
|
23454
23442
|
exports.CesiumParabola = CesiumParabola;
|