bruce-cesium 2.5.1 → 2.5.2
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 +24 -11
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +23 -10
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/common/point-clustering.js +12 -5
- package/dist/lib/rendering/render-managers/common/point-clustering.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js +5 -2
- package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +5 -2
- 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/render-managers/common/point-clustering.d.ts +3 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -4726,6 +4726,9 @@
|
|
|
4726
4726
|
}
|
|
4727
4727
|
}
|
|
4728
4728
|
}
|
|
4729
|
+
PointClustering.prototype.Update = function () {
|
|
4730
|
+
this.updateQueue.Call();
|
|
4731
|
+
};
|
|
4729
4732
|
PointClustering.prototype.queueForceUpdate = function (entityIds) {
|
|
4730
4733
|
for (var i = 0; i < entityIds.length; i++) {
|
|
4731
4734
|
if (this.updateEntityQueue.includes(entityIds[i])) {
|
|
@@ -5123,9 +5126,11 @@
|
|
|
5123
5126
|
* Will return false if entity could not be clustered and therefor should not be hidden.
|
|
5124
5127
|
* @param id
|
|
5125
5128
|
* @param entity
|
|
5129
|
+
* @param queueUpdate
|
|
5126
5130
|
* @returns
|
|
5127
5131
|
*/
|
|
5128
|
-
PointClustering.prototype.AddEntity = function (id, entity) {
|
|
5132
|
+
PointClustering.prototype.AddEntity = function (id, entity, queueUpdate) {
|
|
5133
|
+
if (queueUpdate === void 0) { queueUpdate = true; }
|
|
5129
5134
|
if (this.disposed) {
|
|
5130
5135
|
return false;
|
|
5131
5136
|
}
|
|
@@ -5169,15 +5174,17 @@
|
|
|
5169
5174
|
this.iconUrl = iconUrl;
|
|
5170
5175
|
}
|
|
5171
5176
|
}
|
|
5177
|
+
if (this.registeredEntityIds.has(id)) {
|
|
5178
|
+
this.RemoveEntity(id, false);
|
|
5179
|
+
}
|
|
5172
5180
|
var added = this.addPoint(id, pos3d);
|
|
5173
5181
|
if (!added) {
|
|
5174
5182
|
return false;
|
|
5175
5183
|
}
|
|
5176
|
-
if (this.registeredEntityIds.has(id)) {
|
|
5177
|
-
this.RemoveEntity(id, false);
|
|
5178
|
-
}
|
|
5179
5184
|
this.registeredEntityIds.add(id);
|
|
5180
|
-
|
|
5185
|
+
if (queueUpdate) {
|
|
5186
|
+
this.updateQueue.Call();
|
|
5187
|
+
}
|
|
5181
5188
|
return true;
|
|
5182
5189
|
};
|
|
5183
5190
|
/**
|
|
@@ -5537,7 +5544,7 @@
|
|
|
5537
5544
|
menuItemId: this.item.id
|
|
5538
5545
|
})) === null || _b === void 0 ? void 0 : _b.visual;
|
|
5539
5546
|
if (!visual || visual != cEntity) {
|
|
5540
|
-
wasClustered = this.clustering ? this.clustering.AddEntity(id, cEntity) : false;
|
|
5547
|
+
wasClustered = this.clustering ? this.clustering.AddEntity(id, cEntity, false) : false;
|
|
5541
5548
|
tagIds = (_c = entity.Bruce) === null || _c === void 0 ? void 0 : _c["Layer.ID"];
|
|
5542
5549
|
rego = {
|
|
5543
5550
|
entityId: id,
|
|
@@ -5563,10 +5570,13 @@
|
|
|
5563
5570
|
menuItemId: this.item.id,
|
|
5564
5571
|
requestRender: false
|
|
5565
5572
|
});
|
|
5566
|
-
(_d = this.clustering) === null || _d === void 0 ? void 0 : _d.RemoveEntity(id);
|
|
5573
|
+
(_d = this.clustering) === null || _d === void 0 ? void 0 : _d.RemoveEntity(id, false);
|
|
5567
5574
|
}
|
|
5568
5575
|
}
|
|
5569
5576
|
this.viewer.scene.requestRender();
|
|
5577
|
+
if (this.clustering && entities.length) {
|
|
5578
|
+
this.clustering.Update();
|
|
5579
|
+
}
|
|
5570
5580
|
return [3 /*break*/, 3];
|
|
5571
5581
|
case 2:
|
|
5572
5582
|
e_3 = _e.sent();
|
|
@@ -5984,7 +5994,7 @@
|
|
|
5984
5994
|
menuItemId: this.item.id
|
|
5985
5995
|
})) === null || _a === void 0 ? void 0 : _a.visual;
|
|
5986
5996
|
if (!visual || visual != cEntity) {
|
|
5987
|
-
clustered = this.clustering ? this.clustering.AddEntity(id, cEntity) : false;
|
|
5997
|
+
clustered = this.clustering ? this.clustering.AddEntity(id, cEntity, false) : false;
|
|
5988
5998
|
this.visualsManager.AddRego({
|
|
5989
5999
|
rego: {
|
|
5990
6000
|
entityId: id,
|
|
@@ -6006,10 +6016,13 @@
|
|
|
6006
6016
|
menuItemId: this.item.id,
|
|
6007
6017
|
requestRender: false
|
|
6008
6018
|
});
|
|
6009
|
-
(_b = this.clustering) === null || _b === void 0 ? void 0 : _b.RemoveEntity(id);
|
|
6019
|
+
(_b = this.clustering) === null || _b === void 0 ? void 0 : _b.RemoveEntity(id, false);
|
|
6010
6020
|
}
|
|
6011
6021
|
}
|
|
6012
6022
|
this.viewer.scene.requestRender();
|
|
6023
|
+
if (this.clustering && entities.length) {
|
|
6024
|
+
this.clustering.Update();
|
|
6025
|
+
}
|
|
6013
6026
|
return [3 /*break*/, 4];
|
|
6014
6027
|
case 3:
|
|
6015
6028
|
e_2 = _c.sent();
|
|
@@ -14793,7 +14806,7 @@
|
|
|
14793
14806
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
14794
14807
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
14795
14808
|
|
|
14796
|
-
var VERSION$1 = "2.5.
|
|
14809
|
+
var VERSION$1 = "2.5.2";
|
|
14797
14810
|
|
|
14798
14811
|
exports.VERSION = VERSION$1;
|
|
14799
14812
|
exports.CesiumViewMonitor = CesiumViewMonitor;
|