@deck.gl/widgets 9.3.5 → 9.3.7

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/dist.dev.js CHANGED
@@ -1465,9 +1465,12 @@ var __exports__ = (() => {
1465
1465
  const minutes = parseFloat(match[2]) || 0;
1466
1466
  const seconds = parseFloat(match[3]) || 0;
1467
1467
  const direction = match[4] || "";
1468
- let dec = degrees + minutes / 60 + seconds / 3600;
1468
+ const sign = degrees < 0 ? -1 : 1;
1469
+ let dec = Math.abs(degrees) + minutes / 60 + seconds / 3600;
1469
1470
  if (/[SW]/i.test(direction)) {
1470
1471
  dec = -dec;
1472
+ } else {
1473
+ dec = sign * dec;
1471
1474
  }
1472
1475
  return dec;
1473
1476
  }
@@ -3528,11 +3531,13 @@ var __exports__ = (() => {
3528
3531
  onHover(info) {
3529
3532
  if (this.props.mode === "hover") {
3530
3533
  this.tooltip = this._getTooltip(info);
3534
+ this.updateHTML();
3531
3535
  }
3532
3536
  }
3533
3537
  onClick(info) {
3534
3538
  if (this.props.mode === "click") {
3535
3539
  this.tooltip = this._getTooltip(info);
3540
+ this.updateHTML();
3536
3541
  }
3537
3542
  }
3538
3543
  _getTooltip(info) {
package/dist/index.cjs CHANGED
@@ -750,9 +750,12 @@ function dmsToDecimal(s) {
750
750
  const minutes = parseFloat(match[2]) || 0;
751
751
  const seconds = parseFloat(match[3]) || 0;
752
752
  const direction = match[4] || "";
753
- let dec = degrees + minutes / 60 + seconds / 3600;
753
+ const sign = degrees < 0 ? -1 : 1;
754
+ let dec = Math.abs(degrees) + minutes / 60 + seconds / 3600;
754
755
  if (/[SW]/i.test(direction)) {
755
756
  dec = -dec;
757
+ } else {
758
+ dec = sign * dec;
756
759
  }
757
760
  return dec;
758
761
  }
@@ -1338,11 +1341,13 @@ var InfoWidget = class extends import_core10.Widget {
1338
1341
  onHover(info) {
1339
1342
  if (this.props.mode === "hover") {
1340
1343
  this.tooltip = this._getTooltip(info);
1344
+ this.updateHTML();
1341
1345
  }
1342
1346
  }
1343
1347
  onClick(info) {
1344
1348
  if (this.props.mode === "click") {
1345
1349
  this.tooltip = this._getTooltip(info);
1350
+ this.updateHTML();
1346
1351
  }
1347
1352
  }
1348
1353
  _getTooltip(info) {