bruce-cesium 5.2.5 → 5.2.7
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 +43 -3
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +42 -2
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +41 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/render-managers/tilesets/tileset-cad-render-manager.d.ts +2 -0
- package/package.json +2 -2
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Entity as Entity$1, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, ProjectViewTile, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttachment, EntityAttachmentType, EntityAttribute, AbstractApi, Session } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ClassificationType, ConstantPositionProperty, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, Cesium3DTileStyle, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, Matrix4, Matrix3, IonResource, PolygonPipeline, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, Quaternion, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -16899,6 +16899,10 @@ var TilesetCadRenderManager;
|
|
|
16899
16899
|
// This likely means poor data so we have to disable drilling otherwise lag would be too bad.
|
|
16900
16900
|
// The result is no entity type IDs are known so most styles fail.
|
|
16901
16901
|
this.hasHitDepthLimit = false;
|
|
16902
|
+
// Cache of 'something isolated' that we detect and use to calculate a default show state.
|
|
16903
|
+
// It's pretty expensive so we save it for a few seconds inbetween checks.
|
|
16904
|
+
this.somethingIsolated = null;
|
|
16905
|
+
this.somethingIsolatedDateTime = null;
|
|
16902
16906
|
const { viewer, register: visualsManager, getters, item } = params;
|
|
16903
16907
|
this.viewer = viewer;
|
|
16904
16908
|
this.getters = getters;
|
|
@@ -17014,6 +17018,12 @@ var TilesetCadRenderManager;
|
|
|
17014
17018
|
if (this.disposed || cTileset.isDestroyed()) {
|
|
17015
17019
|
return;
|
|
17016
17020
|
}
|
|
17021
|
+
// We style Entities to be hidden by default so that we can selectively-
|
|
17022
|
+
// do a default later.
|
|
17023
|
+
// This stops them flickering in/out as Bookmark settings get applied.
|
|
17024
|
+
this.cTileset.style = new Cesium3DTileStyle({
|
|
17025
|
+
show: "false"
|
|
17026
|
+
});
|
|
17017
17027
|
this.onCTilesetLoad();
|
|
17018
17028
|
this.styler.Init({
|
|
17019
17029
|
viewer: this.viewer,
|
|
@@ -17074,7 +17084,12 @@ var TilesetCadRenderManager;
|
|
|
17074
17084
|
for (let i = 0; i < content.featuresLength; i++) {
|
|
17075
17085
|
const feature = content.getFeature(i);
|
|
17076
17086
|
let rego = this.mapTilesetFeature(feature, load);
|
|
17077
|
-
if ((rego === null || rego === void 0 ? void 0 : rego.entityId)
|
|
17087
|
+
if (!(rego === null || rego === void 0 ? void 0 : rego.entityId)) {
|
|
17088
|
+
// Override the default hide state set by the style.
|
|
17089
|
+
feature.show = true;
|
|
17090
|
+
continue;
|
|
17091
|
+
}
|
|
17092
|
+
if (this.styler) {
|
|
17078
17093
|
this.styler.QueueEntities([rego]);
|
|
17079
17094
|
}
|
|
17080
17095
|
}
|
|
@@ -17160,6 +17175,31 @@ var TilesetCadRenderManager;
|
|
|
17160
17175
|
return null;
|
|
17161
17176
|
}
|
|
17162
17177
|
if (add) {
|
|
17178
|
+
// Get the initial hide/show state.
|
|
17179
|
+
const state = this.visualsManager.GetState({
|
|
17180
|
+
entityId: rego.entityId,
|
|
17181
|
+
menuItemId: this.item.id,
|
|
17182
|
+
});
|
|
17183
|
+
if (this.somethingIsolated == null ||
|
|
17184
|
+
// 5s cache.
|
|
17185
|
+
(this.somethingIsolatedDateTime && this.somethingIsolatedDateTime.getTime() + 5000 < new Date().getTime())) {
|
|
17186
|
+
this.somethingIsolated = this.visualsManager.GetIsIsolatedAny();
|
|
17187
|
+
this.somethingIsolatedDateTime = new Date();
|
|
17188
|
+
}
|
|
17189
|
+
// Override the default hide state set by the style.
|
|
17190
|
+
let hide = false;
|
|
17191
|
+
if (state) {
|
|
17192
|
+
if (state.hidden) {
|
|
17193
|
+
hide = true;
|
|
17194
|
+
}
|
|
17195
|
+
else if (state.opacity === 0) {
|
|
17196
|
+
hide = true;
|
|
17197
|
+
}
|
|
17198
|
+
else if (!state.isolated && this.somethingIsolated) {
|
|
17199
|
+
hide = true;
|
|
17200
|
+
}
|
|
17201
|
+
}
|
|
17202
|
+
feature.show = !hide;
|
|
17163
17203
|
this.visualsManager.AddRego({
|
|
17164
17204
|
rego,
|
|
17165
17205
|
requestRender: false
|
|
@@ -29933,7 +29973,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
29933
29973
|
}
|
|
29934
29974
|
}
|
|
29935
29975
|
|
|
29936
|
-
const VERSION = "5.2.
|
|
29976
|
+
const VERSION = "5.2.7";
|
|
29937
29977
|
|
|
29938
29978
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isHistoricMetadataChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, 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 };
|
|
29939
29979
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|