bruce-cesium 6.8.2 → 6.8.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 * as Cesium from 'cesium';
2
- import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, HeightReference, HorizontalOrigin, VerticalOrigin, Cartesian3, ClassificationType, ConstantPositionProperty, Math as Math$1, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, ArcType, CornerType, ShadowMode, ColorBlendMode, Model, PolygonHierarchy, PolylineGraphics, Cartesian2, SceneTransforms, NearFarScalar, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Ion, IonResource, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, Cesium3DTileset, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, CesiumInspector, ClockRange, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
3
- import { Cartes, Entity as Entity$1, ENVIRONMENT, Api, Calculator, ClientFile, EntityTag, EntityType, LRUCache, ObjectUtils, Style, Carto, Geometry, EntityLod, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl, Bounds, BruceEvent, EntityCoords, DataLab, DelayQueue, EntityHistoricData, BruceApi, EntityRelation, AccountConcept, RecordChangeFeed, ProgramKey, EntitySource, Camera, ProjectViewTile, ProjectViewLegacyTile, Session, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, EntityRelationType } from 'bruce-models';
2
+ import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, DistanceDisplayCondition, HeightReference, ColorBlendMode, ShadowMode, ClassificationType, Model, HorizontalOrigin, VerticalOrigin, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ArcType, CornerType, Cartesian2, SceneTransforms, NearFarScalar, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, IonResource, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, Cesium3DTileset, OrthographicFrustum, EasingFunction, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, BoundingSphere, GeometryInstance, PolygonPipeline, CesiumInspector, ClockRange, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
3
+ import { Cartes, Entity as Entity$1, ENVIRONMENT, Calculator, ClientFile, EntityLod, EntityTag, EntityType, LRUCache, ObjectUtils, Style, Api, Bounds, Geometry, Carto, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl, BruceEvent, EntityCoords, DataLab, DelayQueue, EntityHistoricData, AccountConcept, RecordChangeFeed, BruceApi, EntityRelation, ProgramKey, EntitySource, ProjectViewLegacyTile, ProjectViewTile, Camera, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, Session, EntityRelationType } from 'bruce-models';
4
4
 
5
5
  /**
6
6
  * Ensures a number is returned from a given value.
@@ -10700,6 +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
10704
  this.viewer.scene.requestRender();
10704
10705
  }
10705
10706
  }
@@ -14551,7 +14552,7 @@ var TilesetCadRenderManager;
14551
14552
  }
14552
14553
  // Returns null (fall back to a normal Dispose()) if the tileset hasn't finished loading yet.
14553
14554
  PrepareHandoff() {
14554
- var _a, _b;
14555
+ var _a, _b, _c;
14555
14556
  if (this.disposed || !this.cTileset || this.cTileset.isDestroyed()) {
14556
14557
  return null;
14557
14558
  }
@@ -14569,8 +14570,9 @@ var TilesetCadRenderManager;
14569
14570
  }
14570
14571
  // Not transferred, the receiving manager sets up its own fresh copy if needed.
14571
14572
  this.viewerDateTimeDispose();
14572
- (_a = this.tileLoadRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
14573
- (_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);
14574
14576
  this.tileLoadRemoval = null;
14575
14577
  this.tileUnloadRemoval = null;
14576
14578
  const payload = {
@@ -17138,6 +17140,7 @@ var DataLabRenderManager;
17138
17140
  if ((_a = payload.renderQueue) === null || _a === void 0 ? void 0 : _a.length) {
17139
17141
  this.distributeForRender(payload.renderQueue);
17140
17142
  }
17143
+ this.doEntityCheck(Object.keys(this.renderedEntities));
17141
17144
  this.viewer.scene.requestRender();
17142
17145
  }
17143
17146
  }
@@ -17963,6 +17966,14 @@ var TilesetOsmRenderManager;
17963
17966
  this._osmIdToBruceId = payload.osmIdToBruceId;
17964
17967
  this.totalLoaded = payload.totalLoaded;
17965
17968
  if (this.sourceId) {
17969
+ if (this.item.ghostLoading == true) {
17970
+ this.cTileset.style = new Cesium3DTileStyle({
17971
+ color: "rgba(255, 255, 250, 0.98)"
17972
+ });
17973
+ }
17974
+ else {
17975
+ this.cTileset.style = undefined;
17976
+ }
17966
17977
  this.visualsManager.ReassignMenuItem({
17967
17978
  fromMenuItemId: payload.sourceMenuItemId,
17968
17979
  toMenuItemId: this.item.id,
@@ -18361,7 +18372,7 @@ var TilesetEntitiesRenderManager;
18361
18372
  }
18362
18373
  // Returns null (fall back to a normal Dispose()) if the tileset hasn't finished loading yet.
18363
18374
  PrepareHandoff() {
18364
- var _a, _b;
18375
+ var _a, _b, _c;
18365
18376
  if (this.disposed || !this.cTileset || this.cTileset.isDestroyed()) {
18366
18377
  return null;
18367
18378
  }
@@ -18377,8 +18388,9 @@ var TilesetEntitiesRenderManager;
18377
18388
  clearInterval(this.handoffRestyleInterval);
18378
18389
  this.handoffRestyleInterval = null;
18379
18390
  }
18380
- (_a = this.tileLoadRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
18381
- (_b = this.tileUnloadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
18391
+ (_a = this.styler) === null || _a === void 0 ? void 0 : _a.Dispose();
18392
+ (_b = this.tileLoadRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
18393
+ (_c = this.tileUnloadRemoval) === null || _c === void 0 ? void 0 : _c.call(this);
18382
18394
  this.tileLoadRemoval = null;
18383
18395
  this.tileUnloadRemoval = null;
18384
18396
  const payload = {
@@ -37556,7 +37568,7 @@ var StyleUtils;
37556
37568
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
37557
37569
  })(StyleUtils || (StyleUtils = {}));
37558
37570
 
37559
- const VERSION = "6.8.2";
37571
+ const VERSION = "6.8.4";
37560
37572
  /**
37561
37573
  * Updates the environment instance used by bruce-cesium to one specified.
37562
37574
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.