bruce-cesium 6.6.3 → 6.6.4

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.
@@ -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
- const changed = this.setStateValues({
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
  }
@@ -36048,7 +36071,7 @@
36048
36071
  }
36049
36072
  }
36050
36073
 
36051
- const VERSION = "6.6.3";
36074
+ const VERSION = "6.6.4";
36052
36075
  /**
36053
36076
  * Updates the environment instance used by bruce-cesium to one specified.
36054
36077
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.