sat-earth 0.6.12 → 0.6.13
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/sat-earth.mjs +29 -28
- package/dist/sat-earth.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/sat-earth.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var De = (a, e, t) => {
|
|
|
10
10
|
e instanceof WeakSet ? e.add(a) : e.set(a, t);
|
|
11
11
|
};
|
|
12
12
|
var oe = (a, e, t) => (Sa(a, e, "access private method"), t);
|
|
13
|
-
import { openBlock as v, createElementBlock as S, pushScopeId as fe, popScopeId as pe, createElementVNode as h, defineComponent as V, ref as L, onMounted as Ce, watch as U, resolveComponent as k, normalizeClass as q, unref as x, createVNode as p, withCtx as _, Fragment as le, renderList as ne, createBlock as P, isRef as ja, toRefs as xa, customRef as ka, getCurrentScope as La, onScopeDispose as Oa, getCurrentInstance as ta, nextTick as Ia, computed as se, normalizeStyle as xt, createTextVNode as Z, toDisplayString as ae, withDirectives as W, vShow as Y, createCommentVNode as T, renderSlot as
|
|
13
|
+
import { openBlock as v, createElementBlock as S, pushScopeId as fe, popScopeId as pe, createElementVNode as h, defineComponent as V, ref as L, onMounted as Ce, watch as U, resolveComponent as k, normalizeClass as q, unref as x, createVNode as p, withCtx as _, Fragment as le, renderList as ne, createBlock as P, isRef as ja, toRefs as xa, customRef as ka, getCurrentScope as La, onScopeDispose as Oa, getCurrentInstance as ta, nextTick as Ia, computed as se, normalizeStyle as xt, createTextVNode as Z, toDisplayString as ae, withDirectives as W, vShow as Y, createCommentVNode as T, renderSlot as ze, onUnmounted as Be, watchEffect as nt, inject as xe, provide as Et, toRaw as vt, withModifiers as Ft, withKeys as Ta, reactive as Pa } from "vue";
|
|
14
14
|
import { createPinia as Ma, defineStore as et, storeToRefs as Pe } from "pinia";
|
|
15
15
|
import X from "jquery";
|
|
16
16
|
import * as N from "mars3d";
|
|
@@ -977,7 +977,7 @@ function hl(a, e, t) {
|
|
|
977
977
|
!ot(e[s]) || !a[s] ? l[s] = He(e[s], t) : l[s] = ht(a[s], e[s], t);
|
|
978
978
|
}), l;
|
|
979
979
|
}
|
|
980
|
-
const da = Symbol(),
|
|
980
|
+
const da = Symbol(), Ve = Symbol(), Ht = "SAT__IS__DARK__", st = "SAT__BOOKMARK__", yl = "#409eff", bl = !0, Ut = 0, ie = et("SatLayout__sat-earth", {
|
|
981
981
|
state: () => {
|
|
982
982
|
var a;
|
|
983
983
|
return {
|
|
@@ -1446,7 +1446,7 @@ const ls = { class: "sat-panel-content" }, ss = { class: "sat-panel-content-head
|
|
|
1446
1446
|
])
|
|
1447
1447
|
], 2),
|
|
1448
1448
|
h("div", us, [
|
|
1449
|
-
|
|
1449
|
+
ze(n.$slots, "default", {}, void 0, !0)
|
|
1450
1450
|
])
|
|
1451
1451
|
])
|
|
1452
1452
|
], 6));
|
|
@@ -1916,7 +1916,7 @@ const vs = () => {
|
|
|
1916
1916
|
terrainLayers: {
|
|
1917
1917
|
list: [
|
|
1918
1918
|
{ id: Re, name: "\u5730\u5F62", type: "group", radio: !0 },
|
|
1919
|
-
{ pid: Re, type: "terrain", name: "Cesium\u5730\u5F62", terrain: { type: "ion" }, radio: !0 },
|
|
1919
|
+
{ pid: Re, type: "terrain", name: "Cesium\u5730\u5F62", terrain: { type: "ion" }, radio: !0, show: !0 },
|
|
1920
1920
|
{ pid: Re, type: "terrain", name: "Mars3D\u5730\u5F62", terrain: { type: "xyz", url: "http://data.mars3d.cn/terrain" }, radio: !0 },
|
|
1921
1921
|
{
|
|
1922
1922
|
pid: Re,
|
|
@@ -1951,17 +1951,17 @@ const vs = () => {
|
|
|
1951
1951
|
var m, d, f, r, F, b, y, E, C;
|
|
1952
1952
|
const t = a, l = ge(), s = tt(), u = ie(), o = Bs(t.satMapOptions);
|
|
1953
1953
|
Ce(() => {
|
|
1954
|
-
var c, B, j, M, A, I, G, z, R, H, ee, re, ue, ve, he, Ae,
|
|
1954
|
+
var c, B, j, M, A, I, G, z, R, H, ee, re, ue, ve, he, Ae, Me, at, Tt, Pt, Mt, Gt, zt, Vt, Nt;
|
|
1955
1955
|
let D = [];
|
|
1956
1956
|
(c = l.SatSource) != null && c.enable ? (D = D.concat(((A = (M = (j = (B = o.map3d) == null ? void 0 : B.custom) == null ? void 0 : j.layers) == null ? void 0 : M.terrainLayers) == null ? void 0 : A.list) || []).concat(((R = (z = (G = (I = o.map3d) == null ? void 0 : I.custom) == null ? void 0 : G.layers) == null ? void 0 : z.auxiliaryLayers) == null ? void 0 : R.list) || []).concat(((H = o.map3d) == null ? void 0 : H.basemaps) || []).concat(((ue = (re = (ee = o.map3d) == null ? void 0 : ee.custom) == null ? void 0 : re.layers) == null ? void 0 : ue.list) || []), D.forEach((te) => {
|
|
1957
1957
|
var Ye;
|
|
1958
|
-
!te.id && (te.id = Oe()), (!te.pid || D.filter((
|
|
1959
|
-
|
|
1958
|
+
!te.id && (te.id = Oe()), (!te.pid || D.filter((Ge) => Ge.id == te.pid).length == 0) && (te.pid = Ut), te.radio && St(D, te.pid), te.type == "group" && ((Ye = te.layers) == null ? void 0 : Ye.length) && te.layers.forEach((Ge) => {
|
|
1959
|
+
Ge.id = Oe(), Ge.pid = te.id;
|
|
1960
1960
|
});
|
|
1961
|
-
}), s.setLayerTree(qt(D, { rootid: 0 })), o.map3d.basemaps = [], o.map3d.control.baseLayerPicker = !1) : (D = D.concat(((
|
|
1961
|
+
}), s.setLayerTree(qt(D, { rootid: 0 })), o.map3d.basemaps = [], o.map3d.control.baseLayerPicker = !1) : (D = D.concat(((Me = (Ae = (he = (ve = o.map3d) == null ? void 0 : ve.custom) == null ? void 0 : he.layers) == null ? void 0 : Ae.terrainLayers) == null ? void 0 : Me.list) || []).concat(((Mt = (Pt = (Tt = (at = o.map3d) == null ? void 0 : at.custom) == null ? void 0 : Tt.layers) == null ? void 0 : Pt.auxiliaryLayers) == null ? void 0 : Mt.list) || []).concat(((Vt = (zt = (Gt = o.map3d) == null ? void 0 : Gt.custom) == null ? void 0 : zt.layers) == null ? void 0 : Vt.list) || []), D.forEach((te) => {
|
|
1962
1962
|
var Ye;
|
|
1963
|
-
!te.id && (te.id = Oe()), !te.pid && (te.pid = Ut), te.radio && St(D, te.pid), te.type == "group" && ((Ye = te.layers) == null ? void 0 : Ye.length) && te.layers.forEach((
|
|
1964
|
-
|
|
1963
|
+
!te.id && (te.id = Oe()), !te.pid && (te.pid = Ut), te.radio && St(D, te.pid), te.type == "group" && ((Ye = te.layers) == null ? void 0 : Ye.length) && te.layers.forEach((Ge) => {
|
|
1964
|
+
Ge.id = Oe(), Ge.pid = te.id;
|
|
1965
1965
|
});
|
|
1966
1966
|
}), s.setLayerTree(qt(D, { rootid: 0 }))), g.initMap(t.eleId, o);
|
|
1967
1967
|
const O = D.filter((te) => te.show);
|
|
@@ -1984,7 +1984,7 @@ const vs = () => {
|
|
|
1984
1984
|
id: t.eleId,
|
|
1985
1985
|
class: "sat-globe-main"
|
|
1986
1986
|
}, null, 8, Ds),
|
|
1987
|
-
|
|
1987
|
+
ze(D.$slots, "default", {}, void 0, !0),
|
|
1988
1988
|
W(p(c, {
|
|
1989
1989
|
modelValue: n.value,
|
|
1990
1990
|
"onUpdate:modelValue": O[0] || (O[0] = (B) => n.value = B),
|
|
@@ -2246,7 +2246,7 @@ const Fa = (a) => (fe("data-v-b3903a0f"), a = a(), pe(), a), Gs = /* @__PURE__ *
|
|
|
2246
2246
|
}),
|
|
2247
2247
|
p(i, { class: "sat-menu-vertical sat-menu-vertical-inverse" }, {
|
|
2248
2248
|
default: _(() => [
|
|
2249
|
-
|
|
2249
|
+
ze(u.$slots, "custom-enable", {}, void 0, !0)
|
|
2250
2250
|
]),
|
|
2251
2251
|
_: 3
|
|
2252
2252
|
}),
|
|
@@ -2262,7 +2262,7 @@ const Fa = (a) => (fe("data-v-b3903a0f"), a = a(), pe(), a), Gs = /* @__PURE__ *
|
|
|
2262
2262
|
}, 8, ["default-openeds"]),
|
|
2263
2263
|
p(i, { class: "sat-menu-vertical" }, {
|
|
2264
2264
|
default: _(() => [
|
|
2265
|
-
|
|
2265
|
+
ze(u.$slots, "custom", {}, void 0, !0)
|
|
2266
2266
|
]),
|
|
2267
2267
|
_: 3
|
|
2268
2268
|
})
|
|
@@ -2290,15 +2290,15 @@ const Hs = /* @__PURE__ */ Q(Rs, [["__scopeId", "data-v-b3903a0f"]]), Us = { cla
|
|
|
2290
2290
|
}, null, 2),
|
|
2291
2291
|
p(Hs, { "is-visible": e.value }, {
|
|
2292
2292
|
"custom-enable": _(() => [
|
|
2293
|
-
|
|
2293
|
+
ze(l.$slots, "custom-enable", {}, void 0, !0)
|
|
2294
2294
|
]),
|
|
2295
2295
|
custom: _(() => [
|
|
2296
|
-
|
|
2296
|
+
ze(l.$slots, "custom", {}, void 0, !0)
|
|
2297
2297
|
]),
|
|
2298
2298
|
_: 3
|
|
2299
2299
|
}, 8, ["is-visible"])
|
|
2300
2300
|
]),
|
|
2301
|
-
|
|
2301
|
+
ze(l.$slots, "default", {}, void 0, !0)
|
|
2302
2302
|
], 64));
|
|
2303
2303
|
}
|
|
2304
2304
|
});
|
|
@@ -2476,7 +2476,7 @@ const eu = /* @__PURE__ */ Q($s, [["__scopeId", "data-v-3608e9ae"]]), tu = { cla
|
|
|
2476
2476
|
};
|
|
2477
2477
|
}
|
|
2478
2478
|
});
|
|
2479
|
-
const nu = /* @__PURE__ */ Q(uu, [["__scopeId", "data-v-0a6ae23e"]]), iu = (a) => (fe("data-v-
|
|
2479
|
+
const nu = /* @__PURE__ */ Q(uu, [["__scopeId", "data-v-0a6ae23e"]]), iu = (a) => (fe("data-v-7e21bed3"), a = a(), pe(), a), ou = { class: "custom-tree-node" }, ru = ["onClick"], cu = {
|
|
2480
2480
|
key: 0,
|
|
2481
2481
|
title: "\u5DF2\u6839\u636E\u56FE\u5C42\u5C42\u7EA7\u6392\u5E8F\uFF0C\u53EF\u901A\u8FC7\u62D6\u52A8\u8282\u70B9\u63A7\u5236\u56FE\u5C42\u5C42\u7EA7",
|
|
2482
2482
|
class: "fa sat-menu-icon fa-sort-amount-desc"
|
|
@@ -2506,8 +2506,9 @@ const nu = /* @__PURE__ */ Q(uu, [["__scopeId", "data-v-0a6ae23e"]]), iu = (a) =
|
|
|
2506
2506
|
if (R) {
|
|
2507
2507
|
if (R.radio) {
|
|
2508
2508
|
const Ae = Zt(z, "id", "children", R.pid);
|
|
2509
|
-
let
|
|
2510
|
-
|
|
2509
|
+
let Me = Ae == null ? void 0 : Ae.children.filter((at) => at.show);
|
|
2510
|
+
if (Me.length && ((H = g.Layer) == null || H.removeLayers(Me), (re = u.value) == null || re.setChecked((ee = Me[0].id) != null ? ee : "", !1, !0), Me[0].id == R.id))
|
|
2511
|
+
return;
|
|
2511
2512
|
}
|
|
2512
2513
|
_a(R, !j.show);
|
|
2513
2514
|
let he = [];
|
|
@@ -2667,7 +2668,7 @@ const nu = /* @__PURE__ */ Q(uu, [["__scopeId", "data-v-0a6ae23e"]]), iu = (a) =
|
|
|
2667
2668
|
};
|
|
2668
2669
|
}
|
|
2669
2670
|
});
|
|
2670
|
-
const bu = /* @__PURE__ */ Q(yu, [["__scopeId", "data-v-
|
|
2671
|
+
const bu = /* @__PURE__ */ Q(yu, [["__scopeId", "data-v-7e21bed3"]]), vu = ["SatMenu", "SatGlobe"], Ee = (a) => {
|
|
2671
2672
|
var F, b, y, E, C, D, O, c;
|
|
2672
2673
|
const e = ta(), t = It(), l = (b = (F = e == null ? void 0 : e.type) == null ? void 0 : F.name) != null ? b : "", s = (C = (E = (y = e == null ? void 0 : e.parent) == null ? void 0 : y.type) == null ? void 0 : E.name) != null ? C : "", u = vu.indexOf(s) > -1, o = !((D = t[l]) != null && D.enable) && u, i = !((O = t[l]) != null && O.enable) && s == "SatMenu";
|
|
2673
2674
|
u && o && ((c = t == null ? void 0 : t[`set${l}`]) == null || c.call(t, i ? {
|
|
@@ -3142,7 +3143,7 @@ const Ru = /* @__PURE__ */ Q(Nu, [["__scopeId", "data-v-565ae40e"]]), Hu = {
|
|
|
3142
3143
|
outline: !0,
|
|
3143
3144
|
outlineColor: "#ffffff",
|
|
3144
3145
|
outlineWidth: 2,
|
|
3145
|
-
clampToGround: !
|
|
3146
|
+
clampToGround: !1,
|
|
3146
3147
|
visibleDepth: !1
|
|
3147
3148
|
}
|
|
3148
3149
|
});
|
|
@@ -8922,7 +8923,7 @@ const Gi = /* @__PURE__ */ Q(Mi, [["__scopeId", "data-v-5347d99c"]]), zi = me(Gi
|
|
|
8922
8923
|
}, Zi = /* @__PURE__ */ V({
|
|
8923
8924
|
...qi,
|
|
8924
8925
|
setup(a) {
|
|
8925
|
-
const { isMobile: e } = Pe(ie()), t = xe(
|
|
8926
|
+
const { isMobile: e } = Pe(ie()), t = xe(Ve);
|
|
8926
8927
|
Vi();
|
|
8927
8928
|
const l = Ni(), s = L("\u70B9\u53CA\u6587\u5B57"), u = L([]);
|
|
8928
8929
|
u.value = $t(s.value);
|
|
@@ -9003,7 +9004,7 @@ const $i = /* @__PURE__ */ Q(Zi, [["__scopeId", "data-v-60ed1660"]]), eo = { cla
|
|
|
9003
9004
|
}, ro = /* @__PURE__ */ V({
|
|
9004
9005
|
...oo,
|
|
9005
9006
|
setup(a) {
|
|
9006
|
-
const e = xe(
|
|
9007
|
+
const e = xe(Ve), t = Pa({
|
|
9007
9008
|
visible: !1,
|
|
9008
9009
|
rightClickItem: void 0,
|
|
9009
9010
|
top: "",
|
|
@@ -9243,7 +9244,7 @@ const co = /* @__PURE__ */ Q(ro, [["__scopeId", "data-v-9b8bc78b"]]), bt = (a) =
|
|
|
9243
9244
|
}, _o = /* @__PURE__ */ V({
|
|
9244
9245
|
...Fo,
|
|
9245
9246
|
setup(a) {
|
|
9246
|
-
const e = xe(
|
|
9247
|
+
const e = xe(Ve);
|
|
9247
9248
|
let t = null;
|
|
9248
9249
|
const l = Ke(), s = L({
|
|
9249
9250
|
name: "",
|
|
@@ -9326,7 +9327,7 @@ const Co = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-b706ba46"]]), Bo = (a) =
|
|
|
9326
9327
|
}, xo = /* @__PURE__ */ V({
|
|
9327
9328
|
...jo,
|
|
9328
9329
|
setup(a) {
|
|
9329
|
-
const e = xe(
|
|
9330
|
+
const e = xe(Ve);
|
|
9330
9331
|
let t = null;
|
|
9331
9332
|
const l = Ke(), s = ["corridor", "rectangle", "polylineVolume"], u = L(""), o = L(!1), i = L(!1), n = L([]), m = () => {
|
|
9332
9333
|
var O;
|
|
@@ -9507,7 +9508,7 @@ const ko = /* @__PURE__ */ Q(xo, [["__scopeId", "data-v-2df85448"]]), Lo = { cla
|
|
|
9507
9508
|
}, Ro = /* @__PURE__ */ V({
|
|
9508
9509
|
...No,
|
|
9509
9510
|
setup(a) {
|
|
9510
|
-
const e = xe(
|
|
9511
|
+
const e = xe(Ve), t = w.plotStyleConfig.default;
|
|
9511
9512
|
let l = null;
|
|
9512
9513
|
const s = Ke(), u = L({
|
|
9513
9514
|
baseStyle: !0,
|
|
@@ -9708,7 +9709,7 @@ const Ho = /* @__PURE__ */ Q(Ro, [["__scopeId", "data-v-b7831297"]]), Uo = { cla
|
|
|
9708
9709
|
}, Ko = /* @__PURE__ */ V({
|
|
9709
9710
|
...Jo,
|
|
9710
9711
|
setup(a) {
|
|
9711
|
-
const e = xe(
|
|
9712
|
+
const e = xe(Ve), t = L("\u5C5E\u6027"), l = (s, u) => {
|
|
9712
9713
|
switch (s.paneName) {
|
|
9713
9714
|
}
|
|
9714
9715
|
};
|
|
@@ -9769,7 +9770,7 @@ const Wo = /* @__PURE__ */ Q(Ko, [["__scopeId", "data-v-282c3cf9"]]), Yo = (a) =
|
|
|
9769
9770
|
...tr,
|
|
9770
9771
|
setup(a) {
|
|
9771
9772
|
const e = new g.Plot(g.map);
|
|
9772
|
-
Et(
|
|
9773
|
+
Et(Ve, e), window.domtoimage = Ha;
|
|
9773
9774
|
const t = Ke(), l = se(() => Boolean(t.editingGraphicId)), s = L("\u8D44\u6E90\u5217\u8868");
|
|
9774
9775
|
let u = "";
|
|
9775
9776
|
U(() => s.value, (A, I) => {
|