bruce-cesium 3.6.7 → 3.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 +132 -38
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +131 -36
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/data-source/data-source-static-csv-manager.js +14 -4
- package/dist/lib/rendering/render-managers/data-source/data-source-static-csv-manager.js.map +1 -1
- package/dist/lib/rendering/view-render-engine.js +47 -31
- package/dist/lib/rendering/view-render-engine.js.map +1 -1
- package/dist/lib/utils/view-utils.js +70 -1
- package/dist/lib/utils/view-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/utils/view-utils.d.ts +36 -0
- package/package.json +1 -1
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, DistanceDisplayCondition, NearFarScalar, Model, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, ColorMaterialProperty, Cesium3DTileColorBlendMode, HeadingPitchRange,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, DistanceDisplayCondition, NearFarScalar, Model, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, ColorMaterialProperty, Cesium3DTileColorBlendMode, HeadingPitchRange, Cesium3DTileStyle, Ion, KmlDataSource, OrthographicFrustum, EasingFunction, SceneTransforms, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, CzmlDataSource, Quaternion } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3011,6 +3011,7 @@ var RenderManager;
|
|
|
3011
3011
|
})(RenderManager || (RenderManager = {}));
|
|
3012
3012
|
|
|
3013
3013
|
var CESIUM_INSPECTOR_KEY = "_nextspace_inspector";
|
|
3014
|
+
var CESIUM_TIMELINE_KEY = "_nextspace_timeline";
|
|
3014
3015
|
var ViewUtils;
|
|
3015
3016
|
(function (ViewUtils) {
|
|
3016
3017
|
function GatherLegacyMapTiles(params) {
|
|
@@ -3215,6 +3216,74 @@ var ViewUtils;
|
|
|
3215
3216
|
return !scene.screenSpaceCameraController.enableTranslate;
|
|
3216
3217
|
}
|
|
3217
3218
|
ViewUtils.GetLockedCameraStatus = GetLockedCameraStatus;
|
|
3219
|
+
/**
|
|
3220
|
+
* Returns the current camera time and related settings.
|
|
3221
|
+
* @param params
|
|
3222
|
+
* @returns
|
|
3223
|
+
*/
|
|
3224
|
+
function GetTimeDetails(params) {
|
|
3225
|
+
var viewer = params.viewer;
|
|
3226
|
+
var clock = viewer.clock;
|
|
3227
|
+
return {
|
|
3228
|
+
animationSpeed: clock.multiplier,
|
|
3229
|
+
isAnimating: clock.shouldAnimate,
|
|
3230
|
+
startTime: clock.startTime,
|
|
3231
|
+
startTimeIso: clock.startTime.toString(),
|
|
3232
|
+
currentTime: clock.currentTime,
|
|
3233
|
+
currentTimeIso: clock.currentTime.toString(),
|
|
3234
|
+
stopTime: clock.stopTime,
|
|
3235
|
+
stopTimeIso: clock.stopTime.toString(),
|
|
3236
|
+
areCesiumValues: clock[CESIUM_TIMELINE_KEY] != true
|
|
3237
|
+
};
|
|
3238
|
+
}
|
|
3239
|
+
ViewUtils.GetTimeDetails = GetTimeDetails;
|
|
3240
|
+
/**
|
|
3241
|
+
* Sets the Cesium clock values.
|
|
3242
|
+
* If a value is not provided, then 'areCesiumValues' checked to see if the values are Cesium values.
|
|
3243
|
+
* If they're currently Cesium set values then our defaults are used.
|
|
3244
|
+
* @param params
|
|
3245
|
+
*/
|
|
3246
|
+
function SetTimeDetails(params) {
|
|
3247
|
+
var viewer = params.viewer, animationSpeed = params.animationSpeed, isAnimating = params.isAnimating, startTime = params.startTime, currentTime = params.currentTime, stopTime = params.stopTime, startTimeIso = params.startTimeIso, stopTimeIso = params.stopTimeIso, currentTimeIso = params.currentTimeIso;
|
|
3248
|
+
var clock = viewer.clock;
|
|
3249
|
+
if (startTime) {
|
|
3250
|
+
clock.startTime = startTime;
|
|
3251
|
+
}
|
|
3252
|
+
else if (startTimeIso) {
|
|
3253
|
+
clock.startTime = JulianDate.fromIso8601(params.startTimeIso);
|
|
3254
|
+
}
|
|
3255
|
+
if (currentTime) {
|
|
3256
|
+
clock.currentTime = currentTime;
|
|
3257
|
+
}
|
|
3258
|
+
else if (currentTimeIso) {
|
|
3259
|
+
clock.currentTime = JulianDate.fromIso8601(params.currentTimeIso);
|
|
3260
|
+
}
|
|
3261
|
+
if (stopTime) {
|
|
3262
|
+
clock.stopTime = stopTime;
|
|
3263
|
+
}
|
|
3264
|
+
else if (stopTimeIso) {
|
|
3265
|
+
clock.stopTime = JulianDate.fromIso8601(params.stopTimeIso);
|
|
3266
|
+
}
|
|
3267
|
+
clock.clockRange = ClockRange.LOOP_STOP;
|
|
3268
|
+
var areCesiumValues = clock[CESIUM_TIMELINE_KEY] != true;
|
|
3269
|
+
if (areCesiumValues) {
|
|
3270
|
+
if (isNaN(animationSpeed) || animationSpeed == null) {
|
|
3271
|
+
animationSpeed = 1;
|
|
3272
|
+
}
|
|
3273
|
+
if (isAnimating == null) {
|
|
3274
|
+
isAnimating = false;
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
if (!isNaN(animationSpeed) && animationSpeed != null) {
|
|
3278
|
+
clock.multiplier = animationSpeed;
|
|
3279
|
+
}
|
|
3280
|
+
if (isAnimating != null) {
|
|
3281
|
+
clock.shouldAnimate = isAnimating;
|
|
3282
|
+
}
|
|
3283
|
+
viewer.scene.requestRender();
|
|
3284
|
+
clock[CESIUM_TIMELINE_KEY] = true;
|
|
3285
|
+
}
|
|
3286
|
+
ViewUtils.SetTimeDetails = SetTimeDetails;
|
|
3218
3287
|
})(ViewUtils || (ViewUtils = {}));
|
|
3219
3288
|
|
|
3220
3289
|
var MODEL_MIN_RADIUS = 10;
|
|
@@ -15349,7 +15418,7 @@ var DataSourceStaticCsvManager;
|
|
|
15349
15418
|
Manager.prototype.renderMovingItem = function () {
|
|
15350
15419
|
var _a;
|
|
15351
15420
|
return __awaiter(this, void 0, void 0, function () {
|
|
15352
|
-
var api, vehicleFileUrl, alarmFileUrl, lineColor, vehicleEntityId, fileStrings, files, i, file, fileId, externalURL, fileUrl, fileStr, csvData, i, delimiter, fileStr, headers, rows, rowsArr, j, row, rowArr, primary, pHeaders, pLatIndex, pLonIndex, pDateTimeIndex, i, row, lat, lon, dateTimeStr, utcDate, _b, datePart, timePart, _c, year, month, day, _d, hours, minutes, seconds, milliseconds, convertTo24HourFormat, dateTime24hr, _e, datePart, timePart, _f, day, month, year, _g, hours, minutes, seconds, _h, datePart, timePart, _j, year, month, day, _k, hours, minutes, seconds, vehicleCesiumId, _l, czml, entityMapping, czmlAdjusted,
|
|
15421
|
+
var api, vehicleFileUrl, alarmFileUrl, lineColor, vehicleEntityId, fileStrings, files, i, file, fileId, externalURL, fileUrl, fileStr, csvData, i, delimiter, fileStr, headers, rows, rowsArr, j, row, rowArr, primary, pHeaders, pLatIndex, pLonIndex, pDateTimeIndex, i, row, lat, lon, dateTimeStr, utcDate, _b, datePart, timePart, _c, year, month, day, _d, hours, minutes, seconds, milliseconds, convertTo24HourFormat, dateTime24hr, _e, datePart, timePart, _f, day, month, year, _g, hours, minutes, seconds, _h, datePart, timePart, _j, year, month, day, _k, hours, minutes, seconds, vehicleCesiumId, _l, czml, entityMapping, czmlAdjusted, curSettings, source, pHeadingIndex_1, errorsInARow_1, removal_1, vehicleEntity, cesiumEntityIds, i, cesiumEntityId, entity, nextspaceEntityId;
|
|
15353
15422
|
var _this = this;
|
|
15354
15423
|
return __generator(this, function (_m) {
|
|
15355
15424
|
switch (_m.label) {
|
|
@@ -15508,14 +15577,23 @@ var DataSourceStaticCsvManager;
|
|
|
15508
15577
|
czmlAdjusted.forEach(function (item) {
|
|
15509
15578
|
delete item.clock;
|
|
15510
15579
|
});
|
|
15511
|
-
|
|
15580
|
+
curSettings = ViewUtils.GetTimeDetails({
|
|
15581
|
+
viewer: this.viewer
|
|
15582
|
+
});
|
|
15512
15583
|
return [4 /*yield*/, this.viewer.dataSources.add(CzmlDataSource.load(czmlAdjusted))];
|
|
15513
15584
|
case 7:
|
|
15514
15585
|
source = _m.sent();
|
|
15515
15586
|
this.dataSource = source;
|
|
15516
15587
|
// Reset back to the previous dateTime.
|
|
15517
15588
|
// Adding the czml data source will have changed the clock.
|
|
15518
|
-
|
|
15589
|
+
ViewUtils.SetTimeDetails({
|
|
15590
|
+
viewer: this.viewer,
|
|
15591
|
+
isAnimating: curSettings.isAnimating,
|
|
15592
|
+
animationSpeed: curSettings.animationSpeed,
|
|
15593
|
+
currentTimeIso: curSettings.currentTimeIso,
|
|
15594
|
+
startTimeIso: curSettings.startTimeIso,
|
|
15595
|
+
stopTimeIso: curSettings.stopTimeIso
|
|
15596
|
+
});
|
|
15519
15597
|
// Listen to update ticks and ensure orientation of moving item is correct.
|
|
15520
15598
|
if (this.viewer.clock) {
|
|
15521
15599
|
pHeadingIndex_1 = pHeaders.findIndex(function (x) { return x.toLowerCase().includes("head"); });
|
|
@@ -15757,7 +15835,7 @@ function createJourneyCzml(vehicleId, vehicleFileUrl, alarmFileUrl, lineColor, d
|
|
|
15757
15835
|
"availability": rows[0][dateTimeIndex] + "/" + rows[rows.length - 1][dateTimeIndex],
|
|
15758
15836
|
"model": vehicleFileUrl ? {
|
|
15759
15837
|
"gltf": vehicleFileUrl,
|
|
15760
|
-
"scale":
|
|
15838
|
+
"scale": 1
|
|
15761
15839
|
} : undefined,
|
|
15762
15840
|
"point": !vehicleFileUrl ? {
|
|
15763
15841
|
"pixelSize": 20,
|
|
@@ -21853,58 +21931,58 @@ function renderLegacyNavigator(iteration, params, bookmark, view) {
|
|
|
21853
21931
|
* @param view
|
|
21854
21932
|
*/
|
|
21855
21933
|
function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
21856
|
-
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;
|
|
21934
|
+
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;
|
|
21857
21935
|
return __awaiter(this, void 0, void 0, function () {
|
|
21858
|
-
var viewer, scene, cTokenSet,
|
|
21859
|
-
return __generator(this, function (
|
|
21860
|
-
switch (
|
|
21936
|
+
var viewer, scene, cTokenSet, _7, 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, timeline, 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;
|
|
21937
|
+
return __generator(this, function (_8) {
|
|
21938
|
+
switch (_8.label) {
|
|
21861
21939
|
case 0:
|
|
21862
21940
|
viewer = params.manager.Viewer;
|
|
21863
21941
|
scene = viewer.scene;
|
|
21864
21942
|
if (!Ion.defaultAccessToken) return [3 /*break*/, 2];
|
|
21865
21943
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(Ion.defaultAccessToken)];
|
|
21866
21944
|
case 1:
|
|
21867
|
-
|
|
21945
|
+
_7 = _8.sent();
|
|
21868
21946
|
return [3 /*break*/, 3];
|
|
21869
21947
|
case 2:
|
|
21870
|
-
|
|
21871
|
-
|
|
21948
|
+
_7 = false;
|
|
21949
|
+
_8.label = 3;
|
|
21872
21950
|
case 3:
|
|
21873
|
-
cTokenSet =
|
|
21951
|
+
cTokenSet = _7;
|
|
21874
21952
|
if (!!cTokenSet) return [3 /*break*/, 9];
|
|
21875
|
-
|
|
21953
|
+
_8.label = 4;
|
|
21876
21954
|
case 4:
|
|
21877
|
-
|
|
21955
|
+
_8.trys.push([4, 8, , 9]);
|
|
21878
21956
|
return [4 /*yield*/, ProgramKey.Get({
|
|
21879
21957
|
programId: ProgramKey.EProgramId.CesiumIon,
|
|
21880
21958
|
api: getters.GetBruceApi()
|
|
21881
21959
|
})];
|
|
21882
21960
|
case 5:
|
|
21883
|
-
programKey = (
|
|
21961
|
+
programKey = (_8.sent()).programKey;
|
|
21884
21962
|
if (!(programKey === null || programKey === void 0 ? void 0 : programKey.Key)) return [3 /*break*/, 7];
|
|
21885
21963
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(programKey.Key)];
|
|
21886
21964
|
case 6:
|
|
21887
|
-
valid =
|
|
21965
|
+
valid = _8.sent();
|
|
21888
21966
|
if (valid) {
|
|
21889
21967
|
Ion.defaultAccessToken = programKey.Key;
|
|
21890
21968
|
cTokenSet = true;
|
|
21891
21969
|
}
|
|
21892
|
-
|
|
21970
|
+
_8.label = 7;
|
|
21893
21971
|
case 7: return [3 /*break*/, 9];
|
|
21894
21972
|
case 8:
|
|
21895
|
-
e_1 =
|
|
21973
|
+
e_1 = _8.sent();
|
|
21896
21974
|
console.error(e_1);
|
|
21897
21975
|
return [3 /*break*/, 9];
|
|
21898
21976
|
case 9:
|
|
21899
21977
|
if (!!cTokenSet) return [3 /*break*/, 11];
|
|
21900
21978
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(CESIUM_DEFAULT_TOKEN)];
|
|
21901
21979
|
case 10:
|
|
21902
|
-
valid =
|
|
21980
|
+
valid = _8.sent();
|
|
21903
21981
|
if (valid) {
|
|
21904
21982
|
Ion.defaultAccessToken = CESIUM_DEFAULT_TOKEN;
|
|
21905
21983
|
cTokenSet = true;
|
|
21906
21984
|
}
|
|
21907
|
-
|
|
21985
|
+
_8.label = 11;
|
|
21908
21986
|
case 11:
|
|
21909
21987
|
vSettings = view.Settings;
|
|
21910
21988
|
bSettings = ((_a = bookmark === null || bookmark === void 0 ? void 0 : bookmark.Settings) !== null && _a !== void 0 ? _a : {});
|
|
@@ -21972,11 +22050,11 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21972
22050
|
viewer: params.manager.Viewer,
|
|
21973
22051
|
})];
|
|
21974
22052
|
case 12:
|
|
21975
|
-
|
|
22053
|
+
_8.sent();
|
|
21976
22054
|
if (!assertIteration$1(params.viewer, iteration)) {
|
|
21977
22055
|
return [2 /*return*/];
|
|
21978
22056
|
}
|
|
21979
|
-
|
|
22057
|
+
_8.label = 13;
|
|
21980
22058
|
case 13:
|
|
21981
22059
|
hillShades = bSettings === null || bSettings === void 0 ? void 0 : bSettings.hillShades;
|
|
21982
22060
|
if (hillShades == null) {
|
|
@@ -22098,13 +22176,29 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22098
22176
|
if (dateTime == null) {
|
|
22099
22177
|
dateTime = (_x = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _x === void 0 ? void 0 : _x.dateTime;
|
|
22100
22178
|
}
|
|
22101
|
-
|
|
22102
|
-
|
|
22103
|
-
|
|
22179
|
+
timeline = bSettings === null || bSettings === void 0 ? void 0 : bSettings.timeline;
|
|
22180
|
+
if (timeline == null) {
|
|
22181
|
+
timeline = (_y = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _y === void 0 ? void 0 : _y.timeline;
|
|
22104
22182
|
}
|
|
22183
|
+
if (timeline == null) {
|
|
22184
|
+
timeline = {
|
|
22185
|
+
end: null,
|
|
22186
|
+
playing: false,
|
|
22187
|
+
speed: 1,
|
|
22188
|
+
start: null
|
|
22189
|
+
};
|
|
22190
|
+
}
|
|
22191
|
+
ViewUtils.SetTimeDetails({
|
|
22192
|
+
viewer: viewer,
|
|
22193
|
+
animationSpeed: timeline.speed,
|
|
22194
|
+
currentTimeIso: dateTime,
|
|
22195
|
+
startTimeIso: timeline.start,
|
|
22196
|
+
stopTimeIso: timeline.end,
|
|
22197
|
+
isAnimating: timeline.playing
|
|
22198
|
+
});
|
|
22105
22199
|
selectedIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.selectedEntityIds;
|
|
22106
22200
|
if (selectedIds == null) {
|
|
22107
|
-
selectedIds = (
|
|
22201
|
+
selectedIds = (_z = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _z === void 0 ? void 0 : _z.selectedEntityIds;
|
|
22108
22202
|
}
|
|
22109
22203
|
if (selectedIds != null) {
|
|
22110
22204
|
params.manager.VisualsRegister.ClearSelected();
|
|
@@ -22118,7 +22212,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22118
22212
|
params.manager.VisualsRegister.ClearHidden();
|
|
22119
22213
|
hiddenIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.hiddenEntityIds;
|
|
22120
22214
|
if (hiddenIds == null) {
|
|
22121
|
-
hiddenIds = (
|
|
22215
|
+
hiddenIds = (_0 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _0 === void 0 ? void 0 : _0.hiddenEntityIds;
|
|
22122
22216
|
}
|
|
22123
22217
|
if (hiddenIds != null) {
|
|
22124
22218
|
params.manager.VisualsRegister.SetHidden({
|
|
@@ -22130,7 +22224,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22130
22224
|
params.manager.VisualsRegister.ClearIsolated();
|
|
22131
22225
|
isolatedIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.isolatedEntityIds;
|
|
22132
22226
|
if (isolatedIds == null) {
|
|
22133
|
-
isolatedIds = (
|
|
22227
|
+
isolatedIds = (_1 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _1 === void 0 ? void 0 : _1.isolatedEntityIds;
|
|
22134
22228
|
}
|
|
22135
22229
|
if (isolatedIds != null) {
|
|
22136
22230
|
params.manager.VisualsRegister.SetIsolated({
|
|
@@ -22141,7 +22235,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22141
22235
|
}
|
|
22142
22236
|
labelledIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.labelledEntityIds;
|
|
22143
22237
|
if (labelledIds == null) {
|
|
22144
|
-
labelledIds = (
|
|
22238
|
+
labelledIds = (_2 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _2 === void 0 ? void 0 : _2.labelledEntityIds;
|
|
22145
22239
|
}
|
|
22146
22240
|
if (!(labelledIds === null || labelledIds === void 0 ? void 0 : labelledIds.length)) {
|
|
22147
22241
|
params.manager.VisualsRegister.ClearLabelled({
|
|
@@ -22165,7 +22259,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22165
22259
|
params.manager.VisualsRegister.ClearOpacity();
|
|
22166
22260
|
entityOpacityMap = bSettings === null || bSettings === void 0 ? void 0 : bSettings.entityOpacityMap;
|
|
22167
22261
|
if (entityOpacityMap == null) {
|
|
22168
|
-
entityOpacityMap = (
|
|
22262
|
+
entityOpacityMap = (_3 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _3 === void 0 ? void 0 : _3.entityOpacityMap;
|
|
22169
22263
|
}
|
|
22170
22264
|
if (entityOpacityMap != null) {
|
|
22171
22265
|
for (entityId in entityOpacityMap) {
|
|
@@ -22179,7 +22273,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22179
22273
|
}
|
|
22180
22274
|
}
|
|
22181
22275
|
}
|
|
22182
|
-
imagery = (bSettings === null || bSettings === void 0 ? void 0 : bSettings.imagery) != null ? bSettings.imagery : (
|
|
22276
|
+
imagery = (bSettings === null || bSettings === void 0 ? void 0 : bSettings.imagery) != null ? bSettings.imagery : (_4 = defaults.settings) === null || _4 === void 0 ? void 0 : _4.imagery;
|
|
22183
22277
|
if (imagery == null) {
|
|
22184
22278
|
// TODO: Need global default.
|
|
22185
22279
|
imagery = [
|
|
@@ -22234,7 +22328,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22234
22328
|
}
|
|
22235
22329
|
viewer.scene.requestRender();
|
|
22236
22330
|
curEnabled = params.manager.GetEnabledItemIds();
|
|
22237
|
-
newItemIds = (
|
|
22331
|
+
newItemIds = (_5 = bSettings === null || bSettings === void 0 ? void 0 : bSettings.menuItemIds) !== null && _5 !== void 0 ? _5 : [];
|
|
22238
22332
|
for (_i = 0, curEnabled_1 = curEnabled; _i < curEnabled_1.length; _i++) {
|
|
22239
22333
|
id = curEnabled_1[_i];
|
|
22240
22334
|
shouldRemove = void 0;
|
|
@@ -22270,11 +22364,11 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22270
22364
|
bookmark: bookmark
|
|
22271
22365
|
})];
|
|
22272
22366
|
case 14:
|
|
22273
|
-
|
|
22367
|
+
_8.sent();
|
|
22274
22368
|
if (!assertIteration$1(params.viewer, iteration)) {
|
|
22275
22369
|
return [2 /*return*/];
|
|
22276
22370
|
}
|
|
22277
|
-
|
|
22371
|
+
_8.label = 15;
|
|
22278
22372
|
case 15:
|
|
22279
22373
|
if (legacyRelationIds.length || relations.length) {
|
|
22280
22374
|
if (relations.length) {
|
|
@@ -22309,7 +22403,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22309
22403
|
}
|
|
22310
22404
|
gOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.groundOcclusion;
|
|
22311
22405
|
if (gOcclusion == null) {
|
|
22312
|
-
gOcclusion = (
|
|
22406
|
+
gOcclusion = (_6 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _6 === void 0 ? void 0 : _6.groundOcclusion;
|
|
22313
22407
|
}
|
|
22314
22408
|
if (gOcclusion == null) {
|
|
22315
22409
|
// TODO: Need global default.
|
|
@@ -22414,7 +22508,7 @@ var ViewRenderEngine;
|
|
|
22414
22508
|
ViewRenderEngine.Render = Render;
|
|
22415
22509
|
})(ViewRenderEngine || (ViewRenderEngine = {}));
|
|
22416
22510
|
|
|
22417
|
-
var VERSION = "3.6.
|
|
22511
|
+
var VERSION = "3.6.9";
|
|
22418
22512
|
|
|
22419
|
-
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 };
|
|
22513
|
+
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, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, Draw3dPolygon, Draw3dPolyline };
|
|
22420
22514
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|