bruce-cesium 5.8.1 → 5.8.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, ProjectViewTile, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, AbstractApi, Session, EntityAttachment, EntityAttachmentType, EntityAttribute } from 'bruce-models';
1
+ import { BruceEvent, Cartes, Entity as Entity$1, ProjectViewTile, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, 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, Cesium3DTileStyle, HeadingPitchRange, Ion, Cesium3DTileColorBlendMode, KmlDataSource, Quaternion, Matrix3, Matrix4, OrthographicFrustum, EasingFunction, NearFarScalar, Cesium3DTileset, IonResource, SceneTransforms, PolygonPipeline, EllipsoidTerrainProvider, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
3
+ import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, ClassificationType, ArcType, CornerType, ShadowMode, ConstantProperty, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, HorizontalOrigin, VerticalOrigin, ColorBlendMode, HeadingPitchRoll, Transforms, Model, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, Cesium3DTileStyle, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, KmlDataSource, Quaternion, Matrix3, Matrix4, SceneTransforms, EllipsoidTerrainProvider, CesiumInspector, OrthographicFrustum, defined, ClockRange, EasingFunction, NearFarScalar, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, IonResource, Cesium3DTileset, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
4
4
 
5
5
  const TIME_LAG = 300;
6
6
  const POSITION_CHECK_TIMER = 950;
@@ -10927,7 +10927,7 @@ var VisualsRegister;
10927
10927
  });
10928
10928
  }
10929
10929
  // Trigger update event.
10930
- if (this.onUpdate) {
10930
+ if (this.onUpdate && source !== "tree-cascade") {
10931
10931
  const update = {
10932
10932
  type: EVisualUpdateType.Update,
10933
10933
  entityId: state.entityId
@@ -11018,7 +11018,7 @@ var VisualsRegister;
11018
11018
  }
11019
11019
  }
11020
11020
  // Trigger update event.
11021
- if (this.onUpdate) {
11021
+ if (this.onUpdate && source !== "tree-cascade") {
11022
11022
  const keys = Object.keys(states);
11023
11023
  for (let i = 0; i < keys.length; i++) {
11024
11024
  const key = keys[i];
@@ -11300,7 +11300,9 @@ var VisualsRegister;
11300
11300
  if (source) {
11301
11301
  update.source = source;
11302
11302
  }
11303
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11303
+ if (source !== "tree-cascade") {
11304
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11305
+ }
11304
11306
  }
11305
11307
  }
11306
11308
  /**
@@ -11464,7 +11466,9 @@ var VisualsRegister;
11464
11466
  if (source) {
11465
11467
  update.source = source;
11466
11468
  }
11467
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11469
+ if (source !== "tree-cascade") {
11470
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11471
+ }
11468
11472
  }
11469
11473
  if (requestRender != false) {
11470
11474
  this.viewer.scene.requestRender();
@@ -11508,7 +11512,9 @@ var VisualsRegister;
11508
11512
  if (params === null || params === void 0 ? void 0 : params.source) {
11509
11513
  update.source = params.source;
11510
11514
  }
11511
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11515
+ if ((params === null || params === void 0 ? void 0 : params.source) !== "tree-cascade") {
11516
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11517
+ }
11512
11518
  if ((params === null || params === void 0 ? void 0 : params.requestRender) != false) {
11513
11519
  this.viewer.scene.requestRender();
11514
11520
  }
@@ -11656,7 +11662,9 @@ var VisualsRegister;
11656
11662
  if (source) {
11657
11663
  update.source = source;
11658
11664
  }
11659
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11665
+ if (source !== "tree-cascade") {
11666
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11667
+ }
11660
11668
  }
11661
11669
  this.updateAllEntities({
11662
11670
  requestRender: false,
@@ -11766,7 +11774,9 @@ var VisualsRegister;
11766
11774
  if (params === null || params === void 0 ? void 0 : params.source) {
11767
11775
  update.source = params.source;
11768
11776
  }
11769
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11777
+ if ((params === null || params === void 0 ? void 0 : params.source) !== "tree-cascade") {
11778
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11779
+ }
11770
11780
  }
11771
11781
  AddRego(params) {
11772
11782
  var _a, _b;
@@ -11803,7 +11813,9 @@ var VisualsRegister;
11803
11813
  if (source) {
11804
11814
  update.source = source;
11805
11815
  }
11806
- (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
11816
+ if (source !== "tree-cascade") {
11817
+ (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
11818
+ }
11807
11819
  if (requestRender != false) {
11808
11820
  this.viewer.scene.requestRender();
11809
11821
  }
@@ -11923,7 +11935,9 @@ var VisualsRegister;
11923
11935
  if (source) {
11924
11936
  update.source = source;
11925
11937
  }
11926
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11938
+ if (source !== "tree-cascade") {
11939
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11940
+ }
11927
11941
  if (doesInclude) {
11928
11942
  this.queueUpdate({
11929
11943
  entityId: entityId,
@@ -11960,7 +11974,9 @@ var VisualsRegister;
11960
11974
  if (source) {
11961
11975
  update.source = source;
11962
11976
  }
11963
- (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
11977
+ if (source !== "tree-cascade") {
11978
+ (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
11979
+ }
11964
11980
  this.rego[entityId] = entityRegos.filter(r => r.menuItemId !== menuItemId);
11965
11981
  if (doUpdate && menuItemId) {
11966
11982
  this.queueUpdate({
@@ -11993,7 +12009,9 @@ var VisualsRegister;
11993
12009
  if (source) {
11994
12010
  update.source = source;
11995
12011
  }
11996
- (_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(update);
12012
+ if (source !== "tree-cascade") {
12013
+ (_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(update);
12014
+ }
11997
12015
  if (doUpdate && menuItemId) {
11998
12016
  this.queueUpdate({
11999
12017
  entityId: entityId,
@@ -12098,7 +12116,9 @@ var VisualsRegister;
12098
12116
  if (source) {
12099
12117
  update.source = source;
12100
12118
  }
12101
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
12119
+ if (source !== "tree-cascade") {
12120
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
12121
+ }
12102
12122
  this.queueUpdate({
12103
12123
  entityId: entityId,
12104
12124
  refresh: {
@@ -32302,7 +32322,7 @@ class WidgetViewBar extends Widget.AWidget {
32302
32322
  }
32303
32323
  }
32304
32324
 
32305
- const VERSION = "5.8.1";
32325
+ const VERSION = "5.8.2";
32306
32326
 
32307
32327
  export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isOutlineChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, AssemblyRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, CESIUM_TIMELINE_LIVE_KEY, CESIUM_TIMELINE_LIVE_PADDING_KEY, CESIUM_TIMELINE_INTERVAL_KEY, DEFAULT_LIVE_PADDING_SECONDS, 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 };
32308
32328
  //# sourceMappingURL=bruce-cesium.es5.js.map