bruce-cesium 3.5.7 → 3.5.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 +81 -59
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +80 -58
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/menu-item-creator.js +0 -3
- package/dist/lib/rendering/menu-item-creator.js.map +1 -1
- package/dist/lib/rendering/tileset-render-engine.js +40 -15
- package/dist/lib/rendering/tileset-render-engine.js.map +1 -1
- package/dist/lib/rendering/view-render-engine.js +39 -39
- package/dist/lib/rendering/view-render-engine.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +2 -2
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, Api, EntityRelationType, ENVIRONMENT, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, AbstractApi, ProjectViewBookmark, EntityAttachment, EntityAttachmentType, EntityAttribute, ProjectView, ProjectViewLegacyTile, Camera } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, SceneMode, GeoJsonDataSource, ColorMaterialProperty, DistanceDisplayCondition, NearFarScalar, Model, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Cesium3DTileColorBlendMode, HeadingPitchRange, Primitive, Cesium3DTileFeature, Cesium3DTileStyle, Ion, KmlDataSource, SceneTransforms, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, Cesium3DTileset, OrthographicFrustum, EasingFunction, Matrix4, Matrix3, IonResource, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ScreenSpaceEventHandler, ScreenSpaceEventType, CesiumInspector, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11688,11 +11688,12 @@ var TilesetRenderEngine;
|
|
|
11688
11688
|
}
|
|
11689
11689
|
};
|
|
11690
11690
|
Styler.prototype.processQueue = function () {
|
|
11691
|
+
var _a, _b;
|
|
11691
11692
|
return __awaiter(this, void 0, void 0, function () {
|
|
11692
|
-
var MAX_BATCHES, BATCH_DELAY, batch, rerun, entities, _loop_1, this_1, i;
|
|
11693
|
+
var MAX_BATCHES, BATCH_DELAY, batch, rerun, entities, tagIds, i, entity, eTagIds, j, tags, _loop_1, this_1, i;
|
|
11693
11694
|
var _this = this;
|
|
11694
|
-
return __generator(this, function (
|
|
11695
|
-
switch (
|
|
11695
|
+
return __generator(this, function (_c) {
|
|
11696
|
+
switch (_c.label) {
|
|
11696
11697
|
case 0:
|
|
11697
11698
|
MAX_BATCHES = 2;
|
|
11698
11699
|
BATCH_DELAY = 200;
|
|
@@ -11705,23 +11706,47 @@ var TilesetRenderEngine;
|
|
|
11705
11706
|
this.runningQueues += 1;
|
|
11706
11707
|
batch = [];
|
|
11707
11708
|
rerun = false;
|
|
11708
|
-
|
|
11709
|
+
_c.label = 1;
|
|
11709
11710
|
case 1:
|
|
11710
|
-
|
|
11711
|
+
_c.trys.push([1, , 6, 7]);
|
|
11711
11712
|
batch = this.getEntityIdsForQueue();
|
|
11712
|
-
if (!(batch.length > 0)) return [3 /*break*/,
|
|
11713
|
+
if (!(batch.length > 0)) return [3 /*break*/, 5];
|
|
11713
11714
|
return [4 /*yield*/, Entity$1.GetListByIds({
|
|
11714
11715
|
api: this.api,
|
|
11715
11716
|
entityIds: batch
|
|
11716
11717
|
})];
|
|
11717
11718
|
case 2:
|
|
11718
|
-
entities = (
|
|
11719
|
+
entities = (_c.sent()).entities;
|
|
11720
|
+
tagIds = [];
|
|
11721
|
+
for (i = 0; i < entities.length; i++) {
|
|
11722
|
+
entity = entities[i];
|
|
11723
|
+
if ((_b = (_a = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _a === void 0 ? void 0 : _a["Layer.ID"]) === null || _b === void 0 ? void 0 : _b.length) {
|
|
11724
|
+
eTagIds = entity.Bruce["Layer.ID"];
|
|
11725
|
+
for (j = 0; j < eTagIds.length; j++) {
|
|
11726
|
+
tagIds.push(eTagIds[j]);
|
|
11727
|
+
}
|
|
11728
|
+
}
|
|
11729
|
+
}
|
|
11730
|
+
// Turn into unique list.
|
|
11731
|
+
if (tagIds.length) {
|
|
11732
|
+
tagIds = tagIds.filter(function (v, i, a) { return a.indexOf(v) === i; });
|
|
11733
|
+
}
|
|
11734
|
+
tags = [];
|
|
11735
|
+
if (!tagIds.length) return [3 /*break*/, 4];
|
|
11736
|
+
return [4 /*yield*/, EntityTag.GetListByIds({
|
|
11737
|
+
tagIds: tagIds,
|
|
11738
|
+
api: this.api
|
|
11739
|
+
})];
|
|
11740
|
+
case 3:
|
|
11741
|
+
tags = (_c.sent()).tags;
|
|
11742
|
+
_c.label = 4;
|
|
11743
|
+
case 4:
|
|
11719
11744
|
_loop_1 = function (i) {
|
|
11720
11745
|
var entityId = batch[i];
|
|
11721
11746
|
var record = entities.find(function (e) { var _a; return ((_a = e.Bruce) === null || _a === void 0 ? void 0 : _a.ID) == entityId; });
|
|
11722
11747
|
var feature = this_1.getEntityRego(entityId);
|
|
11723
11748
|
if (feature) {
|
|
11724
|
-
this_1.styleTilesetFeatureFullData(feature, record);
|
|
11749
|
+
this_1.styleTilesetFeatureFullData(feature, record, tags);
|
|
11725
11750
|
}
|
|
11726
11751
|
};
|
|
11727
11752
|
this_1 = this;
|
|
@@ -11730,9 +11755,9 @@ var TilesetRenderEngine;
|
|
|
11730
11755
|
}
|
|
11731
11756
|
rerun = batch.length > 0;
|
|
11732
11757
|
this.viewer.scene.requestRender();
|
|
11733
|
-
|
|
11734
|
-
case
|
|
11735
|
-
case
|
|
11758
|
+
_c.label = 5;
|
|
11759
|
+
case 5: return [3 /*break*/, 7];
|
|
11760
|
+
case 6:
|
|
11736
11761
|
setTimeout(function () {
|
|
11737
11762
|
_this.runningQueues -= 1;
|
|
11738
11763
|
if (rerun || _this.recordLoadQueue.length > 0) {
|
|
@@ -11740,7 +11765,7 @@ var TilesetRenderEngine;
|
|
|
11740
11765
|
}
|
|
11741
11766
|
}, BATCH_DELAY);
|
|
11742
11767
|
return [7 /*endfinally*/];
|
|
11743
|
-
case
|
|
11768
|
+
case 7:
|
|
11744
11769
|
this.viewer.scene.requestRender();
|
|
11745
11770
|
return [2 /*return*/];
|
|
11746
11771
|
}
|
|
@@ -12011,16 +12036,16 @@ var TilesetRenderEngine;
|
|
|
12011
12036
|
}
|
|
12012
12037
|
};
|
|
12013
12038
|
Styler.prototype.styleTilesetFeature = function (entity) {
|
|
12014
|
-
this.styleTilesetFeatureFullData(entity, null);
|
|
12039
|
+
this.styleTilesetFeatureFullData(entity, null, []);
|
|
12015
12040
|
};
|
|
12016
|
-
Styler.prototype.styleTilesetFeatureFullData = function (entity, data) {
|
|
12041
|
+
Styler.prototype.styleTilesetFeatureFullData = function (entity, data, tags) {
|
|
12017
12042
|
var _a;
|
|
12018
12043
|
var visual = entity.visual;
|
|
12019
12044
|
if (!visual || !(visual instanceof Cesium3DTileFeature)) {
|
|
12020
12045
|
return;
|
|
12021
12046
|
}
|
|
12022
12047
|
var style = this.getTilesetFeatureStyle(entity.entityId, entity.entityTypeId);
|
|
12023
|
-
var bColor = style && ((_a = style.modelStyle) === null || _a === void 0 ? void 0 : _a.fillColor) ? Calculator.GetColor(style.modelStyle.fillColor, data,
|
|
12048
|
+
var bColor = style && ((_a = style.modelStyle) === null || _a === void 0 ? void 0 : _a.fillColor) ? Calculator.GetColor(style.modelStyle.fillColor, data, tags) : null;
|
|
12024
12049
|
var cColor = null;
|
|
12025
12050
|
if (bColor == null) {
|
|
12026
12051
|
cColor = Color.WHITE;
|
|
@@ -19412,9 +19437,6 @@ var MenuItemCreator;
|
|
|
19412
19437
|
_d.label = 6;
|
|
19413
19438
|
case 6:
|
|
19414
19439
|
bookmark = _c;
|
|
19415
|
-
if (view.DataVersion != bookmark.DataVersion) {
|
|
19416
|
-
console.warn("View and bookmark settings version mismatch.");
|
|
19417
|
-
}
|
|
19418
19440
|
enabledIds = [];
|
|
19419
19441
|
menuItems = [];
|
|
19420
19442
|
version = view.DataVersion;
|
|
@@ -21093,58 +21115,58 @@ function renderLegacyNavigator(iteration, params, bookmark, view) {
|
|
|
21093
21115
|
* @param view
|
|
21094
21116
|
*/
|
|
21095
21117
|
function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
21096
|
-
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
|
|
21118
|
+
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;
|
|
21097
21119
|
return __awaiter(this, void 0, void 0, function () {
|
|
21098
|
-
var viewer, scene, cTokenSet,
|
|
21099
|
-
return __generator(this, function (
|
|
21100
|
-
switch (
|
|
21120
|
+
var viewer, scene, cTokenSet, _6, programKey, valid, e_1, valid, 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, i, layer, legacyRelationIds, relations, curEnabled, newItemIds, _i, curEnabled_1, id, shouldRemove, rendered, menuItem, menuItem, gOcclusion;
|
|
21121
|
+
return __generator(this, function (_7) {
|
|
21122
|
+
switch (_7.label) {
|
|
21101
21123
|
case 0:
|
|
21102
21124
|
viewer = params.manager.Viewer;
|
|
21103
21125
|
scene = viewer.scene;
|
|
21104
21126
|
if (!Ion.defaultAccessToken) return [3 /*break*/, 2];
|
|
21105
21127
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(Ion.defaultAccessToken)];
|
|
21106
21128
|
case 1:
|
|
21107
|
-
|
|
21129
|
+
_6 = _7.sent();
|
|
21108
21130
|
return [3 /*break*/, 3];
|
|
21109
21131
|
case 2:
|
|
21110
|
-
|
|
21111
|
-
|
|
21132
|
+
_6 = false;
|
|
21133
|
+
_7.label = 3;
|
|
21112
21134
|
case 3:
|
|
21113
|
-
cTokenSet =
|
|
21135
|
+
cTokenSet = _6;
|
|
21114
21136
|
if (!!cTokenSet) return [3 /*break*/, 9];
|
|
21115
|
-
|
|
21137
|
+
_7.label = 4;
|
|
21116
21138
|
case 4:
|
|
21117
|
-
|
|
21139
|
+
_7.trys.push([4, 8, , 9]);
|
|
21118
21140
|
return [4 /*yield*/, ProgramKey.Get({
|
|
21119
21141
|
programId: ProgramKey.EProgramId.CesiumIon,
|
|
21120
21142
|
api: getters.GetBruceApi()
|
|
21121
21143
|
})];
|
|
21122
21144
|
case 5:
|
|
21123
|
-
programKey = (
|
|
21145
|
+
programKey = (_7.sent()).programKey;
|
|
21124
21146
|
if (!(programKey === null || programKey === void 0 ? void 0 : programKey.Key)) return [3 /*break*/, 7];
|
|
21125
21147
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(programKey.Key)];
|
|
21126
21148
|
case 6:
|
|
21127
|
-
valid =
|
|
21149
|
+
valid = _7.sent();
|
|
21128
21150
|
if (valid) {
|
|
21129
21151
|
Ion.defaultAccessToken = programKey.Key;
|
|
21130
21152
|
cTokenSet = true;
|
|
21131
21153
|
}
|
|
21132
|
-
|
|
21154
|
+
_7.label = 7;
|
|
21133
21155
|
case 7: return [3 /*break*/, 9];
|
|
21134
21156
|
case 8:
|
|
21135
|
-
e_1 =
|
|
21157
|
+
e_1 = _7.sent();
|
|
21136
21158
|
console.error(e_1);
|
|
21137
21159
|
return [3 /*break*/, 9];
|
|
21138
21160
|
case 9:
|
|
21139
21161
|
if (!!cTokenSet) return [3 /*break*/, 11];
|
|
21140
21162
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(CESIUM_DEFAULT_TOKEN)];
|
|
21141
21163
|
case 10:
|
|
21142
|
-
valid =
|
|
21164
|
+
valid = _7.sent();
|
|
21143
21165
|
if (valid) {
|
|
21144
21166
|
Ion.defaultAccessToken = CESIUM_DEFAULT_TOKEN;
|
|
21145
21167
|
cTokenSet = true;
|
|
21146
21168
|
}
|
|
21147
|
-
|
|
21169
|
+
_7.label = 11;
|
|
21148
21170
|
case 11:
|
|
21149
21171
|
vSettings = view.Settings;
|
|
21150
21172
|
bSettings = ((_a = bookmark === null || bookmark === void 0 ? void 0 : bookmark.Settings) !== null && _a !== void 0 ? _a : {});
|
|
@@ -21212,15 +21234,15 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21212
21234
|
viewer: params.manager.Viewer,
|
|
21213
21235
|
})];
|
|
21214
21236
|
case 12:
|
|
21215
|
-
|
|
21237
|
+
_7.sent();
|
|
21216
21238
|
if (!assertIteration$1(params.viewer, iteration)) {
|
|
21217
21239
|
return [2 /*return*/];
|
|
21218
21240
|
}
|
|
21219
|
-
|
|
21241
|
+
_7.label = 13;
|
|
21220
21242
|
case 13:
|
|
21221
|
-
hillShades =
|
|
21243
|
+
hillShades = bSettings === null || bSettings === void 0 ? void 0 : bSettings.hillShades;
|
|
21222
21244
|
if (hillShades == null) {
|
|
21223
|
-
hillShades = (
|
|
21245
|
+
hillShades = (_o = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _o === void 0 ? void 0 : _o.hillShades;
|
|
21224
21246
|
}
|
|
21225
21247
|
if (hillShades == null) {
|
|
21226
21248
|
hillShades = true;
|
|
@@ -21228,7 +21250,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21228
21250
|
scene.globe.enableLighting = Boolean(hillShades);
|
|
21229
21251
|
baseColor = bSettings === null || bSettings === void 0 ? void 0 : bSettings.globeColor;
|
|
21230
21252
|
if (baseColor == null) {
|
|
21231
|
-
baseColor = (
|
|
21253
|
+
baseColor = (_p = defaults.settings) === null || _p === void 0 ? void 0 : _p.globeColor;
|
|
21232
21254
|
}
|
|
21233
21255
|
if (baseColor == null) {
|
|
21234
21256
|
// TODO: Need global default.
|
|
@@ -21237,7 +21259,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21237
21259
|
scene.globe.baseColor = Color.fromCssColorString(baseColor);
|
|
21238
21260
|
globeHidden = bSettings === null || bSettings === void 0 ? void 0 : bSettings.globeHidden;
|
|
21239
21261
|
if (globeHidden == null) {
|
|
21240
|
-
globeHidden = (
|
|
21262
|
+
globeHidden = (_q = defaults.settings) === null || _q === void 0 ? void 0 : _q.globeHidden;
|
|
21241
21263
|
}
|
|
21242
21264
|
if (globeHidden == null) {
|
|
21243
21265
|
globeHidden = false;
|
|
@@ -21245,7 +21267,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21245
21267
|
scene.globe.show = !globeHidden;
|
|
21246
21268
|
terrainWireframe = bSettings === null || bSettings === void 0 ? void 0 : bSettings.terrainWireframe;
|
|
21247
21269
|
if (terrainWireframe == null) {
|
|
21248
|
-
terrainWireframe = (
|
|
21270
|
+
terrainWireframe = (_r = defaults.settings) === null || _r === void 0 ? void 0 : _r.terrainWireframe;
|
|
21249
21271
|
}
|
|
21250
21272
|
if (terrainWireframe == null) {
|
|
21251
21273
|
terrainWireframe = false;
|
|
@@ -21256,7 +21278,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21256
21278
|
});
|
|
21257
21279
|
globeAlpha = +(bSettings === null || bSettings === void 0 ? void 0 : bSettings.globeAlpha);
|
|
21258
21280
|
if (isNaN(globeAlpha)) {
|
|
21259
|
-
globeAlpha = +((
|
|
21281
|
+
globeAlpha = +((_s = defaults.settings) === null || _s === void 0 ? void 0 : _s.globeAlpha);
|
|
21260
21282
|
}
|
|
21261
21283
|
if (!scene.globe.translucency.enabled) {
|
|
21262
21284
|
scene.globe.translucency.enabled = true;
|
|
@@ -21266,7 +21288,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21266
21288
|
scene.globe.translucency.frontFaceAlphaByDistance.nearValue = EnsureNumber(globeAlpha, 1);
|
|
21267
21289
|
shadows = bSettings === null || bSettings === void 0 ? void 0 : bSettings.shadows;
|
|
21268
21290
|
if (shadows == null) {
|
|
21269
|
-
shadows = (
|
|
21291
|
+
shadows = (_t = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _t === void 0 ? void 0 : _t.shadows;
|
|
21270
21292
|
}
|
|
21271
21293
|
if (shadows == null) {
|
|
21272
21294
|
shadows = {
|
|
@@ -21287,7 +21309,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21287
21309
|
viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.3);
|
|
21288
21310
|
ambientOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.ambientOcclusion;
|
|
21289
21311
|
if (ambientOcclusion == null) {
|
|
21290
|
-
ambientOcclusion = (
|
|
21312
|
+
ambientOcclusion = (_u = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _u === void 0 ? void 0 : _u.ambientOcclusion;
|
|
21291
21313
|
}
|
|
21292
21314
|
if (ambientOcclusion == null) {
|
|
21293
21315
|
ambientOcclusion = {
|
|
@@ -21310,7 +21332,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21310
21332
|
}
|
|
21311
21333
|
lighting = bSettings === null || bSettings === void 0 ? void 0 : bSettings.lighting;
|
|
21312
21334
|
if (lighting == null) {
|
|
21313
|
-
lighting = (
|
|
21335
|
+
lighting = (_v = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _v === void 0 ? void 0 : _v.lighting;
|
|
21314
21336
|
}
|
|
21315
21337
|
if (lighting == null) {
|
|
21316
21338
|
lighting = {
|
|
@@ -21325,7 +21347,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21325
21347
|
}
|
|
21326
21348
|
quality = bSettings === null || bSettings === void 0 ? void 0 : bSettings.quality;
|
|
21327
21349
|
if (quality == null) {
|
|
21328
|
-
quality = (
|
|
21350
|
+
quality = (_w = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _w === void 0 ? void 0 : _w.quality;
|
|
21329
21351
|
}
|
|
21330
21352
|
if (quality == null) {
|
|
21331
21353
|
quality = {
|
|
@@ -21336,7 +21358,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21336
21358
|
fxaa.enabled = Boolean(quality.fxaa);
|
|
21337
21359
|
dateTime = bSettings === null || bSettings === void 0 ? void 0 : bSettings.dateTime;
|
|
21338
21360
|
if (dateTime == null) {
|
|
21339
|
-
dateTime = (
|
|
21361
|
+
dateTime = (_x = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _x === void 0 ? void 0 : _x.dateTime;
|
|
21340
21362
|
}
|
|
21341
21363
|
if (dateTime != null) {
|
|
21342
21364
|
clock = viewer.clock;
|
|
@@ -21344,7 +21366,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21344
21366
|
}
|
|
21345
21367
|
selectedIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.selectedEntityIds;
|
|
21346
21368
|
if (selectedIds == null) {
|
|
21347
|
-
selectedIds = (
|
|
21369
|
+
selectedIds = (_y = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _y === void 0 ? void 0 : _y.selectedEntityIds;
|
|
21348
21370
|
}
|
|
21349
21371
|
if (selectedIds != null) {
|
|
21350
21372
|
params.manager.VisualsRegister.ClearSelected();
|
|
@@ -21358,7 +21380,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21358
21380
|
params.manager.VisualsRegister.ClearHidden();
|
|
21359
21381
|
hiddenIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.hiddenEntityIds;
|
|
21360
21382
|
if (hiddenIds == null) {
|
|
21361
|
-
hiddenIds = (
|
|
21383
|
+
hiddenIds = (_z = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _z === void 0 ? void 0 : _z.hiddenEntityIds;
|
|
21362
21384
|
}
|
|
21363
21385
|
if (hiddenIds != null) {
|
|
21364
21386
|
params.manager.VisualsRegister.SetHidden({
|
|
@@ -21370,7 +21392,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21370
21392
|
params.manager.VisualsRegister.ClearIsolated();
|
|
21371
21393
|
isolatedIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.isolatedEntityIds;
|
|
21372
21394
|
if (isolatedIds == null) {
|
|
21373
|
-
isolatedIds = (
|
|
21395
|
+
isolatedIds = (_0 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _0 === void 0 ? void 0 : _0.isolatedEntityIds;
|
|
21374
21396
|
}
|
|
21375
21397
|
if (isolatedIds != null) {
|
|
21376
21398
|
params.manager.VisualsRegister.SetIsolated({
|
|
@@ -21381,7 +21403,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21381
21403
|
}
|
|
21382
21404
|
labelledIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.labelledEntityIds;
|
|
21383
21405
|
if (labelledIds == null) {
|
|
21384
|
-
labelledIds = (
|
|
21406
|
+
labelledIds = (_1 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _1 === void 0 ? void 0 : _1.labelledEntityIds;
|
|
21385
21407
|
}
|
|
21386
21408
|
if (!(labelledIds === null || labelledIds === void 0 ? void 0 : labelledIds.length)) {
|
|
21387
21409
|
params.manager.VisualsRegister.ClearLabelled({
|
|
@@ -21405,7 +21427,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21405
21427
|
params.manager.VisualsRegister.ClearOpacity();
|
|
21406
21428
|
entityOpacityMap = bSettings === null || bSettings === void 0 ? void 0 : bSettings.entityOpacityMap;
|
|
21407
21429
|
if (entityOpacityMap == null) {
|
|
21408
|
-
entityOpacityMap = (
|
|
21430
|
+
entityOpacityMap = (_2 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _2 === void 0 ? void 0 : _2.entityOpacityMap;
|
|
21409
21431
|
}
|
|
21410
21432
|
if (entityOpacityMap != null) {
|
|
21411
21433
|
for (entityId in entityOpacityMap) {
|
|
@@ -21419,7 +21441,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21419
21441
|
}
|
|
21420
21442
|
}
|
|
21421
21443
|
}
|
|
21422
|
-
imagery = (bSettings === null || bSettings === void 0 ? void 0 : bSettings.imagery) != null ? bSettings.imagery : (
|
|
21444
|
+
imagery = (bSettings === null || bSettings === void 0 ? void 0 : bSettings.imagery) != null ? bSettings.imagery : (_3 = defaults.settings) === null || _3 === void 0 ? void 0 : _3.imagery;
|
|
21423
21445
|
if (imagery == null) {
|
|
21424
21446
|
// TODO: Need global default.
|
|
21425
21447
|
imagery = [
|
|
@@ -21474,7 +21496,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21474
21496
|
}
|
|
21475
21497
|
viewer.scene.requestRender();
|
|
21476
21498
|
curEnabled = params.manager.GetEnabledItemIds();
|
|
21477
|
-
newItemIds = (
|
|
21499
|
+
newItemIds = (_4 = bSettings === null || bSettings === void 0 ? void 0 : bSettings.menuItemIds) !== null && _4 !== void 0 ? _4 : [];
|
|
21478
21500
|
for (_i = 0, curEnabled_1 = curEnabled; _i < curEnabled_1.length; _i++) {
|
|
21479
21501
|
id = curEnabled_1[_i];
|
|
21480
21502
|
shouldRemove = void 0;
|
|
@@ -21510,11 +21532,11 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21510
21532
|
bookmark: bookmark
|
|
21511
21533
|
})];
|
|
21512
21534
|
case 14:
|
|
21513
|
-
|
|
21535
|
+
_7.sent();
|
|
21514
21536
|
if (!assertIteration$1(params.viewer, iteration)) {
|
|
21515
21537
|
return [2 /*return*/];
|
|
21516
21538
|
}
|
|
21517
|
-
|
|
21539
|
+
_7.label = 15;
|
|
21518
21540
|
case 15:
|
|
21519
21541
|
if (legacyRelationIds.length || relations.length) {
|
|
21520
21542
|
if (relations.length) {
|
|
@@ -21549,7 +21571,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21549
21571
|
}
|
|
21550
21572
|
gOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.groundOcclusion;
|
|
21551
21573
|
if (gOcclusion == null) {
|
|
21552
|
-
gOcclusion = (
|
|
21574
|
+
gOcclusion = (_5 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _5 === void 0 ? void 0 : _5.groundOcclusion;
|
|
21553
21575
|
}
|
|
21554
21576
|
if (gOcclusion == null) {
|
|
21555
21577
|
// TODO: Need global default.
|
|
@@ -21654,7 +21676,7 @@ var ViewRenderEngine;
|
|
|
21654
21676
|
ViewRenderEngine.Render = Render;
|
|
21655
21677
|
})(ViewRenderEngine || (ViewRenderEngine = {}));
|
|
21656
21678
|
|
|
21657
|
-
var VERSION = "3.5.
|
|
21679
|
+
var VERSION = "3.5.8";
|
|
21658
21680
|
|
|
21659
21681
|
export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, Draw3dPolygon, Draw3dPolyline };
|
|
21660
21682
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|