bruce-cesium 2.6.6 → 2.6.8
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 +27 -15
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +26 -14
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/common/shared-getters.js +1 -0
- package/dist/lib/rendering/render-managers/common/shared-getters.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +12 -7
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/lib/rendering/tileset-render-engine.js +11 -5
- package/dist/lib/rendering/tileset-render-engine.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/render-managers/common/shared-getters.d.ts +1 -0
- package/dist/types/rendering/tileset-render-engine.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -5442,6 +5442,12 @@
|
|
|
5442
5442
|
var _this = this;
|
|
5443
5443
|
var _a;
|
|
5444
5444
|
this.unsetGetter();
|
|
5445
|
+
var isTagItem = Boolean(this.item.BruceEntity.ExpandLayers);
|
|
5446
|
+
var tagsToRender = isTagItem ? this.item.BruceEntity.SelectedExpandLayers : null;
|
|
5447
|
+
if (!tagsToRender) {
|
|
5448
|
+
tagsToRender = [];
|
|
5449
|
+
}
|
|
5450
|
+
tagsToRender = [].concat(tagsToRender);
|
|
5445
5451
|
this.getter = this.sharedGetters.GetOrCreateFilterGetter({
|
|
5446
5452
|
api: this.apiGetter.getApi(),
|
|
5447
5453
|
attrFilter: (_a = this.item.BruceEntity.Filter) !== null && _a !== void 0 ? _a : {},
|
|
@@ -5449,19 +5455,18 @@
|
|
|
5449
5455
|
typeId: this.item.BruceEntity["EntityType.ID"],
|
|
5450
5456
|
monitor: this.monitor,
|
|
5451
5457
|
viewer: this.viewer,
|
|
5458
|
+
// Unfortunately this searches as an "AND" rather than "OR" which does not meet our needs here.
|
|
5459
|
+
// So for multiple tags we'll manually sort on UI end...
|
|
5460
|
+
tagIds: tagsToRender.length == 1 ? tagsToRender : [],
|
|
5452
5461
|
debugShowBounds: Boolean(window === null || window === void 0 ? void 0 : window.ENTITIES_RENDER_MANAGER_SHOW_BOUNDS),
|
|
5453
5462
|
cdn: this.item.cdnEnabled
|
|
5454
5463
|
});
|
|
5455
5464
|
var minMax = exports.RenderManager.GetZoomMinMax({
|
|
5456
5465
|
zoomControl: this.item.CameraZoomSettings
|
|
5457
5466
|
});
|
|
5458
|
-
this
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
if (!tagsToRender) {
|
|
5462
|
-
tagsToRender = [];
|
|
5463
|
-
}
|
|
5464
|
-
tagsToRender = [].concat(tagsToRender);
|
|
5467
|
+
// Unfortunately this searches as an "AND" rather than "OR" which does not meet our needs here.
|
|
5468
|
+
// So for multiple tags we'll manually sort on UI end...
|
|
5469
|
+
this.getter.IncludeMenuItem(this.item.id, tagsToRender.length == 1 ? tagsToRender : [], minMax[0], minMax[1]);
|
|
5465
5470
|
this.getterSub = this.getter.OnUpdate.Subscribe(function (entities) {
|
|
5466
5471
|
if (isTagItem) {
|
|
5467
5472
|
_this.distributeForRender(entities.filter(function (entity) {
|
|
@@ -6963,10 +6968,11 @@
|
|
|
6963
6968
|
enumerable: false,
|
|
6964
6969
|
configurable: true
|
|
6965
6970
|
});
|
|
6966
|
-
Styler.prototype.QueueEntities = function (entities) {
|
|
6971
|
+
Styler.prototype.QueueEntities = function (entities, highPriority) {
|
|
6972
|
+
if (highPriority === void 0) { highPriority = false; }
|
|
6967
6973
|
for (var i = 0; i < entities.length; i++) {
|
|
6968
6974
|
var entity = entities[i];
|
|
6969
|
-
this.queueTilesetFeatureStyle(entity);
|
|
6975
|
+
this.queueTilesetFeatureStyle(entity, highPriority);
|
|
6970
6976
|
}
|
|
6971
6977
|
if (this.recordLoadQueue.length > 0) {
|
|
6972
6978
|
this.processQueue();
|
|
@@ -7245,7 +7251,7 @@
|
|
|
7245
7251
|
var entityId = batch[i];
|
|
7246
7252
|
var entity = _this.getEntityRego(entityId);
|
|
7247
7253
|
if (entity) {
|
|
7248
|
-
_this.queueTilesetFeatureStyle(entity);
|
|
7254
|
+
_this.queueTilesetFeatureStyle(entity, false);
|
|
7249
7255
|
}
|
|
7250
7256
|
}
|
|
7251
7257
|
_this.viewer.scene.requestRender();
|
|
@@ -7259,7 +7265,7 @@
|
|
|
7259
7265
|
});
|
|
7260
7266
|
});
|
|
7261
7267
|
};
|
|
7262
|
-
Styler.prototype.queueTilesetFeatureStyle = function (entity) {
|
|
7268
|
+
Styler.prototype.queueTilesetFeatureStyle = function (entity, highPriority) {
|
|
7263
7269
|
if (this.styleMappingLoaded || this.styleMappingsLoaded[entity.entityTypeId] == true) {
|
|
7264
7270
|
var needsData = this.getTilesetFeatureNeedsFullData(entity.entityId, entity.entityTypeId);
|
|
7265
7271
|
if (needsData) {
|
|
@@ -7272,7 +7278,12 @@
|
|
|
7272
7278
|
}
|
|
7273
7279
|
}
|
|
7274
7280
|
else {
|
|
7275
|
-
|
|
7281
|
+
if (highPriority) {
|
|
7282
|
+
this.recordCheckQueue.unshift(entity.entityId);
|
|
7283
|
+
}
|
|
7284
|
+
else {
|
|
7285
|
+
this.recordCheckQueue.push(entity.entityId);
|
|
7286
|
+
}
|
|
7276
7287
|
}
|
|
7277
7288
|
};
|
|
7278
7289
|
Styler.prototype.styleTilesetFeature = function (entity) {
|
|
@@ -7718,7 +7729,7 @@
|
|
|
7718
7729
|
if (entityIds != null) {
|
|
7719
7730
|
regos = regos.filter(function (r) { return entityIds.indexOf(r.entityId) >= 0; });
|
|
7720
7731
|
}
|
|
7721
|
-
this.styler.QueueEntities(regos);
|
|
7732
|
+
this.styler.QueueEntities(regos, true);
|
|
7722
7733
|
return [2 /*return*/];
|
|
7723
7734
|
});
|
|
7724
7735
|
});
|
|
@@ -7734,6 +7745,7 @@
|
|
|
7734
7745
|
cacheKey += params.typeId;
|
|
7735
7746
|
cacheKey += params.batchSize;
|
|
7736
7747
|
cacheKey += String(params.cdn);
|
|
7748
|
+
cacheKey += JSON.stringify(params.tagIds ? params.tagIds : []);
|
|
7737
7749
|
// This could potentially crash, but if it crashes here then it would crash during API request anyways.
|
|
7738
7750
|
cacheKey += JSON.stringify(params.attrFilter ? params.attrFilter : {});
|
|
7739
7751
|
return cacheKey;
|
|
@@ -15116,7 +15128,7 @@
|
|
|
15116
15128
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
15117
15129
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
15118
15130
|
|
|
15119
|
-
var VERSION$1 = "2.6.
|
|
15131
|
+
var VERSION$1 = "2.6.8";
|
|
15120
15132
|
|
|
15121
15133
|
exports.VERSION = VERSION$1;
|
|
15122
15134
|
exports.CesiumViewMonitor = CesiumViewMonitor;
|