bruce-cesium 3.6.7 → 3.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 +133 -38
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +132 -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 +71 -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,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, Primitive, Cesium3DTileFeature, SceneMode, DistanceDisplayCondition, NearFarScalar, Model, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Cesium3DTileColorBlendMode, HeadingPitchRange, GeoJsonDataSource, ColorMaterialProperty, Ion, Cesium3DTileStyle, KmlDataSource, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, OrthographicFrustum, EasingFunction, CesiumInspector, defined, ClockRange, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, SceneTransforms, 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,75 @@ 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
|
+
console.log("setTimeDetails", params, "areCesiumValues", areCesiumValues);
|
|
3284
|
+
viewer.scene.requestRender();
|
|
3285
|
+
clock[CESIUM_TIMELINE_KEY] = true;
|
|
3286
|
+
}
|
|
3287
|
+
ViewUtils.SetTimeDetails = SetTimeDetails;
|
|
3218
3288
|
})(ViewUtils || (ViewUtils = {}));
|
|
3219
3289
|
|
|
3220
3290
|
var MODEL_MIN_RADIUS = 10;
|
|
@@ -15349,7 +15419,7 @@ var DataSourceStaticCsvManager;
|
|
|
15349
15419
|
Manager.prototype.renderMovingItem = function () {
|
|
15350
15420
|
var _a;
|
|
15351
15421
|
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,
|
|
15422
|
+
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
15423
|
var _this = this;
|
|
15354
15424
|
return __generator(this, function (_m) {
|
|
15355
15425
|
switch (_m.label) {
|
|
@@ -15508,14 +15578,23 @@ var DataSourceStaticCsvManager;
|
|
|
15508
15578
|
czmlAdjusted.forEach(function (item) {
|
|
15509
15579
|
delete item.clock;
|
|
15510
15580
|
});
|
|
15511
|
-
|
|
15581
|
+
curSettings = ViewUtils.GetTimeDetails({
|
|
15582
|
+
viewer: this.viewer
|
|
15583
|
+
});
|
|
15512
15584
|
return [4 /*yield*/, this.viewer.dataSources.add(CzmlDataSource.load(czmlAdjusted))];
|
|
15513
15585
|
case 7:
|
|
15514
15586
|
source = _m.sent();
|
|
15515
15587
|
this.dataSource = source;
|
|
15516
15588
|
// Reset back to the previous dateTime.
|
|
15517
15589
|
// Adding the czml data source will have changed the clock.
|
|
15518
|
-
|
|
15590
|
+
ViewUtils.SetTimeDetails({
|
|
15591
|
+
viewer: this.viewer,
|
|
15592
|
+
isAnimating: curSettings.isAnimating,
|
|
15593
|
+
animationSpeed: curSettings.animationSpeed,
|
|
15594
|
+
currentTimeIso: curSettings.currentTimeIso,
|
|
15595
|
+
startTimeIso: curSettings.startTimeIso,
|
|
15596
|
+
stopTimeIso: curSettings.stopTimeIso
|
|
15597
|
+
});
|
|
15519
15598
|
// Listen to update ticks and ensure orientation of moving item is correct.
|
|
15520
15599
|
if (this.viewer.clock) {
|
|
15521
15600
|
pHeadingIndex_1 = pHeaders.findIndex(function (x) { return x.toLowerCase().includes("head"); });
|
|
@@ -15757,7 +15836,7 @@ function createJourneyCzml(vehicleId, vehicleFileUrl, alarmFileUrl, lineColor, d
|
|
|
15757
15836
|
"availability": rows[0][dateTimeIndex] + "/" + rows[rows.length - 1][dateTimeIndex],
|
|
15758
15837
|
"model": vehicleFileUrl ? {
|
|
15759
15838
|
"gltf": vehicleFileUrl,
|
|
15760
|
-
"scale":
|
|
15839
|
+
"scale": 1
|
|
15761
15840
|
} : undefined,
|
|
15762
15841
|
"point": !vehicleFileUrl ? {
|
|
15763
15842
|
"pixelSize": 20,
|
|
@@ -21853,58 +21932,58 @@ function renderLegacyNavigator(iteration, params, bookmark, view) {
|
|
|
21853
21932
|
* @param view
|
|
21854
21933
|
*/
|
|
21855
21934
|
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;
|
|
21935
|
+
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
21936
|
return __awaiter(this, void 0, void 0, function () {
|
|
21858
|
-
var viewer, scene, cTokenSet,
|
|
21859
|
-
return __generator(this, function (
|
|
21860
|
-
switch (
|
|
21937
|
+
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;
|
|
21938
|
+
return __generator(this, function (_8) {
|
|
21939
|
+
switch (_8.label) {
|
|
21861
21940
|
case 0:
|
|
21862
21941
|
viewer = params.manager.Viewer;
|
|
21863
21942
|
scene = viewer.scene;
|
|
21864
21943
|
if (!Ion.defaultAccessToken) return [3 /*break*/, 2];
|
|
21865
21944
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(Ion.defaultAccessToken)];
|
|
21866
21945
|
case 1:
|
|
21867
|
-
|
|
21946
|
+
_7 = _8.sent();
|
|
21868
21947
|
return [3 /*break*/, 3];
|
|
21869
21948
|
case 2:
|
|
21870
|
-
|
|
21871
|
-
|
|
21949
|
+
_7 = false;
|
|
21950
|
+
_8.label = 3;
|
|
21872
21951
|
case 3:
|
|
21873
|
-
cTokenSet =
|
|
21952
|
+
cTokenSet = _7;
|
|
21874
21953
|
if (!!cTokenSet) return [3 /*break*/, 9];
|
|
21875
|
-
|
|
21954
|
+
_8.label = 4;
|
|
21876
21955
|
case 4:
|
|
21877
|
-
|
|
21956
|
+
_8.trys.push([4, 8, , 9]);
|
|
21878
21957
|
return [4 /*yield*/, ProgramKey.Get({
|
|
21879
21958
|
programId: ProgramKey.EProgramId.CesiumIon,
|
|
21880
21959
|
api: getters.GetBruceApi()
|
|
21881
21960
|
})];
|
|
21882
21961
|
case 5:
|
|
21883
|
-
programKey = (
|
|
21962
|
+
programKey = (_8.sent()).programKey;
|
|
21884
21963
|
if (!(programKey === null || programKey === void 0 ? void 0 : programKey.Key)) return [3 /*break*/, 7];
|
|
21885
21964
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(programKey.Key)];
|
|
21886
21965
|
case 6:
|
|
21887
|
-
valid =
|
|
21966
|
+
valid = _8.sent();
|
|
21888
21967
|
if (valid) {
|
|
21889
21968
|
Ion.defaultAccessToken = programKey.Key;
|
|
21890
21969
|
cTokenSet = true;
|
|
21891
21970
|
}
|
|
21892
|
-
|
|
21971
|
+
_8.label = 7;
|
|
21893
21972
|
case 7: return [3 /*break*/, 9];
|
|
21894
21973
|
case 8:
|
|
21895
|
-
e_1 =
|
|
21974
|
+
e_1 = _8.sent();
|
|
21896
21975
|
console.error(e_1);
|
|
21897
21976
|
return [3 /*break*/, 9];
|
|
21898
21977
|
case 9:
|
|
21899
21978
|
if (!!cTokenSet) return [3 /*break*/, 11];
|
|
21900
21979
|
return [4 /*yield*/, ViewerUtils.AssertIonToken(CESIUM_DEFAULT_TOKEN)];
|
|
21901
21980
|
case 10:
|
|
21902
|
-
valid =
|
|
21981
|
+
valid = _8.sent();
|
|
21903
21982
|
if (valid) {
|
|
21904
21983
|
Ion.defaultAccessToken = CESIUM_DEFAULT_TOKEN;
|
|
21905
21984
|
cTokenSet = true;
|
|
21906
21985
|
}
|
|
21907
|
-
|
|
21986
|
+
_8.label = 11;
|
|
21908
21987
|
case 11:
|
|
21909
21988
|
vSettings = view.Settings;
|
|
21910
21989
|
bSettings = ((_a = bookmark === null || bookmark === void 0 ? void 0 : bookmark.Settings) !== null && _a !== void 0 ? _a : {});
|
|
@@ -21972,11 +22051,11 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
21972
22051
|
viewer: params.manager.Viewer,
|
|
21973
22052
|
})];
|
|
21974
22053
|
case 12:
|
|
21975
|
-
|
|
22054
|
+
_8.sent();
|
|
21976
22055
|
if (!assertIteration$1(params.viewer, iteration)) {
|
|
21977
22056
|
return [2 /*return*/];
|
|
21978
22057
|
}
|
|
21979
|
-
|
|
22058
|
+
_8.label = 13;
|
|
21980
22059
|
case 13:
|
|
21981
22060
|
hillShades = bSettings === null || bSettings === void 0 ? void 0 : bSettings.hillShades;
|
|
21982
22061
|
if (hillShades == null) {
|
|
@@ -22098,13 +22177,29 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22098
22177
|
if (dateTime == null) {
|
|
22099
22178
|
dateTime = (_x = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _x === void 0 ? void 0 : _x.dateTime;
|
|
22100
22179
|
}
|
|
22101
|
-
|
|
22102
|
-
|
|
22103
|
-
|
|
22180
|
+
timeline = bSettings === null || bSettings === void 0 ? void 0 : bSettings.timeline;
|
|
22181
|
+
if (timeline == null) {
|
|
22182
|
+
timeline = (_y = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _y === void 0 ? void 0 : _y.timeline;
|
|
22104
22183
|
}
|
|
22184
|
+
if (timeline == null) {
|
|
22185
|
+
timeline = {
|
|
22186
|
+
end: null,
|
|
22187
|
+
playing: false,
|
|
22188
|
+
speed: 1,
|
|
22189
|
+
start: null
|
|
22190
|
+
};
|
|
22191
|
+
}
|
|
22192
|
+
ViewUtils.SetTimeDetails({
|
|
22193
|
+
viewer: viewer,
|
|
22194
|
+
animationSpeed: timeline.speed,
|
|
22195
|
+
currentTimeIso: dateTime,
|
|
22196
|
+
startTimeIso: timeline.start,
|
|
22197
|
+
stopTimeIso: timeline.end,
|
|
22198
|
+
isAnimating: timeline.playing
|
|
22199
|
+
});
|
|
22105
22200
|
selectedIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.selectedEntityIds;
|
|
22106
22201
|
if (selectedIds == null) {
|
|
22107
|
-
selectedIds = (
|
|
22202
|
+
selectedIds = (_z = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _z === void 0 ? void 0 : _z.selectedEntityIds;
|
|
22108
22203
|
}
|
|
22109
22204
|
if (selectedIds != null) {
|
|
22110
22205
|
params.manager.VisualsRegister.ClearSelected();
|
|
@@ -22118,7 +22213,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22118
22213
|
params.manager.VisualsRegister.ClearHidden();
|
|
22119
22214
|
hiddenIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.hiddenEntityIds;
|
|
22120
22215
|
if (hiddenIds == null) {
|
|
22121
|
-
hiddenIds = (
|
|
22216
|
+
hiddenIds = (_0 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _0 === void 0 ? void 0 : _0.hiddenEntityIds;
|
|
22122
22217
|
}
|
|
22123
22218
|
if (hiddenIds != null) {
|
|
22124
22219
|
params.manager.VisualsRegister.SetHidden({
|
|
@@ -22130,7 +22225,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22130
22225
|
params.manager.VisualsRegister.ClearIsolated();
|
|
22131
22226
|
isolatedIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.isolatedEntityIds;
|
|
22132
22227
|
if (isolatedIds == null) {
|
|
22133
|
-
isolatedIds = (
|
|
22228
|
+
isolatedIds = (_1 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _1 === void 0 ? void 0 : _1.isolatedEntityIds;
|
|
22134
22229
|
}
|
|
22135
22230
|
if (isolatedIds != null) {
|
|
22136
22231
|
params.manager.VisualsRegister.SetIsolated({
|
|
@@ -22141,7 +22236,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22141
22236
|
}
|
|
22142
22237
|
labelledIds = bSettings === null || bSettings === void 0 ? void 0 : bSettings.labelledEntityIds;
|
|
22143
22238
|
if (labelledIds == null) {
|
|
22144
|
-
labelledIds = (
|
|
22239
|
+
labelledIds = (_2 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _2 === void 0 ? void 0 : _2.labelledEntityIds;
|
|
22145
22240
|
}
|
|
22146
22241
|
if (!(labelledIds === null || labelledIds === void 0 ? void 0 : labelledIds.length)) {
|
|
22147
22242
|
params.manager.VisualsRegister.ClearLabelled({
|
|
@@ -22165,7 +22260,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22165
22260
|
params.manager.VisualsRegister.ClearOpacity();
|
|
22166
22261
|
entityOpacityMap = bSettings === null || bSettings === void 0 ? void 0 : bSettings.entityOpacityMap;
|
|
22167
22262
|
if (entityOpacityMap == null) {
|
|
22168
|
-
entityOpacityMap = (
|
|
22263
|
+
entityOpacityMap = (_3 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _3 === void 0 ? void 0 : _3.entityOpacityMap;
|
|
22169
22264
|
}
|
|
22170
22265
|
if (entityOpacityMap != null) {
|
|
22171
22266
|
for (entityId in entityOpacityMap) {
|
|
@@ -22179,7 +22274,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22179
22274
|
}
|
|
22180
22275
|
}
|
|
22181
22276
|
}
|
|
22182
|
-
imagery = (bSettings === null || bSettings === void 0 ? void 0 : bSettings.imagery) != null ? bSettings.imagery : (
|
|
22277
|
+
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
22278
|
if (imagery == null) {
|
|
22184
22279
|
// TODO: Need global default.
|
|
22185
22280
|
imagery = [
|
|
@@ -22234,7 +22329,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22234
22329
|
}
|
|
22235
22330
|
viewer.scene.requestRender();
|
|
22236
22331
|
curEnabled = params.manager.GetEnabledItemIds();
|
|
22237
|
-
newItemIds = (
|
|
22332
|
+
newItemIds = (_5 = bSettings === null || bSettings === void 0 ? void 0 : bSettings.menuItemIds) !== null && _5 !== void 0 ? _5 : [];
|
|
22238
22333
|
for (_i = 0, curEnabled_1 = curEnabled; _i < curEnabled_1.length; _i++) {
|
|
22239
22334
|
id = curEnabled_1[_i];
|
|
22240
22335
|
shouldRemove = void 0;
|
|
@@ -22270,11 +22365,11 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22270
22365
|
bookmark: bookmark
|
|
22271
22366
|
})];
|
|
22272
22367
|
case 14:
|
|
22273
|
-
|
|
22368
|
+
_8.sent();
|
|
22274
22369
|
if (!assertIteration$1(params.viewer, iteration)) {
|
|
22275
22370
|
return [2 /*return*/];
|
|
22276
22371
|
}
|
|
22277
|
-
|
|
22372
|
+
_8.label = 15;
|
|
22278
22373
|
case 15:
|
|
22279
22374
|
if (legacyRelationIds.length || relations.length) {
|
|
22280
22375
|
if (relations.length) {
|
|
@@ -22309,7 +22404,7 @@ function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
22309
22404
|
}
|
|
22310
22405
|
gOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.groundOcclusion;
|
|
22311
22406
|
if (gOcclusion == null) {
|
|
22312
|
-
gOcclusion = (
|
|
22407
|
+
gOcclusion = (_6 = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _6 === void 0 ? void 0 : _6.groundOcclusion;
|
|
22313
22408
|
}
|
|
22314
22409
|
if (gOcclusion == null) {
|
|
22315
22410
|
// TODO: Need global default.
|
|
@@ -22414,7 +22509,7 @@ var ViewRenderEngine;
|
|
|
22414
22509
|
ViewRenderEngine.Render = Render;
|
|
22415
22510
|
})(ViewRenderEngine || (ViewRenderEngine = {}));
|
|
22416
22511
|
|
|
22417
|
-
var VERSION = "3.6.
|
|
22512
|
+
var VERSION = "3.6.8";
|
|
22418
22513
|
|
|
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 };
|
|
22514
|
+
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
22515
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|