bruce-cesium 6.8.6 → 6.8.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.
@@ -1,6 +1,6 @@
1
1
  import * as Cesium from 'cesium';
2
- import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, HeightReference, HorizontalOrigin, VerticalOrigin, ClassificationType, ConstantPositionProperty, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, Cartesian2, ColorBlendMode, Model, Rectangle, SceneTransforms, KmlDataSource, NearFarScalar, Matrix3, GeoJsonDataSource, Cesium3DTileStyle, HeadingPitchRange, SceneMode, Ion, IonResource, Cesium3DTileColorBlendMode, OrthographicFrustum, EasingFunction, EllipsoidGeodesic, EllipsoidTerrainProvider, sampleTerrainMostDetailed, defined, Cesium3DTileset, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, PolygonPipeline, CesiumInspector, ClockRange, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
3
- import { Cartes, Entity as Entity$1, ENVIRONMENT, Api, Calculator, ClientFile, EntityTag, EntityType, LRUCache, ObjectUtils, Style, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl, Carto, Geometry, Bounds, EntityLod, BruceEvent, EntityCoords, DataLab, DelayQueue, BruceApi, EntityHistoricData, EntityRelation, AccountConcept, RecordChangeFeed, ProgramKey, EntitySource, Camera, ProjectViewTile, ProjectViewLegacyTile, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, Session, EntityRelationType } from 'bruce-models';
2
+ import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, HeightReference, ColorBlendMode, HeadingPitchRoll, Math as Math$1, Transforms, ShadowMode, Cartesian3, ClassificationType, Model, HorizontalOrigin, VerticalOrigin, ConstantPositionProperty, ArcType, CornerType, JulianDate, Quaternion, Matrix4, PolygonHierarchy, PolylineGraphics, Cartesian2, SceneTransforms, Rectangle, NearFarScalar, Matrix3, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Ion, IonResource, Cesium3DTileColorBlendMode, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, OrthographicFrustum, EasingFunction, Cesium3DTileset, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, CesiumInspector, ClockRange, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
3
+ import { Cartes, Entity as Entity$1, ENVIRONMENT, Calculator, ClientFile, EntityLod, EntityTag, EntityType, LRUCache, ObjectUtils, Style, Api, Carto, Geometry, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl, Bounds, BruceEvent, EntityCoords, DataLab, DelayQueue, EntityHistoricData, BruceApi, EntityRelation, ProgramKey, EntitySource, ProjectViewLegacyTile, ProjectViewTile, AccountConcept, RecordChangeFeed, Camera, Session, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, EntityRelationType } from 'bruce-models';
4
4
 
5
5
  /**
6
6
  * Ensures a number is returned from a given value.
@@ -14290,7 +14290,7 @@ var TilesetCadRenderManager;
14290
14290
  // We calculate it here instead of relying on the render engine as we need to extract the model-tree from it.
14291
14291
  let loadUrl = null;
14292
14292
  (async () => {
14293
- var _a, _b, _c, _d;
14293
+ var _a, _b, _c, _d, _e;
14294
14294
  if (!this.initQueue) {
14295
14295
  await delay(INIT_BATCH_DELAY_MS);
14296
14296
  if (this.disposed) {
@@ -14375,7 +14375,8 @@ var TilesetCadRenderManager;
14375
14375
  // TODO: this is a problem as we need to know what nodes are collapsed...
14376
14376
  // In >v1 the model-tree sits in its own file.
14377
14377
  if (((_c = tileset.settings) === null || _c === void 0 ? void 0 : _c["tilesetVersion"]) > 1) {
14378
- const modelTreeUrl = Tileset.GetFileUrl({
14378
+ // Newer APIs precalculate this URL.
14379
+ const modelTreeUrl = (_d = tileset.urlModelTree) !== null && _d !== void 0 ? _d : Tileset.GetFileUrl({
14379
14380
  api: api,
14380
14381
  file: "model_tree.json",
14381
14382
  tilesetId: tileset.id,
@@ -14420,7 +14421,7 @@ var TilesetCadRenderManager;
14420
14421
  const rootId = settings.rootEntityId;
14421
14422
  this.rootId = rootId;
14422
14423
  // If historic, we'll see if the root Entity has a historic position to use.
14423
- if (((_d = this.item.BruceEntity) === null || _d === void 0 ? void 0 : _d.historic) && rootId) {
14424
+ if (((_e = this.item.BruceEntity) === null || _e === void 0 ? void 0 : _e.historic) && rootId) {
14424
14425
  try {
14425
14426
  const { entity: root } = await Entity$1.Get({
14426
14427
  entityId: rootId,
@@ -35070,7 +35071,7 @@ var EntityRenderEngineModel3d;
35070
35071
  * @returns
35071
35072
  */
35072
35073
  async function RenderGroup(params) {
35073
- var _a, _b, _c, _d, _e, _f;
35074
+ var _a, _b, _c, _d, _e, _f, _g;
35074
35075
  const api = params.apiGetter.getApi();
35075
35076
  await api.Loading;
35076
35077
  const cEntities = new Map();
@@ -35180,7 +35181,7 @@ var EntityRenderEngineModel3d;
35180
35181
  style: mStyle,
35181
35182
  tags: tags,
35182
35183
  viewer: params.viewer,
35183
- lodUrl: ClientFile.GetUrl({
35184
+ lodUrl: (_g = lod.url) !== null && _g !== void 0 ? _g : ClientFile.GetUrl({
35184
35185
  api,
35185
35186
  fileId: lod.clientFileId,
35186
35187
  viaCdn: true
@@ -37566,7 +37567,7 @@ var StyleUtils;
37566
37567
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
37567
37568
  })(StyleUtils || (StyleUtils = {}));
37568
37569
 
37569
- const VERSION = "6.8.6";
37570
+ const VERSION = "6.8.7";
37570
37571
  /**
37571
37572
  * Updates the environment instance used by bruce-cesium to one specified.
37572
37573
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.