bruce-cesium 5.8.1 → 5.8.3

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, ColorBlendMode, HeadingPitchRoll, Transforms, Model, HorizontalOrigin, VerticalOrigin, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileStyle, HeadingPitchRange, Ion, Cesium3DTileColorBlendMode, KmlDataSource, Quaternion, Matrix3, Matrix4, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, IonResource, Cesium3DTileset, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, SceneTransforms, 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;
@@ -11779,7 +11789,8 @@ var VisualsRegister;
11779
11789
  entityId: rego.entityId,
11780
11790
  menuItemId: rego.menuItemId,
11781
11791
  doUpdate: false,
11782
- requestRender: false
11792
+ requestRender: false,
11793
+ source: "add-rego-replace"
11783
11794
  });
11784
11795
  }
11785
11796
  const entityId = rego.entityId;
@@ -11803,7 +11814,9 @@ var VisualsRegister;
11803
11814
  if (source) {
11804
11815
  update.source = source;
11805
11816
  }
11806
- (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
11817
+ if (source !== "tree-cascade") {
11818
+ (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
11819
+ }
11807
11820
  if (requestRender != false) {
11808
11821
  this.viewer.scene.requestRender();
11809
11822
  }
@@ -11923,7 +11936,9 @@ var VisualsRegister;
11923
11936
  if (source) {
11924
11937
  update.source = source;
11925
11938
  }
11926
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11939
+ if (source !== "tree-cascade") {
11940
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
11941
+ }
11927
11942
  if (doesInclude) {
11928
11943
  this.queueUpdate({
11929
11944
  entityId: entityId,
@@ -11960,7 +11975,9 @@ var VisualsRegister;
11960
11975
  if (source) {
11961
11976
  update.source = source;
11962
11977
  }
11963
- (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
11978
+ if (source !== "tree-cascade") {
11979
+ (_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
11980
+ }
11964
11981
  this.rego[entityId] = entityRegos.filter(r => r.menuItemId !== menuItemId);
11965
11982
  if (doUpdate && menuItemId) {
11966
11983
  this.queueUpdate({
@@ -11993,7 +12010,9 @@ var VisualsRegister;
11993
12010
  if (source) {
11994
12011
  update.source = source;
11995
12012
  }
11996
- (_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(update);
12013
+ if (source !== "tree-cascade") {
12014
+ (_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(update);
12015
+ }
11997
12016
  if (doUpdate && menuItemId) {
11998
12017
  this.queueUpdate({
11999
12018
  entityId: entityId,
@@ -12098,7 +12117,9 @@ var VisualsRegister;
12098
12117
  if (source) {
12099
12118
  update.source = source;
12100
12119
  }
12101
- (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
12120
+ if (source !== "tree-cascade") {
12121
+ (_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
12122
+ }
12102
12123
  this.queueUpdate({
12103
12124
  entityId: entityId,
12104
12125
  refresh: {
@@ -13137,13 +13158,15 @@ var EntitiesRenderManager;
13137
13158
  if (shouldRender) {
13138
13159
  this.visualsManager.RemoveRegos({
13139
13160
  menuItemId: this.item.id,
13140
- retainTagIds: tagsToRender
13161
+ retainTagIds: tagsToRender,
13162
+ source: "entities-tag-filter"
13141
13163
  });
13142
13164
  (_j = this.clustering) === null || _j === void 0 ? void 0 : _j.Dispose();
13143
13165
  }
13144
13166
  else {
13145
13167
  this.visualsManager.RemoveRegos({
13146
- menuItemId: this.item.id
13168
+ menuItemId: this.item.id,
13169
+ source: "entities-disabled"
13147
13170
  });
13148
13171
  (_k = this.clustering) === null || _k === void 0 ? void 0 : _k.Dispose();
13149
13172
  return;
@@ -13284,7 +13307,8 @@ var EntitiesRenderManager;
13284
13307
  this.unsetGetter();
13285
13308
  this.disposed = true;
13286
13309
  this.visualsManager.RemoveRegos({
13287
- menuItemId: this.item.id
13310
+ menuItemId: this.item.id,
13311
+ source: "entities-dispose"
13288
13312
  });
13289
13313
  (_a = this.entityCheckRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
13290
13314
  (_b = this.viewMonitorRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
@@ -14168,7 +14192,8 @@ var EntitiesLoadedRenderManager;
14168
14192
  }
14169
14193
  this.visualsManager.RemoveRegos({
14170
14194
  entityId: x,
14171
- menuItemId: this.item.id
14195
+ menuItemId: this.item.id,
14196
+ source: "entities-loaded-remove"
14172
14197
  });
14173
14198
  this.renderedEntities[x] = false;
14174
14199
  });
@@ -14184,7 +14209,8 @@ var EntitiesLoadedRenderManager;
14184
14209
  }
14185
14210
  this.item.BruceEntity.Entities = [];
14186
14211
  this.visualsManager.RemoveRegos({
14187
- menuItemId: this.item.id
14212
+ menuItemId: this.item.id,
14213
+ source: "entities-loaded-clear"
14188
14214
  });
14189
14215
  this.renderedEntities = {};
14190
14216
  this.recreateGetter();
@@ -14248,7 +14274,8 @@ var EntitiesLoadedRenderManager;
14248
14274
  this.getterSub = null;
14249
14275
  this.disposed = true;
14250
14276
  this.visualsManager.RemoveRegos({
14251
- menuItemId: this.item.id
14277
+ menuItemId: this.item.id,
14278
+ source: "entities-loaded-dispose"
14252
14279
  });
14253
14280
  for (let i = 0; i < this.sources.length; i++) {
14254
14281
  const source = this.sources[i];
@@ -18365,7 +18392,8 @@ var TilesetCadRenderManager;
18365
18392
  entityId: rego.entityId,
18366
18393
  requestRender: false,
18367
18394
  menuItemId: this.item.id,
18368
- doRemove: false
18395
+ doRemove: false,
18396
+ source: "tileset-dispose"
18369
18397
  });
18370
18398
  // Might have to do something smarter since siblings could still be OK.
18371
18399
  this.loadedCesiumEntities[rego.entityId] = null;
@@ -18459,7 +18487,8 @@ var TilesetCadRenderManager;
18459
18487
  (_b = this.styler) === null || _b === void 0 ? void 0 : _b.Dispose();
18460
18488
  this.visualsManager.RemoveRegos({
18461
18489
  menuItemId: this.item.id,
18462
- doRemove: false
18490
+ doRemove: false,
18491
+ source: "tileset-dispose"
18463
18492
  });
18464
18493
  this.viewerDateTimeDispose();
18465
18494
  }
@@ -18952,7 +18981,8 @@ var TilesetOsmRenderManager;
18952
18981
  this.cTileset = null;
18953
18982
  }
18954
18983
  this.visualsManager.RemoveRegos({
18955
- menuItemId: this.item.id
18984
+ menuItemId: this.item.id,
18985
+ source: "osm-tileset-dispose"
18956
18986
  });
18957
18987
  this.featureQueue = [];
18958
18988
  }
@@ -20135,7 +20165,8 @@ var RelationsRenderManager;
20135
20165
  relation: rego.relation,
20136
20166
  entityId: rego.entityId,
20137
20167
  menuItemId: this.item.id,
20138
- requestRender: false
20168
+ requestRender: false,
20169
+ source: "relations-filter"
20139
20170
  });
20140
20171
  }
20141
20172
  }
@@ -20182,7 +20213,8 @@ var RelationsRenderManager;
20182
20213
  }
20183
20214
  this.disposed = true;
20184
20215
  this.register.RemoveRegos({
20185
- menuItemId: this.item.id
20216
+ menuItemId: this.item.id,
20217
+ source: "relations-dispose"
20186
20218
  });
20187
20219
  }
20188
20220
  /**
@@ -20443,7 +20475,7 @@ var RelationsRenderManager;
20443
20475
  menuItemId: this.item.id,
20444
20476
  relation: relation,
20445
20477
  requestRender: false,
20446
- doUpdate: true
20478
+ source: "relations-filter"
20447
20479
  });
20448
20480
  }
20449
20481
  const key = RelationRenderEngine.GetRenderGroupId(relation);
@@ -32302,7 +32334,7 @@ class WidgetViewBar extends Widget.AWidget {
32302
32334
  }
32303
32335
  }
32304
32336
 
32305
- const VERSION = "5.8.1";
32337
+ const VERSION = "5.8.3";
32306
32338
 
32307
32339
  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
32340
  //# sourceMappingURL=bruce-cesium.es5.js.map