@watergis/maplibre-gl-terradraw 0.7.2 → 0.7.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.
|
@@ -3735,8 +3735,7 @@ function le(r) {
|
|
|
3735
3735
|
var Vi = k * k / 2, Et = Math.PI / 180;
|
|
3736
3736
|
function de(r) {
|
|
3737
3737
|
const t = r.length - 1;
|
|
3738
|
-
if (t <= 2)
|
|
3739
|
-
return 0;
|
|
3738
|
+
if (t <= 2) return 0;
|
|
3740
3739
|
let e = 0, i = 0;
|
|
3741
3740
|
for (; i < t; ) {
|
|
3742
3741
|
const o = r[i], s = r[i + 1 === t ? 0 : i + 1], n = r[i + 2 >= t ? (i + 2) % t : i + 2], a = o[0] * Et, l = s[1] * Et, d = n[0] * Et;
|