bruce-cesium 6.0.0 → 6.0.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.
- package/dist/bruce-cesium.es5.js +42 -55
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +39 -53
- 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 -6
- 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 -6
- 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 -7
- 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 -3
- package/dist/lib/rendering/render-managers/tilesets/tileset-osm-render-manager.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +27 -30
- 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 +29 -33
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -10715,21 +10715,6 @@
|
|
|
10715
10715
|
CesiumAnimatedInOut.AnimateOut = AnimateOut;
|
|
10716
10716
|
})(exports.CesiumAnimatedInOut || (exports.CesiumAnimatedInOut = {}));
|
|
10717
10717
|
|
|
10718
|
-
// Constants for update source types
|
|
10719
|
-
const UPDATE_SOURCES = {
|
|
10720
|
-
TREE_CASCADE: "tree-cascade",
|
|
10721
|
-
TILESET_DISPOSE: "tileset-dispose",
|
|
10722
|
-
OSM_TILESET_DISPOSE: "osm-tileset-dispose",
|
|
10723
|
-
ADD_REGO_REPLACE: "add-rego-replace",
|
|
10724
|
-
ENTITIES_LOADED_REMOVE: "entities-loaded-remove",
|
|
10725
|
-
ENTITIES_LOADED_CLEAR: "entities-loaded-clear",
|
|
10726
|
-
ENTITIES_LOADED_DISPOSE: "entities-loaded-dispose",
|
|
10727
|
-
ENTITIES_TAG_FILTER: "entities-tag-filter",
|
|
10728
|
-
ENTITIES_DISABLED: "entities-disabled",
|
|
10729
|
-
ENTITIES_DISPOSE: "entities-dispose",
|
|
10730
|
-
RELATIONS_FILTER: "relations-filter",
|
|
10731
|
-
RELATIONS_DISPOSE: "relations-dispose" // Triggered when relations render manager is disposed.
|
|
10732
|
-
};
|
|
10733
10718
|
/**
|
|
10734
10719
|
* Returns if a given visual is alive and in the scene.
|
|
10735
10720
|
* @param viewer
|
|
@@ -11024,6 +11009,19 @@
|
|
|
11024
11009
|
EVisualUpdateType["Update"] = "UPDATE";
|
|
11025
11010
|
EVisualUpdateType["DeselectAll"] = "DESELECT_ALL";
|
|
11026
11011
|
})(EVisualUpdateType = VisualsRegister.EVisualUpdateType || (VisualsRegister.EVisualUpdateType = {}));
|
|
11012
|
+
/**
|
|
11013
|
+
* Possible sources of visual updates (if source is known).
|
|
11014
|
+
* @warning under development. Expect changes.
|
|
11015
|
+
*/
|
|
11016
|
+
let EUpdateSource;
|
|
11017
|
+
(function (EUpdateSource) {
|
|
11018
|
+
// Triggered by the tree cascade update.
|
|
11019
|
+
// TODO: seems specific to our ui-app, could we rename it to 'BULK_UPDATE' or 'SILENT' to indicate an ignore.
|
|
11020
|
+
EUpdateSource["TREE_CASCADE"] = "tree-cascade";
|
|
11021
|
+
// Triggered by a Tileset being disposed.
|
|
11022
|
+
// TODO: maybe generalize to 'MENU_ITEM_DISPOSE'?
|
|
11023
|
+
EUpdateSource["TILESET_DISPOSE"] = "tileset-dispose";
|
|
11024
|
+
})(EUpdateSource = VisualsRegister.EUpdateSource || (VisualsRegister.EUpdateSource = {}));
|
|
11027
11025
|
class Register {
|
|
11028
11026
|
get Id() {
|
|
11029
11027
|
return this.id;
|
|
@@ -11201,7 +11199,7 @@
|
|
|
11201
11199
|
});
|
|
11202
11200
|
}
|
|
11203
11201
|
// Trigger update event.
|
|
11204
|
-
if (this.onUpdate && source !==
|
|
11202
|
+
if (this.onUpdate && source !== EUpdateSource.TREE_CASCADE) {
|
|
11205
11203
|
const update = {
|
|
11206
11204
|
type: EVisualUpdateType.Update,
|
|
11207
11205
|
entityId: state.entityId
|
|
@@ -11292,7 +11290,7 @@
|
|
|
11292
11290
|
}
|
|
11293
11291
|
}
|
|
11294
11292
|
// Trigger update event.
|
|
11295
|
-
if (this.onUpdate && source !==
|
|
11293
|
+
if (this.onUpdate && source !== EUpdateSource.TREE_CASCADE) {
|
|
11296
11294
|
const keys = Object.keys(states);
|
|
11297
11295
|
for (let i = 0; i < keys.length; i++) {
|
|
11298
11296
|
const key = keys[i];
|
|
@@ -11574,7 +11572,7 @@
|
|
|
11574
11572
|
if (source) {
|
|
11575
11573
|
update.source = source;
|
|
11576
11574
|
}
|
|
11577
|
-
if (source !==
|
|
11575
|
+
if (source !== EUpdateSource.TREE_CASCADE) {
|
|
11578
11576
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
11579
11577
|
}
|
|
11580
11578
|
}
|
|
@@ -11740,7 +11738,7 @@
|
|
|
11740
11738
|
if (source) {
|
|
11741
11739
|
update.source = source;
|
|
11742
11740
|
}
|
|
11743
|
-
if (source !==
|
|
11741
|
+
if (source !== EUpdateSource.TREE_CASCADE) {
|
|
11744
11742
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
11745
11743
|
}
|
|
11746
11744
|
}
|
|
@@ -11786,7 +11784,7 @@
|
|
|
11786
11784
|
if (params === null || params === void 0 ? void 0 : params.source) {
|
|
11787
11785
|
update.source = params.source;
|
|
11788
11786
|
}
|
|
11789
|
-
if ((params === null || params === void 0 ? void 0 : params.source) !==
|
|
11787
|
+
if ((params === null || params === void 0 ? void 0 : params.source) !== EUpdateSource.TREE_CASCADE) {
|
|
11790
11788
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
11791
11789
|
}
|
|
11792
11790
|
if ((params === null || params === void 0 ? void 0 : params.requestRender) != false) {
|
|
@@ -11936,7 +11934,7 @@
|
|
|
11936
11934
|
if (source) {
|
|
11937
11935
|
update.source = source;
|
|
11938
11936
|
}
|
|
11939
|
-
if (source !==
|
|
11937
|
+
if (source !== EUpdateSource.TREE_CASCADE) {
|
|
11940
11938
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
11941
11939
|
}
|
|
11942
11940
|
}
|
|
@@ -12048,7 +12046,7 @@
|
|
|
12048
12046
|
if (params === null || params === void 0 ? void 0 : params.source) {
|
|
12049
12047
|
update.source = params.source;
|
|
12050
12048
|
}
|
|
12051
|
-
if ((params === null || params === void 0 ? void 0 : params.source) !==
|
|
12049
|
+
if ((params === null || params === void 0 ? void 0 : params.source) !== EUpdateSource.TREE_CASCADE) {
|
|
12052
12050
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
12053
12051
|
}
|
|
12054
12052
|
}
|
|
@@ -12063,8 +12061,7 @@
|
|
|
12063
12061
|
entityId: rego.entityId,
|
|
12064
12062
|
menuItemId: rego.menuItemId,
|
|
12065
12063
|
doUpdate: false,
|
|
12066
|
-
requestRender: false
|
|
12067
|
-
source: UPDATE_SOURCES.ADD_REGO_REPLACE
|
|
12064
|
+
requestRender: false
|
|
12068
12065
|
});
|
|
12069
12066
|
}
|
|
12070
12067
|
const entityId = rego.entityId;
|
|
@@ -12088,7 +12085,7 @@
|
|
|
12088
12085
|
if (source) {
|
|
12089
12086
|
update.source = source;
|
|
12090
12087
|
}
|
|
12091
|
-
if (source !==
|
|
12088
|
+
if (source !== EUpdateSource.TREE_CASCADE) {
|
|
12092
12089
|
(_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
|
|
12093
12090
|
}
|
|
12094
12091
|
if (requestRender != false) {
|
|
@@ -12210,7 +12207,7 @@
|
|
|
12210
12207
|
if (source) {
|
|
12211
12208
|
update.source = source;
|
|
12212
12209
|
}
|
|
12213
|
-
if (source !==
|
|
12210
|
+
if (source !== EUpdateSource.TREE_CASCADE) {
|
|
12214
12211
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
12215
12212
|
}
|
|
12216
12213
|
if (doesInclude) {
|
|
@@ -12249,7 +12246,7 @@
|
|
|
12249
12246
|
if (source) {
|
|
12250
12247
|
update.source = source;
|
|
12251
12248
|
}
|
|
12252
|
-
if (source !==
|
|
12249
|
+
if (source !== EUpdateSource.TREE_CASCADE) {
|
|
12253
12250
|
(_b = this.onUpdate) === null || _b === void 0 ? void 0 : _b.Trigger(update);
|
|
12254
12251
|
}
|
|
12255
12252
|
this.rego[entityId] = entityRegos.filter(r => r.menuItemId !== menuItemId);
|
|
@@ -12284,7 +12281,7 @@
|
|
|
12284
12281
|
if (source) {
|
|
12285
12282
|
update.source = source;
|
|
12286
12283
|
}
|
|
12287
|
-
if (source !==
|
|
12284
|
+
if (source !== EUpdateSource.TREE_CASCADE) {
|
|
12288
12285
|
(_c = this.onUpdate) === null || _c === void 0 ? void 0 : _c.Trigger(update);
|
|
12289
12286
|
}
|
|
12290
12287
|
if (doUpdate && menuItemId) {
|
|
@@ -12391,7 +12388,7 @@
|
|
|
12391
12388
|
if (source) {
|
|
12392
12389
|
update.source = source;
|
|
12393
12390
|
}
|
|
12394
|
-
if (source !==
|
|
12391
|
+
if (source !== EUpdateSource.TREE_CASCADE) {
|
|
12395
12392
|
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
12396
12393
|
}
|
|
12397
12394
|
this.queueUpdate({
|
|
@@ -13427,15 +13424,13 @@
|
|
|
13427
13424
|
if (shouldRender) {
|
|
13428
13425
|
this.visualsManager.RemoveRegos({
|
|
13429
13426
|
menuItemId: this.item.id,
|
|
13430
|
-
retainTagIds: tagsToRender
|
|
13431
|
-
source: UPDATE_SOURCES.ENTITIES_TAG_FILTER
|
|
13427
|
+
retainTagIds: tagsToRender
|
|
13432
13428
|
});
|
|
13433
13429
|
(_j = this.clustering) === null || _j === void 0 ? void 0 : _j.Dispose();
|
|
13434
13430
|
}
|
|
13435
13431
|
else {
|
|
13436
13432
|
this.visualsManager.RemoveRegos({
|
|
13437
|
-
menuItemId: this.item.id
|
|
13438
|
-
source: UPDATE_SOURCES.ENTITIES_DISABLED
|
|
13433
|
+
menuItemId: this.item.id
|
|
13439
13434
|
});
|
|
13440
13435
|
(_k = this.clustering) === null || _k === void 0 ? void 0 : _k.Dispose();
|
|
13441
13436
|
return;
|
|
@@ -13576,8 +13571,7 @@
|
|
|
13576
13571
|
this.unsetGetter();
|
|
13577
13572
|
this.disposed = true;
|
|
13578
13573
|
this.visualsManager.RemoveRegos({
|
|
13579
|
-
menuItemId: this.item.id
|
|
13580
|
-
source: UPDATE_SOURCES.ENTITIES_DISPOSE
|
|
13574
|
+
menuItemId: this.item.id
|
|
13581
13575
|
});
|
|
13582
13576
|
(_a = this.entityCheckRemoval) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
13583
13577
|
(_b = this.viewMonitorRemoval) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
@@ -14431,8 +14425,7 @@
|
|
|
14431
14425
|
}
|
|
14432
14426
|
this.visualsManager.RemoveRegos({
|
|
14433
14427
|
entityId: x,
|
|
14434
|
-
menuItemId: this.item.id
|
|
14435
|
-
source: UPDATE_SOURCES.ENTITIES_LOADED_REMOVE
|
|
14428
|
+
menuItemId: this.item.id
|
|
14436
14429
|
});
|
|
14437
14430
|
this.renderedEntities[x] = false;
|
|
14438
14431
|
});
|
|
@@ -14448,8 +14441,7 @@
|
|
|
14448
14441
|
}
|
|
14449
14442
|
this.item.BruceEntity.Entities = [];
|
|
14450
14443
|
this.visualsManager.RemoveRegos({
|
|
14451
|
-
menuItemId: this.item.id
|
|
14452
|
-
source: UPDATE_SOURCES.ENTITIES_LOADED_CLEAR
|
|
14444
|
+
menuItemId: this.item.id
|
|
14453
14445
|
});
|
|
14454
14446
|
this.renderedEntities = {};
|
|
14455
14447
|
this.recreateGetter();
|
|
@@ -14513,8 +14505,7 @@
|
|
|
14513
14505
|
this.getterSub = null;
|
|
14514
14506
|
this.disposed = true;
|
|
14515
14507
|
this.visualsManager.RemoveRegos({
|
|
14516
|
-
menuItemId: this.item.id
|
|
14517
|
-
source: UPDATE_SOURCES.ENTITIES_LOADED_DISPOSE
|
|
14508
|
+
menuItemId: this.item.id
|
|
14518
14509
|
});
|
|
14519
14510
|
for (let i = 0; i < this.sources.length; i++) {
|
|
14520
14511
|
const source = this.sources[i];
|
|
@@ -18698,7 +18689,7 @@
|
|
|
18698
18689
|
requestRender: false,
|
|
18699
18690
|
menuItemId: this.item.id,
|
|
18700
18691
|
doRemove: false,
|
|
18701
|
-
source:
|
|
18692
|
+
source: exports.VisualsRegister.EUpdateSource.TILESET_DISPOSE
|
|
18702
18693
|
});
|
|
18703
18694
|
// Might have to do something smarter since siblings could still be OK.
|
|
18704
18695
|
this.loadedCesiumEntities[rego.entityId] = null;
|
|
@@ -18982,7 +18973,7 @@
|
|
|
18982
18973
|
this.visualsManager.RemoveRegos({
|
|
18983
18974
|
menuItemId: this.item.id,
|
|
18984
18975
|
doRemove: false,
|
|
18985
|
-
source:
|
|
18976
|
+
source: exports.VisualsRegister.EUpdateSource.TILESET_DISPOSE
|
|
18986
18977
|
});
|
|
18987
18978
|
this.viewerDateTimeDispose();
|
|
18988
18979
|
}
|
|
@@ -19480,8 +19471,7 @@
|
|
|
19480
19471
|
this.cTileset = null;
|
|
19481
19472
|
}
|
|
19482
19473
|
this.visualsManager.RemoveRegos({
|
|
19483
|
-
menuItemId: this.item.id
|
|
19484
|
-
source: UPDATE_SOURCES.OSM_TILESET_DISPOSE
|
|
19474
|
+
menuItemId: this.item.id
|
|
19485
19475
|
});
|
|
19486
19476
|
this.featureQueue = [];
|
|
19487
19477
|
}
|
|
@@ -20669,8 +20659,7 @@
|
|
|
20669
20659
|
relation: rego.relation,
|
|
20670
20660
|
entityId: rego.entityId,
|
|
20671
20661
|
menuItemId: this.item.id,
|
|
20672
|
-
requestRender: false
|
|
20673
|
-
source: UPDATE_SOURCES.RELATIONS_FILTER
|
|
20662
|
+
requestRender: false
|
|
20674
20663
|
});
|
|
20675
20664
|
}
|
|
20676
20665
|
}
|
|
@@ -20717,8 +20706,7 @@
|
|
|
20717
20706
|
}
|
|
20718
20707
|
this.disposed = true;
|
|
20719
20708
|
this.register.RemoveRegos({
|
|
20720
|
-
menuItemId: this.item.id
|
|
20721
|
-
source: UPDATE_SOURCES.RELATIONS_DISPOSE
|
|
20709
|
+
menuItemId: this.item.id
|
|
20722
20710
|
});
|
|
20723
20711
|
}
|
|
20724
20712
|
/**
|
|
@@ -20978,8 +20966,7 @@
|
|
|
20978
20966
|
entityId: rego.entityId,
|
|
20979
20967
|
menuItemId: this.item.id,
|
|
20980
20968
|
relation: relation,
|
|
20981
|
-
requestRender: false
|
|
20982
|
-
source: UPDATE_SOURCES.RELATIONS_FILTER
|
|
20969
|
+
requestRender: false
|
|
20983
20970
|
});
|
|
20984
20971
|
}
|
|
20985
20972
|
const key = RelationRenderEngine.GetRenderGroupId(relation);
|
|
@@ -33221,11 +33208,10 @@
|
|
|
33221
33208
|
}
|
|
33222
33209
|
}
|
|
33223
33210
|
|
|
33224
|
-
const VERSION = "6.0.
|
|
33211
|
+
const VERSION = "6.0.2";
|
|
33225
33212
|
|
|
33226
33213
|
exports.VERSION = VERSION;
|
|
33227
33214
|
exports.isOutlineChanged = isOutlineChanged;
|
|
33228
|
-
exports.UPDATE_SOURCES = UPDATE_SOURCES;
|
|
33229
33215
|
exports.CesiumParabola = CesiumParabola;
|
|
33230
33216
|
exports.CESIUM_INSPECTOR_KEY = CESIUM_INSPECTOR_KEY;
|
|
33231
33217
|
exports.CESIUM_TIMELINE_KEY = CESIUM_TIMELINE_KEY;
|