bruce-cesium 4.6.1 → 4.6.2

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
- import { BruceEvent, Cartes, Entity as Entity$1, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, ProjectViewTile, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, AbstractApi, Session, EntityAttribute, EntityAttachment, EntityAttachmentType } from 'bruce-models';
1
+ import { BruceEvent, Cartes, Entity as Entity$1, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, ProjectViewTile, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttribute, EntityAttachment, EntityAttachmentType, Session, AbstractApi } 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, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Cesium3DTileStyle, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, Quaternion, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
3
+ import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, ColorBlendMode, HeadingPitchRoll, Transforms, Model, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, KmlDataSource, OrthographicFrustum, EasingFunction, NearFarScalar, SceneTransforms, EllipsoidTerrainProvider, CesiumInspector, defined, ClockRange, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, Quaternion, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -16697,7 +16697,8 @@ var SharedGetters;
16697
16697
  })(SharedGetters || (SharedGetters = {}));
16698
16698
 
16699
16699
  var MAX_BATCHES = 2;
16700
- var BATCH_SIZE$3 = 30;
16700
+ var BATCH_SIZE_OLD_API = 30;
16701
+ var BATCH_SIZE_NEW_API = 1000;
16701
16702
  var BATCH_DELAY = 200;
16702
16703
  var MAX_RANGE = 3000;
16703
16704
  var TilesetOsmRenderManager;
@@ -16715,6 +16716,7 @@ var TilesetOsmRenderManager;
16715
16716
  this.queueCheckInterval = null;
16716
16717
  this.processingQueue = 0;
16717
16718
  this._osmIdToBruceId = {};
16719
+ this.batchSize = BATCH_SIZE_OLD_API;
16718
16720
  var viewer = params.viewer, visualsManager = params.register, apiGetter = params.getters, monitor = params.monitor, item = params.item;
16719
16721
  this.viewer = viewer;
16720
16722
  this.getters = apiGetter;
@@ -16773,7 +16775,7 @@ var TilesetOsmRenderManager;
16773
16775
  this.sourceId = EnsureNumber((_a = menuItem.BruceEntity) === null || _a === void 0 ? void 0 : _a.SourceId, 0);
16774
16776
  this.entityTypeId = (_b = menuItem.BruceEntity) === null || _b === void 0 ? void 0 : _b["EntityType.ID"];
16775
16777
  (function () { return __awaiter(_this, void 0, void 0, function () {
16776
- var validToken, CESIUM, cTileset;
16778
+ var validToken, CESIUM, cTileset, api;
16777
16779
  var _this = this;
16778
16780
  return __generator(this, function (_a) {
16779
16781
  switch (_a.label) {
@@ -16800,6 +16802,13 @@ var TilesetOsmRenderManager;
16800
16802
  }
16801
16803
  _a.label = 4;
16802
16804
  case 4:
16805
+ api = this.getters.GetBruceApi();
16806
+ return [4 /*yield*/, api.Loading];
16807
+ case 5:
16808
+ _a.sent();
16809
+ if (api.IsVersionAtLeast("1.0.5244")) {
16810
+ this.batchSize = BATCH_SIZE_NEW_API;
16811
+ }
16803
16812
  if (this.disposed) {
16804
16813
  if (this.cTileset && !this.cTileset.isDestroyed()) {
16805
16814
  this.cTileset.destroy();
@@ -16936,7 +16945,7 @@ var TilesetOsmRenderManager;
16936
16945
  var isClose = this.getIsVisualWithinRange(feature, MAX_RANGE);
16937
16946
  if (isClose) {
16938
16947
  batch.push(feature);
16939
- if (batch.length >= BATCH_SIZE$3) {
16948
+ if (batch.length >= this.batchSize) {
16940
16949
  return batch;
16941
16950
  }
16942
16951
  }
@@ -17098,7 +17107,7 @@ var TilesetOsmRenderManager;
17098
17107
  delete this._loadedCesiumEntities[key];
17099
17108
  this.totalLoaded -= 1;
17100
17109
  removed += 1;
17101
- if (removed >= BATCH_SIZE$3) {
17110
+ if (removed >= this.batchSize) {
17102
17111
  return true;
17103
17112
  }
17104
17113
  }
@@ -27862,7 +27871,7 @@ var WidgetViewBar = /** @class */ (function (_super) {
27862
27871
  return WidgetViewBar;
27863
27872
  }(Widget.AWidget));
27864
27873
 
27865
- var VERSION = "4.6.1";
27874
+ var VERSION = "4.6.2";
27866
27875
 
27867
27876
  export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline, MeasureCreator, Widget, VIEWER_BOOKMARKS_WIDGET_KEY, WidgetBookmarks, WidgetBranding, WidgetCursorBar, WidgetEmbeddedInfoView, WidgetInfoView, WidgetNavCompass$$1 as WidgetNavCompass, VIEWER_VIEW_BAR_WIDGET_KEY, WidgetViewBar, WidgetControlViewBar, WidgetControlViewBarSearch, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
27868
27877
  //# sourceMappingURL=bruce-cesium.es5.js.map