bruce-cesium 5.7.1 → 5.7.3
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 +57 -14
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +57 -14
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine-model3d.js +1 -1
- package/dist/lib/rendering/entity-render-engine-model3d.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine-point.js +1 -1
- package/dist/lib/rendering/entity-render-engine-point.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine-polygon.js +1 -1
- package/dist/lib/rendering/entity-render-engine-polygon.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine-polyline.js +1 -1
- package/dist/lib/rendering/entity-render-engine-polyline.js.map +1 -1
- package/dist/lib/rendering/relation-render-engine.js +1 -1
- package/dist/lib/rendering/relation-render-engine.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-arb-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-entities-render-manager.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-entities-render-manager.js.map +1 -1
- package/dist/lib/rendering/tileset-styler.js +3 -3
- package/dist/lib/rendering/tileset-styler.js.map +1 -1
- package/dist/lib/rendering/view-render-engine.js +11 -2
- package/dist/lib/rendering/view-render-engine.js.map +1 -1
- package/dist/lib/utils/view-utils.js +34 -0
- package/dist/lib/utils/view-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/tileset-styler.d.ts +2 -2
- package/dist/types/utils/view-utils.d.ts +5 -0
- package/package.json +2 -2
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -3237,6 +3237,40 @@ var ViewUtils;
|
|
|
3237
3237
|
}
|
|
3238
3238
|
viewer[CESIUM_TIMELINE_LIVE_KEY] = false;
|
|
3239
3239
|
}
|
|
3240
|
+
function SetGlobeDetails(params) {
|
|
3241
|
+
let { viewer, hidden, baseColor } = params;
|
|
3242
|
+
const scene = viewer === null || viewer === void 0 ? void 0 : viewer.scene;
|
|
3243
|
+
if (!(scene === null || scene === void 0 ? void 0 : scene.globe)) {
|
|
3244
|
+
return;
|
|
3245
|
+
}
|
|
3246
|
+
if (hidden == null) {
|
|
3247
|
+
hidden = !scene.globe.show;
|
|
3248
|
+
}
|
|
3249
|
+
else {
|
|
3250
|
+
scene.globe.show = !hidden;
|
|
3251
|
+
}
|
|
3252
|
+
if (baseColor == null) {
|
|
3253
|
+
baseColor = scene.globe.baseColor;
|
|
3254
|
+
}
|
|
3255
|
+
// When globe is off, we'll also hide the stars/moon.
|
|
3256
|
+
// We also grab the globe color and apply it to the sky.
|
|
3257
|
+
if (hidden) {
|
|
3258
|
+
scene.skyBox.show = false;
|
|
3259
|
+
scene.skyAtmosphere.show = false;
|
|
3260
|
+
scene.sun.show = false;
|
|
3261
|
+
scene.moon.show = false;
|
|
3262
|
+
scene.backgroundColor = baseColor.clone();
|
|
3263
|
+
}
|
|
3264
|
+
else {
|
|
3265
|
+
scene.skyBox.show = true;
|
|
3266
|
+
scene.skyAtmosphere.show = true;
|
|
3267
|
+
scene.sun.show = true;
|
|
3268
|
+
scene.moon.show = true;
|
|
3269
|
+
scene.backgroundColor = Color.BLACK;
|
|
3270
|
+
}
|
|
3271
|
+
scene.globe.baseColor = baseColor;
|
|
3272
|
+
}
|
|
3273
|
+
ViewUtils.SetGlobeDetails = SetGlobeDetails;
|
|
3240
3274
|
})(ViewUtils || (ViewUtils = {}));
|
|
3241
3275
|
|
|
3242
3276
|
function traverseEntity(cEntity, arr, ignoreParent, onlyEditable, onlySelectable) {
|
|
@@ -6086,7 +6120,7 @@ async function getName(api, entity) {
|
|
|
6086
6120
|
}
|
|
6087
6121
|
async function getStyle(api, entity, styleId) {
|
|
6088
6122
|
let style = null;
|
|
6089
|
-
if (styleId) {
|
|
6123
|
+
if (styleId && styleId != -1) {
|
|
6090
6124
|
try {
|
|
6091
6125
|
style = (await Style.Get({
|
|
6092
6126
|
api,
|
|
@@ -7371,7 +7405,7 @@ async function getName$1(api, entity) {
|
|
|
7371
7405
|
}
|
|
7372
7406
|
async function getStyle$1(api, entity, styleId) {
|
|
7373
7407
|
let style = null;
|
|
7374
|
-
if (styleId) {
|
|
7408
|
+
if (styleId && styleId != -1) {
|
|
7375
7409
|
try {
|
|
7376
7410
|
style = (await Style.Get({
|
|
7377
7411
|
api,
|
|
@@ -7779,7 +7813,7 @@ async function getName$2(api, entity) {
|
|
|
7779
7813
|
}
|
|
7780
7814
|
async function getStyle$2(api, entity, styleId) {
|
|
7781
7815
|
let style = null;
|
|
7782
|
-
if (styleId) {
|
|
7816
|
+
if (styleId && styleId != -1) {
|
|
7783
7817
|
try {
|
|
7784
7818
|
style = (await Style.Get({
|
|
7785
7819
|
api,
|
|
@@ -8248,7 +8282,7 @@ async function getName$3(api, entity) {
|
|
|
8248
8282
|
}
|
|
8249
8283
|
async function getStyle$3(api, entity, styleId) {
|
|
8250
8284
|
let style = null;
|
|
8251
|
-
if (styleId) {
|
|
8285
|
+
if (styleId && styleId != -1) {
|
|
8252
8286
|
try {
|
|
8253
8287
|
style = (await Style.Get({
|
|
8254
8288
|
api,
|
|
@@ -9317,7 +9351,7 @@ function colorToCColor(color) {
|
|
|
9317
9351
|
}
|
|
9318
9352
|
async function getStyle$4(api, typeId, styleId) {
|
|
9319
9353
|
let style = null;
|
|
9320
|
-
if (styleId) {
|
|
9354
|
+
if (styleId && styleId != -1) {
|
|
9321
9355
|
try {
|
|
9322
9356
|
style = (await Style.Get({
|
|
9323
9357
|
api,
|
|
@@ -13416,7 +13450,7 @@ var EntitiesRenderManager;
|
|
|
13416
13450
|
return;
|
|
13417
13451
|
}
|
|
13418
13452
|
let style = null;
|
|
13419
|
-
if ((zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) &&
|
|
13453
|
+
if ((zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) && zoomItem.StyleID != -1) {
|
|
13420
13454
|
try {
|
|
13421
13455
|
style = (_a = (await Style.Get({
|
|
13422
13456
|
api: this.apiGetter.getApi(),
|
|
@@ -14325,7 +14359,7 @@ var EntitiesLoadedRenderManager;
|
|
|
14325
14359
|
return;
|
|
14326
14360
|
}
|
|
14327
14361
|
let style = null;
|
|
14328
|
-
if ((zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) &&
|
|
14362
|
+
if ((zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) && zoomItem.StyleID != -1) {
|
|
14329
14363
|
try {
|
|
14330
14364
|
style = (_a = (await Style.Get({
|
|
14331
14365
|
api: this.apiGetter.getApi(),
|
|
@@ -15837,7 +15871,7 @@ class TilesetStyler {
|
|
|
15837
15871
|
}
|
|
15838
15872
|
}
|
|
15839
15873
|
}
|
|
15840
|
-
if (
|
|
15874
|
+
if (params.fallbackStyleId != null && params.fallbackStyleId != undefined && params.fallbackStyleId != "") {
|
|
15841
15875
|
this.fallbackStyleId = params.fallbackStyleId;
|
|
15842
15876
|
}
|
|
15843
15877
|
if (params.fallbackStyle) {
|
|
@@ -15958,7 +15992,7 @@ class TilesetStyler {
|
|
|
15958
15992
|
this.entityGatherer.Empty();
|
|
15959
15993
|
this.entityGatherer.Init(this.historic, this.expandSources);
|
|
15960
15994
|
let fallbackStyleId = this.fallbackStyleId;
|
|
15961
|
-
if (fallbackStyleId && fallbackStyleId
|
|
15995
|
+
if (fallbackStyleId && fallbackStyleId != -1) {
|
|
15962
15996
|
try {
|
|
15963
15997
|
let { style: data } = await Style.Get({
|
|
15964
15998
|
api: this.api,
|
|
@@ -16047,7 +16081,7 @@ class TilesetStyler {
|
|
|
16047
16081
|
console.error(e);
|
|
16048
16082
|
}
|
|
16049
16083
|
}
|
|
16050
|
-
if (styleId) {
|
|
16084
|
+
if (styleId && styleId != -1) {
|
|
16051
16085
|
try {
|
|
16052
16086
|
let { style: data } = await Style.Get({
|
|
16053
16087
|
api: this.api,
|
|
@@ -19190,7 +19224,7 @@ var TilesetEntitiesRenderManager;
|
|
|
19190
19224
|
viewer: this.viewer,
|
|
19191
19225
|
api: api,
|
|
19192
19226
|
cTileset: this.cTileset,
|
|
19193
|
-
fallbackStyleId:
|
|
19227
|
+
fallbackStyleId: this.item.styleId,
|
|
19194
19228
|
styleMapping: [],
|
|
19195
19229
|
expandSources: false,
|
|
19196
19230
|
menuItemId: this.item.id,
|
|
@@ -25792,7 +25826,6 @@ async function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
25792
25826
|
// TODO: Need global default.
|
|
25793
25827
|
baseColor = "#0326BE";
|
|
25794
25828
|
}
|
|
25795
|
-
scene.globe.baseColor = Color.fromCssColorString(baseColor);
|
|
25796
25829
|
let globeHidden = bSettings === null || bSettings === void 0 ? void 0 : bSettings.globeHidden;
|
|
25797
25830
|
if (globeHidden == null) {
|
|
25798
25831
|
globeHidden = (_r = defaults.settings) === null || _r === void 0 ? void 0 : _r.globeHidden;
|
|
@@ -25800,7 +25833,11 @@ async function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
25800
25833
|
if (globeHidden == null) {
|
|
25801
25834
|
globeHidden = false;
|
|
25802
25835
|
}
|
|
25803
|
-
|
|
25836
|
+
ViewUtils.SetGlobeDetails({
|
|
25837
|
+
viewer: viewer,
|
|
25838
|
+
hidden: globeHidden,
|
|
25839
|
+
baseColor: Color.fromCssColorString(baseColor)
|
|
25840
|
+
});
|
|
25804
25841
|
let terrainWireframe = bSettings === null || bSettings === void 0 ? void 0 : bSettings.terrainWireframe;
|
|
25805
25842
|
if (terrainWireframe == null) {
|
|
25806
25843
|
terrainWireframe = (_s = defaults.settings) === null || _s === void 0 ? void 0 : _s.terrainWireframe;
|
|
@@ -26052,6 +26089,9 @@ async function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
26052
26089
|
}
|
|
26053
26090
|
}
|
|
26054
26091
|
}
|
|
26092
|
+
if (contentType === ProjectViewBookmark.EContentType.WEB_3D_MODEL_SPACE) {
|
|
26093
|
+
imagery = [];
|
|
26094
|
+
}
|
|
26055
26095
|
// We don't wait for imageries to load, this does not affect rendering other things.
|
|
26056
26096
|
TileRenderEngine.Map.Navigator.Render({
|
|
26057
26097
|
apiGetter: params.apiGetter,
|
|
@@ -26151,6 +26191,9 @@ async function renderNavigator(iteration, params, bookmark, view, getters) {
|
|
|
26151
26191
|
// TODO: Need global default.
|
|
26152
26192
|
gOcclusion = true;
|
|
26153
26193
|
}
|
|
26194
|
+
if (contentType === ProjectViewBookmark.EContentType.WEB_3D_MODEL_SPACE) {
|
|
26195
|
+
gOcclusion = false;
|
|
26196
|
+
}
|
|
26154
26197
|
scene.globe.depthTestAgainstTerrain = Boolean(gOcclusion);
|
|
26155
26198
|
}
|
|
26156
26199
|
var ViewRenderEngine;
|
|
@@ -32094,7 +32137,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
32094
32137
|
}
|
|
32095
32138
|
}
|
|
32096
32139
|
|
|
32097
|
-
const VERSION = "5.7.
|
|
32140
|
+
const VERSION = "5.7.3";
|
|
32098
32141
|
|
|
32099
32142
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isOutlineChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, AssemblyRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, CESIUM_TIMELINE_LIVE_KEY, CESIUM_TIMELINE_LIVE_PADDING_KEY, CESIUM_TIMELINE_INTERVAL_KEY, DEFAULT_LIVE_PADDING_SECONDS, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline, MeasureCreator, Walkthrough, Widget, VIEWER_BOOKMARKS_WIDGET_KEY, WidgetBookmarks, WidgetBranding, WidgetCursorBar, WidgetEmbeddedInfoView, WidgetInfoView, WidgetNavCompass$$1 as WidgetNavCompass, VIEWER_VIEW_BAR_WIDGET_KEY, WidgetViewBar, WidgetControlViewBar, WidgetControlViewBarSearch, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
|
|
32100
32143
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|