sat-earth 0.8.25 → 0.8.26
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
|
+
import domtoimage from 'dom-to-image-more';
|
|
2
3
|
export * from '../components';
|
|
3
4
|
export type { SatMenuItem, SatMapOptions, SatPanelPosition, SatTaskViewItem } from '../components/types';
|
|
4
5
|
export * as SatUtil from '../utils';
|
|
@@ -6,7 +7,7 @@ export * as SatStore from '../store';
|
|
|
6
7
|
export * as mars3d from 'mars3d';
|
|
7
8
|
export { Cesium } from 'mars3d';
|
|
8
9
|
export * as turf from '@turf/turf';
|
|
9
|
-
export
|
|
10
|
+
export { domtoimage };
|
|
10
11
|
declare const _default: {
|
|
11
12
|
install: (app: App, options: any) => void;
|
|
12
13
|
};
|
package/dist/sat-earth.mjs
CHANGED
|
@@ -16,27 +16,27 @@ var Oe = (a, e, t) => (zt(a, e, "read from private field"), t ? t.call(a) : e.ge
|
|
|
16
16
|
return Oe(a, e, l);
|
|
17
17
|
}
|
|
18
18
|
}), de = (a, e, t) => (zt(a, e, "access private method"), t);
|
|
19
|
-
import { openBlock as F, createElementBlock as k, pushScopeId as be, popScopeId as ve, createElementVNode as y, defineComponent as J, inject as ue, ref as P, onMounted as Fe, watch as Ee, resolveComponent as O, normalizeClass as Z, unref as B, createVNode as h, withCtx as _, Fragment as ae, renderList as ie, createBlock as I, isRef as Qa, toRefs as Ya, customRef as qa, getCurrentScope as Xa, onScopeDispose as Za, getCurrentInstance as Yt, nextTick as
|
|
19
|
+
import { openBlock as F, createElementBlock as k, pushScopeId as be, popScopeId as ve, createElementVNode as y, defineComponent as J, inject as ue, ref as P, onMounted as Fe, watch as Ee, resolveComponent as O, normalizeClass as Z, unref as B, createVNode as h, withCtx as _, Fragment as ae, renderList as ie, createBlock as I, isRef as Qa, toRefs as Ya, customRef as qa, getCurrentScope as Xa, onScopeDispose as Za, getCurrentInstance as Yt, nextTick as ha, computed as pe, normalizeStyle as ft, createTextVNode as te, toDisplayString as se, withDirectives as K, vShow as Q, createCommentVNode as z, renderSlot as ne, shallowRef as ya, watchEffect as Bt, onBeforeUnmount as Ht, provide as Et, toRaw as dt, withModifiers as mt, onUnmounted as je, withKeys as $a, reactive as el, mergeProps as tl, Transition as al } from "vue";
|
|
20
20
|
import { createPinia as ll, defineStore as st, storeToRefs as Ue } from "pinia";
|
|
21
|
-
import sl, { ElMessage as ul, ElLoading as ol, ElMessageBox as
|
|
21
|
+
import sl, { ElMessage as ul, ElLoading as ol, ElMessageBox as ba } from "element-plus";
|
|
22
22
|
import ye from "jquery";
|
|
23
23
|
import * as W from "mars3d";
|
|
24
24
|
import { Cesium as Se } from "mars3d";
|
|
25
|
-
import { Cesium as
|
|
25
|
+
import { Cesium as Gd } from "mars3d";
|
|
26
26
|
import { plotResources as S } from "sat-earth-resources";
|
|
27
27
|
import * as Nt from "kml-geojson";
|
|
28
|
-
import * as
|
|
28
|
+
import * as aa from "echarts";
|
|
29
29
|
import "tui-image-editor/dist/tui-image-editor.css";
|
|
30
30
|
import "tui-color-picker/dist/tui-color-picker.css";
|
|
31
31
|
import il from "tui-image-editor";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
32
|
+
import qt from "dom-to-image-more";
|
|
33
|
+
import { default as Id } from "dom-to-image-more";
|
|
34
34
|
import "nprogress/nprogress.css";
|
|
35
|
-
import
|
|
35
|
+
import la from "nprogress";
|
|
36
36
|
import "font-awesome/css/font-awesome.min.css";
|
|
37
37
|
import "element-plus/dist/index.css";
|
|
38
38
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
39
|
-
import * as
|
|
39
|
+
import * as xd from "@turf/turf";
|
|
40
40
|
const nl = {
|
|
41
41
|
name: "DarkIcon"
|
|
42
42
|
};
|
|
@@ -72,7 +72,7 @@ const hl = (a) => (be("data-v-70f02884"), a = a(), ve(), a), yl = {
|
|
|
72
72
|
function _l(a, e, t, l, s, u) {
|
|
73
73
|
return F(), k("svg", yl, vl);
|
|
74
74
|
}
|
|
75
|
-
const Fl = /* @__PURE__ */ q(pl, [["render", _l], ["__scopeId", "data-v-70f02884"]]), re = Symbol(), va = Symbol(), _a = Symbol(),
|
|
75
|
+
const Fl = /* @__PURE__ */ q(pl, [["render", _l], ["__scopeId", "data-v-70f02884"]]), re = Symbol(), va = Symbol(), _a = Symbol(), Xt = Symbol();
|
|
76
76
|
function vt() {
|
|
77
77
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
78
78
|
}
|
|
@@ -166,7 +166,7 @@ const At = [
|
|
|
166
166
|
}
|
|
167
167
|
]
|
|
168
168
|
}
|
|
169
|
-
],
|
|
169
|
+
], sa = "SAT__IS__DARK__", _t = "SAT__BOOKMARK__", Cl = "#409eff", Bl = !0, Ft = 0, Je = ll(), Od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
170
170
|
__proto__: null,
|
|
171
171
|
piniaStore: Je
|
|
172
172
|
}, Symbol.toStringTag, { value: "Module" })), pt = st("SatLayerDev__sat-earth", {
|
|
@@ -196,7 +196,7 @@ const At = [
|
|
|
196
196
|
function gt() {
|
|
197
197
|
return pt(Je);
|
|
198
198
|
}
|
|
199
|
-
class
|
|
199
|
+
class Zt {
|
|
200
200
|
static set(e, t, l, s = "") {
|
|
201
201
|
const u = new Date();
|
|
202
202
|
l += 28800, l *= 1e3, u.setTime(u.getTime() + l);
|
|
@@ -216,7 +216,7 @@ class Xt {
|
|
|
216
216
|
return "";
|
|
217
217
|
}
|
|
218
218
|
static clear(e = "", t = "") {
|
|
219
|
-
|
|
219
|
+
Zt.set(e, "", -1, t);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
class El {
|
|
@@ -270,12 +270,12 @@ class Al {
|
|
|
270
270
|
}
|
|
271
271
|
class _e {
|
|
272
272
|
}
|
|
273
|
-
X(_e, "Cookie",
|
|
273
|
+
X(_e, "Cookie", Zt), X(_e, "LocalStorage", El), X(_e, "SessionStorage", Al);
|
|
274
274
|
const Ie = st("SatLayout__sat-earth", {
|
|
275
275
|
state: () => {
|
|
276
276
|
var a;
|
|
277
277
|
return {
|
|
278
|
-
isDark: (a = _e.SessionStorage.get(
|
|
278
|
+
isDark: (a = _e.SessionStorage.get(sa)) != null ? a : Bl,
|
|
279
279
|
isMobile: !1,
|
|
280
280
|
isForceHorizontal: !1,
|
|
281
281
|
isRenderedMap: !1
|
|
@@ -283,7 +283,7 @@ const Ie = st("SatLayout__sat-earth", {
|
|
|
283
283
|
},
|
|
284
284
|
actions: {
|
|
285
285
|
setIsDark(a) {
|
|
286
|
-
this.isDark = a, _e.SessionStorage.set(
|
|
286
|
+
this.isDark = a, _e.SessionStorage.set(sa, a);
|
|
287
287
|
},
|
|
288
288
|
setIsMobile(a) {
|
|
289
289
|
this.isMobile = a;
|
|
@@ -387,10 +387,10 @@ const Ol = /* @__PURE__ */ q(xl, [["__scopeId", "data-v-13558d3c"]]), Ll = 1e3 *
|
|
|
387
387
|
showClose: !0,
|
|
388
388
|
duration: Ll
|
|
389
389
|
}, a));
|
|
390
|
-
var
|
|
390
|
+
var ua;
|
|
391
391
|
const ut = typeof window < "u", Pl = (a) => typeof a == "string", It = () => {
|
|
392
392
|
};
|
|
393
|
-
ut && ((
|
|
393
|
+
ut && ((ua = window == null ? void 0 : window.navigator) == null ? void 0 : ua.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
394
394
|
function Qe(a) {
|
|
395
395
|
return typeof a == "function" ? a() : B(a);
|
|
396
396
|
}
|
|
@@ -400,12 +400,12 @@ function Tl(a) {
|
|
|
400
400
|
function Ca(a) {
|
|
401
401
|
return Xa() ? (Za(a), !0) : !1;
|
|
402
402
|
}
|
|
403
|
-
var Ml = Object.defineProperty, Gl = Object.defineProperties, zl = Object.getOwnPropertyDescriptors,
|
|
403
|
+
var Ml = Object.defineProperty, Gl = Object.defineProperties, zl = Object.getOwnPropertyDescriptors, oa = Object.getOwnPropertySymbols, Il = Object.prototype.hasOwnProperty, Vl = Object.prototype.propertyIsEnumerable, ia = (a, e, t) => e in a ? Ml(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, Hl = (a, e) => {
|
|
404
404
|
for (var t in e || (e = {}))
|
|
405
|
-
Il.call(e, t) &&
|
|
406
|
-
if (
|
|
407
|
-
for (var t of
|
|
408
|
-
Vl.call(e, t) &&
|
|
405
|
+
Il.call(e, t) && ia(a, t, e[t]);
|
|
406
|
+
if (oa)
|
|
407
|
+
for (var t of oa(e))
|
|
408
|
+
Vl.call(e, t) && ia(a, t, e[t]);
|
|
409
409
|
return a;
|
|
410
410
|
}, Nl = (a, e) => Gl(a, zl(e));
|
|
411
411
|
function Rl(a) {
|
|
@@ -430,20 +430,20 @@ function Rl(a) {
|
|
|
430
430
|
return e;
|
|
431
431
|
}
|
|
432
432
|
function Ul(a, e = !0) {
|
|
433
|
-
Yt() ? Fe(a) : e ? a() :
|
|
433
|
+
Yt() ? Fe(a) : e ? a() : ha(a);
|
|
434
434
|
}
|
|
435
435
|
function Ba(a) {
|
|
436
436
|
var e;
|
|
437
437
|
const t = Qe(a);
|
|
438
438
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
439
439
|
}
|
|
440
|
-
const
|
|
440
|
+
const $t = ut ? window : void 0;
|
|
441
441
|
ut && window.document;
|
|
442
442
|
ut && window.navigator;
|
|
443
443
|
ut && window.location;
|
|
444
444
|
function Vt(...a) {
|
|
445
445
|
let e, t, l, s;
|
|
446
|
-
if (Pl(a[0]) ? ([t, l, s] = a, e =
|
|
446
|
+
if (Pl(a[0]) ? ([t, l, s] = a, e = $t) : [e, t, l, s] = a, !e)
|
|
447
447
|
return It;
|
|
448
448
|
let u = It;
|
|
449
449
|
const o = Ee(() => Ba(e), (i) => {
|
|
@@ -462,17 +462,17 @@ function Jl(a, e = !1) {
|
|
|
462
462
|
const Rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ut = "__vueuse_ssr_handlers__";
|
|
463
463
|
Rt[Ut] = Rt[Ut] || {};
|
|
464
464
|
Rt[Ut];
|
|
465
|
-
var Wl = Object.defineProperty, Kl = Object.defineProperties, Ql = Object.getOwnPropertyDescriptors,
|
|
465
|
+
var Wl = Object.defineProperty, Kl = Object.defineProperties, Ql = Object.getOwnPropertyDescriptors, na = Object.getOwnPropertySymbols, Yl = Object.prototype.hasOwnProperty, ql = Object.prototype.propertyIsEnumerable, ra = (a, e, t) => e in a ? Wl(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, Xl = (a, e) => {
|
|
466
466
|
for (var t in e || (e = {}))
|
|
467
|
-
Yl.call(e, t) &&
|
|
468
|
-
if (
|
|
469
|
-
for (var t of
|
|
470
|
-
ql.call(e, t) &&
|
|
467
|
+
Yl.call(e, t) && ra(a, t, e[t]);
|
|
468
|
+
if (na)
|
|
469
|
+
for (var t of na(e))
|
|
470
|
+
ql.call(e, t) && ra(a, t, e[t]);
|
|
471
471
|
return a;
|
|
472
472
|
}, Zl = (a, e) => Kl(a, Ql(e));
|
|
473
473
|
function $l(a, e = {}) {
|
|
474
474
|
var t, l, s;
|
|
475
|
-
const u = (t = e.draggingElement) != null ? t :
|
|
475
|
+
const u = (t = e.draggingElement) != null ? t : $t, o = (l = e.handle) != null ? l : a, n = P((s = Qe(e.initialValue)) != null ? s : { x: 0, y: 0 }), i = P(), c = (f) => e.pointerTypes ? e.pointerTypes.includes(f.pointerType) : !0, m = (f) => {
|
|
476
476
|
Qe(e.preventDefault) && f.preventDefault(), Qe(e.stopPropagation) && f.stopPropagation();
|
|
477
477
|
}, p = (f) => {
|
|
478
478
|
var A;
|
|
@@ -499,17 +499,17 @@ function $l(a, e = {}) {
|
|
|
499
499
|
style: pe(() => `left:${n.value.x}px;top:${n.value.y}px;`)
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
-
var
|
|
502
|
+
var da = Object.getOwnPropertySymbols, es = Object.prototype.hasOwnProperty, ts = Object.prototype.propertyIsEnumerable, as = (a, e) => {
|
|
503
503
|
var t = {};
|
|
504
504
|
for (var l in a)
|
|
505
505
|
es.call(a, l) && e.indexOf(l) < 0 && (t[l] = a[l]);
|
|
506
|
-
if (a != null &&
|
|
507
|
-
for (var l of
|
|
506
|
+
if (a != null && da)
|
|
507
|
+
for (var l of da(a))
|
|
508
508
|
e.indexOf(l) < 0 && ts.call(a, l) && (t[l] = a[l]);
|
|
509
509
|
return t;
|
|
510
510
|
};
|
|
511
511
|
function ls(a, e, t = {}) {
|
|
512
|
-
const l = t, { window: s =
|
|
512
|
+
const l = t, { window: s = $t } = l, u = as(l, ["window"]);
|
|
513
513
|
let o;
|
|
514
514
|
const n = Jl(() => s && "MutationObserver" in s), i = () => {
|
|
515
515
|
o && (o.disconnect(), o = void 0);
|
|
@@ -523,16 +523,16 @@ function ls(a, e, t = {}) {
|
|
|
523
523
|
stop: m
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
|
-
var
|
|
526
|
+
var ca;
|
|
527
527
|
(function(a) {
|
|
528
528
|
a.UP = "UP", a.RIGHT = "RIGHT", a.DOWN = "DOWN", a.LEFT = "LEFT", a.NONE = "NONE";
|
|
529
|
-
})(
|
|
530
|
-
var ss = Object.defineProperty,
|
|
529
|
+
})(ca || (ca = {}));
|
|
530
|
+
var ss = Object.defineProperty, ma = Object.getOwnPropertySymbols, us = Object.prototype.hasOwnProperty, os = Object.prototype.propertyIsEnumerable, fa = (a, e, t) => e in a ? ss(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, is = (a, e) => {
|
|
531
531
|
for (var t in e || (e = {}))
|
|
532
|
-
us.call(e, t) &&
|
|
533
|
-
if (
|
|
534
|
-
for (var t of
|
|
535
|
-
os.call(e, t) &&
|
|
532
|
+
us.call(e, t) && fa(a, t, e[t]);
|
|
533
|
+
if (ma)
|
|
534
|
+
for (var t of ma(e))
|
|
535
|
+
os.call(e, t) && fa(a, t, e[t]);
|
|
536
536
|
return a;
|
|
537
537
|
};
|
|
538
538
|
const ns = {
|
|
@@ -738,7 +738,7 @@ const Ea = (a, e) => (a.forEach((t) => {
|
|
|
738
738
|
const f = d.id;
|
|
739
739
|
if (!f)
|
|
740
740
|
return;
|
|
741
|
-
await
|
|
741
|
+
await ha(), l.currentMinimizeingId = f;
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
744
|
return (p, r) => (F(), k("div", {
|
|
@@ -1587,7 +1587,7 @@ kt = new WeakSet(), wa = function() {
|
|
|
1587
1587
|
if (!(e != null && e.arrPoint))
|
|
1588
1588
|
return;
|
|
1589
1589
|
const t = e.arrPoint;
|
|
1590
|
-
$(this.chartsElementId).show(), this.sectionCharts =
|
|
1590
|
+
$(this.chartsElementId).show(), this.sectionCharts = aa.init(document.getElementById("measureSection"), "dark");
|
|
1591
1591
|
const l = {
|
|
1592
1592
|
grid: {
|
|
1593
1593
|
left: 10,
|
|
@@ -1647,7 +1647,7 @@ kt = new WeakSet(), wa = function() {
|
|
|
1647
1647
|
},
|
|
1648
1648
|
areaStyle: {
|
|
1649
1649
|
normal: {
|
|
1650
|
-
color: new
|
|
1650
|
+
color: new aa.graphic.LinearGradient(0, 0, 0, 1, [
|
|
1651
1651
|
{
|
|
1652
1652
|
offset: 0,
|
|
1653
1653
|
color: "rgb(255, 158, 68)"
|
|
@@ -1848,7 +1848,7 @@ const Ge = class {
|
|
|
1848
1848
|
else {
|
|
1849
1849
|
e.keyboardRoam.enabled = !0;
|
|
1850
1850
|
const o = ht();
|
|
1851
|
-
|
|
1851
|
+
ba.alert(
|
|
1852
1852
|
'<img src="' + Ms + '" style="' + (o.isDark ? "" : "filter: invert(1);") + '" width="100%" />',
|
|
1853
1853
|
{
|
|
1854
1854
|
dangerouslyUseHTMLString: !0,
|
|
@@ -1897,7 +1897,7 @@ function Vs(a) {
|
|
|
1897
1897
|
const e = a.viewer.scene._primitives._primitives[0];
|
|
1898
1898
|
a.viewer.scene.primitives.remove(e);
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function ga(a = [], e = { rootid: 0 }) {
|
|
1901
1901
|
const t = /* @__PURE__ */ new Map(), l = [];
|
|
1902
1902
|
return a.forEach((s) => {
|
|
1903
1903
|
t.set(s.id, s);
|
|
@@ -2208,9 +2208,9 @@ const Ns = () => {
|
|
|
2208
2208
|
},
|
|
2209
2209
|
setup(a, { expose: e }) {
|
|
2210
2210
|
var r, d, f, A, E, C, x, D;
|
|
2211
|
-
const t = a, l =
|
|
2211
|
+
const t = a, l = ya(null), s = Pt(), u = pt(), o = Ie(), n = Ws(t.satMapOptions);
|
|
2212
2212
|
Fe(() => {
|
|
2213
|
-
var N, j, g, v, L, M, G, V, T, H, U, ee, oe, fe, Ae, De, we, ge, ce, We, qe, Pe, yt,
|
|
2213
|
+
var N, j, g, v, L, M, G, V, T, H, U, ee, oe, fe, Ae, De, we, ge, ce, We, qe, Pe, yt, ea, ta;
|
|
2214
2214
|
let b = [];
|
|
2215
2215
|
(N = s.SatSource) != null && N.enable ? (b = b.concat(((L = (v = (g = (j = n.map3d) == null ? void 0 : j.custom) == null ? void 0 : g.layers) == null ? void 0 : v.terrainLayers) == null ? void 0 : L.list) || []).concat(((T = (V = (G = (M = n.map3d) == null ? void 0 : M.custom) == null ? void 0 : G.layers) == null ? void 0 : V.auxiliaryLayers) == null ? void 0 : T.list) || []).concat(((H = n.map3d) == null ? void 0 : H.basemaps) || []).concat(((oe = (ee = (U = n.map3d) == null ? void 0 : U.custom) == null ? void 0 : ee.layers) == null ? void 0 : oe.list) || []), b.forEach((le) => {
|
|
2216
2216
|
var nt;
|
|
@@ -2218,17 +2218,17 @@ const Ns = () => {
|
|
|
2218
2218
|
Ke.id = He(), Ke.pid = le.id;
|
|
2219
2219
|
});
|
|
2220
2220
|
}), u.setLayerTree(
|
|
2221
|
-
|
|
2222
|
-
), n.map3d.basemaps = [], n.map3d.control.baseLayerPicker = !1) : (b = b.concat(((we = (De = (Ae = (fe = n.map3d) == null ? void 0 : fe.custom) == null ? void 0 : Ae.layers) == null ? void 0 : De.terrainLayers) == null ? void 0 : we.list) || []).concat(((qe = (We = (ce = (ge = n.map3d) == null ? void 0 : ge.custom) == null ? void 0 : ce.layers) == null ? void 0 : We.auxiliaryLayers) == null ? void 0 : qe.list) || []).concat(((
|
|
2221
|
+
ga(b, { rootid: Ft })
|
|
2222
|
+
), n.map3d.basemaps = [], n.map3d.control.baseLayerPicker = !1) : (b = b.concat(((we = (De = (Ae = (fe = n.map3d) == null ? void 0 : fe.custom) == null ? void 0 : Ae.layers) == null ? void 0 : De.terrainLayers) == null ? void 0 : we.list) || []).concat(((qe = (We = (ce = (ge = n.map3d) == null ? void 0 : ge.custom) == null ? void 0 : ce.layers) == null ? void 0 : We.auxiliaryLayers) == null ? void 0 : qe.list) || []).concat(((ea = (yt = (Pe = n.map3d) == null ? void 0 : Pe.custom) == null ? void 0 : yt.layers) == null ? void 0 : ea.list) || []), b.forEach((le) => {
|
|
2223
2223
|
var nt;
|
|
2224
2224
|
!le.id && (le.id = He()), !le.pid && (le.pid = Ft), le.radio && Jt(b, le.pid), le.type == "group" && ((nt = le.layers) == null ? void 0 : nt.length) && le.layers.forEach((Ke) => {
|
|
2225
2225
|
Ke.id = He(), Ke.pid = le.id;
|
|
2226
2226
|
});
|
|
2227
2227
|
}), u.setLayerTree(
|
|
2228
|
-
|
|
2228
|
+
ga(b, { rootid: Ft })
|
|
2229
2229
|
)), l.value = new R(t.eleId, n);
|
|
2230
2230
|
const w = b.filter((le) => le.show);
|
|
2231
|
-
(
|
|
2231
|
+
(ta = l.value.layer) == null || ta.addLayers(w), o.setIsRenderedMap(!0);
|
|
2232
2232
|
});
|
|
2233
2233
|
const i = P(Boolean((f = (d = (r = t.satMapOptions) == null ? void 0 : r.map3d) == null ? void 0 : d.control) == null ? void 0 : f.locationBar)), c = P((D = (x = (C = (E = (A = t.satMapOptions) == null ? void 0 : A.map3d) == null ? void 0 : E.custom) == null ? void 0 : C.layoutTheme) == null ? void 0 : x.isDark) != null ? D : o.isDark);
|
|
2234
2234
|
Bt(() => {
|
|
@@ -2298,7 +2298,7 @@ const tu = /* @__PURE__ */ q(eu, [["__scopeId", "data-v-f2ebd2f3"]]), he = (a) =
|
|
|
2298
2298
|
},
|
|
2299
2299
|
emits: ["customClick", "customCloseClick"],
|
|
2300
2300
|
setup(a, { emit: e }) {
|
|
2301
|
-
const t = a, l = Pt(), s = ue(
|
|
2301
|
+
const t = a, l = Pt(), s = ue(Xt), u = () => {
|
|
2302
2302
|
s.value = !1;
|
|
2303
2303
|
}, o = (i) => {
|
|
2304
2304
|
var c;
|
|
@@ -2400,7 +2400,7 @@ const Ga = (a) => (be("data-v-87a2292a"), a = a(), ve(), a), du = /* @__PURE__ *
|
|
|
2400
2400
|
const e = Pt(), t = pe(() => {
|
|
2401
2401
|
const i = e.getComponents;
|
|
2402
2402
|
return ru(At, i);
|
|
2403
|
-
}), l = pe(() => Pa(t.value, [])), s = ue(
|
|
2403
|
+
}), l = pe(() => Pa(t.value, [])), s = ue(Xt), u = () => {
|
|
2404
2404
|
s.value = !1;
|
|
2405
2405
|
}, { isMobile: o } = Ue(Ie()), n = At.map((i) => i.name);
|
|
2406
2406
|
return (i, c) => {
|
|
@@ -2464,7 +2464,7 @@ const pu = /* @__PURE__ */ q(gu, [["__scopeId", "data-v-87a2292a"]]), hu = { cla
|
|
|
2464
2464
|
const e = P(!1), t = () => {
|
|
2465
2465
|
e.value = !e.value;
|
|
2466
2466
|
};
|
|
2467
|
-
return Et(
|
|
2467
|
+
return Et(Xt, e), (l, s) => (F(), k(ae, null, [
|
|
2468
2468
|
y("div", hu, [
|
|
2469
2469
|
y("i", {
|
|
2470
2470
|
title: "\u83DC\u5355",
|
|
@@ -4659,7 +4659,7 @@ const Xi = /* @__PURE__ */ q(qi, [["__scopeId", "data-v-3dd3ad78"]]), Zi = he(Xi
|
|
|
4659
4659
|
"Lock Aspect Ratio": "\u9501\u5B9A\u5BBD\u9AD8\u6BD4\u4F8B"
|
|
4660
4660
|
};
|
|
4661
4661
|
function Ra(a, e) {
|
|
4662
|
-
return
|
|
4662
|
+
return qt.toPng(a, { ...e });
|
|
4663
4663
|
}
|
|
4664
4664
|
function Qt(a, e = "base64ToFile") {
|
|
4665
4665
|
var n, i, c;
|
|
@@ -4710,7 +4710,7 @@ const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4710
4710
|
mergeImage: Ja
|
|
4711
4711
|
}, Symbol.toStringTag, { value: "Module" })), an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4712
4712
|
__proto__: null
|
|
4713
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4713
|
+
}, Symbol.toStringTag, { value: "Module" })), Ld = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4714
4714
|
__proto__: null,
|
|
4715
4715
|
SatMap: R,
|
|
4716
4716
|
types: an,
|
|
@@ -4722,7 +4722,7 @@ const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4722
4722
|
...cn,
|
|
4723
4723
|
setup(a, { expose: e }) {
|
|
4724
4724
|
const t = ue(re);
|
|
4725
|
-
let l =
|
|
4725
|
+
let l = ya();
|
|
4726
4726
|
const s = P([]), u = (p) => {
|
|
4727
4727
|
l.value = new il(document.querySelector("#tui-image-editor"), {
|
|
4728
4728
|
includeUI: {
|
|
@@ -9106,7 +9106,7 @@ const hn = /* @__PURE__ */ q(pn, [["__scopeId", "data-v-e3154d60"]]), yn = he(hn
|
|
|
9106
9106
|
});
|
|
9107
9107
|
}
|
|
9108
9108
|
return a;
|
|
9109
|
-
},
|
|
9109
|
+
}, pa = (a) => {
|
|
9110
9110
|
if (Ne[a] instanceof Array)
|
|
9111
9111
|
return Ne[a];
|
|
9112
9112
|
{
|
|
@@ -9132,9 +9132,9 @@ const hn = /* @__PURE__ */ q(pn, [["__scopeId", "data-v-e3154d60"]]), yn = he(hn
|
|
|
9132
9132
|
const e = ue(re), { isMobile: t } = Ue(Ie());
|
|
9133
9133
|
bn(e);
|
|
9134
9134
|
const l = vn(), s = P("\u70B9\u53CA\u6587\u5B57"), u = P([]);
|
|
9135
|
-
u.value =
|
|
9135
|
+
u.value = pa(s.value);
|
|
9136
9136
|
const o = (r) => {
|
|
9137
|
-
u.value =
|
|
9137
|
+
u.value = pa(r);
|
|
9138
9138
|
}, n = ["fontBillboard"], i = pe(() => u.value.filter(
|
|
9139
9139
|
(r) => n.indexOf(r.type) == -1
|
|
9140
9140
|
)), c = pe(() => u.value.filter(
|
|
@@ -10374,7 +10374,7 @@ const Zr = (a) => (be("data-v-fe35583f"), a = a(), ve(), a), $r = /* @__PURE__ *
|
|
|
10374
10374
|
A == "none" && (f.style.zIndex = "-1"), f.style.display = "block";
|
|
10375
10375
|
let C = 0, x = 0;
|
|
10376
10376
|
f.clientHeight <= 200 && (C = 200), f.clientHeight >= 418 && (C = 418), x = f.clientWidth / (f.clientHeight || 1) * C, r.maxWidth = x - 90 + "px";
|
|
10377
|
-
const D = await
|
|
10377
|
+
const D = await qt.toPng(f, {
|
|
10378
10378
|
quality: 0.1
|
|
10379
10379
|
});
|
|
10380
10380
|
(D == null ? void 0 : D.indexOf("data:image/png;base64")) > -1 && (r.base64 = D), ((d = r == null ? void 0 : r.base64) == null ? void 0 : d.indexOf("data:image/png;base64")) == -1 && (r.base64 = ""), f.style.display = A, f.style.zIndex = E;
|
|
@@ -10382,12 +10382,12 @@ const Zr = (a) => (be("data-v-fe35583f"), a = a(), ve(), a), $r = /* @__PURE__ *
|
|
|
10382
10382
|
}
|
|
10383
10383
|
}, s = async (r) => {
|
|
10384
10384
|
if (r) {
|
|
10385
|
-
|
|
10385
|
+
la.start();
|
|
10386
10386
|
for (let d = 0; d < c.value.length; d++) {
|
|
10387
10387
|
let f = c.value[d];
|
|
10388
10388
|
f.base64 || await l(f);
|
|
10389
10389
|
}
|
|
10390
|
-
|
|
10390
|
+
la.done(), document.onkeydown = (d) => {
|
|
10391
10391
|
(d.key == "Escape" || d.keyCode == 27) && s(!1);
|
|
10392
10392
|
};
|
|
10393
10393
|
} else
|
|
@@ -10524,22 +10524,20 @@ function md(a) {
|
|
|
10524
10524
|
});
|
|
10525
10525
|
}
|
|
10526
10526
|
function fd(a, e) {
|
|
10527
|
-
return
|
|
10527
|
+
return ba.alert(a, {
|
|
10528
10528
|
title: e
|
|
10529
10529
|
});
|
|
10530
10530
|
}
|
|
10531
10531
|
const gd = () => {
|
|
10532
10532
|
window.globalMsg = md, window.globalAlert = fd;
|
|
10533
|
-
}, pd = () => {
|
|
10534
|
-
gd();
|
|
10535
10533
|
};
|
|
10536
|
-
const
|
|
10534
|
+
const Pd = {
|
|
10537
10535
|
install: (a, e) => {
|
|
10538
|
-
a.use(Je).use(sl), cd.forEach((t) => a.component(t.name, t)),
|
|
10536
|
+
a.use(Je).use(sl), cd.forEach((t) => a.component(t.name, t)), gd(), window.domtoimage = qt;
|
|
10539
10537
|
}
|
|
10540
10538
|
};
|
|
10541
10539
|
export {
|
|
10542
|
-
|
|
10540
|
+
Gd as Cesium,
|
|
10543
10541
|
au as SatGlobe,
|
|
10544
10542
|
tu as SatGlobeSFC,
|
|
10545
10543
|
Ci as SatLocation,
|
|
@@ -10566,16 +10564,16 @@ export {
|
|
|
10566
10564
|
Ku as SatSourceSFC,
|
|
10567
10565
|
bo as SatSpatialAnalysis,
|
|
10568
10566
|
yo as SatSpatialAnalysisSFC,
|
|
10569
|
-
|
|
10567
|
+
Od as SatStore,
|
|
10570
10568
|
dd as SatTaskView,
|
|
10571
10569
|
rd as SatTaskViewSFC,
|
|
10572
10570
|
Fo as SatTerrainAnalysis,
|
|
10573
10571
|
_o as SatTerrainAnalysisSFC,
|
|
10574
|
-
|
|
10572
|
+
Ld as SatUtil,
|
|
10575
10573
|
Rr as SatVideoFusion,
|
|
10576
10574
|
Nr as SatVideoFusionSFC,
|
|
10577
|
-
|
|
10578
|
-
|
|
10575
|
+
Pd as default,
|
|
10576
|
+
Id as domtoimage,
|
|
10579
10577
|
W as mars3d,
|
|
10580
|
-
|
|
10578
|
+
xd as turf
|
|
10581
10579
|
};
|