@idmwx/idmui-gl3 5.1.2 → 5.1.4
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 +55 -53
- package/dist/index.umd.cjs +9 -9
- package/dist/mapbox/src/index.vue.d.ts +4 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26,9 +26,9 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
26
26
|
})(b1, function(M) {
|
|
27
27
|
M.version === void 0 && M.default && (M = M.default);
|
|
28
28
|
var z = "0.5.47", O = {}, p = {}, o = {}, A = {}, a = {}, q;
|
|
29
|
-
(!M || typeof M.version != "string") &&
|
|
29
|
+
(!M || typeof M.version != "string") && e0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
|
|
30
30
|
var r = M.version.split("."), t = +r[0], n = +r[1];
|
|
31
|
-
(t < 2 || t === 2 && n < 6) &&
|
|
31
|
+
(t < 2 || t === 2 && n < 6) && e0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
|
|
32
32
|
function l(e) {
|
|
33
33
|
return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48;
|
|
34
34
|
}
|
|
@@ -106,7 +106,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
106
106
|
return this.abbrs[this._index(e)];
|
|
107
107
|
},
|
|
108
108
|
offset: function(e) {
|
|
109
|
-
return
|
|
109
|
+
return e0("zone.offset has been deprecated in favor of zone.utcOffset"), this.offsets[this._index(e)];
|
|
110
110
|
},
|
|
111
111
|
utcOffset: function(e) {
|
|
112
112
|
return this.offsets[this._index(e)];
|
|
@@ -146,7 +146,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
146
146
|
for (B(i), L = 0; L < i.length; L++)
|
|
147
147
|
N = i[L], a[N] = a[N] || {}, a[N][e] = !0;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function A0(e) {
|
|
150
150
|
var i = e.length, L = {}, N = [], w = {}, D, Z, S, G;
|
|
151
151
|
for (D = 0; D < i; D++)
|
|
152
152
|
if (S = e[D].offset, !w.hasOwnProperty(S)) {
|
|
@@ -166,11 +166,11 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
166
166
|
var i = A[i0(e)];
|
|
167
167
|
if (i)
|
|
168
168
|
return i;
|
|
169
|
-
|
|
169
|
+
e0("Moment Timezone found " + e + " from the Intl api, but did not have that data loaded.");
|
|
170
170
|
}
|
|
171
171
|
} catch {
|
|
172
172
|
}
|
|
173
|
-
var L = V(), N = L.length, w =
|
|
173
|
+
var L = V(), N = L.length, w = A0(L), D = [], Z, S, G;
|
|
174
174
|
for (S = 0; S < w.length; S++) {
|
|
175
175
|
for (Z = new F(p0(w[S])), G = 0; G < N; G++)
|
|
176
176
|
Z.scoreOffsetAt(L[G]);
|
|
@@ -236,13 +236,13 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
236
236
|
u0(e.zones), L0(e.links), r0(e.countries), I.dataVersion = e.version;
|
|
237
237
|
}
|
|
238
238
|
function P(e) {
|
|
239
|
-
return P.didShowError || (P.didShowError = !0,
|
|
239
|
+
return P.didShowError || (P.didShowError = !0, e0("moment.tz.zoneExists('" + e + "') has been deprecated in favor of !moment.tz.zone('" + e + "')")), !!p0(e);
|
|
240
240
|
}
|
|
241
241
|
function M0(e) {
|
|
242
242
|
var i = e._f === "X" || e._f === "x";
|
|
243
243
|
return !!(e._a && e._tzm === void 0 && !i);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function e0(e) {
|
|
246
246
|
typeof console < "u" && typeof console.error == "function" && console.error(e);
|
|
247
247
|
}
|
|
248
248
|
function I(e) {
|
|
@@ -263,7 +263,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
263
263
|
if (e) {
|
|
264
264
|
if (typeof e != "string")
|
|
265
265
|
throw new Error("Time zone name must be a string, got " + e + " [" + typeof e + "]");
|
|
266
|
-
return this._z = p0(e), this._z ? M.updateOffset(this, i) :
|
|
266
|
+
return this._z = p0(e), this._z ? M.updateOffset(this, i) : e0("Moment Timezone has no data for " + e + ". See http://momentjs.com/timezone/docs/#/data-loading/."), this;
|
|
267
267
|
}
|
|
268
268
|
if (this._z)
|
|
269
269
|
return this._z.name;
|
|
@@ -284,7 +284,7 @@ var F0 = { exports: {} }, G0 = { exports: {} };
|
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
b0.zoneName = W0(b0.zoneName), b0.zoneAbbr = W0(b0.zoneAbbr), b0.utc = l0(b0.utc), b0.local = l0(b0.local), b0.utcOffset = R0(b0.utcOffset), M.tz.setDefault = function(e) {
|
|
287
|
-
return (t < 2 || t === 2 && n < 9) &&
|
|
287
|
+
return (t < 2 || t === 2 && n < 9) && e0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = e ? p0(e) : null, M;
|
|
288
288
|
};
|
|
289
289
|
var o0 = M.momentProperties;
|
|
290
290
|
return Object.prototype.toString.call(o0) === "[object Array]" ? (o0.push("_z"), o0.push("_a")) : o0 && (o0._z = null), M;
|
|
@@ -1658,7 +1658,7 @@ function K1(b, M, z, O, p, o) {
|
|
|
1658
1658
|
modelValue: p.source,
|
|
1659
1659
|
"onUpdate:modelValue": M[16] || (M[16] = (t) => p.source = t),
|
|
1660
1660
|
class: "layer-radio flex-col-start-start",
|
|
1661
|
-
style: { "align-items": "flex-start" }
|
|
1661
|
+
style: { width: "180px", "align-items": "flex-start" }
|
|
1662
1662
|
}, {
|
|
1663
1663
|
default: a0(() => [
|
|
1664
1664
|
(s(!0), W(H, null, _(p.sourceList, (t, n) => (s(), V0(a, {
|
|
@@ -2114,10 +2114,10 @@ class C0 {
|
|
|
2114
2114
|
});
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
|
-
class
|
|
2117
|
+
class c0 {
|
|
2118
2118
|
}
|
|
2119
2119
|
// 顶点渲染
|
|
2120
|
-
Y(
|
|
2120
|
+
Y(c0, "vertexSchema", `
|
|
2121
2121
|
//canvas 坐标系上的坐标 (x, y)
|
|
2122
2122
|
attribute vec2 a_position; //像素坐标
|
|
2123
2123
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -2132,7 +2132,7 @@ Y(A0, "vertexSchema", `
|
|
|
2132
2132
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
2133
2133
|
v_texCoord = a_texCoord;
|
|
2134
2134
|
}`), // 类如风、流等u v双变量片元渲染
|
|
2135
|
-
Y(
|
|
2135
|
+
Y(c0, "uvFragmentSchema", `
|
|
2136
2136
|
precision mediump float;
|
|
2137
2137
|
uniform sampler2D u_image;
|
|
2138
2138
|
uniform vec2 u_range_u_v;
|
|
@@ -2151,7 +2151,7 @@ Y(A0, "uvFragmentSchema", `
|
|
|
2151
2151
|
|
|
2152
2152
|
gl_FragColor = color;
|
|
2153
2153
|
}`), // 类如浪、气压等单变量片元渲染
|
|
2154
|
-
Y(
|
|
2154
|
+
Y(c0, "fragmentSchema", `
|
|
2155
2155
|
precision mediump float;
|
|
2156
2156
|
uniform sampler2D u_image; // 灰度
|
|
2157
2157
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -4130,7 +4130,7 @@ const b2 = {
|
|
|
4130
4130
|
[1, "rgb(91, 136, 161)"]
|
|
4131
4131
|
];
|
|
4132
4132
|
this.rampColor = this.webgl.setup(this.context, b);
|
|
4133
|
-
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context,
|
|
4133
|
+
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context, c0.vertexSchema, c0.uvFragmentSchema);
|
|
4134
4134
|
this.program = M, this.aPositionBuffer = z;
|
|
4135
4135
|
}
|
|
4136
4136
|
this.handleParticleSetup();
|
|
@@ -4462,7 +4462,7 @@ const t2 = {
|
|
|
4462
4462
|
[1, "rgb(195,194,194)"]
|
|
4463
4463
|
];
|
|
4464
4464
|
this.rampColor = this.webgl.setup(this.context, b);
|
|
4465
|
-
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context,
|
|
4465
|
+
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context, c0.vertexSchema, c0.uvFragmentSchema);
|
|
4466
4466
|
this.program = M, this.aPositionBuffer = z;
|
|
4467
4467
|
}
|
|
4468
4468
|
this.handleParticleSetup();
|
|
@@ -5392,7 +5392,7 @@ const B2 = {
|
|
|
5392
5392
|
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), (b = this.interpolateMarkers) == null || b.forEach((M) => M == null ? void 0 : M.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));
|
|
5393
5393
|
},
|
|
5394
5394
|
handleDateChange() {
|
|
5395
|
-
var b, M, z, O, p, o, A, a, q, r, t, n, l, d, B, R, f, h, m, X, E, y, F, J, V, u, g,
|
|
5395
|
+
var b, M, z, O, p, o, A, a, q, r, t, n, l, d, B, R, f, h, m, X, E, y, F, J, V, u, g, A0, n0, h0, i0, u0, p0, m0, B0, L0;
|
|
5396
5396
|
if ((b = this.interpolateMarkers) == null || b.forEach((r0) => r0 == null ? void 0 : r0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
|
|
5397
5397
|
const r0 = K(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((P) => P.properties.date === r0.format() && !P.properties.disabled), g0 = this.handleComputePolygons(d0), s0 = v.featureCollection([...d0]);
|
|
5398
5398
|
g0.forEach((P) => {
|
|
@@ -5414,8 +5414,8 @@ const B2 = {
|
|
|
5414
5414
|
for (const P of d0)
|
|
5415
5415
|
if (!P.properties.disabled) {
|
|
5416
5416
|
let M0 = "#f44336";
|
|
5417
|
-
((a = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : a.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? M0 = "#03f869" : ((n = (t = P.properties) == null ? void 0 : t.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (l = P.properties) == null ? void 0 : l.wind) == null ? void 0 : d.spd) < 24.5 ? M0 = "#f2f202" : ((R = (B = P.properties) == null ? void 0 : B.wind) == null ? void 0 : R.spd) >= 24.5 && ((h = (f = P.properties) == null ? void 0 : f.wind) == null ? void 0 : h.spd) < 32.7 ? M0 = "#ff9100" : ((X = (m = P.properties) == null ? void 0 : m.wind) == null ? void 0 : X.spd) >= 32.7 && ((y = (E = P.properties) == null ? void 0 : E.wind) == null ? void 0 : y.spd) < 41.5 ? M0 = "#f44336" : ((J = (F = P.properties) == null ? void 0 : F.wind) == null ? void 0 : J.spd) >= 41.5 && ((u = (V = P.properties) == null ? void 0 : V.wind) == null ? void 0 : u.spd) < 51 ? M0 = "#f903d0" : ((
|
|
5418
|
-
const
|
|
5417
|
+
((a = (A = P.properties) == null ? void 0 : A.wind) == null ? void 0 : a.spd) < 17.2 || !((r = (q = P.properties) == null ? void 0 : q.wind) != null && r.spd) ? M0 = "#03f869" : ((n = (t = P.properties) == null ? void 0 : t.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (l = P.properties) == null ? void 0 : l.wind) == null ? void 0 : d.spd) < 24.5 ? M0 = "#f2f202" : ((R = (B = P.properties) == null ? void 0 : B.wind) == null ? void 0 : R.spd) >= 24.5 && ((h = (f = P.properties) == null ? void 0 : f.wind) == null ? void 0 : h.spd) < 32.7 ? M0 = "#ff9100" : ((X = (m = P.properties) == null ? void 0 : m.wind) == null ? void 0 : X.spd) >= 32.7 && ((y = (E = P.properties) == null ? void 0 : E.wind) == null ? void 0 : y.spd) < 41.5 ? M0 = "#f44336" : ((J = (F = P.properties) == null ? void 0 : F.wind) == null ? void 0 : J.spd) >= 41.5 && ((u = (V = P.properties) == null ? void 0 : V.wind) == null ? void 0 : u.spd) < 51 ? M0 = "#f903d0" : ((A0 = (g = P.properties) == null ? void 0 : g.wind) == null ? void 0 : A0.spd) >= 51 ? M0 = "#8702f9" : M0 = "#f44336";
|
|
5418
|
+
const e0 = `<svg t="1719918955501"
|
|
5419
5419
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5420
5420
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5421
5421
|
<path
|
|
@@ -5430,7 +5430,7 @@ const B2 = {
|
|
|
5430
5430
|
d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
|
|
5431
5431
|
fill="#ffffff" p-id="18386"></path>
|
|
5432
5432
|
</svg>`, I = document.createElement("div");
|
|
5433
|
-
I.className = "hurricane-hourly-marker", I.innerHTML = `<div class="${P.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${
|
|
5433
|
+
I.className = "hurricane-hourly-marker", I.innerHTML = `<div class="${P.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${e0}</div>`;
|
|
5434
5434
|
const b0 = new w0.Marker(I).setLngLat(P.geometry.coordinates).addTo(this.map);
|
|
5435
5435
|
if (this.interpolateMarkers.push(b0), (n0 = P.properties) != null && n0.showCircle) {
|
|
5436
5436
|
const W0 = { radius: 100, coordinates: P.geometry.coordinates }, l0 = { radius: 200, coordinates: P.geometry.coordinates }, R0 = { radius: 500, coordinates: P.geometry.coordinates };
|
|
@@ -5612,7 +5612,7 @@ function Q2(b, M, z, O, p, o) {
|
|
|
5612
5612
|
y.disabled ? "" : "active",
|
|
5613
5613
|
F > 0 && F < ((V = (J = p.activeTropicals) == null ? void 0 : J.forecasts) == null ? void 0 : V.length) - 1 && ((g = (u = p.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : g.length) > 2 ? "center-child" : ""
|
|
5614
5614
|
]),
|
|
5615
|
-
onClick: (
|
|
5615
|
+
onClick: (A0) => o.handleForecastToggle(y)
|
|
5616
5616
|
}, [
|
|
5617
5617
|
c("span", {
|
|
5618
5618
|
class: U(y.model)
|
|
@@ -5724,7 +5724,7 @@ const H2 = {
|
|
|
5724
5724
|
[1, "rgba(197,5,58,0.8)"]
|
|
5725
5725
|
];
|
|
5726
5726
|
this.rampColor = this.webgl.setup(this.context, b);
|
|
5727
|
-
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context,
|
|
5727
|
+
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context, c0.vertexSchema, c0.fragmentSchema);
|
|
5728
5728
|
this.program = M, this.aPositionBuffer = z;
|
|
5729
5729
|
}
|
|
5730
5730
|
},
|
|
@@ -5838,7 +5838,7 @@ const G2 = {
|
|
|
5838
5838
|
[1, "rgba(144,144,144,0)"]
|
|
5839
5839
|
];
|
|
5840
5840
|
this.rampColor = this.webgl.setup(this.context, b);
|
|
5841
|
-
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context,
|
|
5841
|
+
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context, c0.vertexSchema, c0.fragmentSchema);
|
|
5842
5842
|
this.program = M, this.aPositionBuffer = z;
|
|
5843
5843
|
}
|
|
5844
5844
|
},
|
|
@@ -5958,7 +5958,7 @@ const Y2 = {
|
|
|
5958
5958
|
//
|
|
5959
5959
|
];
|
|
5960
5960
|
this.rampColor = this.webgl.setup(this.context, b);
|
|
5961
|
-
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context,
|
|
5961
|
+
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context, c0.vertexSchema, c0.fragmentSchema);
|
|
5962
5962
|
this.program = M, this.aPositionBuffer = z;
|
|
5963
5963
|
}
|
|
5964
5964
|
},
|
|
@@ -6081,7 +6081,7 @@ const MM = {
|
|
|
6081
6081
|
[1, "rgb(138, 43, 10)"]
|
|
6082
6082
|
];
|
|
6083
6083
|
this.rampColor = this.webgl.setup(this.context, b);
|
|
6084
|
-
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context,
|
|
6084
|
+
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context, c0.vertexSchema, c0.fragmentSchema);
|
|
6085
6085
|
this.program = M, this.aPositionBuffer = z;
|
|
6086
6086
|
}
|
|
6087
6087
|
},
|
|
@@ -6197,7 +6197,7 @@ const OM = {
|
|
|
6197
6197
|
// 2m
|
|
6198
6198
|
];
|
|
6199
6199
|
this.rampColor = this.webgl.setup(this.context, b);
|
|
6200
|
-
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context,
|
|
6200
|
+
const { program: M, aPositionBuffer: z } = this.webgl.bind(this.context, c0.vertexSchema, c0.fragmentSchema);
|
|
6201
6201
|
this.program = M, this.aPositionBuffer = z;
|
|
6202
6202
|
}
|
|
6203
6203
|
},
|
|
@@ -6437,7 +6437,7 @@ const qM = {
|
|
|
6437
6437
|
initTableData(b) {
|
|
6438
6438
|
var M, z, O, p, o, A, a;
|
|
6439
6439
|
this.clearTable(), this.positionGmt = (z = (M = b == null ? void 0 : b.weather) == null ? void 0 : M[0]) == null ? void 0 : z.timezone, this.positionOffset = (p = (O = b == null ? void 0 : b.weather) == null ? void 0 : O[0]) == null ? void 0 : p.offset, this.localDate = (A = (o = T0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : A.format("MMM-DD/HHmm[LT]"), this.currentHourData = (a = v0.pickHourly(b, K(this.ts))) == null ? void 0 : a[0], this.$nextTick(() => {
|
|
6440
|
-
var r, t, n, l, d, B, R, f, h, m, X, E, y, F, J, V, u, g,
|
|
6440
|
+
var r, t, n, l, d, B, R, f, h, m, X, E, y, F, J, V, u, g, A0, n0, h0, i0, u0, p0, m0, B0, L0, r0, d0, g0, s0, P, M0, e0, I, b0, W0, l0, R0;
|
|
6441
6441
|
const q = document.getElementById("meteoMainBox");
|
|
6442
6442
|
if (!q)
|
|
6443
6443
|
return !1;
|
|
@@ -6453,7 +6453,7 @@ const qM = {
|
|
|
6453
6453
|
const e = T0(this.ts).tz(this.positionGmt).add(3 * o0, "h").format();
|
|
6454
6454
|
this.tableData.hours.push(e);
|
|
6455
6455
|
const i = ((R = v0.pickHourly(b, e)) == null ? void 0 : R[0]) || {};
|
|
6456
|
-
this.tableData.temp.push(this.roundPrecision((f = i == null ? void 0 : i.weather) == null ? void 0 : f.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((m = (h = i == null ? void 0 : i.weather) == null ? void 0 : h.precip) == null ? void 0 : m.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (X = i == null ? void 0 : i.weather) == null ? void 0 : X.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((y = i == null ? void 0 : i.weather) == null ? void 0 : y.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((J = (F = i == null ? void 0 : i.weather) == null ? void 0 : F.wind) == null ? void 0 : J.kts, 1) ?? "-"), this.tableData.windDir.push((u = (V = i == null ? void 0 : i.weather) == null ? void 0 : V.wind) == null ? void 0 : u.bearing), this.tableData.windGust.push(this.roundPrecision((
|
|
6456
|
+
this.tableData.temp.push(this.roundPrecision((f = i == null ? void 0 : i.weather) == null ? void 0 : f.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((m = (h = i == null ? void 0 : i.weather) == null ? void 0 : h.precip) == null ? void 0 : m.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (X = i == null ? void 0 : i.weather) == null ? void 0 : X.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((y = i == null ? void 0 : i.weather) == null ? void 0 : y.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((J = (F = i == null ? void 0 : i.weather) == null ? void 0 : F.wind) == null ? void 0 : J.kts, 1) ?? "-"), this.tableData.windDir.push((u = (V = i == null ? void 0 : i.weather) == null ? void 0 : V.wind) == null ? void 0 : u.bearing), this.tableData.windGust.push(this.roundPrecision((A0 = (g = i == null ? void 0 : i.weather) == null ? void 0 : g.wind) == null ? void 0 : A0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((h0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((u0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : u0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((m0 = (p0 = i == null ? void 0 : i.wave) == null ? void 0 : p0.wd) == null ? void 0 : m0.height, 1) ?? "-"), this.tableData.windwaveDir.push((L0 = (B0 = i == null ? void 0 : i.wave) == null ? void 0 : B0.wd) == null ? void 0 : L0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((d0 = (r0 = i == null ? void 0 : i.wave) == null ? void 0 : r0.wd) == null ? void 0 : d0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((s0 = (g0 = i == null ? void 0 : i.wave) == null ? void 0 : g0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((M0 = (P = i == null ? void 0 : i.wave) == null ? void 0 : P.swell) == null ? void 0 : M0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((I = (e0 = i == null ? void 0 : i.wave) == null ? void 0 : e0.swell) == null ? void 0 : I.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((b0 = i == null ? void 0 : i.current) == null ? void 0 : b0.speed, 1) ?? "-"), this.tableData.currentDir.push((W0 = i == null ? void 0 : i.current) == null ? void 0 : W0.bearing), this.tableData.seaLevel.push(this.roundPrecision(i == null ? void 0 : i.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(i == null ? void 0 : i.sst, 0) ?? "-"), this.tableData.weatherUrls.push((l0 = i == null ? void 0 : i.weather) == null ? void 0 : l0.url), this.tableData.weatherNames.push(((R0 = i == null ? void 0 : i.weather) == null ? void 0 : R0.name) ?? "-");
|
|
6457
6457
|
}
|
|
6458
6458
|
});
|
|
6459
6459
|
},
|
|
@@ -6578,13 +6578,13 @@ function ab(b, M, z, O, p, o) {
|
|
|
6578
6578
|
"show-after": 1e3
|
|
6579
6579
|
}, {
|
|
6580
6580
|
default: a0(() => {
|
|
6581
|
-
var u, g,
|
|
6581
|
+
var u, g, A0, n0;
|
|
6582
6582
|
return [
|
|
6583
6583
|
(g = (u = p.currentHourData) == null ? void 0 : u.weather) != null && g.url ? (s(), W("img", {
|
|
6584
6584
|
key: 0,
|
|
6585
6585
|
class: "iconfont icon",
|
|
6586
6586
|
style: { "margin-right": "5px" },
|
|
6587
|
-
src: (n0 = (
|
|
6587
|
+
src: (n0 = (A0 = p.currentHourData) == null ? void 0 : A0.weather) == null ? void 0 : n0.url
|
|
6588
6588
|
}, null, 8, uM)) : (s(), W("span", LM))
|
|
6589
6589
|
];
|
|
6590
6590
|
}),
|
|
@@ -7075,7 +7075,7 @@ function ab(b, M, z, O, p, o) {
|
|
|
7075
7075
|
[X0, p.showMeteo]
|
|
7076
7076
|
]);
|
|
7077
7077
|
}
|
|
7078
|
-
const qb = /* @__PURE__ */ k(qM, [["render", ab], ["__scopeId", "data-v-
|
|
7078
|
+
const qb = /* @__PURE__ */ k(qM, [["render", ab], ["__scopeId", "data-v-4da43855"]]), ib = {
|
|
7079
7079
|
name: "IdmWarZone",
|
|
7080
7080
|
props: {
|
|
7081
7081
|
map: {
|
|
@@ -7665,7 +7665,7 @@ function Eb(b, M, z, O, p, o) {
|
|
|
7665
7665
|
[X0, p.showPort]
|
|
7666
7666
|
]);
|
|
7667
7667
|
}
|
|
7668
|
-
const xb = /* @__PURE__ */ k(gb, [["render", Eb], ["__scopeId", "data-v-
|
|
7668
|
+
const xb = /* @__PURE__ */ k(gb, [["render", Eb], ["__scopeId", "data-v-2fc5fc5e"]]), Ib = {
|
|
7669
7669
|
name: "IdmLoadLine",
|
|
7670
7670
|
props: {
|
|
7671
7671
|
map: {
|
|
@@ -8812,6 +8812,9 @@ const az = {
|
|
|
8812
8812
|
},
|
|
8813
8813
|
toggleVersion: {
|
|
8814
8814
|
type: Number
|
|
8815
|
+
},
|
|
8816
|
+
forecastModel: {
|
|
8817
|
+
type: String
|
|
8815
8818
|
}
|
|
8816
8819
|
},
|
|
8817
8820
|
emits: ["toggleVersion", "activeWeatherLayers", "showMeteoPoint"],
|
|
@@ -8828,7 +8831,6 @@ const az = {
|
|
|
8828
8831
|
show3d: !1,
|
|
8829
8832
|
meteo: void 0,
|
|
8830
8833
|
source: "",
|
|
8831
|
-
forecastModel: "",
|
|
8832
8834
|
gateway: "https://cbe.idmwx.com",
|
|
8833
8835
|
mapProjection: "mercator",
|
|
8834
8836
|
zoom: 6,
|
|
@@ -8959,11 +8961,11 @@ const az = {
|
|
|
8959
8961
|
);
|
|
8960
8962
|
const E = await Promise.all(X);
|
|
8961
8963
|
this.weatherLayers = {}, E.map((y) => {
|
|
8962
|
-
var V, u, g,
|
|
8964
|
+
var V, u, g, A0;
|
|
8963
8965
|
const F = ((V = y == null ? void 0 : y.data) == null ? void 0 : V.data) || (y == null ? void 0 : y.data), J = (g = (u = y == null ? void 0 : y.config) == null ? void 0 : u.headers) == null ? void 0 : g.key;
|
|
8964
8966
|
J && F && (this.weatherLayers[J] = {
|
|
8965
8967
|
raw: F,
|
|
8966
|
-
type: ((
|
|
8968
|
+
type: ((A0 = y == null ? void 0 : y.config) == null ? void 0 : A0.responseType) === "blob" ? "image" : "json",
|
|
8967
8969
|
etime: this.ts
|
|
8968
8970
|
});
|
|
8969
8971
|
}), m.tropicals && f0.get(m.tropicals, {
|
|
@@ -9387,8 +9389,8 @@ const az = {
|
|
|
9387
9389
|
className: "map-gl-home"
|
|
9388
9390
|
};
|
|
9389
9391
|
function iz(b, M, z, O, p, o) {
|
|
9390
|
-
var r0, d0, g0, s0, P, M0,
|
|
9391
|
-
const A = x("IdmGlLayer"), a = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), t = x("IdmSwell"), n = x("IdmPrmsl"), l = x("IdmIceberg"), d = x("IdmTropicals"), B = x("IdmCurrents"), R = x("IdmCurrentParticle"), f = x("IdmWindBarb"), h = x("IdmWindParticle"), m = x("IdmPrecip3h"), X = x("IdmVisibility"), E = x("IdmWaterTemp"), y = x("IdmTemp"), F = x("IdmArctic"), J = x("IdmWarZone"), V = x("IdmGmdssArea"), u = x("IdmEcaZone"), g = x("IdmAlertZone"),
|
|
9392
|
+
var r0, d0, g0, s0, P, M0, e0, I, b0, W0, l0, R0, o0, e, i, L, N, w, D, Z, S, G, x0, k0, Q0, H0, _0;
|
|
9393
|
+
const A = x("IdmGlLayer"), a = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), t = x("IdmSwell"), n = x("IdmPrmsl"), l = x("IdmIceberg"), d = x("IdmTropicals"), B = x("IdmCurrents"), R = x("IdmCurrentParticle"), f = x("IdmWindBarb"), h = x("IdmWindParticle"), m = x("IdmPrecip3h"), X = x("IdmVisibility"), E = x("IdmWaterTemp"), y = x("IdmTemp"), F = x("IdmArctic"), J = x("IdmWarZone"), V = x("IdmGmdssArea"), u = x("IdmEcaZone"), g = x("IdmAlertZone"), A0 = x("IdmPort"), n0 = x("IdmLoadLine"), h0 = x("IdmTimezone"), i0 = x("IdmVRA"), u0 = x("IdmSpecialArea"), p0 = x("IdmTerminator"), m0 = x("IdmLatLng"), B0 = x("IdmMeasure"), L0 = x("IdmPoint");
|
|
9392
9394
|
return z.map ? (s(), W("div", qz, [
|
|
9393
9395
|
T(A, Q({
|
|
9394
9396
|
ref: "layer",
|
|
@@ -9402,26 +9404,26 @@ function iz(b, M, z, O, p, o) {
|
|
|
9402
9404
|
token: z.token,
|
|
9403
9405
|
gateway: p.gateway
|
|
9404
9406
|
}, b.$attrs, {
|
|
9405
|
-
|
|
9407
|
+
forecastModel: z.forecastModel,
|
|
9406
9408
|
onWeather: o.handleWeatherLayerChange,
|
|
9407
9409
|
onOther: o.handleOtherLayerChange,
|
|
9408
|
-
onToggleWindParticle: M[
|
|
9409
|
-
onToggleWindFeather: M[
|
|
9410
|
-
onToggleCurrentParticle: M[
|
|
9411
|
-
onToggleCurrentIsoband: M[
|
|
9412
|
-
onCoordinate: M[
|
|
9413
|
-
onMeasure: M[
|
|
9414
|
-
onPoint: M[
|
|
9410
|
+
onToggleWindParticle: M[0] || (M[0] = (t0) => p.showWindParticle = t0),
|
|
9411
|
+
onToggleWindFeather: M[1] || (M[1] = (t0) => p.showWindFeather = t0),
|
|
9412
|
+
onToggleCurrentParticle: M[2] || (M[2] = (t0) => p.showCurrentParticle = t0),
|
|
9413
|
+
onToggleCurrentIsoband: M[3] || (M[3] = (t0) => p.showCurrentIsoband = t0),
|
|
9414
|
+
onCoordinate: M[4] || (M[4] = (t0) => p.showCoord = t0),
|
|
9415
|
+
onMeasure: M[5] || (M[5] = (t0) => p.showMeasure = t0),
|
|
9416
|
+
onPoint: M[6] || (M[6] = (t0) => p.showPoint = t0),
|
|
9415
9417
|
on3d: o.handle3dToggle,
|
|
9416
9418
|
onHandleToggleVersion: o.handleToggleVersion
|
|
9417
|
-
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "token", "gateway", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
9419
|
+
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "token", "gateway", "forecastModel", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
9418
9420
|
T(a, Q({
|
|
9419
9421
|
map: z.map,
|
|
9420
9422
|
token: z.token,
|
|
9421
9423
|
enabled: (r0 = p.otherLayers) == null ? void 0 : r0.enc,
|
|
9422
9424
|
"toggle-version": z.toggleVersion
|
|
9423
9425
|
}, b.$attrs, {
|
|
9424
|
-
onEnc: M[
|
|
9426
|
+
onEnc: M[7] || (M[7] = (t0) => p.enc = t0)
|
|
9425
9427
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
9426
9428
|
T(q, Q({
|
|
9427
9429
|
map: z.map,
|
|
@@ -9455,7 +9457,7 @@ function iz(b, M, z, O, p, o) {
|
|
|
9455
9457
|
T(d, Q({
|
|
9456
9458
|
map: z.map,
|
|
9457
9459
|
date: z.ts,
|
|
9458
|
-
tropicals: (
|
|
9460
|
+
tropicals: (e0 = p.weatherLayers) == null ? void 0 : e0.tropicals,
|
|
9459
9461
|
"before-layer": z.beforeLayer
|
|
9460
9462
|
}, b.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
9461
9463
|
T(B, Q({
|
|
@@ -9549,11 +9551,11 @@ function iz(b, M, z, O, p, o) {
|
|
|
9549
9551
|
zone: (S = p.otherLayers) == null ? void 0 : S["alert-zones"],
|
|
9550
9552
|
"before-layer": z.beforeLayer
|
|
9551
9553
|
}, b.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9552
|
-
T(
|
|
9554
|
+
T(A0, Q({
|
|
9553
9555
|
map: z.map,
|
|
9554
9556
|
port: (G = p.otherLayers) == null ? void 0 : G.ports,
|
|
9555
9557
|
"before-layer": z.beforeLayer,
|
|
9556
|
-
forecastModel:
|
|
9558
|
+
forecastModel: z.forecastModel
|
|
9557
9559
|
}, b.$attrs), null, 16, ["map", "port", "before-layer", "forecastModel"]),
|
|
9558
9560
|
T(n0, Q({
|
|
9559
9561
|
map: z.map,
|
|
@@ -9596,7 +9598,7 @@ function iz(b, M, z, O, p, o) {
|
|
|
9596
9598
|
ts: z.ts,
|
|
9597
9599
|
token: z.token,
|
|
9598
9600
|
gateway: p.gateway,
|
|
9599
|
-
forecastModel:
|
|
9601
|
+
forecastModel: z.forecastModel
|
|
9600
9602
|
}, b.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecastModel"])
|
|
9601
9603
|
], 512)) : j("", !0);
|
|
9602
9604
|
}
|
|
@@ -9614,5 +9616,5 @@ export {
|
|
|
9614
9616
|
U0 as TropicalGL,
|
|
9615
9617
|
S0 as Viewport,
|
|
9616
9618
|
C0 as WebGL,
|
|
9617
|
-
|
|
9619
|
+
c0 as WebGLSchema
|
|
9618
9620
|
};
|