bruce-cesium 6.8.3 → 6.8.5

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, ColorBlendMode, ShadowMode, ClassificationType, Model, ArcType, CornerType, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, Cartesian2, SceneTransforms, NearFarScalar, VerticalOrigin, HorizontalOrigin, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, IonResource, Cesium3DTileset, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, CesiumInspector, ClockRange, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
3
- import { Cartes, Entity as Entity$1, ENVIRONMENT, Calculator, ClientFile, EntityLod, EntityTag, EntityType, LRUCache, ObjectUtils, Style, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl, Carto, Geometry, Bounds, BruceEvent, EntityCoords, Api, DelayQueue, EntityHistoricData, DataLab, BruceApi, ProgramKey, AccountConcept, RecordChangeFeed, EntityRelation, 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, JulianDate, Quaternion, Matrix4, PolygonHierarchy, ConstantPositionProperty, PolylineGraphics, ArcType, CornerType, HorizontalOrigin, VerticalOrigin, Cartesian2, SceneTransforms, NearFarScalar, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, IonResource, Cesium3DTileset, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, 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, Bounds, Geometry, Carto, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl, BruceEvent, EntityCoords, Api, DelayQueue, EntityHistoricData, DataLab, BruceApi, EntityRelation, AccountConcept, RecordChangeFeed, ProgramKey, EntitySource, Camera, ProjectViewTile, ProjectViewLegacyTile, Session, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, EntityRelationType } from 'bruce-models';
4
4
 
5
5
  /**
6
6
  * Ensures a number is returned from a given value.
@@ -10700,7 +10700,7 @@ var EntitiesRenderManager;
10700
10700
  if ((_a = payload.renderQueue) === null || _a === void 0 ? void 0 : _a.length) {
10701
10701
  this.distributeForRender(payload.renderQueue);
10702
10702
  }
10703
- this.doEntityCheck(Object.keys(this.renderedEntities));
10703
+ this.ReRender({ entityIds: Object.keys(this.renderedEntities), force: true });
10704
10704
  this.viewer.scene.requestRender();
10705
10705
  }
10706
10706
  }
@@ -14552,7 +14552,7 @@ var TilesetCadRenderManager;
14552
14552
  }
14553
14553
  // Returns null (fall back to a normal Dispose()) if the tileset hasn't finished loading yet.
14554
14554
  PrepareHandoff() {
14555
- var _a, _b;
14555
+ var _a, _b, _c;
14556
14556
  if (this.disposed || !this.cTileset || this.cTileset.isDestroyed()) {
14557
14557
  return null;
14558
14558
  }
@@ -14570,8 +14570,9 @@ var TilesetCadRenderManager;
14570
14570
  }
14571
14571
  // Not transferred, the receiving manager sets up its own fresh copy if needed.
14572
14572
  this.viewerDateTimeDispose();
14573
- (_a = this.tileLoadRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
14574
- (_b = this.tileUnloadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
14573
+ (_a = this.styler) === null || _a === void 0 ? void 0 : _a.Dispose();
14574
+ (_b = this.tileLoadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
14575
+ (_c = this.tileUnloadRemoval) === null || _c === void 0 ? void 0 : _c.call(this);
14575
14576
  this.tileLoadRemoval = null;
14576
14577
  this.tileUnloadRemoval = null;
14577
14578
  const payload = {
@@ -17139,7 +17140,7 @@ var DataLabRenderManager;
17139
17140
  if ((_a = payload.renderQueue) === null || _a === void 0 ? void 0 : _a.length) {
17140
17141
  this.distributeForRender(payload.renderQueue);
17141
17142
  }
17142
- this.doEntityCheck(Object.keys(this.renderedEntities));
17143
+ this.ReRender({ entityIds: Object.keys(this.renderedEntities), force: true });
17143
17144
  this.viewer.scene.requestRender();
17144
17145
  }
17145
17146
  }
@@ -18367,11 +18368,13 @@ var TilesetEntitiesRenderManager;
18367
18368
  return null;
18368
18369
  }
18369
18370
  const accountId = ((_b = item.tileset) === null || _b === void 0 ? void 0 : _b.ClientAccountID) || "";
18370
- return `${accountId}:${tilesetId}`;
18371
+ // Styled <-> unstyled has no cheap revert path, force a reload instead.
18372
+ const applyStyles = Boolean(item.ApplyStyles);
18373
+ return `${accountId}:${tilesetId}:${applyStyles}`;
18371
18374
  }
18372
18375
  // Returns null (fall back to a normal Dispose()) if the tileset hasn't finished loading yet.
18373
18376
  PrepareHandoff() {
18374
- var _a, _b;
18377
+ var _a, _b, _c;
18375
18378
  if (this.disposed || !this.cTileset || this.cTileset.isDestroyed()) {
18376
18379
  return null;
18377
18380
  }
@@ -18387,8 +18390,9 @@ var TilesetEntitiesRenderManager;
18387
18390
  clearInterval(this.handoffRestyleInterval);
18388
18391
  this.handoffRestyleInterval = null;
18389
18392
  }
18390
- (_a = this.tileLoadRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
18391
- (_b = this.tileUnloadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
18393
+ (_a = this.styler) === null || _a === void 0 ? void 0 : _a.Dispose();
18394
+ (_b = this.tileLoadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
18395
+ (_c = this.tileUnloadRemoval) === null || _c === void 0 ? void 0 : _c.call(this);
18392
18396
  this.tileLoadRemoval = null;
18393
18397
  this.tileUnloadRemoval = null;
18394
18398
  const payload = {
@@ -37566,7 +37570,7 @@ var StyleUtils;
37566
37570
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
37567
37571
  })(StyleUtils || (StyleUtils = {}));
37568
37572
 
37569
- const VERSION = "6.8.3";
37573
+ const VERSION = "6.8.5";
37570
37574
  /**
37571
37575
  * Updates the environment instance used by bruce-cesium to one specified.
37572
37576
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.