bruce-cesium 4.4.2 → 4.4.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.
@@ -24906,15 +24906,15 @@
24906
24906
  this._disposeCesiumEvent();
24907
24907
  var events = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
24908
24908
  var lastHoverPos = null;
24909
- var lastHoveredEntityId = null;
24910
- var unhighlightTimeout = null;
24909
+ //let lastHoveredEntityId: string = null;
24910
+ //let unhighlightTimeout: any = null;
24911
24911
  var process2dCursor = function (pos2d, isHover) {
24912
24912
  try {
24913
24913
  var regos = _this._manager.VisualsRegister.GetRegosFromCursor({
24914
24914
  cursor: pos2d
24915
24915
  }).regos;
24916
24916
  var first = regos.length ? regos[0] : null;
24917
- var firstId_1 = first === null || first === void 0 ? void 0 : first.entityId;
24917
+ var firstId = first === null || first === void 0 ? void 0 : first.entityId;
24918
24918
  if (isHover) {
24919
24919
  if (regos.length) {
24920
24920
  _this._viewer.canvas.style.cursor = "pointer";
@@ -24922,37 +24922,40 @@
24922
24922
  else if (_this._viewer.canvas.style.cursor) {
24923
24923
  _this._viewer.canvas.style.removeProperty("cursor");
24924
24924
  }
24925
+ /*
24925
24926
  clearTimeout(unhighlightTimeout);
24926
- if (lastHoveredEntityId && lastHoveredEntityId != firstId_1) {
24927
- _this._manager.VisualsRegister.SetHighlighted({
24927
+ if (lastHoveredEntityId && lastHoveredEntityId != firstId) {
24928
+ this._manager.VisualsRegister.SetHighlighted({
24928
24929
  entityIds: [lastHoveredEntityId],
24929
24930
  highlighted: false
24930
24931
  });
24931
24932
  }
24932
- if (firstId_1) {
24933
- unhighlightTimeout = setTimeout(function () {
24934
- if (lastHoveredEntityId == firstId_1) {
24935
- _this._manager.VisualsRegister.SetHighlighted({
24936
- entityIds: [firstId_1],
24933
+ if (firstId) {
24934
+ unhighlightTimeout = setTimeout(() => {
24935
+ if (lastHoveredEntityId == firstId) {
24936
+ this._manager.VisualsRegister.SetHighlighted({
24937
+ entityIds: [firstId],
24937
24938
  highlighted: false
24938
24939
  });
24939
24940
  lastHoveredEntityId = null;
24940
24941
  }
24941
24942
  }, 5000);
24942
- if (lastHoveredEntityId != firstId_1) {
24943
- _this._manager.VisualsRegister.SetHighlighted({
24944
- entityIds: [firstId_1],
24943
+ if (lastHoveredEntityId != firstId) {
24944
+ this._manager.VisualsRegister.SetHighlighted({
24945
+ entityIds: [firstId],
24945
24946
  highlighted: true
24946
24947
  });
24947
24948
  }
24948
24949
  }
24949
- lastHoveredEntityId = firstId_1;
24950
+
24951
+ lastHoveredEntityId = firstId;
24952
+ */
24950
24953
  }
24951
24954
  else {
24952
24955
  _this._manager.VisualsRegister.ClearSelected();
24953
24956
  if (first) {
24954
24957
  _this._manager.VisualsRegister.SetSelected({
24955
- entityIds: [firstId_1],
24958
+ entityIds: [firstId],
24956
24959
  selected: true
24957
24960
  });
24958
24961
  }
@@ -26219,7 +26222,7 @@
26219
26222
  ViewerUtils.AssertIonToken = AssertIonToken;
26220
26223
  })(exports.ViewerUtils || (exports.ViewerUtils = {}));
26221
26224
 
26222
- var VERSION = "4.4.2";
26225
+ var VERSION = "4.4.3";
26223
26226
 
26224
26227
  exports.VERSION = VERSION;
26225
26228
  exports.CesiumParabola = CesiumParabola;