@deck.gl/widgets 9.3.5 → 9.3.6
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
|
-
|
|
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
|
}
|
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
|
-
|
|
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
|
}
|