bruce-cesium 2.8.9 → 2.9.0
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 +44 -55
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +43 -54
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/other/relations-render-manager.js +2 -11
- package/dist/lib/rendering/render-managers/other/relations-render-manager.js.map +1 -1
- package/dist/lib/rendering/view-render-engine.js +40 -42
- package/dist/lib/rendering/view-render-engine.js.map +1 -1
- package/dist/lib/utils/view-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +2 -2
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -9966,17 +9966,8 @@
|
|
|
9966
9966
|
* @param relation
|
|
9967
9967
|
*/
|
|
9968
9968
|
Manager.prototype.shouldRenderRelation = function (relation) {
|
|
9969
|
-
var _a, _b
|
|
9970
|
-
|
|
9971
|
-
// Find group for the same relationship type.
|
|
9972
|
-
var typeRelations = this.item.relations.find(function (x) { return x.relationTypeId == relation["Relation.Type.ID"]; });
|
|
9973
|
-
// See if group contains the parent entity ID.
|
|
9974
|
-
if ((_b = typeRelations === null || typeRelations === void 0 ? void 0 : typeRelations.entityIds) === null || _b === void 0 ? void 0 : _b.find(function (x) { return x == relation["Principal.Entity.ID"]; })) {
|
|
9975
|
-
return true;
|
|
9976
|
-
}
|
|
9977
|
-
}
|
|
9978
|
-
// Backwards compatability.
|
|
9979
|
-
var renderedIds = (_d = (_c = this.item) === null || _c === void 0 ? void 0 : _c.BruceEntity) === null || _d === void 0 ? void 0 : _d.EntityIds;
|
|
9969
|
+
var _a, _b;
|
|
9970
|
+
var renderedIds = (_b = (_a = this.item) === null || _a === void 0 ? void 0 : _a.BruceEntity) === null || _b === void 0 ? void 0 : _b.EntityIds;
|
|
9980
9971
|
if (!renderedIds) {
|
|
9981
9972
|
return false;
|
|
9982
9973
|
}
|
|
@@ -12750,7 +12741,6 @@
|
|
|
12750
12741
|
}
|
|
12751
12742
|
/**
|
|
12752
12743
|
* Renders DATA_VERSION = 1 navigator.
|
|
12753
|
-
* param iteration
|
|
12754
12744
|
* @param params
|
|
12755
12745
|
* @param bookmark
|
|
12756
12746
|
* @param view
|
|
@@ -12874,32 +12864,33 @@
|
|
|
12874
12864
|
}
|
|
12875
12865
|
_f.label = 3;
|
|
12876
12866
|
case 3:
|
|
12877
|
-
if ((_e = bSettings === null || bSettings === void 0 ? void 0 : bSettings.drawnRelationEntityIDs) === null || _e === void 0 ? void 0 : _e.length)
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12867
|
+
if (!((_e = bSettings === null || bSettings === void 0 ? void 0 : bSettings.drawnRelationEntityIDs) === null || _e === void 0 ? void 0 : _e.length)) return [3 /*break*/, 5];
|
|
12868
|
+
menuItem = {
|
|
12869
|
+
id: RELATION_MENU_ITEM_ID,
|
|
12870
|
+
Caption: "Entity relations",
|
|
12871
|
+
BruceEntity: {
|
|
12872
|
+
EntityIds: bSettings.drawnRelationEntityIDs
|
|
12873
|
+
},
|
|
12874
|
+
Type: bruceModels.MenuItem.EType.Relations
|
|
12875
|
+
};
|
|
12876
|
+
return [4 /*yield*/, params.manager.RenderItem({
|
|
12887
12877
|
apiGetter: params.apiGetter,
|
|
12888
12878
|
getters: params.getters,
|
|
12889
12879
|
item: menuItem
|
|
12890
|
-
});
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12880
|
+
})];
|
|
12881
|
+
case 4:
|
|
12882
|
+
_f.sent();
|
|
12883
|
+
if (!assertIteration$1(params.viewer, iteration)) {
|
|
12884
|
+
return [2 /*return*/];
|
|
12894
12885
|
}
|
|
12895
|
-
|
|
12886
|
+
_f.label = 5;
|
|
12887
|
+
case 5: return [2 /*return*/];
|
|
12896
12888
|
}
|
|
12897
12889
|
});
|
|
12898
12890
|
});
|
|
12899
12891
|
}
|
|
12900
12892
|
/**
|
|
12901
12893
|
* Renders DATA_VERSION > 1 navigator.
|
|
12902
|
-
* @param iteration
|
|
12903
12894
|
* @param params
|
|
12904
12895
|
* @param bookmark
|
|
12905
12896
|
* @param view
|
|
@@ -12907,7 +12898,7 @@
|
|
|
12907
12898
|
function renderNavigator(iteration, params, bookmark, view) {
|
|
12908
12899
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
|
|
12909
12900
|
return __awaiter(this, void 0, void 0, function () {
|
|
12910
|
-
var viewer, scene, vSettings, bSettings, defaults, camera, newLens, shouldBe2d, curIs2d, transition, pos, terrain, hillShades, baseColor, globeHidden, terrainWireframe, globeAlpha, shadows, size, ambientOcclusion, AO, lighting, light, quality, fxaa, dateTime, clock, selectedIds, hiddenIds, isolatedIds, labelledIds, curLabelledIds, toUnLabel, entityOpacityMap, entityId, opacity, imagery,
|
|
12901
|
+
var viewer, scene, vSettings, bSettings, defaults, camera, newLens, shouldBe2d, curIs2d, transition, pos, terrain, hillShades, baseColor, globeHidden, terrainWireframe, globeAlpha, shadows, size, ambientOcclusion, AO, lighting, light, quality, fxaa, dateTime, clock, selectedIds, hiddenIds, isolatedIds, labelledIds, curLabelledIds, toUnLabel, entityOpacityMap, entityId, opacity, imagery, renderedRelationEntityIds, curEnabled, newItemIds, _i, curEnabled_1, id, menuItem, gOcclusion;
|
|
12911
12902
|
return __generator(this, function (_7) {
|
|
12912
12903
|
switch (_7.label) {
|
|
12913
12904
|
case 0:
|
|
@@ -13193,20 +13184,16 @@
|
|
|
13193
13184
|
tiles: imagery,
|
|
13194
13185
|
viewer: params.manager.Viewer,
|
|
13195
13186
|
});
|
|
13196
|
-
|
|
13197
|
-
if (!
|
|
13198
|
-
|
|
13199
|
-
}
|
|
13200
|
-
relations = bSettings === null || bSettings === void 0 ? void 0 : bSettings.renderedRelations;
|
|
13201
|
-
if (!relations) {
|
|
13202
|
-
relations = [];
|
|
13187
|
+
renderedRelationEntityIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.renderedEntityRelations;
|
|
13188
|
+
if (!renderedRelationEntityIds) {
|
|
13189
|
+
renderedRelationEntityIds = [];
|
|
13203
13190
|
}
|
|
13204
13191
|
curEnabled = params.manager.GetEnabledItemIds();
|
|
13205
13192
|
newItemIds = (_5 = bSettings === null || bSettings === void 0 ? void 0 : bSettings.menuItemIds) !== null && _5 !== void 0 ? _5 : [];
|
|
13206
13193
|
for (_i = 0, curEnabled_1 = curEnabled; _i < curEnabled_1.length; _i++) {
|
|
13207
13194
|
id = curEnabled_1[_i];
|
|
13208
|
-
if (
|
|
13209
|
-
(id == RELATION_MENU_ITEM_ID && !
|
|
13195
|
+
if (newItemIds.indexOf(id) === -1 ||
|
|
13196
|
+
(id == RELATION_MENU_ITEM_ID && !renderedRelationEntityIds.length)) {
|
|
13210
13197
|
params.manager.RemoveItemById({
|
|
13211
13198
|
menuItemId: id
|
|
13212
13199
|
});
|
|
@@ -13226,24 +13213,26 @@
|
|
|
13226
13213
|
}
|
|
13227
13214
|
_7.label = 4;
|
|
13228
13215
|
case 4:
|
|
13229
|
-
if (
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13236
|
-
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
params.manager.RenderItem({
|
|
13216
|
+
if (!renderedRelationEntityIds.length) return [3 /*break*/, 6];
|
|
13217
|
+
menuItem = {
|
|
13218
|
+
id: RELATION_MENU_ITEM_ID,
|
|
13219
|
+
Caption: "Entity relations",
|
|
13220
|
+
BruceEntity: {
|
|
13221
|
+
EntityIds: renderedRelationEntityIds
|
|
13222
|
+
},
|
|
13223
|
+
Type: bruceModels.MenuItem.EType.Relations
|
|
13224
|
+
};
|
|
13225
|
+
return [4 /*yield*/, params.manager.RenderItem({
|
|
13240
13226
|
getters: params.getters,
|
|
13241
13227
|
item: menuItem
|
|
13242
|
-
});
|
|
13243
|
-
|
|
13244
|
-
|
|
13245
|
-
|
|
13228
|
+
})];
|
|
13229
|
+
case 5:
|
|
13230
|
+
_7.sent();
|
|
13231
|
+
if (!assertIteration$1(params.viewer, iteration)) {
|
|
13232
|
+
return [2 /*return*/];
|
|
13246
13233
|
}
|
|
13234
|
+
_7.label = 6;
|
|
13235
|
+
case 6:
|
|
13247
13236
|
gOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.groundOcclusion;
|
|
13248
13237
|
if (gOcclusion == null) {
|
|
13249
13238
|
gOcclusion = (_6 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _6 === void 0 ? void 0 : _6.groundOcclusion;
|
|
@@ -16155,7 +16144,7 @@
|
|
|
16155
16144
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
16156
16145
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
16157
16146
|
|
|
16158
|
-
var VERSION$1 = "2.
|
|
16147
|
+
var VERSION$1 = "2.9.0";
|
|
16159
16148
|
|
|
16160
16149
|
exports.VERSION = VERSION$1;
|
|
16161
16150
|
exports.CesiumViewMonitor = CesiumViewMonitor;
|