bruce-cesium 5.6.8 → 5.6.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 +14 -11
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +13 -10
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +12 -9
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -13682,7 +13682,7 @@
|
|
|
13682
13682
|
* @returns
|
|
13683
13683
|
*/
|
|
13684
13684
|
async renderAsIndividuals(entities, force = false) {
|
|
13685
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
13685
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13686
13686
|
// Entity ID -> historic records array.
|
|
13687
13687
|
// We load this as extra information when rendering historic records.
|
|
13688
13688
|
// This way we know what to animate towards as time changes.
|
|
@@ -13765,14 +13765,16 @@
|
|
|
13765
13765
|
entityId: id,
|
|
13766
13766
|
menuItemId: this.item.id
|
|
13767
13767
|
});
|
|
13768
|
+
// The baseline data source must be editable.
|
|
13769
|
+
const canEdit = !((_e = entity.Bruce.Outline) === null || _e === void 0 ? void 0 : _e.find(x => x.Baseline && !x.Editable));
|
|
13768
13770
|
const visual = rego === null || rego === void 0 ? void 0 : rego.visual;
|
|
13769
13771
|
if (!visual || visual != cEntity) {
|
|
13770
13772
|
const wasClustered = this.clustering ? this.clustering.AddEntity(id, cEntity, false) : false;
|
|
13771
|
-
const tagIds =
|
|
13773
|
+
const tagIds = entity.Bruce["Layer.ID"];
|
|
13772
13774
|
const rego = {
|
|
13773
|
-
canEdit:
|
|
13775
|
+
canEdit: canEdit,
|
|
13774
13776
|
entityId: id,
|
|
13775
|
-
schema:
|
|
13777
|
+
schema: entity.Bruce.Schema,
|
|
13776
13778
|
menuItemId: this.item.id,
|
|
13777
13779
|
menuItemType: this.item.Type,
|
|
13778
13780
|
visual: cEntity,
|
|
@@ -13783,7 +13785,7 @@
|
|
|
13783
13785
|
overrideShow: wasClustered ? false : null,
|
|
13784
13786
|
name: cEntity.name,
|
|
13785
13787
|
cdn: this.item.cdnEnabled,
|
|
13786
|
-
outline:
|
|
13788
|
+
outline: entity.Bruce.Outline
|
|
13787
13789
|
};
|
|
13788
13790
|
this.visualsManager.AddRego({
|
|
13789
13791
|
rego,
|
|
@@ -13794,10 +13796,11 @@
|
|
|
13794
13796
|
rego.name = cEntity.name;
|
|
13795
13797
|
rego.visual = cEntity;
|
|
13796
13798
|
rego.entityTypeId = entity.Bruce["EntityType.ID"];
|
|
13797
|
-
rego.tagIds =
|
|
13798
|
-
rego.outline = (
|
|
13799
|
+
rego.tagIds = entity.Bruce["Layer.ID"] ? [].concat(entity.Bruce["Layer.ID"]) : [];
|
|
13800
|
+
rego.outline = (_f = entity.Bruce) === null || _f === void 0 ? void 0 : _f.Outline;
|
|
13799
13801
|
rego.cdn = this.item.cdnEnabled;
|
|
13800
|
-
rego.schema = (
|
|
13802
|
+
rego.schema = (_g = entity.Bruce) === null || _g === void 0 ? void 0 : _g.Schema;
|
|
13803
|
+
rego.canEdit = canEdit;
|
|
13801
13804
|
// Marked as stale meaning some change was performed that requires a refresh.
|
|
13802
13805
|
// This usually means a new sibling was added that we need to update.
|
|
13803
13806
|
if (rego.stale) {
|
|
@@ -13827,7 +13830,7 @@
|
|
|
13827
13830
|
menuItemId: this.item.id,
|
|
13828
13831
|
requestRender: false
|
|
13829
13832
|
});
|
|
13830
|
-
(
|
|
13833
|
+
(_h = this.clustering) === null || _h === void 0 ? void 0 : _h.RemoveEntity(id, false);
|
|
13831
13834
|
}
|
|
13832
13835
|
}
|
|
13833
13836
|
this.viewer.scene.requestRender();
|
|
@@ -31857,7 +31860,7 @@
|
|
|
31857
31860
|
}
|
|
31858
31861
|
}
|
|
31859
31862
|
|
|
31860
|
-
const VERSION = "5.6.
|
|
31863
|
+
const VERSION = "5.6.9";
|
|
31861
31864
|
|
|
31862
31865
|
exports.VERSION = VERSION;
|
|
31863
31866
|
exports.isOutlineChanged = isOutlineChanged;
|