zywlgis 0.5.90-beta.82 → 0.5.90-beta.83
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/package.json +1 -1
- package/release/ZYWLGIS.es.js +86 -19
package/package.json
CHANGED
package/release/ZYWLGIS.es.js
CHANGED
|
@@ -339605,7 +339605,7 @@ function KT(...n) {
|
|
|
339605
339605
|
return new cW(...n);
|
|
339606
339606
|
}
|
|
339607
339607
|
KT.localizePositions = cW.localizePositions;
|
|
339608
|
-
const lz1 = "0.5.90-beta.
|
|
339608
|
+
const lz1 = "0.5.90-beta.83", hW = {
|
|
339609
339609
|
version: lz1
|
|
339610
339610
|
};
|
|
339611
339611
|
var Ps = {
|
|
@@ -382715,7 +382715,10 @@ class Et {
|
|
|
382715
382715
|
Math.abs(I1) < 1e-6 && (I1 = I1 < 0 ? -1e-6 : 1e-6);
|
|
382716
382716
|
let i1 = z / I1;
|
|
382717
382717
|
const l1 = z * 4;
|
|
382718
|
-
i1 > l1 && (i1 = l1), i1 < -l1 && (i1 = -l1), F.push({
|
|
382718
|
+
i1 > l1 && (i1 = l1), i1 < -l1 && (i1 = -l1), F.push({
|
|
382719
|
+
x: _.x + W1 * i1,
|
|
382720
|
+
y: _.y + eA * i1
|
|
382721
|
+
});
|
|
382719
382722
|
}
|
|
382720
382723
|
return F;
|
|
382721
382724
|
}, y = (U, z) => {
|
|
@@ -382729,7 +382732,12 @@ class Et {
|
|
|
382729
382732
|
const F = z.x - U.x, J = z.y - U.y, Z = Y.x - R.x, _ = Y.y - R.y, X = F * _ - J * Z;
|
|
382730
382733
|
if (Math.abs(X) < 1e-12) return null;
|
|
382731
382734
|
const W = R.x - U.x, P1 = R.y - U.y, Q1 = (W * _ - P1 * Z) / X, D1 = (W * J - P1 * F) / X;
|
|
382732
|
-
return Q1 >= 0 && Q1 <= 1 && D1 >= 0 && D1 <= 1 ? {
|
|
382735
|
+
return Q1 >= 0 && Q1 <= 1 && D1 >= 0 && D1 <= 1 ? {
|
|
382736
|
+
t: Q1,
|
|
382737
|
+
u: D1,
|
|
382738
|
+
x: U.x + Q1 * F,
|
|
382739
|
+
y: U.y + Q1 * J
|
|
382740
|
+
} : null;
|
|
382733
382741
|
}, T = (U, z, R) => {
|
|
382734
382742
|
for (const Y of R) {
|
|
382735
382743
|
const F = Y.length;
|
|
@@ -382748,7 +382756,9 @@ class Et {
|
|
|
382748
382756
|
for (const z of N(U.geometry)) {
|
|
382749
382757
|
const R = z[0];
|
|
382750
382758
|
if (!R || R.length < 3) continue;
|
|
382751
|
-
let Y = R.map(
|
|
382759
|
+
let Y = R.map(
|
|
382760
|
+
(F) => w(F[0], F[1])
|
|
382761
|
+
);
|
|
382752
382762
|
if (Y.length > 1) {
|
|
382753
382763
|
const F = Y[0], J = Y[Y.length - 1];
|
|
382754
382764
|
Math.abs(F.x - J.x) < 1e-9 && Math.abs(F.y - J.y) < 1e-9 && Y.pop();
|
|
@@ -382771,7 +382781,10 @@ class Et {
|
|
|
382771
382781
|
}
|
|
382772
382782
|
try {
|
|
382773
382783
|
const U = [w(e.longitude, e.latitude)];
|
|
382774
|
-
for (const I1 of r)
|
|
382784
|
+
for (const I1 of r)
|
|
382785
|
+
U.push(
|
|
382786
|
+
w(I1.longitude, I1.latitude)
|
|
382787
|
+
);
|
|
382775
382788
|
U.push(w(t.longitude, t.latitude));
|
|
382776
382789
|
const z = U.length, R = z - 1, Y = U.slice(), F = [];
|
|
382777
382790
|
for (const I1 of b) {
|
|
@@ -382779,7 +382792,10 @@ class Et {
|
|
|
382779
382792
|
for (const H of I1) Y.push({ x: H.x, y: H.y });
|
|
382780
382793
|
const l1 = I1.length;
|
|
382781
382794
|
for (let H = 0; H < l1; H++)
|
|
382782
|
-
F.push([
|
|
382795
|
+
F.push([
|
|
382796
|
+
i1 + H,
|
|
382797
|
+
i1 + (H + 1) % l1
|
|
382798
|
+
]);
|
|
382783
382799
|
}
|
|
382784
382800
|
const J = Y.length, Z = Array.from({ length: J }, () => []), _ = (I1, i1, l1) => {
|
|
382785
382801
|
Z[I1].push({ to: i1, w: l1 }), Z[i1].push({ to: I1, w: l1 });
|
|
@@ -382803,15 +382819,16 @@ class Et {
|
|
|
382803
382819
|
e1 < i1[d1.to] && (i1[d1.to] = e1, l1[d1.to] = N1);
|
|
382804
382820
|
}
|
|
382805
382821
|
}
|
|
382806
|
-
return {
|
|
382822
|
+
return { distances: i1, previousNodes: l1 };
|
|
382807
382823
|
}, W = Array.from(
|
|
382808
382824
|
{ length: z },
|
|
382809
382825
|
() => new Float64Array(z).fill(1 / 0)
|
|
382810
382826
|
), P1 = new Array(z);
|
|
382811
382827
|
for (let I1 = 0; I1 < z; I1++) {
|
|
382812
|
-
const {
|
|
382828
|
+
const { distances: i1, previousNodes: l1 } = X(I1);
|
|
382813
382829
|
P1[I1] = l1;
|
|
382814
|
-
for (let H = 0; H < z; H++)
|
|
382830
|
+
for (let H = 0; H < z; H++)
|
|
382831
|
+
W[I1][H] = i1[H];
|
|
382815
382832
|
}
|
|
382816
382833
|
const Q1 = r.length, D1 = () => {
|
|
382817
382834
|
const I1 = new Uint8Array(z);
|
|
@@ -382900,7 +382917,13 @@ class Et {
|
|
|
382900
382917
|
for (let I1 = 0; I1 < C1.length - 1; I1++) {
|
|
382901
382918
|
const i1 = C1[I1], l1 = C1[I1 + 1];
|
|
382902
382919
|
let H;
|
|
382903
|
-
W[i1][l1] === 1 / 0 ? H = [
|
|
382920
|
+
W[i1][l1] === 1 / 0 ? H = [
|
|
382921
|
+
Y[i1],
|
|
382922
|
+
Y[l1]
|
|
382923
|
+
] : H = F1(
|
|
382924
|
+
i1,
|
|
382925
|
+
l1
|
|
382926
|
+
);
|
|
382904
382927
|
for (let g1 = 1; g1 < H.length; g1++) {
|
|
382905
382928
|
const N1 = z1[z1.length - 1], M1 = H[g1];
|
|
382906
382929
|
(Math.abs(N1.x - M1.x) > 1e-6 || Math.abs(N1.y - M1.y) > 1e-6) && z1.push(M1);
|
|
@@ -382916,11 +382939,18 @@ class Et {
|
|
|
382916
382939
|
for (const e1 of L) {
|
|
382917
382940
|
const V = (e1.height ?? 0) + o;
|
|
382918
382941
|
if (V <= i) continue;
|
|
382919
|
-
const f1 = k(
|
|
382942
|
+
const f1 = k(
|
|
382943
|
+
I1,
|
|
382944
|
+
i1,
|
|
382945
|
+
e1.a,
|
|
382946
|
+
e1.b
|
|
382947
|
+
);
|
|
382920
382948
|
f1 && H.push({ t: f1.t, h: V });
|
|
382921
382949
|
}
|
|
382922
382950
|
if (H.length === 0) return [];
|
|
382923
|
-
H.sort(
|
|
382951
|
+
H.sort(
|
|
382952
|
+
(e1, V) => e1.t - V.t
|
|
382953
|
+
);
|
|
382924
382954
|
const g1 = o / l1, N1 = H.map((e1) => ({
|
|
382925
382955
|
t1: e1.t - g1,
|
|
382926
382956
|
t2: e1.t + g1,
|
|
@@ -382932,15 +382962,49 @@ class Et {
|
|
|
382932
382962
|
}
|
|
382933
382963
|
const d1 = [];
|
|
382934
382964
|
for (const e1 of M1) {
|
|
382935
|
-
const V = Math.max(0, Math.min(1, e1.t1)), f1 = Math.max(0, Math.min(1, e1.t2)), H1 = Y1(
|
|
382936
|
-
|
|
382965
|
+
const V = Math.max(0, Math.min(1, e1.t1)), f1 = Math.max(0, Math.min(1, e1.t2)), H1 = Y1(
|
|
382966
|
+
I1,
|
|
382967
|
+
i1,
|
|
382968
|
+
V
|
|
382969
|
+
), aA = Y1(
|
|
382970
|
+
I1,
|
|
382971
|
+
i1,
|
|
382972
|
+
f1
|
|
382973
|
+
);
|
|
382974
|
+
d1.push({
|
|
382975
|
+
x: H1.x,
|
|
382976
|
+
y: H1.y,
|
|
382977
|
+
alt: i
|
|
382978
|
+
}), d1.push({
|
|
382979
|
+
x: H1.x,
|
|
382980
|
+
y: H1.y,
|
|
382981
|
+
alt: e1.h
|
|
382982
|
+
}), d1.push({
|
|
382983
|
+
x: aA.x,
|
|
382984
|
+
y: aA.y,
|
|
382985
|
+
alt: e1.h
|
|
382986
|
+
}), d1.push({
|
|
382987
|
+
x: aA.x,
|
|
382988
|
+
y: aA.y,
|
|
382989
|
+
alt: i
|
|
382990
|
+
});
|
|
382937
382991
|
}
|
|
382938
382992
|
return d1;
|
|
382939
|
-
}, eA = [
|
|
382993
|
+
}, eA = [
|
|
382994
|
+
{ x: z1[0].x, y: z1[0].y, alt: i }
|
|
382995
|
+
];
|
|
382940
382996
|
for (let I1 = 0; I1 < z1.length - 1; I1++) {
|
|
382941
|
-
const i1 = z1[I1], l1 = z1[I1 + 1], H = W1(
|
|
382942
|
-
|
|
382943
|
-
|
|
382997
|
+
const i1 = z1[I1], l1 = z1[I1 + 1], H = W1(
|
|
382998
|
+
i1,
|
|
382999
|
+
l1
|
|
383000
|
+
);
|
|
383001
|
+
for (const g1 of H)
|
|
383002
|
+
eA.push(g1);
|
|
383003
|
+
eA.push({
|
|
383004
|
+
x: l1.x,
|
|
383005
|
+
y: l1.y,
|
|
383006
|
+
alt: i
|
|
383007
|
+
});
|
|
382944
383008
|
}
|
|
382945
383009
|
const G = [];
|
|
382946
383010
|
G.push({
|
|
@@ -382949,7 +383013,10 @@ class Et {
|
|
|
382949
383013
|
altitude: P
|
|
382950
383014
|
});
|
|
382951
383015
|
for (const I1 of eA) {
|
|
382952
|
-
const i1 = v(
|
|
383016
|
+
const i1 = v(
|
|
383017
|
+
I1.x,
|
|
383018
|
+
I1.y
|
|
383019
|
+
);
|
|
382953
383020
|
G.push({
|
|
382954
383021
|
longitude: i1.longitude,
|
|
382955
383022
|
latitude: i1.latitude,
|