bruce-cesium 3.5.2 → 3.5.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, 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, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, ColorMaterialProperty, SceneMode, 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, EllipsoidGeodesic, sampleTerrainMostDetailed, ScreenSpaceEventHandler, ScreenSpaceEventType, PolygonPipeline, BoundingSphere, GeometryInstance, Intersect, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics } from 'cesium';
3
+ import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, DistanceDisplayCondition, NearFarScalar, Model, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, ColorMaterialProperty, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, OrthographicFrustum, EasingFunction, CesiumInspector, defined, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics } from 'cesium';
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1991,7 +1991,9 @@ var EntityUtils;
1991
1991
  }
1992
1992
  if (!(entity.geometry && typeof entity.geometry == "object")) return [3 /*break*/, 4];
1993
1993
  pointStr = entity.geometry.Point;
1994
- if (pointStr && typeof pointStr == "string") {
1994
+ // "0.0,0.0" seems to be generated on missing geometry in our re-index.
1995
+ // No location -> turns into 0,0 -> turns into 0.0,0.0 point geometry.
1996
+ if (pointStr && typeof pointStr == "string" && pointStr != "0.0,0.0") {
1995
1997
  points = Geometry.ParsePoints(pointStr);
1996
1998
  point = points.length > 0 ? points[0] : null;
1997
1999
  if (point && Carto.ValidateCarto(point)) {
@@ -2181,7 +2183,7 @@ var EntityUtils;
2181
2183
  if ((entity === null || entity === void 0 ? void 0 : entity.geometryRadius) && (pos3d === null || pos3d === void 0 ? void 0 : pos3d.x)) {
2182
2184
  sphere = BoundingSphere.fromPoints([pos3d]);
2183
2185
  // For now making sure it's less than x amount because we had a bug which made it huge.
2184
- if (entity.geometryRadius && entity.geometryRadius < 100 && entity.geometryRadius > 1) {
2186
+ if (entity.geometryRadius && entity.geometryRadius < 500 && entity.geometryRadius > 1) {
2185
2187
  sphere.radius = entity.geometryRadius;
2186
2188
  spheres.push(sphere);
2187
2189
  }
@@ -14063,7 +14065,9 @@ var TilesetArbRenderManager;
14063
14065
  loadUrlOverride = this.item.tileset.TilesetURL;
14064
14066
  var url = this.item.tileset.TilesetURL;
14065
14067
  var urlParts = url.split("/");
14066
- if (urlParts.length > 5) {
14068
+ // Checking for nextspace is a band-aid fix for external tilesets.
14069
+ // We'll need to do something better in the future. Eg: mark external tilesets as such or check for known nextspace domains.
14070
+ if (urlParts.length > 5 && url.includes("nextspace")) {
14067
14071
  var tilesetId_1 = urlParts[urlParts.length - 3];
14068
14072
  var accountId = urlParts[urlParts.length - 5].split(".")[0];
14069
14073
  this.item.tileset.TilesetID = tilesetId_1;
@@ -21635,7 +21639,7 @@ var ViewRenderEngine;
21635
21639
  ViewRenderEngine.Render = Render;
21636
21640
  })(ViewRenderEngine || (ViewRenderEngine = {}));
21637
21641
 
21638
- var VERSION = "3.5.2";
21642
+ var VERSION = "3.5.4";
21639
21643
 
21640
21644
  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, Draw3dPolygon, Draw3dPolyline };
21641
21645
  //# sourceMappingURL=bruce-cesium.es5.js.map