bruce-cesium 6.0.0 → 6.0.1
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.
- package/dist/bruce-cesium.es5.js +45 -44
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +40 -42
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js +3 -3
- package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +3 -3
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/other/relations-render-manager.js +3 -3
- package/dist/lib/rendering/render-managers/other/relations-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +2 -2
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-osm-render-manager.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-osm-render-manager.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +30 -29
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/visuals-register.d.ts +14 -15
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, KmlDataSource, SceneTransforms, Quaternion, Matrix3, Matrix4, Cesium3DTileset, IonResource, EllipsoidTerrainProvider, CesiumInspector, OrthographicFrustum, defined, ClockRange, EasingFunction, NearFarScalar, PolygonPipeline, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -10744,21 +10744,22 @@ var CesiumAnimatedInOut;
|
|
|
10744
10744
|
CesiumAnimatedInOut.AnimateOut = AnimateOut;
|
|
10745
10745
|
})(CesiumAnimatedInOut || (CesiumAnimatedInOut = {}));
|
|
10746
10746
|
|
|
10747
|
-
//
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10747
|
+
// Enum for update source types
|
|
10748
|
+
var UpdateSource;
|
|
10749
|
+
(function (UpdateSource) {
|
|
10750
|
+
UpdateSource["TREE_CASCADE"] = "tree-cascade";
|
|
10751
|
+
UpdateSource["TILESET_DISPOSE"] = "tileset-dispose";
|
|
10752
|
+
UpdateSource["OSM_TILESET_DISPOSE"] = "osm-tileset-dispose";
|
|
10753
|
+
UpdateSource["ADD_REGO_REPLACE"] = "add-rego-replace";
|
|
10754
|
+
UpdateSource["ENTITIES_LOADED_REMOVE"] = "entities-loaded-remove";
|
|
10755
|
+
UpdateSource["ENTITIES_LOADED_CLEAR"] = "entities-loaded-clear";
|
|
10756
|
+
UpdateSource["ENTITIES_LOADED_DISPOSE"] = "entities-loaded-dispose";
|
|
10757
|
+
UpdateSource["ENTITIES_TAG_FILTER"] = "entities-tag-filter";
|
|
10758
|
+
UpdateSource["ENTITIES_DISABLED"] = "entities-disabled";
|
|
10759
|
+
UpdateSource["ENTITIES_DISPOSE"] = "entities-dispose";
|
|
10760
|
+
UpdateSource["RELATIONS_FILTER"] = "relations-filter";
|
|
10761
|
+
UpdateSource["RELATIONS_DISPOSE"] = "relations-dispose"; // Triggered when relations render manager is disposed.
|
|
10762
|
+
})(UpdateSource || (UpdateSource = {}));
|
|
10762
10763
|
/**
|
|
10763
10764
|
* Returns if a given visual is alive and in the scene.
|
|
10764
10765
|
* @param viewer
|
|
@@ -11234,7 +11235,7 @@ var VisualsRegister;
|
|
|
11234
11235
|
});
|
|
11235
11236
|
}
|
|
11236
11237
|
// Trigger update event.
|
|
11237
|
-
if (this.onUpdate && source !==
|
|
11238
|
+
if (this.onUpdate && source !== UpdateSource.TREE_CASCADE) {
|
|
11238
11239
|
const update = {
|
|
11239
11240
|
type: EVisualUpdateType.Update,
|
|
11240
11241
|
entityId: state.entityId
|
|
@@ -11325,7 +11326,7 @@ var VisualsRegister;
|
|
|
11325
11326
|
}
|
|
11326
11327
|
}
|
|
11327
11328
|
// Trigger update event.
|
|
11328
|
-
if (this.onUpdate && source !==
|
|
11329
|
+
if (this.onUpdate && source !== UpdateSource.TREE_CASCADE) {
|
|
11329
11330
|
const keys = Object.keys(states);
|
|
11330
11331
|
for (let i = 0; i < keys.length; i++) {
|
|
11331
11332
|
const key = keys[i];
|
|
@@ -11607,7 +11608,7 @@ var VisualsRegister;
|
|
|
11607
11608
|
if (source) {
|
|
11608
11609
|
update.source = source;
|
|
11609
11610
|
}
|
|
11610
|
-
if (source !==
|
|
11611
|
+
if (source !== UpdateSource.TREE_CASCADE) {
|
|
11611
11612
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
11612
11613
|
}
|
|
11613
11614
|
}
|
|
@@ -11773,7 +11774,7 @@ var VisualsRegister;
|
|
|
11773
11774
|
if (source) {
|
|
11774
11775
|
update.source = source;
|
|
11775
11776
|
}
|
|
11776
|
-
if (source !==
|
|
11777
|
+
if (source !== UpdateSource.TREE_CASCADE) {
|
|
11777
11778
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
11778
11779
|
}
|
|
11779
11780
|
}
|
|
@@ -11819,7 +11820,7 @@ var VisualsRegister;
|
|
|
11819
11820
|
if (params === null || params === void 0 ? void 0 : params.source) {
|
|
11820
11821
|
update.source = params.source;
|
|
11821
11822
|
}
|
|
11822
|
-
if ((params === null || params === void 0 ? void 0 : params.source) !==
|
|
11823
|
+
if ((params === null || params === void 0 ? void 0 : params.source) !== UpdateSource.TREE_CASCADE) {
|
|
11823
11824
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
11824
11825
|
}
|
|
11825
11826
|
if ((params === null || params === void 0 ? void 0 : params.requestRender) != false) {
|
|
@@ -11969,7 +11970,7 @@ var VisualsRegister;
|
|
|
11969
11970
|
if (source) {
|
|
11970
11971
|
update.source = source;
|
|
11971
11972
|
}
|
|
11972
|
-
if (source !==
|
|
11973
|
+
if (source !== UpdateSource.TREE_CASCADE) {
|
|
11973
11974
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
11974
11975
|
}
|
|
11975
11976
|
}
|
|
@@ -12081,7 +12082,7 @@ var VisualsRegister;
|
|
|
12081
12082
|
if (params === null || params === void 0 ? void 0 : params.source) {
|
|
12082
12083
|
update.source = params.source;
|
|
12083
12084
|
}
|
|
12084
|
-
if ((params === null || params === void 0 ? void 0 : params.source) !==
|
|
12085
|
+
if ((params === null || params === void 0 ? void 0 : params.source) !== UpdateSource.TREE_CASCADE) {
|
|
12085
12086
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
12086
12087
|
}
|
|
12087
12088
|
}
|
|
@@ -12097,7 +12098,7 @@ var VisualsRegister;
|
|
|
12097
12098
|
menuItemId: rego.menuItemId,
|
|
12098
12099
|
doUpdate: false,
|
|
12099
12100
|
requestRender: false,
|
|
12100
|
-
source:
|
|
12101
|
+
source: UpdateSource.ADD_REGO_REPLACE
|
|
12101
12102
|
});
|
|
12102
12103
|
}
|
|
12103
12104
|
const entityId = rego.entityId;
|
|
@@ -12121,7 +12122,7 @@ var VisualsRegister;
|
|
|
12121
12122
|
if (source) {
|
|
12122
12123
|
update.source = source;
|
|
12123
12124
|
}
|
|
12124
|
-
if (source !==
|
|
12125
|
+
if (source !== UpdateSource.TREE_CASCADE) {
|
|
12125
12126
|
(_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
|
|
12126
12127
|
}
|
|
12127
12128
|
if (requestRender != false) {
|
|
@@ -12243,7 +12244,7 @@ var VisualsRegister;
|
|
|
12243
12244
|
if (source) {
|
|
12244
12245
|
update.source = source;
|
|
12245
12246
|
}
|
|
12246
|
-
if (source !==
|
|
12247
|
+
if (source !== UpdateSource.TREE_CASCADE) {
|
|
12247
12248
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
12248
12249
|
}
|
|
12249
12250
|
if (doesInclude) {
|
|
@@ -12282,7 +12283,7 @@ var VisualsRegister;
|
|
|
12282
12283
|
if (source) {
|
|
12283
12284
|
update.source = source;
|
|
12284
12285
|
}
|
|
12285
|
-
if (source !==
|
|
12286
|
+
if (source !== UpdateSource.TREE_CASCADE) {
|
|
12286
12287
|
(_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
|
|
12287
12288
|
}
|
|
12288
12289
|
this.rego[entityId] = entityRegos.filter(r => r.menuItemId !== menuItemId);
|
|
@@ -12317,7 +12318,7 @@ var VisualsRegister;
|
|
|
12317
12318
|
if (source) {
|
|
12318
12319
|
update.source = source;
|
|
12319
12320
|
}
|
|
12320
|
-
if (source !==
|
|
12321
|
+
if (source !== UpdateSource.TREE_CASCADE) {
|
|
12321
12322
|
(_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(update);
|
|
12322
12323
|
}
|
|
12323
12324
|
if (doUpdate && menuItemId) {
|
|
@@ -12424,7 +12425,7 @@ var VisualsRegister;
|
|
|
12424
12425
|
if (source) {
|
|
12425
12426
|
update.source = source;
|
|
12426
12427
|
}
|
|
12427
|
-
if (source !==
|
|
12428
|
+
if (source !== UpdateSource.TREE_CASCADE) {
|
|
12428
12429
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
12429
12430
|
}
|
|
12430
12431
|
this.queueUpdate({
|
|
@@ -13466,14 +13467,14 @@ var EntitiesRenderManager;
|
|
|
13466
13467
|
this.visualsManager.RemoveRegos({
|
|
13467
13468
|
menuItemId: this.item.id,
|
|
13468
13469
|
retainTagIds: tagsToRender,
|
|
13469
|
-
source:
|
|
13470
|
+
source: UpdateSource.ENTITIES_TAG_FILTER
|
|
13470
13471
|
});
|
|
13471
13472
|
(_j = this.clustering) === null || _j === void 0 ? void 0 : _j.Dispose();
|
|
13472
13473
|
}
|
|
13473
13474
|
else {
|
|
13474
13475
|
this.visualsManager.RemoveRegos({
|
|
13475
13476
|
menuItemId: this.item.id,
|
|
13476
|
-
source:
|
|
13477
|
+
source: UpdateSource.ENTITIES_DISABLED
|
|
13477
13478
|
});
|
|
13478
13479
|
(_k = this.clustering) === null || _k === void 0 ? void 0 : _k.Dispose();
|
|
13479
13480
|
return;
|
|
@@ -13615,7 +13616,7 @@ var EntitiesRenderManager;
|
|
|
13615
13616
|
this.disposed = true;
|
|
13616
13617
|
this.visualsManager.RemoveRegos({
|
|
13617
13618
|
menuItemId: this.item.id,
|
|
13618
|
-
source:
|
|
13619
|
+
source: UpdateSource.ENTITIES_DISPOSE
|
|
13619
13620
|
});
|
|
13620
13621
|
(_a = this.entityCheckRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
13621
13622
|
(_b = this.viewMonitorRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
@@ -14476,7 +14477,7 @@ var EntitiesLoadedRenderManager;
|
|
|
14476
14477
|
this.visualsManager.RemoveRegos({
|
|
14477
14478
|
entityId: x,
|
|
14478
14479
|
menuItemId: this.item.id,
|
|
14479
|
-
source:
|
|
14480
|
+
source: UpdateSource.ENTITIES_LOADED_REMOVE
|
|
14480
14481
|
});
|
|
14481
14482
|
this.renderedEntities[x] = false;
|
|
14482
14483
|
});
|
|
@@ -14493,7 +14494,7 @@ var EntitiesLoadedRenderManager;
|
|
|
14493
14494
|
this.item.BruceEntity.Entities = [];
|
|
14494
14495
|
this.visualsManager.RemoveRegos({
|
|
14495
14496
|
menuItemId: this.item.id,
|
|
14496
|
-
source:
|
|
14497
|
+
source: UpdateSource.ENTITIES_LOADED_CLEAR
|
|
14497
14498
|
});
|
|
14498
14499
|
this.renderedEntities = {};
|
|
14499
14500
|
this.recreateGetter();
|
|
@@ -14558,7 +14559,7 @@ var EntitiesLoadedRenderManager;
|
|
|
14558
14559
|
this.disposed = true;
|
|
14559
14560
|
this.visualsManager.RemoveRegos({
|
|
14560
14561
|
menuItemId: this.item.id,
|
|
14561
|
-
source:
|
|
14562
|
+
source: UpdateSource.ENTITIES_LOADED_DISPOSE
|
|
14562
14563
|
});
|
|
14563
14564
|
for (let i = 0; i < this.sources.length; i++) {
|
|
14564
14565
|
const source = this.sources[i];
|
|
@@ -18758,7 +18759,7 @@ var TilesetCadRenderManager;
|
|
|
18758
18759
|
requestRender: false,
|
|
18759
18760
|
menuItemId: this.item.id,
|
|
18760
18761
|
doRemove: false,
|
|
18761
|
-
source:
|
|
18762
|
+
source: UpdateSource.TILESET_DISPOSE
|
|
18762
18763
|
});
|
|
18763
18764
|
// Might have to do something smarter since siblings could still be OK.
|
|
18764
18765
|
this.loadedCesiumEntities[rego.entityId] = null;
|
|
@@ -19042,7 +19043,7 @@ var TilesetCadRenderManager;
|
|
|
19042
19043
|
this.visualsManager.RemoveRegos({
|
|
19043
19044
|
menuItemId: this.item.id,
|
|
19044
19045
|
doRemove: false,
|
|
19045
|
-
source:
|
|
19046
|
+
source: UpdateSource.TILESET_DISPOSE
|
|
19046
19047
|
});
|
|
19047
19048
|
this.viewerDateTimeDispose();
|
|
19048
19049
|
}
|
|
@@ -19543,7 +19544,7 @@ var TilesetOsmRenderManager;
|
|
|
19543
19544
|
}
|
|
19544
19545
|
this.visualsManager.RemoveRegos({
|
|
19545
19546
|
menuItemId: this.item.id,
|
|
19546
|
-
source:
|
|
19547
|
+
source: UpdateSource.OSM_TILESET_DISPOSE
|
|
19547
19548
|
});
|
|
19548
19549
|
this.featureQueue = [];
|
|
19549
19550
|
}
|
|
@@ -20737,7 +20738,7 @@ var RelationsRenderManager;
|
|
|
20737
20738
|
entityId: rego.entityId,
|
|
20738
20739
|
menuItemId: this.item.id,
|
|
20739
20740
|
requestRender: false,
|
|
20740
|
-
source:
|
|
20741
|
+
source: UpdateSource.RELATIONS_FILTER
|
|
20741
20742
|
});
|
|
20742
20743
|
}
|
|
20743
20744
|
}
|
|
@@ -20785,7 +20786,7 @@ var RelationsRenderManager;
|
|
|
20785
20786
|
this.disposed = true;
|
|
20786
20787
|
this.register.RemoveRegos({
|
|
20787
20788
|
menuItemId: this.item.id,
|
|
20788
|
-
source:
|
|
20789
|
+
source: UpdateSource.RELATIONS_DISPOSE
|
|
20789
20790
|
});
|
|
20790
20791
|
}
|
|
20791
20792
|
/**
|
|
@@ -21046,7 +21047,7 @@ var RelationsRenderManager;
|
|
|
21046
21047
|
menuItemId: this.item.id,
|
|
21047
21048
|
relation: relation,
|
|
21048
21049
|
requestRender: false,
|
|
21049
|
-
source:
|
|
21050
|
+
source: UpdateSource.RELATIONS_FILTER
|
|
21050
21051
|
});
|
|
21051
21052
|
}
|
|
21052
21053
|
const key = RelationRenderEngine.GetRenderGroupId(relation);
|
|
@@ -33325,7 +33326,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
33325
33326
|
}
|
|
33326
33327
|
}
|
|
33327
33328
|
|
|
33328
|
-
const VERSION = "6.0.
|
|
33329
|
+
const VERSION = "6.0.1";
|
|
33329
33330
|
|
|
33330
|
-
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isOutlineChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator,
|
|
33331
|
+
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isOutlineChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, UpdateSource, 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 };
|
|
33331
33332
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|