earthsdk3-ol 3.6.2 → 3.6.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.
package/dist/earthsdk3-ol.js
CHANGED
|
@@ -5,7 +5,7 @@ import { extendClassProps as Mt, Destroyable as ot, Event as et, geoRhumbDistanc
|
|
|
5
5
|
import { Map as I0, Feature as A0 } from "ol";
|
|
6
6
|
let Dh;
|
|
7
7
|
try {
|
|
8
|
-
const i = "earthsdk3-ol", t = "3.6.
|
|
8
|
+
const i = "earthsdk3-ol", t = "3.6.3", e = "2025-12-22T03:34:00.000Z", n = "北京西部世界科技有限公司", s = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", o = "863ef89ba4141454ba3f0d3ed6a0449491cd8a2b", a = ((Date.now() - 176637444e4) / 36e5).toFixed(1), h = `%c🌏 ${i}%c ${t}.${o.slice(0, 8)}.${e} (距今${a}个小时)
|
|
9
9
|
%c${s ? s + `
|
|
10
10
|
` : ""}当前网站正在使用${i},此软件版权归${n}所有
|
|
11
11
|
`;
|
|
@@ -19,7 +19,7 @@ try {
|
|
|
19
19
|
},
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
get gituri() {
|
|
22
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
22
|
+
return GITURI_ && GITURI_.replace("${commitId}", "863ef89ba4141454ba3f0d3ed6a0449491cd8a2b");
|
|
23
23
|
},
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
get info() {
|
|
@@ -27,7 +27,7 @@ try {
|
|
|
27
27
|
},
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
get date() {
|
|
30
|
-
return "2025-12-
|
|
30
|
+
return "2025-12-22T03:34:00.000Z";
|
|
31
31
|
},
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
get author() {
|
|
@@ -35,7 +35,7 @@ try {
|
|
|
35
35
|
},
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
get version() {
|
|
38
|
-
return "3.6.
|
|
38
|
+
return "3.6.3";
|
|
39
39
|
},
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
get name() {
|
|
@@ -43,7 +43,7 @@ try {
|
|
|
43
43
|
},
|
|
44
44
|
// @ts-ignore
|
|
45
45
|
get commitId() {
|
|
46
|
-
return "
|
|
46
|
+
return "863ef89ba4141454ba3f0d3ed6a0449491cd8a2b";
|
|
47
47
|
},
|
|
48
48
|
print(c = !1) {
|
|
49
49
|
!c && globalThis._xe2_no_copy_print || console.info(
|
|
@@ -16766,41 +16766,40 @@ function Rs(i, t, e, n, s) {
|
|
|
16766
16766
|
}
|
|
16767
16767
|
async function ky(i, t = 128, e = 128, n = "map", s = 1) {
|
|
16768
16768
|
return new Promise((o, r) => {
|
|
16769
|
-
i.
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
16777
|
-
|
|
16778
|
-
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
16787
|
-
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
|
|
16791
|
-
|
|
16792
|
-
|
|
16793
|
-
|
|
16794
|
-
|
|
16795
|
-
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
|
|
16799
|
-
|
|
16800
|
-
|
|
16801
|
-
|
|
16802
|
-
|
|
16803
|
-
}), i.renderSync();
|
|
16769
|
+
i.renderSync();
|
|
16770
|
+
try {
|
|
16771
|
+
const a = i.getSize() || [t, e], h = document.createElement("canvas"), c = a[0] * s, l = a[1] * s;
|
|
16772
|
+
h.width = c, h.height = l;
|
|
16773
|
+
const d = h.getContext("2d", { willReadFrequently: !0 });
|
|
16774
|
+
if (!d)
|
|
16775
|
+
throw new Error("Failed to create canvas context");
|
|
16776
|
+
Array.from(
|
|
16777
|
+
i.getViewport().querySelectorAll(".ol-layer canvas, canvas.ol-layer")
|
|
16778
|
+
).filter((m) => {
|
|
16779
|
+
if (!(m instanceof HTMLCanvasElement) || m.width === 0)
|
|
16780
|
+
return !1;
|
|
16781
|
+
try {
|
|
16782
|
+
return m.toDataURL("image/png"), !0;
|
|
16783
|
+
} catch {
|
|
16784
|
+
return console.warn("跳过跨域图层:", m), !1;
|
|
16785
|
+
}
|
|
16786
|
+
}).forEach((m) => {
|
|
16787
|
+
var C;
|
|
16788
|
+
const _ = parseFloat(m.style.opacity || "1");
|
|
16789
|
+
d.globalAlpha = _;
|
|
16790
|
+
let y = [1, 0, 0, 1, 0, 0];
|
|
16791
|
+
const v = m.style.transform;
|
|
16792
|
+
if (v) {
|
|
16793
|
+
const [S, O, A, M, L, F] = ((C = v.match(/^matrix\(([^)]+)\)$/)) == null ? void 0 : C[1].split(",").map(Number)) || [1, 0, 0, 1, 0, 0];
|
|
16794
|
+
d.setTransform({ a: S, b: O, c: A, d: M, e: L, f: F });
|
|
16795
|
+
}
|
|
16796
|
+
d.drawImage(m, 0, 0, c, l);
|
|
16797
|
+
}), d.globalAlpha = 1, d.setTransform(1, 0, 0, 1, 0, 0);
|
|
16798
|
+
const f = h.toDataURL("image/png");
|
|
16799
|
+
o(f);
|
|
16800
|
+
} catch (a) {
|
|
16801
|
+
r(a);
|
|
16802
|
+
}
|
|
16804
16803
|
});
|
|
16805
16804
|
}
|
|
16806
16805
|
function zy(i, t) {
|