@idmwx/idmui-gl3 5.5.1 → 5.5.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/index.js +156 -155
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { LayerHelper as Ke, CompanyHelper as Xe } from "@idm-plugin/tag";
|
|
|
5
5
|
import F from "moment";
|
|
6
6
|
import le from "axios";
|
|
7
7
|
import Ge from "moment-timezone";
|
|
8
|
-
import { resolveComponent as z, openBlock as g, createElementBlock as
|
|
8
|
+
import { resolveComponent as z, openBlock as g, createElementBlock as f, createElementVNode as s, normalizeStyle as J, createVNode as k, withCtx as ae, normalizeClass as H, Fragment as _, renderList as N, toDisplayString as B, createCommentVNode as O, createBlock as pt, createTextVNode as U, withDirectives as fe, createStaticVNode as mt, vShow as we, defineComponent as ut, withModifiers as Ue, mergeProps as S } from "vue";
|
|
9
9
|
import * as D from "@turf/turf";
|
|
10
10
|
import gt from "@mapbox/sphericalmercator";
|
|
11
11
|
import ve from "mapbox-gl";
|
|
@@ -294,7 +294,7 @@ const T = (t, e) => {
|
|
|
294
294
|
};
|
|
295
295
|
function $t(t, e, a, r, i, o) {
|
|
296
296
|
const l = z("ElTooltip"), c = z("ElRadio"), h = z("ElRadioGroup"), p = z("ElScrollbar");
|
|
297
|
-
return g(),
|
|
297
|
+
return g(), f("div", yt, [
|
|
298
298
|
s("div", {
|
|
299
299
|
class: "menu-bar-box",
|
|
300
300
|
style: J({ top: a.top + 10 + "px", right: i.right + "px" })
|
|
@@ -389,7 +389,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
389
389
|
})
|
|
390
390
|
])
|
|
391
391
|
], 4),
|
|
392
|
-
o.hasCollectedLayers ? (g(),
|
|
392
|
+
o.hasCollectedLayers ? (g(), f("div", {
|
|
393
393
|
key: 0,
|
|
394
394
|
class: "active-layers",
|
|
395
395
|
style: J({ right: i.right + "px", bottom: "100px" })
|
|
@@ -401,10 +401,10 @@ function $t(t, e, a, r, i, o) {
|
|
|
401
401
|
style: { "font-size": "28px", "margin-right": "0" },
|
|
402
402
|
onClick: e[5] || (e[5] = (...n) => o.toggleAutoActive && o.toggleAutoActive(...n))
|
|
403
403
|
}, [
|
|
404
|
-
i.autoActive ? (g(),
|
|
404
|
+
i.autoActive ? (g(), f("i", vt, "")) : (g(), f("i", Lt, ""))
|
|
405
405
|
])
|
|
406
406
|
]),
|
|
407
|
-
(g(!0),
|
|
407
|
+
(g(!0), f(_, null, N(i.layers.weather.filter((n) => n.collected), (n) => (g(), f("div", {
|
|
408
408
|
key: n.key,
|
|
409
409
|
class: H(o.computeLayerClass(n, i.activeWeatherLayers))
|
|
410
410
|
}, [
|
|
@@ -416,7 +416,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
416
416
|
class: "name",
|
|
417
417
|
onClick: (d) => o.handleWeatherLayerPick(n)
|
|
418
418
|
}, B(n.name), 9, xt),
|
|
419
|
-
n.key === "wind" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(),
|
|
419
|
+
n.key === "wind" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(), f("div", Bt, [
|
|
420
420
|
s("i", {
|
|
421
421
|
class: H(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
422
422
|
onClick: e[6] || (e[6] = (d) => o.handleToggleWindParticle())
|
|
@@ -426,7 +426,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
426
426
|
onClick: e[7] || (e[7] = (d) => o.handleToggleWindFeather())
|
|
427
427
|
}, "", 2)
|
|
428
428
|
])) : O("", !0),
|
|
429
|
-
n.key === "current" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(),
|
|
429
|
+
n.key === "current" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(), f("div", It, [
|
|
430
430
|
s("i", {
|
|
431
431
|
class: H(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
432
432
|
onClick: e[8] || (e[8] = (d) => o.handleToggleCurrentParticle())
|
|
@@ -462,14 +462,14 @@ function $t(t, e, a, r, i, o) {
|
|
|
462
462
|
style: { "margin-right": "0" },
|
|
463
463
|
onClick: e[11] || (e[11] = (...n) => o.toggleAutoActive && o.toggleAutoActive(...n))
|
|
464
464
|
}, [
|
|
465
|
-
i.autoActive ? (g(),
|
|
465
|
+
i.autoActive ? (g(), f("i", kt, "")) : (g(), f("i", zt, ""))
|
|
466
466
|
])
|
|
467
467
|
]),
|
|
468
468
|
s("div", Mt, [
|
|
469
|
-
(g(!0),
|
|
469
|
+
(g(!0), f(_, null, N(i.layers.weather, (n) => (g(), f(_, {
|
|
470
470
|
key: n.key
|
|
471
471
|
}, [
|
|
472
|
-
n.hide ? O("", !0) : (g(),
|
|
472
|
+
n.hide ? O("", !0) : (g(), f("div", {
|
|
473
473
|
key: 0,
|
|
474
474
|
class: H(o.computeLayerClass(n, i.activeWeatherLayers))
|
|
475
475
|
}, [
|
|
@@ -482,7 +482,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
482
482
|
class: "name",
|
|
483
483
|
onClick: (d) => o.handleWeatherLayerPick(n)
|
|
484
484
|
}, B(n.name), 9, St),
|
|
485
|
-
n.key === "wind" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(),
|
|
485
|
+
n.key === "wind" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(), f("div", _t, [
|
|
486
486
|
s("i", {
|
|
487
487
|
class: H(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
488
488
|
onClick: e[12] || (e[12] = (d) => o.handleToggleWindParticle())
|
|
@@ -492,7 +492,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
492
492
|
onClick: e[13] || (e[13] = (d) => o.handleToggleWindFeather())
|
|
493
493
|
}, "", 2)
|
|
494
494
|
])) : O("", !0),
|
|
495
|
-
n.key === "current" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(),
|
|
495
|
+
n.key === "current" && i.activeWeatherLayers.some((d) => d.key === n.key) ? (g(), f("div", Ht, [
|
|
496
496
|
s("i", {
|
|
497
497
|
class: H(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
498
498
|
onClick: e[14] || (e[14] = (d) => o.handleToggleCurrentParticle())
|
|
@@ -506,7 +506,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
506
506
|
s("div", {
|
|
507
507
|
onClick: (d) => o.handleWeatherLayerCollect(n)
|
|
508
508
|
}, [
|
|
509
|
-
n.collected ? (g(),
|
|
509
|
+
n.collected ? (g(), f("i", Nt, "")) : (g(), f("i", jt, ""))
|
|
510
510
|
], 8, Ot)
|
|
511
511
|
], 2))
|
|
512
512
|
], 64))), 128)),
|
|
@@ -522,16 +522,16 @@ function $t(t, e, a, r, i, o) {
|
|
|
522
522
|
s("div", Rt, [
|
|
523
523
|
e[26] || (e[26] = s("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
524
524
|
s("div", Ft, [
|
|
525
|
-
(g(!0),
|
|
525
|
+
(g(!0), f(_, null, N(i.layers.other, (n) => {
|
|
526
526
|
var d;
|
|
527
|
-
return g(),
|
|
527
|
+
return g(), f("div", {
|
|
528
528
|
key: n.key,
|
|
529
529
|
class: H(["layer flex-between", o.computeLayerClass(n, i.activeOtherLayers)]),
|
|
530
530
|
onClick: (b) => o.handleOtherLayerPick(n)
|
|
531
531
|
}, [
|
|
532
532
|
s("div", Wt, [
|
|
533
533
|
s("div", Ut, [
|
|
534
|
-
(d = o.computeLayerClass(n, i.activeOtherLayers)) != null && d.includes("active") ? (g(),
|
|
534
|
+
(d = o.computeLayerClass(n, i.activeOtherLayers)) != null && d.includes("active") ? (g(), f("i", Yt, "")) : (g(), f("i", Kt, ""))
|
|
535
535
|
]),
|
|
536
536
|
s("span", null, B(n.name), 1)
|
|
537
537
|
])
|
|
@@ -549,7 +549,7 @@ function $t(t, e, a, r, i, o) {
|
|
|
549
549
|
style: { width: "180px", "align-items": "flex-start" }
|
|
550
550
|
}, {
|
|
551
551
|
default: ae(() => [
|
|
552
|
-
(g(!0),
|
|
552
|
+
(g(!0), f(_, null, N(i.sourceList, (n, d) => (g(), pt(c, {
|
|
553
553
|
key: `source${n.name}`,
|
|
554
554
|
value: n.name
|
|
555
555
|
}, {
|
|
@@ -557,8 +557,8 @@ function $t(t, e, a, r, i, o) {
|
|
|
557
557
|
var b, u, A, w, m, v;
|
|
558
558
|
return [
|
|
559
559
|
U(B(n.name) + " ", 1),
|
|
560
|
-
d !== 0 ? (g(),
|
|
561
|
-
d === 0 ? (g(),
|
|
560
|
+
d !== 0 ? (g(), f("span", qt, B(n.resolution) + "km " + B(n.length) + "days", 1)) : O("", !0),
|
|
561
|
+
d === 0 ? (g(), f("div", Vt, "Provides the best forecast")) : (A = (u = (b = n == null ? void 0 : n.update) == null ? void 0 : b.default) == null ? void 0 : u.meta) != null && A.initialisationTime ? (g(), f("div", Zt, "Update: " + B(o.computeDateZ((v = (m = (w = n == null ? void 0 : n.update) == null ? void 0 : w.default) == null ? void 0 : m.meta) == null ? void 0 : v.initialisationTime)), 1)) : O("", !0)
|
|
562
562
|
];
|
|
563
563
|
}),
|
|
564
564
|
_: 2
|
|
@@ -946,7 +946,7 @@ class Ce {
|
|
|
946
946
|
}
|
|
947
947
|
const u = e.getBoundPixel(), A = e.map.getZoom() + 1, w = e.getWorldCopy(u, A);
|
|
948
948
|
for (const m of w) {
|
|
949
|
-
const v = (m[0] - u[0]) * e.ratio,
|
|
949
|
+
const v = (m[0] - u[0]) * e.ratio, y = (m[1] - u[3]) * e.ratio, L = m[2] * e.ratio, [P, M, I, j] = [v, L + v, y, L + y], W = new Float32Array([P, I, M, I, P, j, P, j, M, I, M, j]);
|
|
950
950
|
a.bindBuffer(a.ARRAY_BUFFER, l), a.bufferData(a.ARRAY_BUFFER, W, a.STATIC_DRAW), a.drawArrays(a.TRIANGLES, 0, 6);
|
|
951
951
|
}
|
|
952
952
|
} catch (n) {
|
|
@@ -3309,7 +3309,7 @@ const oa = {
|
|
|
3309
3309
|
}, sa = { key: 0 };
|
|
3310
3310
|
function na(t, e, a, r, i, o) {
|
|
3311
3311
|
var l;
|
|
3312
|
-
return (l = a.factor) != null && l.active ? (g(),
|
|
3312
|
+
return (l = a.factor) != null && l.active ? (g(), f("div", sa, [
|
|
3313
3313
|
s("div", {
|
|
3314
3314
|
class: "legend-bars flex-center",
|
|
3315
3315
|
style: J([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
@@ -3640,7 +3640,7 @@ const pa = {
|
|
|
3640
3640
|
}, ma = { key: 0 };
|
|
3641
3641
|
function ua(t, e, a, r, i, o) {
|
|
3642
3642
|
var l;
|
|
3643
|
-
return (l = a.factor) != null && l.active ? (g(),
|
|
3643
|
+
return (l = a.factor) != null && l.active ? (g(), f("div", ma, [
|
|
3644
3644
|
s("div", {
|
|
3645
3645
|
class: "legend-bars flex-center",
|
|
3646
3646
|
style: J([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
@@ -3775,7 +3775,7 @@ const ga = /* @__PURE__ */ T(pa, [["render", ua], ["__scopeId", "data-v-163d1f9a
|
|
|
3775
3775
|
}
|
|
3776
3776
|
};
|
|
3777
3777
|
function ya(t, e, a, r, i, o) {
|
|
3778
|
-
return g(),
|
|
3778
|
+
return g(), f("div");
|
|
3779
3779
|
}
|
|
3780
3780
|
const fa = /* @__PURE__ */ T(Aa, [["render", ya]]), wa = {
|
|
3781
3781
|
name: "IdmSwell",
|
|
@@ -3933,7 +3933,7 @@ const fa = /* @__PURE__ */ T(Aa, [["render", ya]]), wa = {
|
|
|
3933
3933
|
}
|
|
3934
3934
|
};
|
|
3935
3935
|
function ba(t, e, a, r, i, o) {
|
|
3936
|
-
return g(),
|
|
3936
|
+
return g(), f("div");
|
|
3937
3937
|
}
|
|
3938
3938
|
const va = /* @__PURE__ */ T(wa, [["render", ba]]), La = {
|
|
3939
3939
|
name: "IdmPrmsl",
|
|
@@ -4072,7 +4072,7 @@ const va = /* @__PURE__ */ T(wa, [["render", ba]]), La = {
|
|
|
4072
4072
|
}
|
|
4073
4073
|
};
|
|
4074
4074
|
function Ca(t, e, a, r, i, o) {
|
|
4075
|
-
return g(),
|
|
4075
|
+
return g(), f("div");
|
|
4076
4076
|
}
|
|
4077
4077
|
const xa = /* @__PURE__ */ T(La, [["render", Ca]]), Ba = {
|
|
4078
4078
|
name: "IdmIceberg",
|
|
@@ -4132,7 +4132,7 @@ const xa = /* @__PURE__ */ T(La, [["render", Ca]]), Ba = {
|
|
|
4132
4132
|
}
|
|
4133
4133
|
};
|
|
4134
4134
|
function Ia(t, e, a, r, i, o) {
|
|
4135
|
-
return g(),
|
|
4135
|
+
return g(), f("div");
|
|
4136
4136
|
}
|
|
4137
4137
|
const Ea = /* @__PURE__ */ T(Ba, [["render", Ia]]);
|
|
4138
4138
|
const Da = {
|
|
@@ -4238,10 +4238,10 @@ const Da = {
|
|
|
4238
4238
|
var b, u, A, w, m, v;
|
|
4239
4239
|
((b = n.geometry) == null ? void 0 : b.type) === "Point" && ((u = n.properties) == null ? void 0 : u.type) === "history" && (l = d, c = c === void 0 ? d : c), ((A = n.geometry) == null ? void 0 : A.type) === "Point" && ((w = n.properties) == null ? void 0 : w.type) === "forecast" && c === void 0 && (c = d), ((m = n.geometry) == null ? void 0 : m.type) === "LineString" && ((v = n.properties) == null || v.type);
|
|
4240
4240
|
}), h.map((n, d) => {
|
|
4241
|
-
var b, u, A, w, m, v,
|
|
4241
|
+
var b, u, A, w, m, v, y;
|
|
4242
4242
|
if (((b = n.geometry) == null ? void 0 : b.type) === "LineString" && ((u = n.properties) == null || u.type), ((A = n.geometry) == null ? void 0 : A.type) === "Point" && ((w = n.properties) == null ? void 0 : w.type) === "forecast" && (n.properties.name = o, n.properties.format = F(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((m = n.geometry) == null ? void 0 : m.type) === "Point" && ((v = n.properties) == null ? void 0 : v.type) === "history") {
|
|
4243
4243
|
n.properties.format = F(n.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
4244
|
-
const L = F((
|
|
4244
|
+
const L = F((y = n.properties) == null ? void 0 : y.date).utc().format("HHmm") === F().utc().hour(Math.floor(e / 6) * 6).minute("00").format("HHmm");
|
|
4245
4245
|
n.properties.showHistoryLabel = L || d === l, n.properties.showNameLabel = d === l, n.properties.name = o;
|
|
4246
4246
|
}
|
|
4247
4247
|
return n;
|
|
@@ -4514,7 +4514,7 @@ const Da = {
|
|
|
4514
4514
|
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((e) => e == null ? void 0 : e.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), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
4515
4515
|
},
|
|
4516
4516
|
handleDateChange() {
|
|
4517
|
-
var t, e, a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v,
|
|
4517
|
+
var t, e, a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W, Y, K, V, ee, ce, he, de, pe, me, ue, ge;
|
|
4518
4518
|
if ((t = this.interpolateMarkers) == null || t.forEach((te) => te == null ? void 0 : te.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
4519
4519
|
const te = F(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = this.interpolateData.filter((Q) => Q.properties.date === te.format() && !Q.properties.disabled), Ae = this.handleComputePolygons(oe), ie = D.featureCollection([...oe]);
|
|
4520
4520
|
Ae.forEach((Q) => {
|
|
@@ -4536,7 +4536,7 @@ const Da = {
|
|
|
4536
4536
|
for (const Q of oe)
|
|
4537
4537
|
if (!Q.properties.disabled) {
|
|
4538
4538
|
let q = "#f44336";
|
|
4539
|
-
((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.spd) < 17.2 || !((p = (h = Q.properties) == null ? void 0 : h.wind) != null && p.spd) ? q = "#03f869" : ((d = (n = Q.properties) == null ? void 0 : n.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (b = Q.properties) == null ? void 0 : b.wind) == null ? void 0 : u.spd) < 24.5 ? q = "#f2f202" : ((w = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : w.spd) >= 24.5 && ((v = (m = Q.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? q = "#ff9100" : ((L = (
|
|
4539
|
+
((c = (l = Q.properties) == null ? void 0 : l.wind) == null ? void 0 : c.spd) < 17.2 || !((p = (h = Q.properties) == null ? void 0 : h.wind) != null && p.spd) ? q = "#03f869" : ((d = (n = Q.properties) == null ? void 0 : n.wind) == null ? void 0 : d.spd) >= 17.2 && ((u = (b = Q.properties) == null ? void 0 : b.wind) == null ? void 0 : u.spd) < 24.5 ? q = "#f2f202" : ((w = (A = Q.properties) == null ? void 0 : A.wind) == null ? void 0 : w.spd) >= 24.5 && ((v = (m = Q.properties) == null ? void 0 : m.wind) == null ? void 0 : v.spd) < 32.7 ? q = "#ff9100" : ((L = (y = Q.properties) == null ? void 0 : y.wind) == null ? void 0 : L.spd) >= 32.7 && ((M = (P = Q.properties) == null ? void 0 : P.wind) == null ? void 0 : M.spd) < 41.5 ? q = "#f44336" : ((j = (I = Q.properties) == null ? void 0 : I.wind) == null ? void 0 : j.spd) >= 41.5 && ((Y = (W = Q.properties) == null ? void 0 : W.wind) == null ? void 0 : Y.spd) < 51 ? q = "#f903d0" : ((V = (K = Q.properties) == null ? void 0 : K.wind) == null ? void 0 : V.spd) >= 51 ? q = "#8702f9" : q = "#f44336";
|
|
4540
4540
|
const ye = `<svg t="1719918955501"
|
|
4541
4541
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4542
4542
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -4578,8 +4578,8 @@ const Da = {
|
|
|
4578
4578
|
}
|
|
4579
4579
|
);
|
|
4580
4580
|
a.sort((u, A) => {
|
|
4581
|
-
var w, m, v,
|
|
4582
|
-
return ((w = u.properties) == null ? void 0 : w.model) === "cma" ? -1 : ((m = u.properties) == null ? void 0 : m.model) === "jma" ? ((v = A.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : u.properties.model === "ecmwf" ? ["jma", "cma"].includes((
|
|
4581
|
+
var w, m, v, y;
|
|
4582
|
+
return ((w = u.properties) == null ? void 0 : w.model) === "cma" ? -1 : ((m = u.properties) == null ? void 0 : m.model) === "jma" ? ((v = A.properties) == null ? void 0 : v.model) === "cma" ? 1 : -1 : u.properties.model === "ecmwf" ? ["jma", "cma"].includes((y = A.properties) == null ? void 0 : y.model) ? 1 : -1 : 0;
|
|
4583
4583
|
});
|
|
4584
4584
|
const r = (h = (c = this.tropicals) == null ? void 0 : c.data) == null ? void 0 : h.features.filter(
|
|
4585
4585
|
(u) => {
|
|
@@ -4696,15 +4696,15 @@ const Da = {
|
|
|
4696
4696
|
style: { "justify-content": "flex-start" }
|
|
4697
4697
|
}, Ra = { class: "forecast-models" }, Fa = ["onClick"], Ga = { class: "more" };
|
|
4698
4698
|
function Wa(t, e, a, r, i, o) {
|
|
4699
|
-
var l, c, h, p, n, d, b, u, A, w, m, v,
|
|
4700
|
-
return fe((g(),
|
|
4699
|
+
var l, c, h, p, n, d, b, u, A, w, m, v, y, L, P;
|
|
4700
|
+
return fe((g(), f("div", Pa, [
|
|
4701
4701
|
s("div", ka, [
|
|
4702
4702
|
s("div", {
|
|
4703
4703
|
class: "iconfont close-btn",
|
|
4704
4704
|
onClick: e[0] || (e[0] = (M) => i.showTropicals = !1)
|
|
4705
4705
|
}, ""),
|
|
4706
4706
|
s("div", za, [
|
|
4707
|
-
(c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (g(),
|
|
4707
|
+
(c = (l = i.activeTropicals) == null ? void 0 : l.history) != null && c.level ? (g(), f("span", Ma, B((p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) + " , ", 1)) : O("", !0),
|
|
4708
4708
|
U(B((n = i.activeTropicals) == null ? void 0 : n.name), 1)
|
|
4709
4709
|
]),
|
|
4710
4710
|
s("div", Ta, " Last update: " + B(o.computeTime(((b = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : b.updated) || ((w = (A = (u = i.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : A.filter((M) => !M.disabled)[0]) == null ? void 0 : w.date))), 1)
|
|
@@ -4718,16 +4718,16 @@ function Wa(t, e, a, r, i, o) {
|
|
|
4718
4718
|
]),
|
|
4719
4719
|
s("div", Oa, [
|
|
4720
4720
|
e[3] || (e[3] = s("label", null, "Pressure : ", -1)),
|
|
4721
|
-
s("span", null, B(((L = (
|
|
4721
|
+
s("span", null, B(((L = (y = i.activeTropicals) == null ? void 0 : y.history) == null ? void 0 : L.pressure) || "-") + "[hPa]", 1)
|
|
4722
4722
|
])
|
|
4723
4723
|
]),
|
|
4724
4724
|
s("div", Na, [
|
|
4725
4725
|
s("div", ja, [
|
|
4726
4726
|
e[4] || (e[4] = s("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4727
4727
|
s("div", Ra, [
|
|
4728
|
-
(g(!0),
|
|
4728
|
+
(g(!0), f(_, null, N((P = i.activeTropicals) == null ? void 0 : P.forecasts, (M, I) => {
|
|
4729
4729
|
var j, W, Y, K;
|
|
4730
|
-
return g(),
|
|
4730
|
+
return g(), f("div", {
|
|
4731
4731
|
key: I,
|
|
4732
4732
|
class: H([
|
|
4733
4733
|
"model",
|
|
@@ -4862,7 +4862,7 @@ const Ua = {
|
|
|
4862
4862
|
}, Ya = { key: 0 };
|
|
4863
4863
|
function Ka(t, e, a, r, i, o) {
|
|
4864
4864
|
var l;
|
|
4865
|
-
return (l = a.factor) != null && l.active ? (g(),
|
|
4865
|
+
return (l = a.factor) != null && l.active ? (g(), f("div", Ya, [
|
|
4866
4866
|
s("div", {
|
|
4867
4867
|
class: "legend-bars flex-center",
|
|
4868
4868
|
style: J([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
@@ -4976,7 +4976,7 @@ const Ja = {
|
|
|
4976
4976
|
}, qa = { key: 0 };
|
|
4977
4977
|
function Va(t, e, a, r, i, o) {
|
|
4978
4978
|
var l;
|
|
4979
|
-
return (l = a.factor) != null && l.active ? (g(),
|
|
4979
|
+
return (l = a.factor) != null && l.active ? (g(), f("div", qa, [
|
|
4980
4980
|
s("div", {
|
|
4981
4981
|
class: "legend-bars flex-center",
|
|
4982
4982
|
style: J([{ position: "absolute" }, { right: t.right + "px", bottom: a.bottom }])
|
|
@@ -5096,7 +5096,7 @@ const $a = {
|
|
|
5096
5096
|
}, ei = { key: 0 };
|
|
5097
5097
|
function ti(t, e, a, r, i, o) {
|
|
5098
5098
|
var l;
|
|
5099
|
-
return (l = a.factor) != null && l.active ? (g(),
|
|
5099
|
+
return (l = a.factor) != null && l.active ? (g(), f("div", ei, [
|
|
5100
5100
|
s("div", {
|
|
5101
5101
|
class: "legend-bars flex-center",
|
|
5102
5102
|
style: J([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
@@ -5219,7 +5219,7 @@ const ii = {
|
|
|
5219
5219
|
}, ri = { key: 0 };
|
|
5220
5220
|
function oi(t, e, a, r, i, o) {
|
|
5221
5221
|
var l;
|
|
5222
|
-
return (l = a.factor) != null && l.active ? (g(),
|
|
5222
|
+
return (l = a.factor) != null && l.active ? (g(), f("div", ri, [
|
|
5223
5223
|
s("div", {
|
|
5224
5224
|
class: "legend-bars flex-center",
|
|
5225
5225
|
style: J([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
@@ -5335,7 +5335,7 @@ const ni = {
|
|
|
5335
5335
|
}, li = { key: 0 };
|
|
5336
5336
|
function ci(t, e, a, r, i, o) {
|
|
5337
5337
|
var l;
|
|
5338
|
-
return (l = a.factor) != null && l.active ? (g(),
|
|
5338
|
+
return (l = a.factor) != null && l.active ? (g(), f("div", li, [
|
|
5339
5339
|
s("div", {
|
|
5340
5340
|
class: "legend-bars flex-center",
|
|
5341
5341
|
style: J([{ position: "absolute" }, { right: i.right + "px", bottom: a.bottom }])
|
|
@@ -5355,7 +5355,7 @@ var di = /* @__PURE__ */ ut({
|
|
|
5355
5355
|
name: "LocationFilled",
|
|
5356
5356
|
__name: "location-filled",
|
|
5357
5357
|
setup(t) {
|
|
5358
|
-
return (e, a) => (g(),
|
|
5358
|
+
return (e, a) => (g(), f("svg", {
|
|
5359
5359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5360
5360
|
viewBox: "0 0 1024 1024"
|
|
5361
5361
|
}, [
|
|
@@ -5561,7 +5561,7 @@ const ui = {
|
|
|
5561
5561
|
initTableData(t) {
|
|
5562
5562
|
var e, a, r, i, o, l, c, h, p;
|
|
5563
5563
|
this.clearTable(), this.positionGmt = (a = (e = t == null ? void 0 : t.weather) == null ? void 0 : e[0]) == null ? void 0 : a.timezone, this.positionOffset = (i = (r = t == null ? void 0 : t.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (l = (o = Ge(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : l.format("MMM-DD/HHmm[LT]"), this.currentHourData = (c = We.pickHourly(t, F(this.ts))) == null ? void 0 : c[0], ((p = (h = this.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
5564
|
-
var d, b, u, A, w, m, v,
|
|
5564
|
+
var d, b, u, A, w, m, v, y, L, P, M, I, j, W, Y, K, V, ee, ce, he, de, pe, me, ue, ge, te, oe, Ae, ie, Q, q, ye, re;
|
|
5565
5565
|
if (!document.getElementById("meteoMainBox"))
|
|
5566
5566
|
return !1;
|
|
5567
5567
|
if (!this.currentHourData)
|
|
@@ -5570,7 +5570,7 @@ const ui = {
|
|
|
5570
5570
|
const ne = Ge(this.ts).tz(this.positionGmt).add(3 * se, "h").format();
|
|
5571
5571
|
this.tableData.hours.push(ne);
|
|
5572
5572
|
const x = ((d = We.pickHourly(t, ne)) == null ? void 0 : d[0]) || {};
|
|
5573
|
-
this.tableData.temp.push(this.roundPrecision((b = x == null ? void 0 : x.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((A = (u = x == null ? void 0 : x.weather) == null ? void 0 : u.precip) == null ? void 0 : A.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((m = (w = x == null ? void 0 : x.weather) == null ? void 0 : w.precip) == null ? void 0 : m.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((v = x == null ? void 0 : x.weather) == null ? void 0 : v.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((L = (
|
|
5573
|
+
this.tableData.temp.push(this.roundPrecision((b = x == null ? void 0 : x.weather) == null ? void 0 : b.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((A = (u = x == null ? void 0 : x.weather) == null ? void 0 : u.precip) == null ? void 0 : A.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((m = (w = x == null ? void 0 : x.weather) == null ? void 0 : w.precip) == null ? void 0 : m.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((v = x == null ? void 0 : x.weather) == null ? void 0 : v.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((L = (y = x == null ? void 0 : x.weather) == null ? void 0 : y.wind) == null ? void 0 : L.kts, 1) ?? "-"), this.tableData.windDir.push((M = (P = x == null ? void 0 : x.weather) == null ? void 0 : P.wind) == null ? void 0 : M.bearing), this.tableData.windGust.push(this.roundPrecision((j = (I = x == null ? void 0 : x.weather) == null ? void 0 : I.wind) == null ? void 0 : j.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((Y = (W = x == null ? void 0 : x.wave) == null ? void 0 : W.sig) == null ? void 0 : Y.height, 1) ?? "-"), this.tableData.sigwaveDir.push((V = (K = x == null ? void 0 : x.wave) == null ? void 0 : K.sig) == null ? void 0 : V.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((ce = (ee = x == null ? void 0 : x.wave) == null ? void 0 : ee.wd) == null ? void 0 : ce.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (he = x == null ? void 0 : x.wave) == null ? void 0 : he.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((me = (pe = x == null ? void 0 : x.wave) == null ? void 0 : pe.wd) == null ? void 0 : me.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (ue = x == null ? void 0 : x.wave) == null ? void 0 : ue.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((oe = (te = x == null ? void 0 : x.wave) == null ? void 0 : te.swell) == null ? void 0 : oe.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ie = (Ae = x == null ? void 0 : x.wave) == null ? void 0 : Ae.swell) == null ? void 0 : ie.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Q = x == null ? void 0 : x.current) == null ? void 0 : Q.speed, 1) ?? "-"), this.tableData.currentDir.push((q = x == null ? void 0 : x.current) == null ? void 0 : q.bearing), this.tableData.seaLevel.push(this.roundPrecision(x == null ? void 0 : x.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(x == null ? void 0 : x.sst, 0) ?? "-"), this.tableData.weatherUrls.push((ye = x == null ? void 0 : x.weather) == null ? void 0 : ye.url), this.tableData.weatherNames.push(((re = x == null ? void 0 : x.weather) == null ? void 0 : re.name) ?? "-");
|
|
5574
5574
|
}
|
|
5575
5575
|
});
|
|
5576
5576
|
},
|
|
@@ -5693,9 +5693,9 @@ const ui = {
|
|
|
5693
5693
|
class: "main-box flex-center"
|
|
5694
5694
|
};
|
|
5695
5695
|
function Br(t, e, a, r, i, o) {
|
|
5696
|
-
var p, n, d, b, u, A, w, m, v,
|
|
5696
|
+
var p, n, d, b, u, A, w, m, v, y, L, P, M, I, j, W, Y, K, V, ee, ce, he, de, pe, me, ue, ge, te, oe, Ae, ie, Q, q, ye, re, se, ne, x, Le, xe, Be, Ie, Ee, De, Pe, ke, ze, Me, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe, X, qe, Ve, Ze, $e, et, tt, at, it, rt;
|
|
5697
5697
|
const l = z("LocationFilled"), c = z("ElIcon"), h = z("ElTooltip");
|
|
5698
|
-
return fe((g(),
|
|
5698
|
+
return fe((g(), f("div", gi, [
|
|
5699
5699
|
s("div", Ai, [
|
|
5700
5700
|
s("div", yi, [
|
|
5701
5701
|
s("div", fi, [
|
|
@@ -5708,11 +5708,11 @@ function Br(t, e, a, r, i, o) {
|
|
|
5708
5708
|
s("div", wi, B(o.computeLat((p = i.point) == null ? void 0 : p.lat)) + "," + B(o.computeLng((n = i.point) == null ? void 0 : n.lng)), 1)
|
|
5709
5709
|
]),
|
|
5710
5710
|
s("div", bi, [
|
|
5711
|
-
i.showTables ? (g(),
|
|
5711
|
+
i.showTables ? (g(), f("div", {
|
|
5712
5712
|
key: 0,
|
|
5713
5713
|
class: "iconfont toggle",
|
|
5714
5714
|
onClick: e[0] || (e[0] = (C) => i.showTables = !i.showTables)
|
|
5715
|
-
}, "")) : (g(),
|
|
5715
|
+
}, "")) : (g(), f("div", {
|
|
5716
5716
|
key: 1,
|
|
5717
5717
|
class: "iconfont toggle",
|
|
5718
5718
|
onClick: e[1] || (e[1] = (C) => i.showTables = !i.showTables)
|
|
@@ -5723,9 +5723,9 @@ function Br(t, e, a, r, i, o) {
|
|
|
5723
5723
|
}, "")
|
|
5724
5724
|
])
|
|
5725
5725
|
]),
|
|
5726
|
-
i.loading ? (g(),
|
|
5726
|
+
i.loading ? (g(), f("div", xr, e[42] || (e[42] = [
|
|
5727
5727
|
s("img", { src: mi }, null, -1)
|
|
5728
|
-
]))) : (g(),
|
|
5728
|
+
]))) : (g(), f("div", {
|
|
5729
5729
|
key: 0,
|
|
5730
5730
|
class: H(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
5731
5731
|
id: "meteoMainBox"
|
|
@@ -5741,12 +5741,12 @@ function Br(t, e, a, r, i, o) {
|
|
|
5741
5741
|
default: ae(() => {
|
|
5742
5742
|
var C, E, ot, st;
|
|
5743
5743
|
return [
|
|
5744
|
-
(E = (C = i.currentHourData) == null ? void 0 : C.weather) != null && E.url ? (g(),
|
|
5744
|
+
(E = (C = i.currentHourData) == null ? void 0 : C.weather) != null && E.url ? (g(), f("img", {
|
|
5745
5745
|
key: 0,
|
|
5746
5746
|
class: "iconfont icon",
|
|
5747
5747
|
style: { "margin-right": "5px" },
|
|
5748
5748
|
src: (st = (ot = i.currentHourData) == null ? void 0 : ot.weather) == null ? void 0 : st.url
|
|
5749
|
-
}, null, 8, Ci)) : (g(),
|
|
5749
|
+
}, null, 8, Ci)) : (g(), f("span", xi))
|
|
5750
5750
|
];
|
|
5751
5751
|
}),
|
|
5752
5752
|
_: 1
|
|
@@ -5764,7 +5764,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5764
5764
|
]),
|
|
5765
5765
|
s("div", Di, [
|
|
5766
5766
|
e[10] || (e[10] = s("label", null, "Visibility : ", -1)),
|
|
5767
|
-
s("span", null, B(o.roundPrecision((L = (
|
|
5767
|
+
s("span", null, B(o.roundPrecision((L = (y = i.currentHourData) == null ? void 0 : y.weather) == null ? void 0 : L.visibility, 0)) + " nm", 1)
|
|
5768
5768
|
]),
|
|
5769
5769
|
s("div", Pi, [
|
|
5770
5770
|
e[11] || (e[11] = s("label", null, "Wind : ", -1)),
|
|
@@ -5806,7 +5806,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5806
5806
|
U("Hours"),
|
|
5807
5807
|
s("span", { class: "unit" }, "(LT)")
|
|
5808
5808
|
], -1)),
|
|
5809
|
-
(g(!0),
|
|
5809
|
+
(g(!0), f(_, null, N(i.tableData.hours, (C) => (g(), f("th", {
|
|
5810
5810
|
rowspan: "1",
|
|
5811
5811
|
colspan: "1",
|
|
5812
5812
|
key: `HourL${C}`
|
|
@@ -5821,7 +5821,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5821
5821
|
U("UTC"),
|
|
5822
5822
|
s("span", { class: "unit" })
|
|
5823
5823
|
], -1)),
|
|
5824
|
-
(g(!0),
|
|
5824
|
+
(g(!0), f(_, null, N(i.tableData.hours, (C) => (g(), f("th", {
|
|
5825
5825
|
rowspan: "1",
|
|
5826
5826
|
colspan: "1",
|
|
5827
5827
|
key: `HourZ${C}`
|
|
@@ -5833,7 +5833,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5833
5833
|
colspan: "1",
|
|
5834
5834
|
class: "tr-title"
|
|
5835
5835
|
}, null, -1)),
|
|
5836
|
-
(g(!0),
|
|
5836
|
+
(g(!0), f(_, null, N(i.tableData.weatherUrls, (C, E) => (g(), f("th", {
|
|
5837
5837
|
rowspan: "1",
|
|
5838
5838
|
colspan: "1",
|
|
5839
5839
|
key: `weatherUrls${E}${C}`
|
|
@@ -5845,7 +5845,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5845
5845
|
"show-after": 500
|
|
5846
5846
|
}, {
|
|
5847
5847
|
default: ae(() => [
|
|
5848
|
-
C ? (g(),
|
|
5848
|
+
C ? (g(), f("img", {
|
|
5849
5849
|
key: 0,
|
|
5850
5850
|
class: "iconfont weather-icon",
|
|
5851
5851
|
src: C
|
|
@@ -5864,7 +5864,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5864
5864
|
U("Temp"),
|
|
5865
5865
|
s("span", { class: "unit" }, "°C")
|
|
5866
5866
|
], -1)),
|
|
5867
|
-
(g(!0),
|
|
5867
|
+
(g(!0), f(_, null, N(i.tableData.temp, (C, E) => (g(), f("td", {
|
|
5868
5868
|
rowspan: "1",
|
|
5869
5869
|
colspan: "1",
|
|
5870
5870
|
key: `weatherUrls${E}${C}`
|
|
@@ -5879,7 +5879,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5879
5879
|
U("Precip"),
|
|
5880
5880
|
s("span", { class: "unit" }, "mm")
|
|
5881
5881
|
], -1)),
|
|
5882
|
-
(g(!0),
|
|
5882
|
+
(g(!0), f(_, null, N(i.tableData.precip1h, (C, E) => (g(), f("td", {
|
|
5883
5883
|
rowspan: "1",
|
|
5884
5884
|
colspan: "1",
|
|
5885
5885
|
key: `precip1h${E}${C}`
|
|
@@ -5894,7 +5894,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5894
5894
|
U("Visibility"),
|
|
5895
5895
|
s("span", { class: "unit" }, "nm")
|
|
5896
5896
|
], -1)),
|
|
5897
|
-
(g(!0),
|
|
5897
|
+
(g(!0), f(_, null, N(i.tableData.visibility, (C, E) => (g(), f("td", {
|
|
5898
5898
|
rowspan: "1",
|
|
5899
5899
|
colspan: "1",
|
|
5900
5900
|
key: `visibility${E}${C}`
|
|
@@ -5909,12 +5909,12 @@ function Br(t, e, a, r, i, o) {
|
|
|
5909
5909
|
U("Wind gust"),
|
|
5910
5910
|
s("span", { class: "unit" }, "kts")
|
|
5911
5911
|
], -1)),
|
|
5912
|
-
(g(!0),
|
|
5912
|
+
(g(!0), f(_, null, N(i.tableData.windGust, (C, E) => (g(), f("td", {
|
|
5913
5913
|
rowspan: "1",
|
|
5914
5914
|
colspan: "1",
|
|
5915
5915
|
key: `windGust${E}${C}`
|
|
5916
5916
|
}, [
|
|
5917
|
-
isNaN(i.tableData.windDir[E]) ? O("", !0) : (g(),
|
|
5917
|
+
isNaN(i.tableData.windDir[E]) ? O("", !0) : (g(), f("span", {
|
|
5918
5918
|
key: 0,
|
|
5919
5919
|
class: "iconfont icon blue",
|
|
5920
5920
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.windDir[E]}deg)` })
|
|
@@ -5935,7 +5935,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5935
5935
|
U("Hours"),
|
|
5936
5936
|
s("span", { class: "unit" }, "(LT)")
|
|
5937
5937
|
], -1)),
|
|
5938
|
-
(g(!0),
|
|
5938
|
+
(g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
|
|
5939
5939
|
rowspan: "1",
|
|
5940
5940
|
colspan: "1",
|
|
5941
5941
|
key: `currenthoursL${E}${C}`
|
|
@@ -5950,7 +5950,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
5950
5950
|
U("UTC"),
|
|
5951
5951
|
s("span", { class: "unit" })
|
|
5952
5952
|
], -1)),
|
|
5953
|
-
(g(!0),
|
|
5953
|
+
(g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
|
|
5954
5954
|
rowspan: "1",
|
|
5955
5955
|
colspan: "1",
|
|
5956
5956
|
key: `currenthoursZ${E}${C}`
|
|
@@ -5965,12 +5965,12 @@ function Br(t, e, a, r, i, o) {
|
|
|
5965
5965
|
U("Wind"),
|
|
5966
5966
|
s("span", { class: "unit" }, "kts")
|
|
5967
5967
|
], -1)),
|
|
5968
|
-
(g(!0),
|
|
5968
|
+
(g(!0), f(_, null, N(i.tableData.windSpeed, (C, E) => (g(), f("td", {
|
|
5969
5969
|
rowspan: "1",
|
|
5970
5970
|
colspan: "1",
|
|
5971
5971
|
key: `windSpeed${E}${C}`
|
|
5972
5972
|
}, [
|
|
5973
|
-
isNaN(i.tableData.windDir[E]) ? O("", !0) : (g(),
|
|
5973
|
+
isNaN(i.tableData.windDir[E]) ? O("", !0) : (g(), f("span", {
|
|
5974
5974
|
key: 0,
|
|
5975
5975
|
class: "iconfont icon wind",
|
|
5976
5976
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.windDir[E]}deg)` })
|
|
@@ -5987,12 +5987,12 @@ function Br(t, e, a, r, i, o) {
|
|
|
5987
5987
|
U("Sig Wave"),
|
|
5988
5988
|
s("span", { class: "unit" }, "m")
|
|
5989
5989
|
], -1)),
|
|
5990
|
-
(g(!0),
|
|
5990
|
+
(g(!0), f(_, null, N(i.tableData.sigwaveHeight, (C, E) => (g(), f("td", {
|
|
5991
5991
|
rowspan: "1",
|
|
5992
5992
|
colspan: "1",
|
|
5993
5993
|
key: `sigwaveHeight${E}${C}`
|
|
5994
5994
|
}, [
|
|
5995
|
-
isNaN(i.tableData.sigwaveDir[E]) ? O("", !0) : (g(),
|
|
5995
|
+
isNaN(i.tableData.sigwaveDir[E]) ? O("", !0) : (g(), f("span", {
|
|
5996
5996
|
key: 0,
|
|
5997
5997
|
class: "iconfont icon sigwave",
|
|
5998
5998
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[E]}deg)` })
|
|
@@ -6009,12 +6009,12 @@ function Br(t, e, a, r, i, o) {
|
|
|
6009
6009
|
U("Wind Wave"),
|
|
6010
6010
|
s("span", { class: "unit" }, "m")
|
|
6011
6011
|
], -1)),
|
|
6012
|
-
(g(!0),
|
|
6012
|
+
(g(!0), f(_, null, N(i.tableData.windwaveHeight, (C, E) => (g(), f("td", {
|
|
6013
6013
|
rowspan: "1",
|
|
6014
6014
|
colspan: "1",
|
|
6015
6015
|
key: `windwaveHeight${E}${C}`
|
|
6016
6016
|
}, [
|
|
6017
|
-
isNaN(i.tableData.sigwaveDir[E]) ? O("", !0) : (g(),
|
|
6017
|
+
isNaN(i.tableData.sigwaveDir[E]) ? O("", !0) : (g(), f("span", {
|
|
6018
6018
|
key: 0,
|
|
6019
6019
|
class: "iconfont icon windwave",
|
|
6020
6020
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[E]}deg)` })
|
|
@@ -6031,12 +6031,12 @@ function Br(t, e, a, r, i, o) {
|
|
|
6031
6031
|
U("Swell"),
|
|
6032
6032
|
s("span", { class: "unit" }, "m")
|
|
6033
6033
|
], -1)),
|
|
6034
|
-
(g(!0),
|
|
6034
|
+
(g(!0), f(_, null, N(i.tableData.swellHeight, (C, E) => (g(), f("td", {
|
|
6035
6035
|
rowspan: "1",
|
|
6036
6036
|
colspan: "1",
|
|
6037
6037
|
key: `swellHeight${E}${C}`
|
|
6038
6038
|
}, [
|
|
6039
|
-
isNaN(i.tableData.swellDir[E]) ? O("", !0) : (g(),
|
|
6039
|
+
isNaN(i.tableData.swellDir[E]) ? O("", !0) : (g(), f("span", {
|
|
6040
6040
|
key: 0,
|
|
6041
6041
|
class: "iconfont icon swell",
|
|
6042
6042
|
style: J({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[E]}deg)` })
|
|
@@ -6053,12 +6053,12 @@ function Br(t, e, a, r, i, o) {
|
|
|
6053
6053
|
U("Current"),
|
|
6054
6054
|
s("span", { class: "unit" }, "kts")
|
|
6055
6055
|
], -1)),
|
|
6056
|
-
(g(!0),
|
|
6056
|
+
(g(!0), f(_, null, N(i.tableData.currentSpeed, (C, E) => (g(), f("td", {
|
|
6057
6057
|
rowspan: "1",
|
|
6058
6058
|
colspan: "1",
|
|
6059
6059
|
key: `currentSpeed${E}${C}`
|
|
6060
6060
|
}, [
|
|
6061
|
-
isNaN(i.tableData.currentDir[E]) ? O("", !0) : (g(),
|
|
6061
|
+
isNaN(i.tableData.currentDir[E]) ? O("", !0) : (g(), f("span", {
|
|
6062
6062
|
key: 0,
|
|
6063
6063
|
class: "iconfont icon current",
|
|
6064
6064
|
id: "meteoGrayIcon",
|
|
@@ -6080,7 +6080,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6080
6080
|
U("Hours"),
|
|
6081
6081
|
s("span", { class: "unit" }, "(LT)")
|
|
6082
6082
|
], -1)),
|
|
6083
|
-
(g(!0),
|
|
6083
|
+
(g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
|
|
6084
6084
|
rowspan: "1",
|
|
6085
6085
|
colspan: "1",
|
|
6086
6086
|
key: `seahoursL${E}${C}`
|
|
@@ -6095,7 +6095,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6095
6095
|
U("UTC"),
|
|
6096
6096
|
s("span", { class: "unit" })
|
|
6097
6097
|
], -1)),
|
|
6098
|
-
(g(!0),
|
|
6098
|
+
(g(!0), f(_, null, N(i.tableData.hours, (C, E) => (g(), f("th", {
|
|
6099
6099
|
rowspan: "1",
|
|
6100
6100
|
colspan: "1",
|
|
6101
6101
|
key: `seahoursZ${E}${C}`
|
|
@@ -6110,7 +6110,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6110
6110
|
U("SeaLevel"),
|
|
6111
6111
|
s("span", { class: "unit" }, "m")
|
|
6112
6112
|
], -1)),
|
|
6113
|
-
(g(!0),
|
|
6113
|
+
(g(!0), f(_, null, N(i.tableData.seaLevel, (C, E) => (g(), f("td", {
|
|
6114
6114
|
rowspan: "1",
|
|
6115
6115
|
colspan: "1",
|
|
6116
6116
|
key: `SeaLevel${E}${C}`
|
|
@@ -6125,7 +6125,7 @@ function Br(t, e, a, r, i, o) {
|
|
|
6125
6125
|
U("SeaTemp"),
|
|
6126
6126
|
s("span", { class: "unit" }, "°C")
|
|
6127
6127
|
], -1)),
|
|
6128
|
-
(g(!0),
|
|
6128
|
+
(g(!0), f(_, null, N(i.tableData.seaTemp, (C, E) => (g(), f("td", {
|
|
6129
6129
|
rowspan: "1",
|
|
6130
6130
|
colspan: "1",
|
|
6131
6131
|
key: `SeaTemp${E}${C}`
|
|
@@ -6134,26 +6134,26 @@ function Br(t, e, a, r, i, o) {
|
|
|
6134
6134
|
], 512), [
|
|
6135
6135
|
[we, i.activeIndex === 3]
|
|
6136
6136
|
]),
|
|
6137
|
-
i.activeIndex === 3 ? (g(),
|
|
6137
|
+
i.activeIndex === 3 ? (g(), f("div", ir, e[30] || (e[30] = [
|
|
6138
6138
|
s("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px" } }, "*Sea level height accounts for tides, barometer effects, and global variations. Based on mean sea level, accuracy is limited in coastal areas. For coastal navigation, use data from Tides Tab.", -1)
|
|
6139
6139
|
]))) : O("", !0),
|
|
6140
6140
|
fe(s("table", rr, [
|
|
6141
6141
|
s("tr", or, [
|
|
6142
|
-
(g(!0),
|
|
6142
|
+
(g(!0), f(_, null, N(i.tideTableData, (C, E) => (g(), f("th", {
|
|
6143
6143
|
rowspan: "1",
|
|
6144
6144
|
colspan: "1",
|
|
6145
6145
|
key: `Tide-tr-${E}${C}`
|
|
6146
6146
|
}, B(C.type) + " Tide", 1))), 128))
|
|
6147
6147
|
]),
|
|
6148
6148
|
s("tr", sr, [
|
|
6149
|
-
(g(!0),
|
|
6149
|
+
(g(!0), f(_, null, N(i.tideTableData, (C, E) => (g(), f("td", {
|
|
6150
6150
|
rowspan: "1",
|
|
6151
6151
|
colspan: "1",
|
|
6152
6152
|
key: `Tide-date-${E}${C}`
|
|
6153
6153
|
}, B(o.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
|
|
6154
6154
|
]),
|
|
6155
6155
|
s("tr", nr, [
|
|
6156
|
-
(g(!0),
|
|
6156
|
+
(g(!0), f(_, null, N(i.tideTableData, (C, E) => (g(), f("td", {
|
|
6157
6157
|
rowspan: "1",
|
|
6158
6158
|
colspan: "1",
|
|
6159
6159
|
key: `Tide-height-${E}${C}`
|
|
@@ -6323,7 +6323,7 @@ const Ir = /* @__PURE__ */ T(ui, [["render", Br], ["__scopeId", "data-v-cdc6da70
|
|
|
6323
6323
|
}
|
|
6324
6324
|
};
|
|
6325
6325
|
function Dr(t, e, a, r, i, o) {
|
|
6326
|
-
return g(),
|
|
6326
|
+
return g(), f("div");
|
|
6327
6327
|
}
|
|
6328
6328
|
const Pr = /* @__PURE__ */ T(Er, [["render", Dr]]), kr = {
|
|
6329
6329
|
name: "IdmGmdssArea",
|
|
@@ -6446,7 +6446,7 @@ const Pr = /* @__PURE__ */ T(Er, [["render", Dr]]), kr = {
|
|
|
6446
6446
|
}
|
|
6447
6447
|
};
|
|
6448
6448
|
function zr(t, e, a, r, i, o) {
|
|
6449
|
-
return g(),
|
|
6449
|
+
return g(), f("div");
|
|
6450
6450
|
}
|
|
6451
6451
|
const Mr = /* @__PURE__ */ T(kr, [["render", zr]]), Tr = {
|
|
6452
6452
|
name: "IdmEcaZone",
|
|
@@ -6537,7 +6537,7 @@ const Mr = /* @__PURE__ */ T(kr, [["render", zr]]), Tr = {
|
|
|
6537
6537
|
}
|
|
6538
6538
|
};
|
|
6539
6539
|
function Qr(t, e, a, r, i, o) {
|
|
6540
|
-
return g(),
|
|
6540
|
+
return g(), f("div");
|
|
6541
6541
|
}
|
|
6542
6542
|
const Sr = /* @__PURE__ */ T(Tr, [["render", Qr]]);
|
|
6543
6543
|
const _r = {
|
|
@@ -6673,7 +6673,7 @@ const _r = {
|
|
|
6673
6673
|
}, Hr = { id: "idm-gl3-zone-info" }, Or = ["innerHTML"];
|
|
6674
6674
|
function Nr(t, e, a, r, i, o) {
|
|
6675
6675
|
var l;
|
|
6676
|
-
return fe((g(),
|
|
6676
|
+
return fe((g(), f("div", Hr, [
|
|
6677
6677
|
s("div", {
|
|
6678
6678
|
class: "iconfont close",
|
|
6679
6679
|
onClick: e[0] || (e[0] = (c) => i.showZone = !1)
|
|
@@ -6790,7 +6790,7 @@ const Rr = {
|
|
|
6790
6790
|
style: { "align-items": "flex-start" }
|
|
6791
6791
|
}, Xr = { class: "meteo-forecast flex-end" };
|
|
6792
6792
|
function Jr(t, e, a, r, i, o) {
|
|
6793
|
-
return fe((g(),
|
|
6793
|
+
return fe((g(), f("div", Fr, [
|
|
6794
6794
|
s("div", {
|
|
6795
6795
|
class: "close iconfont",
|
|
6796
6796
|
onClick: e[0] || (e[0] = (l) => i.showPort = !1)
|
|
@@ -6893,7 +6893,7 @@ const qr = /* @__PURE__ */ T(Rr, [["render", Jr], ["__scopeId", "data-v-2fc5fc5e
|
|
|
6893
6893
|
}
|
|
6894
6894
|
};
|
|
6895
6895
|
function Zr(t, e, a, r, i, o) {
|
|
6896
|
-
return g(),
|
|
6896
|
+
return g(), f("div");
|
|
6897
6897
|
}
|
|
6898
6898
|
const $r = /* @__PURE__ */ T(Vr, [["render", Zr]]), eo = {
|
|
6899
6899
|
name: "IdmTimezone",
|
|
@@ -7061,7 +7061,7 @@ const $r = /* @__PURE__ */ T(Vr, [["render", Zr]]), eo = {
|
|
|
7061
7061
|
}
|
|
7062
7062
|
};
|
|
7063
7063
|
function to(t, e, a, r, i, o) {
|
|
7064
|
-
return g(),
|
|
7064
|
+
return g(), f("div");
|
|
7065
7065
|
}
|
|
7066
7066
|
const ao = /* @__PURE__ */ T(eo, [["render", to]]), io = {
|
|
7067
7067
|
name: "IdmVoluntaryReportingArea",
|
|
@@ -7152,7 +7152,7 @@ const ao = /* @__PURE__ */ T(eo, [["render", to]]), io = {
|
|
|
7152
7152
|
}
|
|
7153
7153
|
};
|
|
7154
7154
|
function ro(t, e, a, r, i, o) {
|
|
7155
|
-
return g(),
|
|
7155
|
+
return g(), f("div");
|
|
7156
7156
|
}
|
|
7157
7157
|
const oo = /* @__PURE__ */ T(io, [["render", ro]]), so = {
|
|
7158
7158
|
name: "IdmSpecialArea",
|
|
@@ -7245,7 +7245,7 @@ const oo = /* @__PURE__ */ T(io, [["render", ro]]), so = {
|
|
|
7245
7245
|
}
|
|
7246
7246
|
};
|
|
7247
7247
|
function no(t, e, a, r, i, o) {
|
|
7248
|
-
return g(),
|
|
7248
|
+
return g(), f("div");
|
|
7249
7249
|
}
|
|
7250
7250
|
const lo = /* @__PURE__ */ T(so, [["render", no]]), co = {
|
|
7251
7251
|
name: "IdmTerminator",
|
|
@@ -7297,7 +7297,7 @@ const lo = /* @__PURE__ */ T(so, [["render", no]]), co = {
|
|
|
7297
7297
|
}
|
|
7298
7298
|
};
|
|
7299
7299
|
function ho(t, e, a, r, i, o) {
|
|
7300
|
-
return g(),
|
|
7300
|
+
return g(), f("div");
|
|
7301
7301
|
}
|
|
7302
7302
|
const po = /* @__PURE__ */ T(co, [["render", ho]]);
|
|
7303
7303
|
const mo = {
|
|
@@ -7457,7 +7457,7 @@ const mo = {
|
|
|
7457
7457
|
}
|
|
7458
7458
|
};
|
|
7459
7459
|
function uo(t, e, a, r, i, o) {
|
|
7460
|
-
return i.lngLat ? (g(),
|
|
7460
|
+
return i.lngLat ? (g(), f("div", {
|
|
7461
7461
|
key: 0,
|
|
7462
7462
|
class: "lat-lng-tip",
|
|
7463
7463
|
style: J({ right: i.right + "px", bottom: a.bottom })
|
|
@@ -7763,7 +7763,7 @@ const ct = /* @__PURE__ */ T(mo, [["render", uo], ["__scopeId", "data-v-ad66a24c
|
|
|
7763
7763
|
}
|
|
7764
7764
|
};
|
|
7765
7765
|
function Ao(t, e, a, r, i, o) {
|
|
7766
|
-
return g(),
|
|
7766
|
+
return g(), f("div");
|
|
7767
7767
|
}
|
|
7768
7768
|
const yo = /* @__PURE__ */ T(go, [["render", Ao]]);
|
|
7769
7769
|
const fo = {
|
|
@@ -7821,7 +7821,7 @@ const fo = {
|
|
|
7821
7821
|
}, wo = { key: 0 }, bo = { class: "bar-item" };
|
|
7822
7822
|
function vo(t, e, a, r, i, o) {
|
|
7823
7823
|
const l = z("ElTooltip");
|
|
7824
|
-
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (g(),
|
|
7824
|
+
return a.enabled && a.permission & i.helper.LEVEL.Supper ? (g(), f("div", wo, [
|
|
7825
7825
|
s("div", {
|
|
7826
7826
|
class: "menu-bar-box",
|
|
7827
7827
|
style: J({ position: "absolute", right: i.right + "px", bottom: a.bottom })
|
|
@@ -8118,10 +8118,11 @@ const Mo = {
|
|
|
8118
8118
|
},
|
|
8119
8119
|
activeWeatherLayers: {
|
|
8120
8120
|
handler() {
|
|
8121
|
-
var
|
|
8121
|
+
var a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v, y;
|
|
8122
8122
|
if (!this.map)
|
|
8123
8123
|
return !1;
|
|
8124
|
-
|
|
8124
|
+
const t = this.activeWeatherLayers.some((L) => L.key === "wind" && L.particle === !0 || L.key === "current" && L.particle === !0 || L.key === "temp" || L.key === "water-temp"), e = this.activeWeatherLayers.some((L) => L.key === "visibility" || L.key === "precip3h");
|
|
8125
|
+
this.activeWeatherLayers.length > 0 ? (t ? (r = (a = this.map) == null ? void 0 : a.getLayer(this.enc)) == null || r.setLayoutProperty("visibility", "none") : (o = (i = this.map) == null ? void 0 : i.getLayer(this.enc)) == null || o.setLayoutProperty("visibility", "visible"), (c = (l = this.map) == null ? void 0 : l.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || c.setLayoutProperty("visibility", "visible"), (p = this.map) != null && p.getLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((b = this.map) == null || b.moveLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), e && ((A = this.map) == null || A.moveLayer(this.helper.mapboxCustomer.layers.countryBoundary.id, (u = this.viewport) == null ? void 0 : u.rampColorLayer))) : ((m = (w = this.map) == null ? void 0 : w.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || m.setLayoutProperty("visibility", "none"), (y = (v = this.map) == null ? void 0 : v.getLayer(this.enc)) == null || y.setLayoutProperty("visibility", "visible")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
8125
8126
|
},
|
|
8126
8127
|
immediate: !0
|
|
8127
8128
|
},
|
|
@@ -8180,21 +8181,21 @@ const Mo = {
|
|
|
8180
8181
|
const u = ((i = this.map) == null ? void 0 : i.getZoom()) + 1, A = (o = this.map) == null ? void 0 : o.getBounds(), w = `${A._sw.lng},${A._sw.lat},${A._ne.lng},${A._ne.lat}`;
|
|
8181
8182
|
if (this.particleFactor && ((l = this.$refs.layer) != null && l.autoActive)) {
|
|
8182
8183
|
const m = Ke.WEATHER_LAYERS.find((v) => {
|
|
8183
|
-
var
|
|
8184
|
-
return ((
|
|
8184
|
+
var y;
|
|
8185
|
+
return ((y = v.peer) == null ? void 0 : y.weight) === this.particleFactor.weight;
|
|
8185
8186
|
});
|
|
8186
8187
|
this.particleFactor.particle && (this.showWindParticle || this.showCurrentParticle) ? this.weatherWeight = this.weatherWeight & m.weight ? this.weatherWeight : this.weatherWeight + m.weight : this.weatherWeight = this.weatherWeight & m.weight ? this.weatherWeight - m.weight : this.weatherWeight;
|
|
8187
8188
|
}
|
|
8188
8189
|
if (this.weatherWeight > 0) {
|
|
8189
8190
|
let m = this.weatherWeight, v;
|
|
8190
8191
|
if (t.tropicals || this.weatherWeight & 256 && (v = this.weatherLayers.tropicals, v && (m -= 256, v.version = Math.random() + 1)), m > 0) {
|
|
8191
|
-
const
|
|
8192
|
+
const y = await le.get(`${this.gateway}/api/arc/weather/layers/links?l=${m}&v=${this.source}&z=${u}&bbox=${w}&t=${this.ts}`, {
|
|
8192
8193
|
headers: {
|
|
8193
8194
|
Authorization: this.token || this.defaultMeteoToken
|
|
8194
8195
|
}
|
|
8195
8196
|
});
|
|
8196
|
-
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((c =
|
|
8197
|
-
const L = (h =
|
|
8197
|
+
if (r = (/* @__PURE__ */ new Date()).valueOf() - (e + a), console.log("weather links elapsed: ", r, ", total: ", a += r), ((c = y == null ? void 0 : y.data) == null ? void 0 : c.code) === 0) {
|
|
8198
|
+
const L = (h = y == null ? void 0 : y.data) == null ? void 0 : h.data, P = [];
|
|
8198
8199
|
for (const I in L)
|
|
8199
8200
|
I === "ice-edge" && (L[I] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), I !== "tropicals" && P.push(
|
|
8200
8201
|
le.get(L[I], {
|
|
@@ -8285,8 +8286,8 @@ const Mo = {
|
|
|
8285
8286
|
);
|
|
8286
8287
|
const u = await Promise.all(b);
|
|
8287
8288
|
this.otherLayers = { enc: l, world12nm: c, worldMarine: h, chinaRoute: p }, u.map((A) => {
|
|
8288
|
-
var v,
|
|
8289
|
-
const w = ((v = A == null ? void 0 : A.data) == null ? void 0 : v.data) || (A == null ? void 0 : A.data), m = (L = (
|
|
8289
|
+
var v, y, L;
|
|
8290
|
+
const w = ((v = A == null ? void 0 : A.data) == null ? void 0 : v.data) || (A == null ? void 0 : A.data), m = (L = (y = A == null ? void 0 : A.config) == null ? void 0 : y.headers) == null ? void 0 : L.key;
|
|
8290
8291
|
this.otherLayers[m] = w;
|
|
8291
8292
|
});
|
|
8292
8293
|
}
|
|
@@ -8308,8 +8309,8 @@ const Mo = {
|
|
|
8308
8309
|
})
|
|
8309
8310
|
);
|
|
8310
8311
|
(await Promise.all(b)).map((A) => {
|
|
8311
|
-
var v,
|
|
8312
|
-
const w = ((v = A == null ? void 0 : A.data) == null ? void 0 : v.data) || (A == null ? void 0 : A.data), m = (L = (
|
|
8312
|
+
var v, y, L;
|
|
8313
|
+
const w = ((v = A == null ? void 0 : A.data) == null ? void 0 : v.data) || (A == null ? void 0 : A.data), m = (L = (y = A == null ? void 0 : A.config) == null ? void 0 : y.headers) == null ? void 0 : L.key;
|
|
8313
8314
|
this.otherLayers[m] = w;
|
|
8314
8315
|
});
|
|
8315
8316
|
}
|
|
@@ -8378,35 +8379,35 @@ const Mo = {
|
|
|
8378
8379
|
for (const m in w)
|
|
8379
8380
|
if (m > c && m < h && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8380
8381
|
const v = w[m].lng;
|
|
8381
|
-
o > l ? v.forEach((
|
|
8382
|
+
o > l ? v.forEach((y, L) => {
|
|
8382
8383
|
var P, M;
|
|
8383
|
-
if (i <
|
|
8384
|
-
if ((
|
|
8385
|
-
const I = D.point([
|
|
8384
|
+
if (i < 2) {
|
|
8385
|
+
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8386
|
+
const I = D.point([y, m], {
|
|
8386
8387
|
val: w[m].val[L],
|
|
8387
8388
|
spd: (P = w[m].spd) == null ? void 0 : P[L]
|
|
8388
8389
|
});
|
|
8389
8390
|
A.push(I);
|
|
8390
8391
|
}
|
|
8391
|
-
} else if ((
|
|
8392
|
-
const I = D.point([
|
|
8392
|
+
} else if ((y >= o && y <= 180 || y >= -180 && y <= l) && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8393
|
+
const I = D.point([y, m], {
|
|
8393
8394
|
val: w[m].val[L],
|
|
8394
8395
|
spd: (M = w[m].spd) == null ? void 0 : M[L]
|
|
8395
8396
|
});
|
|
8396
8397
|
A.push(I);
|
|
8397
8398
|
}
|
|
8398
|
-
}) : v.forEach((
|
|
8399
|
+
}) : v.forEach((y, L) => {
|
|
8399
8400
|
var P, M;
|
|
8400
|
-
if (o <
|
|
8401
|
-
if ((
|
|
8402
|
-
const I = D.point([
|
|
8401
|
+
if (o < 2) {
|
|
8402
|
+
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8403
|
+
const I = D.point([y, m], {
|
|
8403
8404
|
val: w[m].val[L],
|
|
8404
8405
|
spd: (P = w[m].spd) == null ? void 0 : P[L]
|
|
8405
8406
|
});
|
|
8406
8407
|
A.push(I);
|
|
8407
8408
|
}
|
|
8408
|
-
} else if (
|
|
8409
|
-
const I = D.point([
|
|
8409
|
+
} else if (y >= o && y <= l && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8410
|
+
const I = D.point([y, m], {
|
|
8410
8411
|
val: w[m].val[L],
|
|
8411
8412
|
spd: (M = w[m].spd) == null ? void 0 : M[L]
|
|
8412
8413
|
});
|
|
@@ -8419,12 +8420,12 @@ const Mo = {
|
|
|
8419
8420
|
if (m) {
|
|
8420
8421
|
if (!m.data) {
|
|
8421
8422
|
const v = [];
|
|
8422
|
-
for (const
|
|
8423
|
-
const L = m.raw.LineString[
|
|
8423
|
+
for (const y in (d = m.raw) == null ? void 0 : d.LineString) {
|
|
8424
|
+
const L = m.raw.LineString[y];
|
|
8424
8425
|
for (const P of L)
|
|
8425
8426
|
v.push(
|
|
8426
8427
|
D.lineString(P, {
|
|
8427
|
-
val: Number(
|
|
8428
|
+
val: Number(y)
|
|
8428
8429
|
})
|
|
8429
8430
|
);
|
|
8430
8431
|
m.data = D.featureCollection(v);
|
|
@@ -8441,19 +8442,19 @@ const Mo = {
|
|
|
8441
8442
|
const m = this.weatherLayers[u].speed;
|
|
8442
8443
|
if (m) {
|
|
8443
8444
|
if (!m.data) {
|
|
8444
|
-
const
|
|
8445
|
+
const y = [];
|
|
8445
8446
|
for (const L in (b = m.raw) == null ? void 0 : b.Polygon) {
|
|
8446
8447
|
const P = m.raw.Polygon[L];
|
|
8447
8448
|
for (const M of P)
|
|
8448
|
-
|
|
8449
|
+
y.push(
|
|
8449
8450
|
D.polygon(M, {
|
|
8450
8451
|
val: Number(L)
|
|
8451
8452
|
})
|
|
8452
8453
|
);
|
|
8453
8454
|
}
|
|
8454
|
-
m.data = D.featureCollection(
|
|
8455
|
+
m.data = D.featureCollection(y);
|
|
8455
8456
|
}
|
|
8456
|
-
const v = i < this.zoom ? m.data.features.filter((
|
|
8457
|
+
const v = i < this.zoom ? m.data.features.filter((y) => y.properties.val > 0.5) : m.data.features;
|
|
8457
8458
|
A = A.concat(v), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("speed elapsed: ", a, ", total: ", e += a);
|
|
8458
8459
|
}
|
|
8459
8460
|
}
|
|
@@ -8462,33 +8463,33 @@ const Mo = {
|
|
|
8462
8463
|
for (const m in w)
|
|
8463
8464
|
if (m > c && m < h && (!(i <= this.zoom) || m % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8464
8465
|
const v = w[m].lng;
|
|
8465
|
-
o > l ? v.forEach((
|
|
8466
|
-
if (i <
|
|
8467
|
-
if ((
|
|
8468
|
-
const P = D.point([
|
|
8466
|
+
o > l ? v.forEach((y, L) => {
|
|
8467
|
+
if (i < 2) {
|
|
8468
|
+
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8469
|
+
const P = D.point([y, m], {
|
|
8469
8470
|
val: w[m].val[L],
|
|
8470
8471
|
spd: w[m].spd[L]
|
|
8471
8472
|
});
|
|
8472
8473
|
A.push(P);
|
|
8473
8474
|
}
|
|
8474
|
-
} else if ((
|
|
8475
|
-
const P = D.point([
|
|
8475
|
+
} else if ((y >= o && y <= 180 || y >= -180 && y <= l) && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8476
|
+
const P = D.point([y, m], {
|
|
8476
8477
|
val: w[m].val[L],
|
|
8477
8478
|
spd: w[m].spd[L]
|
|
8478
8479
|
});
|
|
8479
8480
|
A.push(P);
|
|
8480
8481
|
}
|
|
8481
|
-
}) : v.forEach((
|
|
8482
|
-
if (i <
|
|
8483
|
-
if ((
|
|
8484
|
-
const P = D.point([
|
|
8482
|
+
}) : v.forEach((y, L) => {
|
|
8483
|
+
if (i < 2) {
|
|
8484
|
+
if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8485
|
+
const P = D.point([y, m], {
|
|
8485
8486
|
val: w[m].val[L],
|
|
8486
8487
|
spd: w[m].spd[L]
|
|
8487
8488
|
});
|
|
8488
8489
|
A.push(P);
|
|
8489
8490
|
}
|
|
8490
|
-
} else if (
|
|
8491
|
-
const P = D.point([
|
|
8491
|
+
} else if (y >= o && y <= l && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8492
|
+
const P = D.point([y, m], {
|
|
8492
8493
|
val: w[m].val[L],
|
|
8493
8494
|
spd: w[m].spd[L]
|
|
8494
8495
|
});
|
|
@@ -8505,8 +8506,8 @@ const Mo = {
|
|
|
8505
8506
|
if (w) {
|
|
8506
8507
|
const m = [];
|
|
8507
8508
|
for (const v in w.Polygon) {
|
|
8508
|
-
const
|
|
8509
|
-
for (const L of
|
|
8509
|
+
const y = w.Polygon[v];
|
|
8510
|
+
for (const L of y)
|
|
8510
8511
|
m.push(
|
|
8511
8512
|
D.polygon(L, {
|
|
8512
8513
|
val: Number(v)
|
|
@@ -8514,8 +8515,8 @@ const Mo = {
|
|
|
8514
8515
|
);
|
|
8515
8516
|
}
|
|
8516
8517
|
for (const v in w.Point) {
|
|
8517
|
-
const
|
|
8518
|
-
for (const L of
|
|
8518
|
+
const y = w.Point[v];
|
|
8519
|
+
for (const L of y)
|
|
8519
8520
|
m.push(
|
|
8520
8521
|
...D.points(L, {
|
|
8521
8522
|
val: Number(v)
|
|
@@ -8534,8 +8535,8 @@ const Mo = {
|
|
|
8534
8535
|
if (w) {
|
|
8535
8536
|
const m = [];
|
|
8536
8537
|
for (const v in w.LineString) {
|
|
8537
|
-
const
|
|
8538
|
-
for (const L of
|
|
8538
|
+
const y = w.LineString[v];
|
|
8539
|
+
for (const L of y)
|
|
8539
8540
|
m.push(
|
|
8540
8541
|
D.lineString(L, {
|
|
8541
8542
|
val: Number(v)
|
|
@@ -8543,9 +8544,9 @@ const Mo = {
|
|
|
8543
8544
|
);
|
|
8544
8545
|
}
|
|
8545
8546
|
for (const v in w.Point)
|
|
8546
|
-
w.Point[v].lng.forEach((
|
|
8547
|
-
|
|
8548
|
-
D.point([
|
|
8547
|
+
w.Point[v].lng.forEach((y, L) => {
|
|
8548
|
+
y = G.convertToStdLng(y), m.push(
|
|
8549
|
+
D.point([y, v], {
|
|
8549
8550
|
val: w.Point[v].val[L],
|
|
8550
8551
|
type: w.Point[v].type[L]
|
|
8551
8552
|
})
|
|
@@ -8563,8 +8564,8 @@ const Mo = {
|
|
|
8563
8564
|
if (w) {
|
|
8564
8565
|
const m = [];
|
|
8565
8566
|
for (const v in w.LineString) {
|
|
8566
|
-
const
|
|
8567
|
-
for (const L of
|
|
8567
|
+
const y = w.LineString[v];
|
|
8568
|
+
for (const L of y)
|
|
8568
8569
|
m.push(
|
|
8569
8570
|
D.lineString(L, {
|
|
8570
8571
|
val: Number(v)
|
|
@@ -8644,8 +8645,8 @@ const Mo = {
|
|
|
8644
8645
|
}
|
|
8645
8646
|
},
|
|
8646
8647
|
handle3dToggle(t) {
|
|
8647
|
-
var e, a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v,
|
|
8648
|
-
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (c = this.map) != null && c.getLayer((l = this.viewport) == null ? void 0 : l.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((n = this.map) == null || n.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (b = this.map) != null && b.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((A = this.viewport) == null ? void 0 : A.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((
|
|
8648
|
+
var e, a, r, i, o, l, c, h, p, n, d, b, u, A, w, m, v, y, L, P;
|
|
8649
|
+
t ? (this.map.setProjection("globe"), this.mapProjection = "globe", (a = this.map) != null && a.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (c = this.map) != null && c.getLayer((l = this.viewport) == null ? void 0 : l.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((n = this.map) == null || n.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (b = this.map) != null && b.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((u = this.map) != null && u.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((A = this.viewport) == null ? void 0 : A.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (v = this.map) != null && v.getLayer((m = this.viewport) == null ? void 0 : m.particleLayer) && ((y = this.map) != null && y.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((P = this.map) == null || P.moveLayer((L = this.viewport) == null ? void 0 : L.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
8649
8650
|
},
|
|
8650
8651
|
handleParticle(t) {
|
|
8651
8652
|
this.particleFactor = t, this.weatherLayers[t.key] && (this.weatherLayers[t.key].particle = t.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -8670,8 +8671,8 @@ const Mo = {
|
|
|
8670
8671
|
};
|
|
8671
8672
|
function Qo(t, e, a, r, i, o) {
|
|
8672
8673
|
var Ae, ie, Q, q, ye, re, se, ne, x, Le, xe, Be, Ie, Ee, De, Pe, ke, ze, Me, Te, Qe, Se, _e, He, Oe, Ne, je, Re, Fe;
|
|
8673
|
-
const l = z("IdmGlLayer"), c = z("IdmENC"), h = z("IdmWorld12nm"), p = z("IdmWorldMarine"), n = z("IdmChinaRoute"), d = z("IdmSigWave"), b = z("IdmSwell"), u = z("IdmPrmsl"), A = z("IdmIceberg"), w = z("IdmTropicals"), m = z("IdmCurrents"), v = z("IdmCurrentParticle"),
|
|
8674
|
-
return a.map ? (g(),
|
|
8674
|
+
const l = z("IdmGlLayer"), c = z("IdmENC"), h = z("IdmWorld12nm"), p = z("IdmWorldMarine"), n = z("IdmChinaRoute"), d = z("IdmSigWave"), b = z("IdmSwell"), u = z("IdmPrmsl"), A = z("IdmIceberg"), w = z("IdmTropicals"), m = z("IdmCurrents"), v = z("IdmCurrentParticle"), y = z("IdmWindBarb"), L = z("IdmWindParticle"), P = z("IdmPrecip3h"), M = z("IdmVisibility"), I = z("IdmWaterTemp"), j = z("IdmTemp"), W = z("IdmArctic"), Y = z("IdmWarZone"), K = z("IdmGmdssArea"), V = z("IdmEcaZone"), ee = z("IdmAlertZone"), ce = z("IdmPort"), he = z("IdmLoadLine"), de = z("IdmTimezone"), pe = z("IdmVRA"), me = z("IdmSpecialArea"), ue = z("IdmTerminator"), ge = z("IdmLatLng"), te = z("IdmMeasure"), oe = z("IdmPoint");
|
|
8675
|
+
return a.map ? (g(), f("div", To, [
|
|
8675
8676
|
k(l, S({
|
|
8676
8677
|
ref: "layer",
|
|
8677
8678
|
map: a.map,
|
|
@@ -8774,7 +8775,7 @@ function Qo(t, e, a, r, i, o) {
|
|
|
8774
8775
|
"before-layer": a.beforeLayer,
|
|
8775
8776
|
"toggle-version": a.toggleVersion
|
|
8776
8777
|
}, t.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8777
|
-
k(
|
|
8778
|
+
k(y, S({
|
|
8778
8779
|
ref: "windBarb",
|
|
8779
8780
|
map: a.map,
|
|
8780
8781
|
"map-projection": i.mapProjection,
|