@idmwx/idmui-gl4 3.9.5 → 3.9.7
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/{chunk-3VYIPD3A-7c3a348c.js → chunk-3VYIPD3A-ed4bf68b.js} +1 -1
- package/dist/{chunk-ANSXOGKI-556e7f83.js → chunk-ANSXOGKI-d35685a0.js} +1 -1
- package/dist/{chunk-T4JIPPZO-fea6ca0d.js → chunk-T4JIPPZO-5edd0671.js} +1 -1
- package/dist/{download-a02c5e56.js → download-0b42c1b2.js} +3 -3
- package/dist/{index-70965a2e.js → index-e1b323d5.js} +40 -24
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +3 -3
- package/dist/mapbox/src/components/timePicker/timePicker.vue.d.ts +3 -1
- package/dist/mapbox/src/components/tropical/index.vue.d.ts +2 -1
- package/dist/{rasterize-JS5G2XHH-3b65b332.js → rasterize-JS5G2XHH-f5dd9913.js} +3 -3
- package/dist/{toBlob-d4af49d9.js → toBlob-269352b2.js} +3 -3
- package/dist/{toCanvas-d6183a9d.js → toCanvas-5adb25d5.js} +2 -2
- package/dist/{toImg-63e950e6.js → toImg-451b355c.js} +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as a } from "./chunk-3VYIPD3A-
|
|
1
|
+
import { W as a } from "./chunk-3VYIPD3A-ed4bf68b.js";
|
|
2
2
|
async function o(r, t) {
|
|
3
3
|
let i = await a(r, t), e = new Image();
|
|
4
4
|
return e.src = i.toDataURL(`image/${t.format}`, t.quality), await e.decode(), e.style.width = `${i.width / t.dpr}px`, e.style.height = `${i.height / t.dpr}px`, e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as d } from "./chunk-T4JIPPZO-
|
|
2
|
-
import { W as f } from "./chunk-3VYIPD3A-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { m as d } from "./chunk-T4JIPPZO-5edd0671.js";
|
|
2
|
+
import { W as f } from "./chunk-3VYIPD3A-ed4bf68b.js";
|
|
3
|
+
import "./index-e1b323d5.js";
|
|
4
4
|
import "axios";
|
|
5
5
|
import "vuetify";
|
|
6
6
|
import "vue";
|
|
@@ -9928,8 +9928,8 @@ const Ud = {
|
|
|
9928
9928
|
immediate: !0
|
|
9929
9929
|
},
|
|
9930
9930
|
map: {
|
|
9931
|
-
handler() {
|
|
9932
|
-
this.map ? (this.toggle = localStorage.getItem(this.tropicalCacheKey) === "true" || !1, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle && this.fetchTropicals()) : this.handleClear();
|
|
9931
|
+
handler(t, e) {
|
|
9932
|
+
e == null || e.off("render", this.handleUpdateMarkerVisibility), this.map ? (this.map.on("render", this.handleUpdateMarkerVisibility), this.toggle = localStorage.getItem(this.tropicalCacheKey) === "true" || !1, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle && this.fetchTropicals()) : this.handleClear();
|
|
9933
9933
|
}
|
|
9934
9934
|
},
|
|
9935
9935
|
showTropicalsInfo: {
|
|
@@ -10280,8 +10280,23 @@ const Ud = {
|
|
|
10280
10280
|
}
|
|
10281
10281
|
},
|
|
10282
10282
|
handleClear() {
|
|
10283
|
-
var t, e, o, i;
|
|
10284
|
-
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((
|
|
10283
|
+
var t, e, o, i, a;
|
|
10284
|
+
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((r) => r == null ? void 0 : r.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (o = this.map) == null || o.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), (a = this.map) == null || a.off("render", this.handleUpdateMarkerVisibility), this.handleCloseInfoMarker();
|
|
10285
|
+
},
|
|
10286
|
+
// globe 下 DOM marker 无背面遮挡(mapbox-gl 2.15 无 occlusion),背面点的投影坐标
|
|
10287
|
+
// 会镜像翻转乱跳造成闪烁;与视野中心大圆角距 ≥ 90° 判定为球体背面,隐藏其 DOM
|
|
10288
|
+
handleUpdateMarkerVisibility() {
|
|
10289
|
+
const t = this.map;
|
|
10290
|
+
if (!t)
|
|
10291
|
+
return;
|
|
10292
|
+
const e = t.getCenter();
|
|
10293
|
+
for (const o of this.interpolateMarkers || []) {
|
|
10294
|
+
const i = o == null ? void 0 : o.getElement();
|
|
10295
|
+
if (!i)
|
|
10296
|
+
continue;
|
|
10297
|
+
const a = o.getLngLat(), l = Z.distance(e.toArray(), [a.lng, a.lat], { units: "radians" }) >= Math.PI / 2 ? "hidden" : "visible";
|
|
10298
|
+
i.style.visibility !== l && (i.style.visibility = l);
|
|
10299
|
+
}
|
|
10285
10300
|
},
|
|
10286
10301
|
handleDateChange() {
|
|
10287
10302
|
var t, e, o, i, a, r, l, n, s, d, m, g, p, y, u, h, f, L, M, A, z, C, P, T, R, B, G, N, K, oe, se, ce, ye, E, $;
|
|
@@ -10348,7 +10363,7 @@ const Ud = {
|
|
|
10348
10363
|
const Ce = new ke.Marker(Ae).setLngLat(V.geometry.coordinates).addTo(this.map);
|
|
10349
10364
|
this.interpolateMarkers.push(Ce);
|
|
10350
10365
|
}
|
|
10351
|
-
this.$emit("tropicalCenterPoints", le);
|
|
10366
|
+
this.handleUpdateMarkerVisibility(), this.$emit("tropicalCenterPoints", le);
|
|
10352
10367
|
} else
|
|
10353
10368
|
(E = this.map) != null && E.getSource(this.interpolateSource) && (($ = this.map) == null || $.getSource(this.interpolateSource).setData(this.empty));
|
|
10354
10369
|
},
|
|
@@ -11051,13 +11066,14 @@ const Su = {
|
|
|
11051
11066
|
currentRealTime: {
|
|
11052
11067
|
handler(t, e) {
|
|
11053
11068
|
t !== e && this.$emit("currentRealTime", this.currentRealTime);
|
|
11054
|
-
}
|
|
11069
|
+
},
|
|
11070
|
+
immediate: !0
|
|
11055
11071
|
}
|
|
11056
11072
|
},
|
|
11057
11073
|
mounted() {
|
|
11058
11074
|
this.timer = setInterval(() => {
|
|
11059
11075
|
this.currentRealTime = `${S.tz(S().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
11060
|
-
},
|
|
11076
|
+
}, 1e3), document.addEventListener("click", this.handleClickOutside);
|
|
11061
11077
|
},
|
|
11062
11078
|
unmounted() {
|
|
11063
11079
|
clearInterval(this.timer), this.handleCancelDate(), document.removeEventListener("click", this.handleClickOutside);
|
|
@@ -18335,52 +18351,52 @@ Se.capture = async (t, e, o) => {
|
|
|
18335
18351
|
if (o !== fl)
|
|
18336
18352
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
18337
18353
|
let i = await gl(t, e), a = { img: async (u, h) => {
|
|
18338
|
-
let { toImg: f } = await import("./toImg-
|
|
18354
|
+
let { toImg: f } = await import("./toImg-451b355c.js");
|
|
18339
18355
|
return f(i, { ...u, ...h || {} });
|
|
18340
18356
|
}, svg: async (u, h) => {
|
|
18341
|
-
let { toSvg: f } = await import("./toImg-
|
|
18357
|
+
let { toSvg: f } = await import("./toImg-451b355c.js");
|
|
18342
18358
|
return f(i, { ...u, ...h || {} });
|
|
18343
18359
|
}, canvas: async (u, h) => {
|
|
18344
|
-
let { toCanvas: f } = await import("./toCanvas-
|
|
18360
|
+
let { toCanvas: f } = await import("./toCanvas-5adb25d5.js");
|
|
18345
18361
|
return f(i, { ...u, ...h || {} });
|
|
18346
18362
|
}, blob: async (u, h) => {
|
|
18347
|
-
let { toBlob: f } = await import("./toBlob-
|
|
18363
|
+
let { toBlob: f } = await import("./toBlob-269352b2.js");
|
|
18348
18364
|
return f(i, { ...u, ...h || {} });
|
|
18349
18365
|
}, png: async (u, h) => {
|
|
18350
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
18366
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-f5dd9913.js");
|
|
18351
18367
|
return f(i, { ...u, ...h || {}, format: "png" });
|
|
18352
18368
|
}, jpeg: async (u, h) => {
|
|
18353
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
18369
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-f5dd9913.js");
|
|
18354
18370
|
return f(i, { ...u, ...h || {}, format: "jpeg" });
|
|
18355
18371
|
}, webp: async (u, h) => {
|
|
18356
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
18372
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-f5dd9913.js");
|
|
18357
18373
|
return f(i, { ...u, ...h || {}, format: "webp" });
|
|
18358
18374
|
}, download: async (u, h) => {
|
|
18359
|
-
let { download: f } = await import("./download-
|
|
18375
|
+
let { download: f } = await import("./download-0b42c1b2.js");
|
|
18360
18376
|
return f(i, { ...u, ...h || {} });
|
|
18361
18377
|
} }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
|
|
18362
|
-
let { toSvg: h } = await import("./toImg-
|
|
18378
|
+
let { toSvg: h } = await import("./toImg-451b355c.js");
|
|
18363
18379
|
return h(i, { ...e, ...u || {}, [po]: !0 });
|
|
18364
18380
|
}, canvas: async (u) => {
|
|
18365
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
18381
|
+
let { toCanvas: h } = await import("./toCanvas-5adb25d5.js");
|
|
18366
18382
|
return h(i, { ...e, ...u || {}, [po]: !0 });
|
|
18367
18383
|
}, png: async (u) => {
|
|
18368
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
18384
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-f5dd9913.js");
|
|
18369
18385
|
return h(i, { ...e, ...u || {}, format: "png", [po]: !0 });
|
|
18370
18386
|
}, jpeg: async (u) => {
|
|
18371
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
18387
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-f5dd9913.js");
|
|
18372
18388
|
return h(i, { ...e, ...u || {}, format: "jpeg", [po]: !0 });
|
|
18373
18389
|
}, jpg: async (u) => {
|
|
18374
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
18390
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-f5dd9913.js");
|
|
18375
18391
|
return h(i, { ...e, ...u || {}, format: "jpeg", [po]: !0 });
|
|
18376
18392
|
}, webp: async (u) => {
|
|
18377
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
18393
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-f5dd9913.js");
|
|
18378
18394
|
return h(i, { ...e, ...u || {}, format: "webp", [po]: !0 });
|
|
18379
18395
|
}, blob: async (u) => {
|
|
18380
|
-
let { toBlob: h } = await import("./toBlob-
|
|
18396
|
+
let { toBlob: h } = await import("./toBlob-269352b2.js");
|
|
18381
18397
|
return h(i, { ...e, ...u || {}, [po]: !0 });
|
|
18382
18398
|
}, img: async (u) => {
|
|
18383
|
-
let { toImg: h } = await import("./toImg-
|
|
18399
|
+
let { toImg: h } = await import("./toImg-451b355c.js");
|
|
18384
18400
|
return h(i, { ...e, ...u || {}, [po]: !0 });
|
|
18385
18401
|
} } }, l = await D0("defineExports", r), n = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...a, ...n };
|
|
18386
18402
|
s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
|
|
@@ -40404,7 +40420,7 @@ const bb = {
|
|
|
40404
40420
|
return (t, e, o = "yyyy-MM-DD") => {
|
|
40405
40421
|
var i, a;
|
|
40406
40422
|
if (t) {
|
|
40407
|
-
const r = e || 0;
|
|
40423
|
+
const r = Number(e) || 0;
|
|
40408
40424
|
return (a = (i = S(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o);
|
|
40409
40425
|
}
|
|
40410
40426
|
return "-";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as D, c as M, D as n, L as x, a as T, b as W, M as h, g as V, e as f, P as k, S as w, T as y, V as B, f as d, W as u, d as v } from "./index-
|
|
1
|
+
import { B as D, c as M, D as n, L as x, a as T, b as W, M as h, g as V, e as f, P as k, S as w, T as y, V as B, f as d, W as u, d as v } from "./index-e1b323d5.js";
|
|
2
2
|
import "axios";
|
|
3
3
|
import "vuetify";
|
|
4
4
|
import "vue";
|