bruce-cesium 6.6.3 → 6.6.5
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 +31 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +29 -2
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +4 -0
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +24 -1
- 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 +5 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -5321,6 +5321,7 @@
|
|
|
5321
5321
|
EVisualUpdateType["Remove"] = "REMOVE";
|
|
5322
5322
|
EVisualUpdateType["Update"] = "UPDATE";
|
|
5323
5323
|
EVisualUpdateType["DeselectAll"] = "DESELECT_ALL";
|
|
5324
|
+
EVisualUpdateType["ClearHighlighted"] = "CLEAR_HIGHLIGHTED";
|
|
5324
5325
|
})(EVisualUpdateType = VisualsRegister.EVisualUpdateType || (VisualsRegister.EVisualUpdateType = {}));
|
|
5325
5326
|
/**
|
|
5326
5327
|
* Possible sources of visual updates (if source is known).
|
|
@@ -6250,6 +6251,7 @@
|
|
|
6250
6251
|
return selectedIds;
|
|
6251
6252
|
}
|
|
6252
6253
|
SetHighlighted(params) {
|
|
6254
|
+
var _a;
|
|
6253
6255
|
let { entityIds, highlighted, refreshIfHighlighted, requestRender, menuItemId } = params;
|
|
6254
6256
|
if (refreshIfHighlighted || refreshIfHighlighted === undefined) {
|
|
6255
6257
|
refreshIfHighlighted = true;
|
|
@@ -6262,7 +6264,7 @@
|
|
|
6262
6264
|
});
|
|
6263
6265
|
// Checking if we need to refresh the highlight.
|
|
6264
6266
|
const doHighlight = refreshIfHighlighted || (Boolean(state.highlighted) != highlighted);
|
|
6265
|
-
|
|
6267
|
+
this.setStateValues({
|
|
6266
6268
|
entityId: id,
|
|
6267
6269
|
menuItemId: menuItemId,
|
|
6268
6270
|
// Null means it will be deleted from the object.
|
|
@@ -6302,6 +6304,17 @@
|
|
|
6302
6304
|
}
|
|
6303
6305
|
}
|
|
6304
6306
|
}
|
|
6307
|
+
const update = {
|
|
6308
|
+
type: EVisualUpdateType.Update,
|
|
6309
|
+
entityId: id,
|
|
6310
|
+
highlighted: highlighted
|
|
6311
|
+
};
|
|
6312
|
+
if (params === null || params === void 0 ? void 0 : params.source) {
|
|
6313
|
+
update.source = params.source;
|
|
6314
|
+
}
|
|
6315
|
+
if ((params === null || params === void 0 ? void 0 : params.source) !== EUpdateSource.TREE_CASCADE) {
|
|
6316
|
+
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
6317
|
+
}
|
|
6305
6318
|
}
|
|
6306
6319
|
if (requestRender != false) {
|
|
6307
6320
|
this.viewer.scene.requestRender();
|
|
@@ -6316,6 +6329,7 @@
|
|
|
6316
6329
|
return state.highlighted === true;
|
|
6317
6330
|
}
|
|
6318
6331
|
ClearHighlighted(params) {
|
|
6332
|
+
var _a;
|
|
6319
6333
|
// Null all states.
|
|
6320
6334
|
let entityIds = [];
|
|
6321
6335
|
this.ForEachState((state) => {
|
|
@@ -6341,6 +6355,15 @@
|
|
|
6341
6355
|
}
|
|
6342
6356
|
}
|
|
6343
6357
|
}
|
|
6358
|
+
const update = {
|
|
6359
|
+
type: EVisualUpdateType.ClearHighlighted
|
|
6360
|
+
};
|
|
6361
|
+
if (params === null || params === void 0 ? void 0 : params.source) {
|
|
6362
|
+
update.source = params.source;
|
|
6363
|
+
}
|
|
6364
|
+
if ((params === null || params === void 0 ? void 0 : params.source) !== EUpdateSource.TREE_CASCADE) {
|
|
6365
|
+
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
6366
|
+
}
|
|
6344
6367
|
if ((params === null || params === void 0 ? void 0 : params.requestRender) != false) {
|
|
6345
6368
|
this.viewer.scene.requestRender();
|
|
6346
6369
|
}
|
|
@@ -12854,6 +12877,10 @@
|
|
|
12854
12877
|
viaCdn: false
|
|
12855
12878
|
});
|
|
12856
12879
|
}
|
|
12880
|
+
// Should not occur.
|
|
12881
|
+
if (!tileset.loadUrl && loadUrl) {
|
|
12882
|
+
tileset.loadUrl = loadUrl;
|
|
12883
|
+
}
|
|
12857
12884
|
// TODO: we shouldn't just assume we'll need it, huge assemblies are 100+ MB.
|
|
12858
12885
|
// TODO: this is a problem as we need to know what nodes are collapsed...
|
|
12859
12886
|
// In >v1 the model-tree sits in its own file.
|
|
@@ -36048,7 +36075,7 @@
|
|
|
36048
36075
|
}
|
|
36049
36076
|
}
|
|
36050
36077
|
|
|
36051
|
-
const VERSION = "6.6.
|
|
36078
|
+
const VERSION = "6.6.5";
|
|
36052
36079
|
/**
|
|
36053
36080
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
36054
36081
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|