bruce-cesium 5.2.2 → 5.2.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, 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, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttachment, EntityAttachmentType, EntityAttribute, AbstractApi, Session } 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, ClassificationType, ArcType, CornerType, ShadowMode, ConstantProperty, ConstantPositionProperty, HorizontalOrigin, VerticalOrigin, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Cesium3DTileStyle, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, CesiumInspector, defined, ClockRange, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, Quaternion, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
3
+ import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ClassificationType, ConstantPositionProperty, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Cesium3DTileStyle, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, 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';
4
4
 
5
5
  const TIME_LAG = 300;
6
6
  const POSITION_CHECK_TIMER = 950;
@@ -14678,6 +14678,9 @@ var EntityFilterGetter;
14678
14678
  }
14679
14679
  return this.onScanUpdate;
14680
14680
  }
14681
+ get isLooping() {
14682
+ return this.looping > 0;
14683
+ }
14681
14684
  constructor(params) {
14682
14685
  this.onUpdate = null;
14683
14686
  this.LastStateUpdates = {};
@@ -14690,6 +14693,7 @@ var EntityFilterGetter;
14690
14693
  this.registeredItems = {};
14691
14694
  this.getterLoopId = 0;
14692
14695
  this.getterLoopAbortControllers = {};
14696
+ this.looping = 0;
14693
14697
  this.tagIds = null;
14694
14698
  this.minHeight = 0;
14695
14699
  this.maxHeight = 100000;
@@ -14840,7 +14844,7 @@ var EntityFilterGetter;
14840
14844
  ExcludeMenuItem(menuItemId) {
14841
14845
  this.registeredItems[menuItemId] = null;
14842
14846
  delete this.registeredItems[menuItemId];
14843
- this.updateState();
14847
+ this.updateState(true);
14844
14848
  }
14845
14849
  updateBounds() {
14846
14850
  const viewRect = this.viewPort.GetBounds();
@@ -14856,7 +14860,7 @@ var EntityFilterGetter;
14856
14860
  this.viewCenter = poi;
14857
14861
  }
14858
14862
  }
14859
- updateState() {
14863
+ updateState(onlyIfLooping = false) {
14860
14864
  const tagIds = [];
14861
14865
  const typeIds = [];
14862
14866
  const menuItemIds = this.GetMenuItems();
@@ -14888,7 +14892,7 @@ var EntityFilterGetter;
14888
14892
  }
14889
14893
  }
14890
14894
  }
14891
- if (menuItemIds.length > 0) {
14895
+ if (menuItemIds.length > 0 && (!onlyIfLooping || this.isLooping)) {
14892
14896
  // Reset cells so none are marked as fetched.
14893
14897
  this.cells = new EntityGlobe.Grid();
14894
14898
  this.tagIds = tagIds;
@@ -14929,6 +14933,7 @@ var EntityFilterGetter;
14929
14933
  this.getterLoopAbortControllers = newAbortControllers;
14930
14934
  }
14931
14935
  const abortController = this.getterLoopAbortControllers[abortId] = new AbortController();
14936
+ this.looping += 1;
14932
14937
  (async () => {
14933
14938
  var _a, _b, _c, _d, _e, _f, _g, _h;
14934
14939
  // Larger initial delay for the first loops because terrain is likely loading in.
@@ -15129,7 +15134,11 @@ var EntityFilterGetter;
15129
15134
  if (postedScanning) {
15130
15135
  this.postStatus({ msg: EStatus.Scanning, revoking: true });
15131
15136
  }
15132
- })();
15137
+ })().then(() => {
15138
+ this.looping -= 1;
15139
+ }).catch(() => {
15140
+ this.looping -= 1;
15141
+ });
15133
15142
  }
15134
15143
  /**
15135
15144
  * Gets the historic state of found Entities for the current date times and emits them.
@@ -29923,7 +29932,7 @@ class WidgetViewBar extends Widget.AWidget {
29923
29932
  }
29924
29933
  }
29925
29934
 
29926
- const VERSION = "5.2.2";
29935
+ const VERSION = "5.2.4";
29927
29936
 
29928
29937
  export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isHistoricMetadataChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, 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, Walkthrough, 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 };
29929
29938
  //# sourceMappingURL=bruce-cesium.es5.js.map