bruce-cesium 3.3.2 → 3.3.4

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.
@@ -1,6 +1,6 @@
1
1
  import { Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, EntityRelationType, BruceEvent, EntityCoords, Api, EntitySource, MenuItem, EntityRelation, ProgramKey, ENVIRONMENT, 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, SceneMode, JulianDate, Entity, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, NearFarScalar, Model, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, Cesium3DTileset, Matrix4, Matrix3, IonResource, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, CesiumInspector, defined, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, Intersect, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ColorMaterialProperty } from 'cesium';
3
+ import { Cartographic, JulianDate, Cartesian3, SceneMode, Math as Math$1, Cartesian2, CallbackProperty, Color, HeightReference, Rectangle, Entity, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, DistanceDisplayCondition, NearFarScalar, Model, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, PolygonPipeline, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, Cesium3DTileset, ScreenSpaceEventHandler, ScreenSpaceEventType, Matrix4, Matrix3, IonResource, BoundingSphere, GeometryInstance, CesiumInspector, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ColorMaterialProperty, Intersect } from 'cesium';
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9252,7 +9252,7 @@ function isAlive$2(viewer, cTileset) {
9252
9252
  function correctStyle(style) {
9253
9253
  if (style && !style.Settings && !style.ID) {
9254
9254
  return {
9255
- ID: 0,
9255
+ ID: -1,
9256
9256
  Name: "Unknown",
9257
9257
  Settings: __assign({}, style),
9258
9258
  Type: Style.EType.Entity
@@ -9701,7 +9701,8 @@ var TilesetRenderEngine;
9701
9701
  if ((_a = this.styleMapping) === null || _a === void 0 ? void 0 : _a.length) {
9702
9702
  for (var i = 0; i < this.styleMapping.length; i++) {
9703
9703
  var mapItem = this.styleMapping[i];
9704
- this.styleMapping[i].style = correctStyle(mapItem === null || mapItem === void 0 ? void 0 : mapItem.style);
9704
+ var mapStyle = mapItem.style ? mapItem.style : mapItem.Style;
9705
+ this.styleMapping[i].style = correctStyle(mapStyle);
9705
9706
  }
9706
9707
  }
9707
9708
  this.register = register;
@@ -9867,7 +9868,7 @@ var TilesetRenderEngine;
9867
9868
  return [3 /*break*/, 15];
9868
9869
  }
9869
9870
  styleMap = styleMapping[i];
9870
- if (!!styleMap.style) return [3 /*break*/, 13];
9871
+ if (!(!styleMap.style && styleMap.StyleID > 0)) return [3 /*break*/, 13];
9871
9872
  styleId = styleMap.StyleID;
9872
9873
  if (!!styleId) return [3 /*break*/, 9];
9873
9874
  _c.label = 6;
@@ -17385,7 +17386,7 @@ var MenuItemCreator;
17385
17386
  menuItems = [];
17386
17387
  version = view.DataVersion;
17387
17388
  if (view.Settings && bookmark.Settings) {
17388
- if (version === 2) {
17389
+ if (version >= 2) {
17389
17390
  vSettings = view.Settings;
17390
17391
  bSettings = bookmark.Settings;
17391
17392
  menuItems = vSettings.menuItems;
@@ -20036,7 +20037,7 @@ var CesiumViewMonitor;
20036
20037
  CesiumViewMonitor$$1.Monitor = Monitor;
20037
20038
  })(CesiumViewMonitor || (CesiumViewMonitor = {}));
20038
20039
 
20039
- var VERSION$1 = "3.3.2";
20040
+ var VERSION$1 = "3.3.4";
20040
20041
 
20041
20042
  export { VERSION$1 as 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, Draw3dPolygon, Draw3dPolyline };
20042
20043
  //# sourceMappingURL=bruce-cesium.es5.js.map