bruce-cesium 7.4.4 → 7.4.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.
@@ -6733,8 +6733,10 @@
6733
6733
  const relative = Cesium.Cartesian3.subtract(this._pos3d, cameraPosition, new Cesium.Cartesian3());
6734
6734
  const depth = Cesium.Cartesian3.dot(relative, camera.directionWC || camera.direction);
6735
6735
  const distance = Cesium.Cartesian3.magnitude(relative);
6736
+ // If we're labelling from a temp label (mouse hover) don't drive opacity by cam distance.
6737
+ const hoverOnly = this.Transient && !this.Persistent;
6736
6738
  if (!Number.isFinite(distance) || depth <= 0 || distance < ((_c = this.options.near) !== null && _c !== void 0 ? _c : 0) ||
6737
- distance > ((_d = this.options.far) !== null && _d !== void 0 ? _d : Infinity) || (!this.prePositioned && distance >= MAX_DISTANCE)) {
6739
+ distance > ((_d = this.options.far) !== null && _d !== void 0 ? _d : Infinity) || (!this.prePositioned && !hoverOnly && distance >= MAX_DISTANCE)) {
6738
6740
  return null;
6739
6741
  }
6740
6742
  const transforms = Cesium.SceneTransforms;
@@ -6863,7 +6865,7 @@
6863
6865
  return null;
6864
6866
  }
6865
6867
  const state = (_p = this.visualRegister) === null || _p === void 0 ? void 0 : _p.GetState({ entityId: (_q = this.rego) === null || _q === void 0 ? void 0 : _q.entityId, menuItemId: (_r = this.rego) === null || _r === void 0 ? void 0 : _r.menuItemId });
6866
- const opacity = this.prePositioned || MAX_DISTANCE === Infinity ? 1 : 1 - distance / MAX_DISTANCE;
6868
+ const opacity = this.prePositioned || hoverOnly || MAX_DISTANCE === Infinity ? 1 : 1 - distance / MAX_DISTANCE;
6867
6869
  return {
6868
6870
  canFlip: leader && presentation !== "icon", hasLeader: leader,
6869
6871
  textWrapped: ((sourceNaturalText === null || sourceNaturalText === void 0 ? void 0 : sourceNaturalText.offsetWidth) || 0) > TEXT_MAX_WIDTH,
@@ -50432,7 +50434,7 @@ void main() {
50432
50434
  StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
50433
50435
  })(exports.StyleUtils || (exports.StyleUtils = {}));
50434
50436
 
50435
- const VERSION = "7.4.4";
50437
+ const VERSION = "7.4.5";
50436
50438
  /**
50437
50439
  * Updates the environment instance used by bruce-cesium to one specified.
50438
50440
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.