bruce-cesium 3.9.2 → 3.9.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 { 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, EntityHistoricData, 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, Entity, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, NearFarScalar, Model, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, GeoJsonDataSource, SceneMode, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, CesiumInspector, defined, ClockRange, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, CzmlDataSource, Quaternion, Intersect } from 'cesium';
3
+ import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, SceneMode, Entity, Primitive, Cesium3DTileFeature, GeoJsonDataSource, ColorMaterialProperty, ConstantProperty, DistanceDisplayCondition, NearFarScalar, Model, HorizontalOrigin, VerticalOrigin, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, 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, ScreenSpaceEventHandler, ScreenSpaceEventType, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, CzmlDataSource, Quaternion, Intersect } from 'cesium';
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6458,11 +6458,15 @@ var EntityRenderEngine;
6458
6458
  recordHeightRef: heightRef,
6459
6459
  returnHeightRef: heightRef
6460
6460
  });
6461
- if (heightRef == HeightReference.CLAMP_TO_GROUND) {
6462
- var carto = Cartographic.fromCartesian(pos3d);
6463
- pos3d = Cartesian3.fromRadians(EnsureNumber(carto.longitude), EnsureNumber(carto.latitude), 0);
6464
- heightRef = HeightReference.RELATIVE_TO_GROUND;
6461
+ /*
6462
+ We used to avoid clamp-to-ground on 3D models as Cesium had bugs with it.
6463
+
6464
+ if (heightRef == Cesium.HeightReference.CLAMP_TO_GROUND) {
6465
+ const carto = Cesium.Cartographic.fromCartesian(pos3d);
6466
+ pos3d = Cesium.Cartesian3.fromRadians(EnsureNumber(carto.longitude), EnsureNumber(carto.latitude), 0);
6467
+ heightRef = Cesium.HeightReference.RELATIVE_TO_GROUND;
6465
6468
  }
6469
+ */
6466
6470
  var blendMode = null;
6467
6471
  var blendAmount = null;
6468
6472
  var color = null;
@@ -15230,7 +15234,7 @@ var TilesetEntitiesRenderManager;
15230
15234
  sourceAccountId: (_b = this.item.tileset) === null || _b === void 0 ? void 0 : _b.ClientAccountID,
15231
15235
  tilesetId: tilesetId,
15232
15236
  forAccountId: this.getters.GetAccountId(),
15233
- api: this.getters.GetGlobalApi()
15237
+ getters: this.getters
15234
15238
  })];
15235
15239
  case 2:
15236
15240
  canAccess = _g.sent();
@@ -15482,7 +15486,7 @@ var TilesetPointcloudRenderManager;
15482
15486
  sourceAccountId: (_b = this.item.tileset) === null || _b === void 0 ? void 0 : _b.ClientAccountID,
15483
15487
  tilesetId: tilesetId,
15484
15488
  forAccountId: this.getters.GetAccountId(),
15485
- api: this.getters.GetGlobalApi()
15489
+ getters: this.getters
15486
15490
  })];
15487
15491
  case 2:
15488
15492
  canAccess = _f.sent();
@@ -15840,7 +15844,7 @@ var TilesetArbRenderManager;
15840
15844
  sourceAccountId: (_f = this.item.tileset) === null || _f === void 0 ? void 0 : _f.ClientAccountID,
15841
15845
  tilesetId: tilesetId,
15842
15846
  forAccountId: this.getters.GetAccountId(),
15843
- api: this.getters.GetGlobalApi()
15847
+ getters: this.getters
15844
15848
  })];
15845
15849
  case 2:
15846
15850
  canAccess = _p.sent();
@@ -24158,7 +24162,7 @@ var ViewRenderEngine;
24158
24162
  ViewRenderEngine.Render = Render;
24159
24163
  })(ViewRenderEngine || (ViewRenderEngine = {}));
24160
24164
 
24161
- var VERSION = "3.9.2";
24165
+ var VERSION = "3.9.4";
24162
24166
 
24163
24167
  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 };
24164
24168
  //# sourceMappingURL=bruce-cesium.es5.js.map