@idmwx/idmui-gl3 6.4.4 → 6.4.5
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 +203 -198
- package/dist/index.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,11 +5,11 @@ import { LayerHelper as Ze, CompanyHelper as qe } from "@idm-plugin/tag";
|
|
|
5
5
|
import ie from "moment";
|
|
6
6
|
import He from "axios";
|
|
7
7
|
import Ye from "moment-timezone";
|
|
8
|
-
import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as
|
|
8
|
+
import { resolveComponent as R, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as fe, createVNode as F, withCtx as Pe, normalizeClass as te, Fragment as ee, renderList as ae, toDisplayString as k, createCommentVNode as V, createBlock as gt, createTextVNode as ye, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
|
|
9
9
|
import * as Q from "@turf/turf";
|
|
10
10
|
import At from "@mapbox/sphericalmercator";
|
|
11
11
|
import Re from "mapbox-gl";
|
|
12
|
-
import { TropicalHelper as ct, LngLatHelper as
|
|
12
|
+
import { TropicalHelper as ct, LngLatHelper as he, LaneHelper as je } from "@idm-plugin/geo";
|
|
13
13
|
import { TidesAssist as $e, Meteo2Assist as Ke } from "@idm-plugin/meteo";
|
|
14
14
|
const Y = (a, e) => {
|
|
15
15
|
const t = a.__vccOpts || a;
|
|
@@ -305,7 +305,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
305
305
|
return u(), g("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
|
-
style:
|
|
308
|
+
style: fe({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
309
309
|
}, [
|
|
310
310
|
o("div", bt, [
|
|
311
311
|
F(n, {
|
|
@@ -328,7 +328,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
328
328
|
], 4),
|
|
329
329
|
o("div", {
|
|
330
330
|
class: "menu-bar-box",
|
|
331
|
-
style:
|
|
331
|
+
style: fe({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
332
332
|
}, [
|
|
333
333
|
o("div", Lt, [
|
|
334
334
|
F(n, {
|
|
@@ -400,7 +400,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
400
400
|
s.hasCollectedLayers ? (u(), g("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
|
-
style:
|
|
403
|
+
style: fe({ right: i.right + "px", bottom: "100px" })
|
|
404
404
|
}, [
|
|
405
405
|
o("div", Ct, [
|
|
406
406
|
e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
@@ -448,7 +448,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
448
448
|
], 4)) : V("", !0),
|
|
449
449
|
o("div", {
|
|
450
450
|
class: "available-layers flex-center",
|
|
451
|
-
style:
|
|
451
|
+
style: fe({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
454
|
class: te(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
@@ -564,7 +564,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
564
564
|
default: Pe(() => {
|
|
565
565
|
var L, x, E, A, I, _;
|
|
566
566
|
return [
|
|
567
|
-
|
|
567
|
+
ye(k(h.name) + " ", 1),
|
|
568
568
|
p !== 0 ? (u(), g("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : V("", !0),
|
|
569
569
|
p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (E = (x = (L = h == null ? void 0 : h.update) == null ? void 0 : L.default) == null ? void 0 : x.meta) != null && E.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((_ = (I = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : I.meta) == null ? void 0 : _.initialisationTime)), 1)) : V("", !0)
|
|
570
570
|
];
|
|
@@ -1008,10 +1008,10 @@ class We {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class ce {
|
|
1012
1012
|
}
|
|
1013
1013
|
// 顶点渲染
|
|
1014
|
-
se(
|
|
1014
|
+
se(ce, "vertexSchema", `
|
|
1015
1015
|
//canvas 坐标系上的坐标 (x, y)
|
|
1016
1016
|
attribute vec2 a_position; //像素坐标
|
|
1017
1017
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1026,7 +1026,7 @@ se(he, "vertexSchema", `
|
|
|
1026
1026
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1027
1027
|
v_texCoord = a_texCoord;
|
|
1028
1028
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1029
|
-
se(
|
|
1029
|
+
se(ce, "uvFragmentSchema", `
|
|
1030
1030
|
precision mediump float;
|
|
1031
1031
|
uniform sampler2D u_image;
|
|
1032
1032
|
uniform vec2 u_range_u_v;
|
|
@@ -1046,7 +1046,7 @@ se(he, "uvFragmentSchema", `
|
|
|
1046
1046
|
|
|
1047
1047
|
gl_FragColor = color;
|
|
1048
1048
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1049
|
-
se(
|
|
1049
|
+
se(ce, "fragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
uniform sampler2D u_image; // 灰度
|
|
1052
1052
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -3210,7 +3210,7 @@ const la = {
|
|
|
3210
3210
|
[1, "rgb(91, 136, 161)"]
|
|
3211
3211
|
];
|
|
3212
3212
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3213
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3213
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.uvFragmentSchema);
|
|
3214
3214
|
this.program = e, this.aPositionBuffer = t;
|
|
3215
3215
|
}
|
|
3216
3216
|
this.handleParticleSetup();
|
|
@@ -3264,7 +3264,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3264
3264
|
return (n = t.factor) != null && n.active ? (u(), g("div", ha, [
|
|
3265
3265
|
o("div", {
|
|
3266
3266
|
class: "legend-bars flex-center",
|
|
3267
|
-
style:
|
|
3267
|
+
style: fe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3268
3268
|
}, e[0] || (e[0] = [
|
|
3269
3269
|
o("span", null, "kts", -1),
|
|
3270
3270
|
o("span", null, "0", -1),
|
|
@@ -3538,7 +3538,7 @@ const ga = {
|
|
|
3538
3538
|
[1, "rgb(195,194,194)"]
|
|
3539
3539
|
];
|
|
3540
3540
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3541
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3541
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.uvFragmentSchema);
|
|
3542
3542
|
this.program = e, this.aPositionBuffer = t;
|
|
3543
3543
|
}
|
|
3544
3544
|
this.handleParticleSetup();
|
|
@@ -3597,7 +3597,7 @@ function fa(a, e, t, r, i, s) {
|
|
|
3597
3597
|
return (n = t.factor) != null && n.active ? (u(), g("div", ya, [
|
|
3598
3598
|
o("div", {
|
|
3599
3599
|
class: "legend-bars flex-center",
|
|
3600
|
-
style:
|
|
3600
|
+
style: fe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3601
3601
|
}, e[0] || (e[0] = [
|
|
3602
3602
|
o("span", null, "kts", -1),
|
|
3603
3603
|
o("span", null, "0", -1),
|
|
@@ -4125,7 +4125,7 @@ const Ea = {
|
|
|
4125
4125
|
// 100%
|
|
4126
4126
|
];
|
|
4127
4127
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4128
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4128
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4129
4129
|
this.program = e, this.aPositionBuffer = t;
|
|
4130
4130
|
}
|
|
4131
4131
|
},
|
|
@@ -4144,7 +4144,7 @@ function Da(a, e, t, r, i, s) {
|
|
|
4144
4144
|
return (n = t.factor) != null && n.active ? (u(), g("div", ka, [
|
|
4145
4145
|
o("div", {
|
|
4146
4146
|
class: "legend-bars flex-center",
|
|
4147
|
-
style:
|
|
4147
|
+
style: fe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4148
4148
|
}, e[0] || (e[0] = [
|
|
4149
4149
|
o("span", null, null, -1),
|
|
4150
4150
|
o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
|
|
@@ -4241,7 +4241,7 @@ const Pa = {
|
|
|
4241
4241
|
// 100%
|
|
4242
4242
|
];
|
|
4243
4243
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4244
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4244
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4245
4245
|
this.program = e, this.aPositionBuffer = t;
|
|
4246
4246
|
}
|
|
4247
4247
|
},
|
|
@@ -4260,7 +4260,7 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4260
4260
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ma, [
|
|
4261
4261
|
o("div", {
|
|
4262
4262
|
class: "legend-bars flex-center",
|
|
4263
|
-
style:
|
|
4263
|
+
style: fe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4264
4264
|
}, e[0] || (e[0] = [
|
|
4265
4265
|
o("span", null, "%", -1),
|
|
4266
4266
|
o("span", null, "20", -1),
|
|
@@ -4359,7 +4359,7 @@ const Qa = {
|
|
|
4359
4359
|
// 4m
|
|
4360
4360
|
];
|
|
4361
4361
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4362
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4362
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
4363
4363
|
this.program = e, this.aPositionBuffer = t;
|
|
4364
4364
|
}
|
|
4365
4365
|
},
|
|
@@ -4378,7 +4378,7 @@ function Na(a, e, t, r, i, s) {
|
|
|
4378
4378
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ha, [
|
|
4379
4379
|
o("div", {
|
|
4380
4380
|
class: "legend-bars flex-center",
|
|
4381
|
-
style:
|
|
4381
|
+
style: fe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4382
4382
|
}, e[0] || (e[0] = [
|
|
4383
4383
|
o("span", null, "m", -1),
|
|
4384
4384
|
o("span", null, "0", -1),
|
|
@@ -4737,11 +4737,11 @@ class ht {
|
|
|
4737
4737
|
}), i;
|
|
4738
4738
|
}
|
|
4739
4739
|
static pickHourly(e, t) {
|
|
4740
|
-
var r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j,
|
|
4740
|
+
var r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, U, G, de, re, pe, ve, me, be, ue, ge, W, Z, oe, le, Ae, Le, xe, B, Ee, Ce, ke, Be, ze, _e;
|
|
4741
4741
|
const J = typeof t == "string" ? ie(t) : t, q = e == null ? void 0 : e.weather, S = e == null ? void 0 : e.marine, De = ie((i = (r = q == null ? void 0 : q[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = De.clone().add((l = (n = (s = q == null ? void 0 : q[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), $ = De.clone().add((h = (d = (c = q == null ? void 0 : q[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Se = [];
|
|
4742
4742
|
if (J.isBetween(K, $, "millisecond", "[]")) {
|
|
4743
4743
|
const M = J.utc().diff(K, "h", !1);
|
|
4744
|
-
let
|
|
4744
|
+
let we, Me;
|
|
4745
4745
|
if (q) {
|
|
4746
4746
|
let Te = 0, Qe = 0;
|
|
4747
4747
|
for (const z of q) {
|
|
@@ -4750,7 +4750,7 @@ class ht {
|
|
|
4750
4750
|
Te += (p = O == null ? void 0 : O.precipitation) == null ? void 0 : p.at(Ne);
|
|
4751
4751
|
for (let Ne = M - (M - 1) % 6; Ne <= M; Ne++)
|
|
4752
4752
|
Qe += (L = O == null ? void 0 : O.precipitation) == null ? void 0 : L.at(Ne);
|
|
4753
|
-
|
|
4753
|
+
we = {
|
|
4754
4754
|
temp: (x = O == null ? void 0 : O.temperature_2m) == null ? void 0 : x.at(M),
|
|
4755
4755
|
apparentTemp: (E = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : E.at(M),
|
|
4756
4756
|
rh: (A = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : A.at(M),
|
|
@@ -4772,13 +4772,13 @@ class ht {
|
|
|
4772
4772
|
bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(M)) !== null ? (((H = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : H.at(M)) + 180) % 360 : null,
|
|
4773
4773
|
gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(M)
|
|
4774
4774
|
},
|
|
4775
|
-
isDay: (
|
|
4775
|
+
isDay: (U = O == null ? void 0 : O.is_day) == null ? void 0 : U.at(M)
|
|
4776
4776
|
};
|
|
4777
|
-
const { name: Ge, url: Ue, bg:
|
|
4778
|
-
|
|
4777
|
+
const { name: Ge, url: Ue, bg: ne } = this.parseWeatherCode(we.code, we.isDay);
|
|
4778
|
+
we.name = Ge, we.url = Ue, we.bg = ne, we.wind.scale = this.beaufort(this.kts2ms(we.wind.kts)), we.wind.direction = this.degree2Direction(we.wind.degree), Se.push({
|
|
4779
4779
|
utc: K.add(M, "h").format(),
|
|
4780
4780
|
model: z.model,
|
|
4781
|
-
weather: { ...
|
|
4781
|
+
weather: { ...we }
|
|
4782
4782
|
});
|
|
4783
4783
|
}
|
|
4784
4784
|
}
|
|
@@ -4789,35 +4789,35 @@ class ht {
|
|
|
4789
4789
|
Me = {
|
|
4790
4790
|
wave: {
|
|
4791
4791
|
sig: {
|
|
4792
|
-
height: (
|
|
4793
|
-
degree: (
|
|
4794
|
-
bearing: ((re = z == null ? void 0 : z.wave_direction) == null ? void 0 : re.at(M)) !== null ? (((
|
|
4795
|
-
period: (
|
|
4792
|
+
height: (G = z == null ? void 0 : z.wave_height) == null ? void 0 : G.at(M),
|
|
4793
|
+
degree: (de = z == null ? void 0 : z.wave_direction) == null ? void 0 : de.at(M),
|
|
4794
|
+
bearing: ((re = z == null ? void 0 : z.wave_direction) == null ? void 0 : re.at(M)) !== null ? (((pe = z == null ? void 0 : z.wave_direction) == null ? void 0 : pe.at(M)) + 180) % 360 : null,
|
|
4795
|
+
period: (ve = z == null ? void 0 : z.wave_period) == null ? void 0 : ve.at(M)
|
|
4796
4796
|
},
|
|
4797
4797
|
swell: {
|
|
4798
|
-
height: (
|
|
4799
|
-
degree: (
|
|
4800
|
-
bearing: ((
|
|
4801
|
-
period: (
|
|
4802
|
-
peakPeriod: (
|
|
4798
|
+
height: (me = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : me.at(M),
|
|
4799
|
+
degree: (be = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : be.at(M),
|
|
4800
|
+
bearing: ((ue = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ue.at(M)) !== null ? (((ge = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ge.at(M)) + 180) % 360 : null,
|
|
4801
|
+
period: (W = z == null ? void 0 : z.swell_wave_period) == null ? void 0 : W.at(M),
|
|
4802
|
+
peakPeriod: (Z = z == null ? void 0 : z.swell_wave_peak_period) == null ? void 0 : Z.at(M)
|
|
4803
4803
|
},
|
|
4804
4804
|
wd: {
|
|
4805
|
-
height: (
|
|
4806
|
-
degree: (
|
|
4807
|
-
bearing: ((
|
|
4805
|
+
height: (oe = z == null ? void 0 : z.wind_wave_height) == null ? void 0 : oe.at(M),
|
|
4806
|
+
degree: (le = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : le.at(M),
|
|
4807
|
+
bearing: ((Ae = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : Ae.at(M)) !== null ? (((Le = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : Le.at(M)) + 180) % 360 : null,
|
|
4808
4808
|
period: (xe = z == null ? void 0 : z.wind_wave_period) == null ? void 0 : xe.at(M),
|
|
4809
4809
|
peakPeriod: (B = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : B.at(M)
|
|
4810
4810
|
}
|
|
4811
4811
|
},
|
|
4812
4812
|
current: {
|
|
4813
4813
|
speed: (Ee = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Ee.at(M),
|
|
4814
|
-
kts: (
|
|
4814
|
+
kts: (Ce = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Ce.at(M),
|
|
4815
4815
|
degree: (ke = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : ke.at(M),
|
|
4816
4816
|
bearing: ((Be = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Be.at(M)) ?? null
|
|
4817
4817
|
},
|
|
4818
4818
|
sst: (ze = z == null ? void 0 : z.sea_surface_temperature) == null ? void 0 : ze.at(M),
|
|
4819
4819
|
height: (_e = z == null ? void 0 : z.sea_level_height_msl) == null ? void 0 : _e.at(M)
|
|
4820
|
-
}, Me.wave = this.parseWave(Me.wave,
|
|
4820
|
+
}, Me.wave = this.parseWave(Me.wave, we == null ? void 0 : we.wind), Me.current.direction = this.degree2Direction(Me.current.degree), Object.assign(Se[Te], Me), Te++;
|
|
4821
4821
|
}
|
|
4822
4822
|
}
|
|
4823
4823
|
}
|
|
@@ -4846,13 +4846,13 @@ class ht {
|
|
|
4846
4846
|
};
|
|
4847
4847
|
}
|
|
4848
4848
|
static pickDaily(e, t) {
|
|
4849
|
-
var r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j,
|
|
4850
|
-
const Ee = typeof t == "string" ? ie(t) : t,
|
|
4849
|
+
var r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, U, G, de, re, pe, ve, me, be, ue, ge, W, Z, oe, le, Ae, Le, xe, B;
|
|
4850
|
+
const Ee = typeof t == "string" ? ie(t) : t, Ce = e == null ? void 0 : e.weather, ke = e == null ? void 0 : e.marine, Be = ie((s = (i = (r = Ce == null ? void 0 : Ce[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), ze = ie((c = (l = (n = Ce == null ? void 0 : Ce[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), _e = [];
|
|
4851
4851
|
if (Ee.isBetween(Be, ze, "millisecond", "[]")) {
|
|
4852
4852
|
let J, q;
|
|
4853
4853
|
const S = Ee.diff(Be, "d", !1);
|
|
4854
|
-
if (
|
|
4855
|
-
for (const De of
|
|
4854
|
+
if (Ce)
|
|
4855
|
+
for (const De of Ce) {
|
|
4856
4856
|
const K = De.daily;
|
|
4857
4857
|
J = {
|
|
4858
4858
|
code: (d = K.weather_code) == null ? void 0 : d.at(S),
|
|
@@ -4883,7 +4883,7 @@ class ht {
|
|
|
4883
4883
|
kts: (D = K.wind_speed_10m_max) == null ? void 0 : D.at(S),
|
|
4884
4884
|
degree: (N = K.wind_direction_10m_dominant) == null ? void 0 : N.at(S),
|
|
4885
4885
|
gusts: (H = K.wind_gusts_10m_max) == null ? void 0 : H.at(S),
|
|
4886
|
-
bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(S)) !== null ? (((
|
|
4886
|
+
bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(S)) !== null ? (((U = K.wind_direction_10m_dominant) == null ? void 0 : U.at(S)) + 180) % 360 : null
|
|
4887
4887
|
}
|
|
4888
4888
|
};
|
|
4889
4889
|
const { name: $, url: Se, bg: M } = this.parseWeatherCode(J.code, !0);
|
|
@@ -4900,24 +4900,24 @@ class ht {
|
|
|
4900
4900
|
q = {
|
|
4901
4901
|
wave: {
|
|
4902
4902
|
sig: {
|
|
4903
|
-
height: (
|
|
4904
|
-
degree: (
|
|
4903
|
+
height: (G = $.wave_height_max) == null ? void 0 : G.at(S),
|
|
4904
|
+
degree: (de = $.wave_direction_dominant) == null ? void 0 : de.at(S),
|
|
4905
4905
|
period: (re = $.wave_period_max) == null ? void 0 : re.at(S),
|
|
4906
|
-
bearing: ((
|
|
4906
|
+
bearing: ((pe = $.wave_direction_dominant) == null ? void 0 : pe.at(S)) !== null ? (((ve = $.wave_direction_dominant) == null ? void 0 : ve.at(S)) + 180) % 360 : null
|
|
4907
4907
|
},
|
|
4908
4908
|
swell: {
|
|
4909
|
-
height: (
|
|
4910
|
-
degree: (
|
|
4911
|
-
period: (
|
|
4912
|
-
peakPeriod: (
|
|
4909
|
+
height: (me = $.swell_wave_height_max) == null ? void 0 : me.at(S),
|
|
4910
|
+
degree: (be = $.swell_wave_direction_dominant) == null ? void 0 : be.at(S),
|
|
4911
|
+
period: (ue = $.swell_wave_period_max) == null ? void 0 : ue.at(S),
|
|
4912
|
+
peakPeriod: (ge = $.swell_wave_peak_period_max) == null ? void 0 : ge.at(S),
|
|
4913
4913
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
4914
|
-
bearing: ((
|
|
4914
|
+
bearing: ((W = $.swell_wave_direction_dominant) == null ? void 0 : W.at(S)) !== null ? ((Z = $.swell_wave_direction_dominant) == null ? void 0 : Z.at(S)) % 360 : null
|
|
4915
4915
|
},
|
|
4916
4916
|
wd: {
|
|
4917
|
-
height: (
|
|
4918
|
-
degree: (
|
|
4919
|
-
period: (
|
|
4920
|
-
peakPeriod: (
|
|
4917
|
+
height: (oe = $.wind_wave_height_max) == null ? void 0 : oe.at(S),
|
|
4918
|
+
degree: (le = $.wind_wave_direction_dominant) == null ? void 0 : le.at(S),
|
|
4919
|
+
period: (Ae = $.wind_wave_period_max) == null ? void 0 : Ae.at(S),
|
|
4920
|
+
peakPeriod: (Le = $.wind_wave_peak_period_max) == null ? void 0 : Le.at(S),
|
|
4921
4921
|
bearing: ((xe = $.wind_wave_direction_dominant) == null ? void 0 : xe.at(S)) !== null ? (((B = $.wind_wave_direction_dominant) == null ? void 0 : B.at(S)) + 180) % 360 : null
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
@@ -5350,7 +5350,7 @@ const Oa = {
|
|
|
5350
5350
|
default: !1
|
|
5351
5351
|
}
|
|
5352
5352
|
},
|
|
5353
|
-
emits: ["tropical", "tropicalProbability", "tropicalNotification"],
|
|
5353
|
+
emits: ["tropical", "tropicalCenterPoints", "tropicalProbability", "tropicalNotification"],
|
|
5354
5354
|
data() {
|
|
5355
5355
|
return {
|
|
5356
5356
|
helper: qe,
|
|
@@ -5620,17 +5620,17 @@ const Oa = {
|
|
|
5620
5620
|
const _ = (h = this.tropicals.data.features) == null ? void 0 : h.filter((b) => b.geometry.type === "Point" && b.properties.type === "forecast");
|
|
5621
5621
|
let y = 0, v = 0, m = (L = (p = this.findClosestToNumber(_, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : L.hour;
|
|
5622
5622
|
_.forEach((b, f) => {
|
|
5623
|
-
var D, N, H, j,
|
|
5623
|
+
var D, N, H, j, U, G, de, re, pe, ve, me, be, ue, ge, W, Z, oe, le, Ae, Le, xe, B, Ee, Ce, ke, Be, ze;
|
|
5624
5624
|
let w;
|
|
5625
5625
|
const P = this.findClosestToNumber(_, "hour", m + y * 24);
|
|
5626
5626
|
if (P && ((D = P == null ? void 0 : P.properties) == null ? void 0 : D.hour) === ((N = b.properties) == null ? void 0 : N.hour) && (w = P), w) {
|
|
5627
5627
|
let _e = 0, J = "tropical-marker-box", q = "tropical-marker-line";
|
|
5628
|
-
J = ((
|
|
5628
|
+
J = ((U = (j = (H = w.properties) == null ? void 0 : H.wind) == null ? void 0 : j.en) == null ? void 0 : U.toUpperCase()) === "SUPER TY" ? J + " supper" : J + " normal", q = ((re = (de = (G = w.properties) == null ? void 0 : G.wind) == null ? void 0 : de.en) == null ? void 0 : re.toUpperCase()) === "SUPER TY" ? q + " supper" : q + " normal", ((ve = (pe = w.properties) == null ? void 0 : pe.movement) == null ? void 0 : ve.deg) >= 0 && ((be = (me = w.properties) == null ? void 0 : me.movement) == null ? void 0 : be.deg) <= 60 || ((ge = (ue = w.properties) == null ? void 0 : ue.movement) == null ? void 0 : ge.deg) >= 120 && ((Z = (W = w.properties) == null ? void 0 : W.movement) == null ? void 0 : Z.deg) <= 240 || ((le = (oe = w.properties) == null ? void 0 : oe.movement) == null ? void 0 : le.deg) >= 300 && ((Le = (Ae = w.properties) == null ? void 0 : Ae.movement) == null ? void 0 : Le.deg) <= 360 ? (_e = y % 2 === 0 ? [84, 0] : [-84, 0], J = y % 2 === 0 ? J + " right" : J + " left", q = y % 2 === 0 ? q + " vertical right" : q + " vertical left") : (_e = v % 2 === 0 ? [60, -40] : [60, 40], J = v % 2 === 0 ? J + " top" : J + " bottom", q = v % 2 === 0 ? q + " align top" : q + " align bottom", v = v + 1);
|
|
5629
5629
|
const S = document.createElement("div");
|
|
5630
5630
|
S.className = J, S.innerHTML = `
|
|
5631
5631
|
<div style="">
|
|
5632
5632
|
<span>${((xe = b.properties) == null ? void 0 : xe.format) || "-"}</span>
|
|
5633
|
-
<span> [${((
|
|
5633
|
+
<span> [${((Ce = (Ee = (B = b.properties) == null ? void 0 : B.wind) == null ? void 0 : Ee.en) == null ? void 0 : Ce.toUpperCase()) || "-"}]</span>
|
|
5634
5634
|
</div>
|
|
5635
5635
|
<div>
|
|
5636
5636
|
<span>BF${((Be = (ke = b.properties) == null ? void 0 : ke.wind) == null ? void 0 : Be.bf) || "-"}</span> /
|
|
@@ -5743,14 +5743,14 @@ const Oa = {
|
|
|
5743
5743
|
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), (a = this.interpolateMarkers) == null || a.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), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
|
|
5744
5744
|
},
|
|
5745
5745
|
handleDateChange() {
|
|
5746
|
-
var a, e, t, r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j,
|
|
5746
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, U, G, de;
|
|
5747
5747
|
if ((a = this.interpolateMarkers) == null || a.forEach((re) => re == null ? void 0 : re.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5748
|
-
const re = ie(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }),
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
5748
|
+
const re = ie(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), pe = ie.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), ve = re.isBefore(pe) && pe.diff(re, "h") < 2 ? pe.format() : re.format(), me = this.interpolateData.filter((W) => W.properties.date === ve && !W.properties.disabled), be = this.handleComputePolygons(me), ue = Q.featureCollection([...me]);
|
|
5749
|
+
be.forEach((W) => {
|
|
5750
|
+
ue.features.push(W);
|
|
5751
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ue) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
5752
5752
|
type: "geojson",
|
|
5753
|
-
data:
|
|
5753
|
+
data: ue
|
|
5754
5754
|
}), (s = this.map) == null || s.addLayer({
|
|
5755
5755
|
id: this.interpolateLineLayer,
|
|
5756
5756
|
type: "line",
|
|
@@ -5762,11 +5762,15 @@ const Oa = {
|
|
|
5762
5762
|
"line-width": 1
|
|
5763
5763
|
}
|
|
5764
5764
|
})), this.interpolateMarkers = [];
|
|
5765
|
-
|
|
5766
|
-
|
|
5765
|
+
const ge = [];
|
|
5766
|
+
for (const W of me)
|
|
5767
|
+
if (ge.some((Z) => {
|
|
5768
|
+
var oe;
|
|
5769
|
+
return Z.properties.name === ((oe = W.properties) == null ? void 0 : oe.name);
|
|
5770
|
+
}) || ge.push(W), !W.properties.disabled) {
|
|
5767
5771
|
let Z = "#f44336";
|
|
5768
|
-
((l = (n =
|
|
5769
|
-
const
|
|
5772
|
+
((l = (n = W.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = W.properties) == null ? void 0 : c.wind) != null && d.kts) ? Z = "#03f869" : ((p = (h = W.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((x = (L = W.properties) == null ? void 0 : L.wind) == null ? void 0 : x.kts) < 47 ? Z = "#f2f202" : ((A = (E = W.properties) == null ? void 0 : E.wind) == null ? void 0 : A.kts) >= 47 && ((_ = (I = W.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 63 ? Z = "#ff9100" : ((v = (y = W.properties) == null ? void 0 : y.wind) == null ? void 0 : v.kts) >= 63 && ((b = (m = W.properties) == null ? void 0 : m.wind) == null ? void 0 : b.kts) < 79 ? Z = "#f44336" : ((w = (f = W.properties) == null ? void 0 : f.wind) == null ? void 0 : w.kts) >= 79 && ((D = (P = W.properties) == null ? void 0 : P.wind) == null ? void 0 : D.kts) < 94 ? Z = "#f903d0" : ((H = (N = W.properties) == null ? void 0 : N.wind) == null ? void 0 : H.kts) >= 94 ? Z = "#8702f9" : Z = "#f44336";
|
|
5773
|
+
const oe = `<svg t="1719918955501"
|
|
5770
5774
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5771
5775
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5772
5776
|
<path
|
|
@@ -5780,13 +5784,14 @@ const Oa = {
|
|
|
5780
5784
|
<path
|
|
5781
5785
|
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"
|
|
5782
5786
|
fill="#ffffff" p-id="18386"></path>
|
|
5783
|
-
</svg>`,
|
|
5784
|
-
|
|
5785
|
-
const
|
|
5786
|
-
this.interpolateMarkers.push(
|
|
5787
|
+
</svg>`, le = document.createElement("div");
|
|
5788
|
+
le.className = "hurricane-hourly-marker", le.innerHTML = `<div class="${W.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${oe}</div>`;
|
|
5789
|
+
const Ae = new Re.Marker(le).setLngLat(W.geometry.coordinates).addTo(this.map);
|
|
5790
|
+
this.interpolateMarkers.push(Ae), (U = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || U.setData(this.circleSourceData);
|
|
5787
5791
|
}
|
|
5792
|
+
this.$emit("tropicalCenterPoints", ge);
|
|
5788
5793
|
} else
|
|
5789
|
-
(
|
|
5794
|
+
(G = this.map) != null && G.getSource(this.interpolateSource) && ((de = this.map) == null || de.getSource(this.interpolateSource).setData(this.empty));
|
|
5790
5795
|
},
|
|
5791
5796
|
handleClick(a) {
|
|
5792
5797
|
var s, n, l, c, d, h, p, L;
|
|
@@ -5928,7 +5933,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5928
5933
|
}, ""),
|
|
5929
5934
|
o("div", Wa, [
|
|
5930
5935
|
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (u(), g("span", Ga, k((d = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : d.level) + " , ", 1)) : V("", !0),
|
|
5931
|
-
|
|
5936
|
+
ye(k((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5932
5937
|
]),
|
|
5933
5938
|
o("div", Ua, " Last update: " + k(s.computeTime(((L = (p = i.activeTropicals) == null ? void 0 : p.history) == null ? void 0 : L.updated) || ((A = (E = (x = i.activeTropicals) == null ? void 0 : x.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : A.date))), 1)
|
|
5934
5939
|
]),
|
|
@@ -5960,15 +5965,15 @@ function si(a, e, t, r, i, s) {
|
|
|
5960
5965
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
5961
5966
|
o("div", ai, [
|
|
5962
5967
|
(u(!0), g(ee, null, ae((P = i.activeTropicals) == null ? void 0 : P.forecasts, (D, N) => {
|
|
5963
|
-
var H, j,
|
|
5968
|
+
var H, j, U, G;
|
|
5964
5969
|
return u(), g("div", {
|
|
5965
5970
|
key: N,
|
|
5966
5971
|
class: te([
|
|
5967
5972
|
"model",
|
|
5968
5973
|
D.disabled ? "" : "active",
|
|
5969
|
-
N > 0 && N < ((j = (H = i.activeTropicals) == null ? void 0 : H.forecasts) == null ? void 0 : j.length) - 1 && ((
|
|
5974
|
+
N > 0 && N < ((j = (H = i.activeTropicals) == null ? void 0 : H.forecasts) == null ? void 0 : j.length) - 1 && ((G = (U = i.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : G.length) > 2 ? "center-child" : ""
|
|
5970
5975
|
]),
|
|
5971
|
-
onClick: (
|
|
5976
|
+
onClick: (de) => s.handleForecastToggle(D)
|
|
5972
5977
|
}, [
|
|
5973
5978
|
o("span", {
|
|
5974
5979
|
class: te(D.model)
|
|
@@ -6086,7 +6091,7 @@ const oi = {
|
|
|
6086
6091
|
[1, "rgba(197,5,58,0.8)"]
|
|
6087
6092
|
];
|
|
6088
6093
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6089
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6094
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
6090
6095
|
this.program = e, this.aPositionBuffer = t;
|
|
6091
6096
|
}
|
|
6092
6097
|
},
|
|
@@ -6105,7 +6110,7 @@ function li(a, e, t, r, i, s) {
|
|
|
6105
6110
|
return (n = t.factor) != null && n.active ? (u(), g("div", ni, [
|
|
6106
6111
|
o("div", {
|
|
6107
6112
|
class: "legend-bars flex-center",
|
|
6108
|
-
style:
|
|
6113
|
+
style: fe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6109
6114
|
}, e[0] || (e[0] = [
|
|
6110
6115
|
o("span", null, "mm", -1),
|
|
6111
6116
|
o("span", null, "1.5", -1),
|
|
@@ -6200,7 +6205,7 @@ const ci = {
|
|
|
6200
6205
|
[1, "rgba(144,144,144,0)"]
|
|
6201
6206
|
];
|
|
6202
6207
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6203
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6208
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
6204
6209
|
this.program = e, this.aPositionBuffer = t;
|
|
6205
6210
|
}
|
|
6206
6211
|
},
|
|
@@ -6219,7 +6224,7 @@ function pi(a, e, t, r, i, s) {
|
|
|
6219
6224
|
return (n = t.factor) != null && n.active ? (u(), g("div", di, [
|
|
6220
6225
|
o("div", {
|
|
6221
6226
|
class: "legend-bars flex-center",
|
|
6222
|
-
style:
|
|
6227
|
+
style: fe([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
6223
6228
|
}, e[0] || (e[0] = [
|
|
6224
6229
|
o("span", null, "nm", -1),
|
|
6225
6230
|
o("span", null, "0", -1),
|
|
@@ -6320,7 +6325,7 @@ const ui = {
|
|
|
6320
6325
|
//
|
|
6321
6326
|
];
|
|
6322
6327
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6323
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6328
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
6324
6329
|
this.program = e, this.aPositionBuffer = t;
|
|
6325
6330
|
}
|
|
6326
6331
|
},
|
|
@@ -6339,7 +6344,7 @@ function yi(a, e, t, r, i, s) {
|
|
|
6339
6344
|
return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
|
|
6340
6345
|
o("div", {
|
|
6341
6346
|
class: "legend-bars flex-center",
|
|
6342
|
-
style:
|
|
6347
|
+
style: fe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6343
6348
|
}, e[0] || (e[0] = [
|
|
6344
6349
|
o("span", null, "°C", -1),
|
|
6345
6350
|
o("span", null, "0", -1),
|
|
@@ -6443,7 +6448,7 @@ const Ai = {
|
|
|
6443
6448
|
[1, "rgb(138, 43, 10)"]
|
|
6444
6449
|
];
|
|
6445
6450
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6446
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6451
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ce.vertexSchema, ce.fragmentSchema);
|
|
6447
6452
|
this.program = e, this.aPositionBuffer = t;
|
|
6448
6453
|
}
|
|
6449
6454
|
},
|
|
@@ -6462,7 +6467,7 @@ function vi(a, e, t, r, i, s) {
|
|
|
6462
6467
|
return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
|
|
6463
6468
|
o("div", {
|
|
6464
6469
|
class: "legend-bars flex-center",
|
|
6465
|
-
style:
|
|
6470
|
+
style: fe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6466
6471
|
}, e[0] || (e[0] = [
|
|
6467
6472
|
o("span", null, "°C", -1),
|
|
6468
6473
|
o("span", null, "-20", -1),
|
|
@@ -6638,17 +6643,17 @@ const _i = {
|
|
|
6638
6643
|
},
|
|
6639
6644
|
computeLat() {
|
|
6640
6645
|
return function(a, e = 4) {
|
|
6641
|
-
return
|
|
6646
|
+
return he.lat2pretty(a, e).pretty;
|
|
6642
6647
|
};
|
|
6643
6648
|
},
|
|
6644
6649
|
computeLng() {
|
|
6645
6650
|
return function(a, e = 4) {
|
|
6646
|
-
return
|
|
6651
|
+
return he.lng2pretty(a, e).pretty;
|
|
6647
6652
|
};
|
|
6648
6653
|
},
|
|
6649
6654
|
roundPrecision() {
|
|
6650
6655
|
return function(a, e = 4) {
|
|
6651
|
-
return isNaN(a) ? "-" :
|
|
6656
|
+
return isNaN(a) ? "-" : he.roundPrecision(a, e);
|
|
6652
6657
|
};
|
|
6653
6658
|
}
|
|
6654
6659
|
},
|
|
@@ -6691,16 +6696,16 @@ const _i = {
|
|
|
6691
6696
|
initTableData(a) {
|
|
6692
6697
|
var e, t, r, i, s, n, l, c, d;
|
|
6693
6698
|
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ye(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, ie(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6694
|
-
var p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j,
|
|
6699
|
+
var p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, U, G, de, re, pe, ve, me, be, ue, ge, W, Z, oe, le, Ae;
|
|
6695
6700
|
if (!document.getElementById("meteoMainBox"))
|
|
6696
6701
|
return !1;
|
|
6697
6702
|
if (!this.currentHourData)
|
|
6698
6703
|
return this.loading = !1, this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender(), !1;
|
|
6699
|
-
for (let
|
|
6700
|
-
const xe = Ye(this.ts).tz(this.positionGmt).add(3 *
|
|
6704
|
+
for (let Le = 0; Le < 8; Le++) {
|
|
6705
|
+
const xe = Ye(this.ts).tz(this.positionGmt).add(3 * Le, "h").format();
|
|
6701
6706
|
this.tableData.hours.push(xe);
|
|
6702
6707
|
const B = ((p = Ke.pickHourly(a, xe)) == null ? void 0 : p[0]) || {};
|
|
6703
|
-
this.tableData.temp.push(this.roundPrecision((L = B == null ? void 0 : B.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (P = B == null ? void 0 : B.wave) == null ? void 0 : P.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((
|
|
6708
|
+
this.tableData.temp.push(this.roundPrecision((L = B == null ? void 0 : B.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (x = B == null ? void 0 : B.weather) == null ? void 0 : x.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (P = B == null ? void 0 : B.wave) == null ? void 0 : P.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((U = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : U.height, 1) ?? "-"), this.tableData.windwaveDir.push((de = (G = B == null ? void 0 : B.wave) == null ? void 0 : G.wd) == null ? void 0 : de.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((pe = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((me = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : me.height, 1) ?? "-"), this.tableData.swellDir.push((ue = (be = B == null ? void 0 : B.wave) == null ? void 0 : be.swell) == null ? void 0 : ue.bearing), this.tableData.swellPeriod.push(this.roundPrecision((W = (ge = B == null ? void 0 : B.wave) == null ? void 0 : ge.swell) == null ? void 0 : W.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Z = B == null ? void 0 : B.current) == null ? void 0 : Z.speed, 1) ?? "-"), this.tableData.currentDir.push((oe = B == null ? void 0 : B.current) == null ? void 0 : oe.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((le = B == null ? void 0 : B.weather) == null ? void 0 : le.url), this.tableData.weatherNames.push(((Ae = B == null ? void 0 : B.weather) == null ? void 0 : Ae.name) ?? "-");
|
|
6704
6709
|
}
|
|
6705
6710
|
});
|
|
6706
6711
|
},
|
|
@@ -6826,7 +6831,7 @@ const _i = {
|
|
|
6826
6831
|
class: "main-box flex-center"
|
|
6827
6832
|
};
|
|
6828
6833
|
function Qr(a, e, t, r, i, s) {
|
|
6829
|
-
var d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j,
|
|
6834
|
+
var d, h, p, L, x, E, A, I, _, y, v, m, b, f, w, P, D, N, H, j, U, G, de, re, pe, ve, me, be, ue, ge, W, Z, oe, le, Ae, Le, xe, B, Ee, Ce, ke, Be, ze, _e, J, q, S, De, K, $, Se, M, we, Me, Te, Qe, z, O, Ge, Ue, ne, Ne, tt, at, it, rt, st, ot;
|
|
6830
6835
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6831
6836
|
return Fe((u(), g("div", Bi, [
|
|
6832
6837
|
o("div", Ii, [
|
|
@@ -6889,7 +6894,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6889
6894
|
}, 8, ["content"]),
|
|
6890
6895
|
o("div", Qi, [
|
|
6891
6896
|
o("div", null, [
|
|
6892
|
-
|
|
6897
|
+
ye(k(s.roundPrecision((E = (x = i.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : E.temp, 0)), 1),
|
|
6893
6898
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6894
6899
|
])
|
|
6895
6900
|
]),
|
|
@@ -6939,7 +6944,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6939
6944
|
colspan: "1",
|
|
6940
6945
|
class: "tr-title"
|
|
6941
6946
|
}, [
|
|
6942
|
-
|
|
6947
|
+
ye("Hours"),
|
|
6943
6948
|
o("span", { class: "unit" }, "(LT)")
|
|
6944
6949
|
], -1)),
|
|
6945
6950
|
(u(!0), g(ee, null, ae(i.tableData.hours, (C) => (u(), g("th", {
|
|
@@ -6954,7 +6959,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6954
6959
|
colspan: "1",
|
|
6955
6960
|
class: "tr-title"
|
|
6956
6961
|
}, [
|
|
6957
|
-
|
|
6962
|
+
ye("UTC"),
|
|
6958
6963
|
o("span", { class: "unit" })
|
|
6959
6964
|
], -1)),
|
|
6960
6965
|
(u(!0), g(ee, null, ae(i.tableData.hours, (C) => (u(), g("th", {
|
|
@@ -6998,7 +7003,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6998
7003
|
colspan: "1",
|
|
6999
7004
|
class: "tr-title"
|
|
7000
7005
|
}, [
|
|
7001
|
-
|
|
7006
|
+
ye("Temp"),
|
|
7002
7007
|
o("span", { class: "unit" }, "°C")
|
|
7003
7008
|
], -1)),
|
|
7004
7009
|
(u(!0), g(ee, null, ae(i.tableData.temp, (C, T) => (u(), g("td", {
|
|
@@ -7013,7 +7018,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7013
7018
|
colspan: "1",
|
|
7014
7019
|
class: "tr-title"
|
|
7015
7020
|
}, [
|
|
7016
|
-
|
|
7021
|
+
ye("Precip"),
|
|
7017
7022
|
o("span", { class: "unit" }, "mm")
|
|
7018
7023
|
], -1)),
|
|
7019
7024
|
(u(!0), g(ee, null, ae(i.tableData.precip1h, (C, T) => (u(), g("td", {
|
|
@@ -7028,7 +7033,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7028
7033
|
colspan: "1",
|
|
7029
7034
|
class: "tr-title"
|
|
7030
7035
|
}, [
|
|
7031
|
-
|
|
7036
|
+
ye("Visibility"),
|
|
7032
7037
|
o("span", { class: "unit" }, "nm")
|
|
7033
7038
|
], -1)),
|
|
7034
7039
|
(u(!0), g(ee, null, ae(i.tableData.visibility, (C, T) => (u(), g("td", {
|
|
@@ -7043,7 +7048,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7043
7048
|
colspan: "1",
|
|
7044
7049
|
class: "tr-title"
|
|
7045
7050
|
}, [
|
|
7046
|
-
|
|
7051
|
+
ye("Wind gust"),
|
|
7047
7052
|
o("span", { class: "unit" }, "kts")
|
|
7048
7053
|
], -1)),
|
|
7049
7054
|
(u(!0), g(ee, null, ae(i.tableData.windGust, (C, T) => (u(), g("td", {
|
|
@@ -7064,7 +7069,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7064
7069
|
colspan: "1",
|
|
7065
7070
|
class: "tr-title"
|
|
7066
7071
|
}, [
|
|
7067
|
-
|
|
7072
|
+
ye("Hours"),
|
|
7068
7073
|
o("span", { class: "unit" }, "(LT)")
|
|
7069
7074
|
], -1)),
|
|
7070
7075
|
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
@@ -7079,7 +7084,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7079
7084
|
colspan: "1",
|
|
7080
7085
|
class: "tr-title"
|
|
7081
7086
|
}, [
|
|
7082
|
-
|
|
7087
|
+
ye("UTC"),
|
|
7083
7088
|
o("span", { class: "unit" })
|
|
7084
7089
|
], -1)),
|
|
7085
7090
|
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
@@ -7094,7 +7099,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7094
7099
|
colspan: "1",
|
|
7095
7100
|
class: "tr-title"
|
|
7096
7101
|
}, [
|
|
7097
|
-
|
|
7102
|
+
ye("Wind"),
|
|
7098
7103
|
o("span", { class: "unit" }, "kts")
|
|
7099
7104
|
], -1)),
|
|
7100
7105
|
(u(!0), g(ee, null, ae(i.tableData.windSpeed, (C, T) => (u(), g("td", {
|
|
@@ -7105,7 +7110,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7105
7110
|
isNaN(i.tableData.windDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7106
7111
|
key: 0,
|
|
7107
7112
|
class: "iconfont icon wind",
|
|
7108
|
-
style:
|
|
7113
|
+
style: fe({ display: "inline-block", transform: `rotate(${i.tableData.windDir[T]}deg)` })
|
|
7109
7114
|
}, "", 4)),
|
|
7110
7115
|
o("span", null, k(C), 1)
|
|
7111
7116
|
]))), 128))
|
|
@@ -7116,7 +7121,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7116
7121
|
colspan: "1",
|
|
7117
7122
|
class: "tr-title"
|
|
7118
7123
|
}, [
|
|
7119
|
-
|
|
7124
|
+
ye("Sig Wave"),
|
|
7120
7125
|
o("span", { class: "unit" }, "m")
|
|
7121
7126
|
], -1)),
|
|
7122
7127
|
(u(!0), g(ee, null, ae(i.tableData.sigwaveHeight, (C, T) => (u(), g("td", {
|
|
@@ -7127,7 +7132,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7127
7132
|
isNaN(i.tableData.sigwaveDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7128
7133
|
key: 0,
|
|
7129
7134
|
class: "iconfont icon sigwave",
|
|
7130
|
-
style:
|
|
7135
|
+
style: fe({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[T]}deg)` })
|
|
7131
7136
|
}, "", 4)),
|
|
7132
7137
|
o("span", null, k(C), 1)
|
|
7133
7138
|
]))), 128))
|
|
@@ -7138,7 +7143,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7138
7143
|
colspan: "1",
|
|
7139
7144
|
class: "tr-title"
|
|
7140
7145
|
}, [
|
|
7141
|
-
|
|
7146
|
+
ye("Wind Wave"),
|
|
7142
7147
|
o("span", { class: "unit" }, "m")
|
|
7143
7148
|
], -1)),
|
|
7144
7149
|
(u(!0), g(ee, null, ae(i.tableData.windwaveHeight, (C, T) => (u(), g("td", {
|
|
@@ -7149,7 +7154,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7149
7154
|
isNaN(i.tableData.sigwaveDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7150
7155
|
key: 0,
|
|
7151
7156
|
class: "iconfont icon windwave",
|
|
7152
|
-
style:
|
|
7157
|
+
style: fe({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[T]}deg)` })
|
|
7153
7158
|
}, "", 4)),
|
|
7154
7159
|
o("span", null, k(C), 1)
|
|
7155
7160
|
]))), 128))
|
|
@@ -7160,7 +7165,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7160
7165
|
colspan: "1",
|
|
7161
7166
|
class: "tr-title"
|
|
7162
7167
|
}, [
|
|
7163
|
-
|
|
7168
|
+
ye("Swell"),
|
|
7164
7169
|
o("span", { class: "unit" }, "m")
|
|
7165
7170
|
], -1)),
|
|
7166
7171
|
(u(!0), g(ee, null, ae(i.tableData.swellHeight, (C, T) => (u(), g("td", {
|
|
@@ -7171,7 +7176,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7171
7176
|
isNaN(i.tableData.swellDir[T]) ? V("", !0) : (u(), g("span", {
|
|
7172
7177
|
key: 0,
|
|
7173
7178
|
class: "iconfont icon swell",
|
|
7174
|
-
style:
|
|
7179
|
+
style: fe({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[T]}deg)` })
|
|
7175
7180
|
}, "", 4)),
|
|
7176
7181
|
o("span", null, k(C), 1)
|
|
7177
7182
|
]))), 128))
|
|
@@ -7182,7 +7187,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7182
7187
|
colspan: "1",
|
|
7183
7188
|
class: "tr-title"
|
|
7184
7189
|
}, [
|
|
7185
|
-
|
|
7190
|
+
ye("Current"),
|
|
7186
7191
|
o("span", { class: "unit" }, "kts")
|
|
7187
7192
|
], -1)),
|
|
7188
7193
|
(u(!0), g(ee, null, ae(i.tableData.currentSpeed, (C, T) => (u(), g("td", {
|
|
@@ -7194,7 +7199,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7194
7199
|
key: 0,
|
|
7195
7200
|
class: "iconfont icon current",
|
|
7196
7201
|
id: "meteoGrayIcon",
|
|
7197
|
-
style:
|
|
7202
|
+
style: fe({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[T]}deg)` })
|
|
7198
7203
|
}, "", 4)),
|
|
7199
7204
|
o("span", null, k(C), 1)
|
|
7200
7205
|
]))), 128))
|
|
@@ -7209,7 +7214,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7209
7214
|
colspan: "1",
|
|
7210
7215
|
class: "tr-title"
|
|
7211
7216
|
}, [
|
|
7212
|
-
|
|
7217
|
+
ye("Hours"),
|
|
7213
7218
|
o("span", { class: "unit" }, "(LT)")
|
|
7214
7219
|
], -1)),
|
|
7215
7220
|
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
@@ -7224,7 +7229,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7224
7229
|
colspan: "1",
|
|
7225
7230
|
class: "tr-title"
|
|
7226
7231
|
}, [
|
|
7227
|
-
|
|
7232
|
+
ye("UTC"),
|
|
7228
7233
|
o("span", { class: "unit" })
|
|
7229
7234
|
], -1)),
|
|
7230
7235
|
(u(!0), g(ee, null, ae(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
@@ -7239,7 +7244,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7239
7244
|
colspan: "1",
|
|
7240
7245
|
class: "tr-title"
|
|
7241
7246
|
}, [
|
|
7242
|
-
|
|
7247
|
+
ye("SeaLevel"),
|
|
7243
7248
|
o("span", { class: "unit" }, "m")
|
|
7244
7249
|
], -1)),
|
|
7245
7250
|
(u(!0), g(ee, null, ae(i.tableData.seaLevel, (C, T) => (u(), g("td", {
|
|
@@ -7254,7 +7259,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7254
7259
|
colspan: "1",
|
|
7255
7260
|
class: "tr-title"
|
|
7256
7261
|
}, [
|
|
7257
|
-
|
|
7262
|
+
ye("SeaTemp"),
|
|
7258
7263
|
o("span", { class: "unit" }, "°C")
|
|
7259
7264
|
], -1)),
|
|
7260
7265
|
(u(!0), g(ee, null, ae(i.tableData.seaTemp, (C, T) => (u(), g("td", {
|
|
@@ -7306,21 +7311,21 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7306
7311
|
o("div", vr, [
|
|
7307
7312
|
o("div", br, [
|
|
7308
7313
|
e[33] || (e[33] = o("div", null, "Wind", -1)),
|
|
7309
|
-
o("div", null, k((H = (N = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : N.wind) == null ? void 0 : H.direction) + "/" + k(s.roundPrecision((
|
|
7314
|
+
o("div", null, k((H = (N = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : N.wind) == null ? void 0 : H.direction) + "/" + k(s.roundPrecision((G = (U = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : U.wind) == null ? void 0 : G.kts, 1)) + "kts/BF" + k((pe = (re = (de = i.currentHourData) == null ? void 0 : de.weather) == null ? void 0 : re.wind) == null ? void 0 : pe.scale) + "/" + k(s.roundPrecision((be = (me = (ve = i.currentHourData) == null ? void 0 : ve.weather) == null ? void 0 : me.wind) == null ? void 0 : be.gusts, 1)) + " kts", 1)
|
|
7310
7315
|
]),
|
|
7311
7316
|
o("div", Lr, [
|
|
7312
7317
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7313
|
-
o("div", null, k((
|
|
7318
|
+
o("div", null, k((W = (ge = (ue = i.currentHourData) == null ? void 0 : ue.wave) == null ? void 0 : ge.sig) == null ? void 0 : W.direction) + "/" + k(s.roundPrecision((le = (oe = (Z = i.currentHourData) == null ? void 0 : Z.wave) == null ? void 0 : oe.sig) == null ? void 0 : le.height, 1)) + "m/" + k(s.roundPrecision((xe = (Le = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : Le.sig) == null ? void 0 : xe.period, 1)) + "s", 1)
|
|
7314
7319
|
])
|
|
7315
7320
|
]),
|
|
7316
7321
|
o("div", Cr, [
|
|
7317
7322
|
o("div", xr, [
|
|
7318
7323
|
e[35] || (e[35] = o("div", null, "Wind wave", -1)),
|
|
7319
|
-
o("div", null, k((
|
|
7324
|
+
o("div", null, k((Ce = (Ee = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : Ee.wd) == null ? void 0 : Ce.direction) + "/" + k(s.roundPrecision((ze = (Be = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : Be.wd) == null ? void 0 : ze.height, 1)) + "m/" + k(s.roundPrecision((q = (J = (_e = i.currentHourData) == null ? void 0 : _e.wave) == null ? void 0 : J.wd) == null ? void 0 : q.period, 1)) + "s", 1)
|
|
7320
7325
|
]),
|
|
7321
7326
|
o("div", _r, [
|
|
7322
7327
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
7323
|
-
o("div", null, k((K = (De = (S = i.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : De.swell) == null ? void 0 : K.direction) + "/" + k(s.roundPrecision((M = (Se = ($ = i.currentHourData) == null ? void 0 : $.wave) == null ? void 0 : Se.swell) == null ? void 0 : M.height, 1)) + "m/" + k(s.roundPrecision((Te = (Me = (
|
|
7328
|
+
o("div", null, k((K = (De = (S = i.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : De.swell) == null ? void 0 : K.direction) + "/" + k(s.roundPrecision((M = (Se = ($ = i.currentHourData) == null ? void 0 : $.wave) == null ? void 0 : Se.swell) == null ? void 0 : M.height, 1)) + "m/" + k(s.roundPrecision((Te = (Me = (we = i.currentHourData) == null ? void 0 : we.wave) == null ? void 0 : Me.swell) == null ? void 0 : Te.period, 1)) + "s", 1)
|
|
7324
7329
|
])
|
|
7325
7330
|
]),
|
|
7326
7331
|
o("div", Br, [
|
|
@@ -7336,7 +7341,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7336
7341
|
o("div", kr, [
|
|
7337
7342
|
o("div", Dr, [
|
|
7338
7343
|
e[39] || (e[39] = o("div", null, "Sea Temp", -1)),
|
|
7339
|
-
o("div", null, k(s.roundPrecision((
|
|
7344
|
+
o("div", null, k(s.roundPrecision((ne = i.currentHourData) == null ? void 0 : ne.sst, 1)) + "°C", 1)
|
|
7340
7345
|
]),
|
|
7341
7346
|
o("div", zr, [
|
|
7342
7347
|
e[40] || (e[40] = o("div", null, "Visibility", -1)),
|
|
@@ -7874,12 +7879,12 @@ const Zr = {
|
|
|
7874
7879
|
computed: {
|
|
7875
7880
|
computeLat() {
|
|
7876
7881
|
return function(a) {
|
|
7877
|
-
return
|
|
7882
|
+
return he.lat2pretty(a, 4).pretty;
|
|
7878
7883
|
};
|
|
7879
7884
|
},
|
|
7880
7885
|
computeLng() {
|
|
7881
7886
|
return function(a) {
|
|
7882
|
-
return
|
|
7887
|
+
return he.lng2pretty(a, 4).pretty;
|
|
7883
7888
|
};
|
|
7884
7889
|
}
|
|
7885
7890
|
},
|
|
@@ -8351,7 +8356,7 @@ const ys = /* @__PURE__ */ Y(us, [["render", gs]]), fs = {
|
|
|
8351
8356
|
methods: {
|
|
8352
8357
|
handleRender() {
|
|
8353
8358
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
8354
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
8359
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => he.convertToMonotonicLng2(e));
|
|
8355
8360
|
}), this.map.addSource(this.source, {
|
|
8356
8361
|
type: "geojson",
|
|
8357
8362
|
data: this.area
|
|
@@ -8531,7 +8536,7 @@ const Cs = {
|
|
|
8531
8536
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
8532
8537
|
},
|
|
8533
8538
|
handleMouseMove(a) {
|
|
8534
|
-
const e = a.lngLat, t =
|
|
8539
|
+
const e = a.lngLat, t = he.lng2pretty(e.lng, 2), r = he.lat2pretty(e.lat, 2);
|
|
8535
8540
|
this.lngLat = { lng: t, lat: r };
|
|
8536
8541
|
},
|
|
8537
8542
|
handleComputeLatLngs() {
|
|
@@ -8632,7 +8637,7 @@ function xs(a, e, t, r, i, s) {
|
|
|
8632
8637
|
return i.lngLat ? (u(), g("div", {
|
|
8633
8638
|
key: 0,
|
|
8634
8639
|
class: "lat-lng-tip",
|
|
8635
|
-
style:
|
|
8640
|
+
style: fe({ right: i.right + "px", bottom: t.bottom })
|
|
8636
8641
|
}, [
|
|
8637
8642
|
o("span", null, k(i.lngLat.lat.pretty), 1),
|
|
8638
8643
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
@@ -8787,9 +8792,9 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8787
8792
|
const r = [];
|
|
8788
8793
|
for (let i = 1; i < e.length; i++) {
|
|
8789
8794
|
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = je.calculateDistance(c, d, l.mode === "RL", 4), p = je.calculateBearing(c, d, l.mode === "RL", 2);
|
|
8790
|
-
t =
|
|
8795
|
+
t = he.roundPrecision(t + h, 2);
|
|
8791
8796
|
let L;
|
|
8792
|
-
l.mode === "RL" ? L =
|
|
8797
|
+
l.mode === "RL" ? L = he.convertToMonotonicLng([c, d]) : L = he.convertToMonotonicLng(je.interpolateCoordinates(c, d, 200));
|
|
8793
8798
|
const x = Q.lineString(L.map((E) => [E.lng, E.lat]));
|
|
8794
8799
|
x.properties.dist = h, x.properties.bearing = p, x.properties.total = t, r.push(x);
|
|
8795
8800
|
}
|
|
@@ -8804,7 +8809,7 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8804
8809
|
const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8805
8810
|
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8806
8811
|
let p;
|
|
8807
|
-
c.mode === "RL" ? p =
|
|
8812
|
+
c.mode === "RL" ? p = he.convertToMonotonicLng([d, h]) : p = he.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8808
8813
|
const L = Q.lineString(p.map((x) => [x.lng, x.lat]));
|
|
8809
8814
|
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8810
8815
|
}
|
|
@@ -8812,7 +8817,7 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8812
8817
|
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8813
8818
|
s = je.calculateDistance(d, h, c.mode === "RL", 4), n = je.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8814
8819
|
let p;
|
|
8815
|
-
c.mode === "RL" ? p =
|
|
8820
|
+
c.mode === "RL" ? p = he.convertToMonotonicLng([d, h]) : p = he.convertToMonotonicLng(je.interpolateCoordinates(d, h, 200));
|
|
8816
8821
|
const L = Q.lineString(p.map((x) => [x.lng, x.lat]));
|
|
8817
8822
|
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8818
8823
|
}
|
|
@@ -8854,7 +8859,7 @@ const pt = /* @__PURE__ */ Y(Cs, [["render", xs], ["__scopeId", "data-v-747fb3c8
|
|
|
8854
8859
|
}
|
|
8855
8860
|
});
|
|
8856
8861
|
let l;
|
|
8857
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${
|
|
8862
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${he.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
8858
8863
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8859
8864
|
else {
|
|
8860
8865
|
const c = document.createElement("div");
|
|
@@ -8999,7 +9004,7 @@ function zs(a, e, t, r, i, s) {
|
|
|
8999
9004
|
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", ks, [
|
|
9000
9005
|
o("div", {
|
|
9001
9006
|
class: "menu-bar-box",
|
|
9002
|
-
style:
|
|
9007
|
+
style: fe({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
9003
9008
|
}, [
|
|
9004
9009
|
o("div", Ds, [
|
|
9005
9010
|
F(n, {
|
|
@@ -9393,11 +9398,11 @@ const js = {
|
|
|
9393
9398
|
);
|
|
9394
9399
|
const f = await Promise.all(b);
|
|
9395
9400
|
this.weatherLayers = {}, f.map((w) => {
|
|
9396
|
-
var N, H, j,
|
|
9401
|
+
var N, H, j, U;
|
|
9397
9402
|
const P = ((N = w == null ? void 0 : w.data) == null ? void 0 : N.data) || (w == null ? void 0 : w.data), D = (j = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : j.key;
|
|
9398
9403
|
D && P && (this.weatherLayers[D] = {
|
|
9399
9404
|
raw: P,
|
|
9400
|
-
type: ((
|
|
9405
|
+
type: ((U = w == null ? void 0 : w.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
|
|
9401
9406
|
etime: v.data.etime
|
|
9402
9407
|
});
|
|
9403
9408
|
}), m.tropicals && He.get(m.tropicals, {
|
|
@@ -9552,7 +9557,7 @@ const js = {
|
|
|
9552
9557
|
var d, h, p, L, x, E;
|
|
9553
9558
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9554
9559
|
let e = 0, t = 0;
|
|
9555
|
-
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s =
|
|
9560
|
+
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = he.convertToStdLng(r._sw.lng), n = he.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
9556
9561
|
for (const A in this.weatherLayers) {
|
|
9557
9562
|
let I = !1;
|
|
9558
9563
|
if (this.weatherLayers[A].active && this.weatherLayers[A].type === "json") {
|
|
@@ -9564,38 +9569,38 @@ const js = {
|
|
|
9564
9569
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9565
9570
|
const b = y[m].lng;
|
|
9566
9571
|
s > n ? b.forEach((f, w) => {
|
|
9567
|
-
var P, D, N, H, j,
|
|
9572
|
+
var P, D, N, H, j, U;
|
|
9568
9573
|
if (i < 2) {
|
|
9569
9574
|
if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
|
|
9570
|
-
const
|
|
9575
|
+
const G = Q.point([f, m], {
|
|
9571
9576
|
val: ((P = y[m].val) == null ? void 0 : P[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
|
|
9572
9577
|
spd: (N = y[m].spd) == null ? void 0 : N[w]
|
|
9573
9578
|
});
|
|
9574
|
-
_.push(
|
|
9579
|
+
_.push(G);
|
|
9575
9580
|
}
|
|
9576
9581
|
} else if ((f >= s && f <= 180 || f >= -180 && f <= n) && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9577
|
-
const
|
|
9582
|
+
const G = Q.point([f, m], {
|
|
9578
9583
|
val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
|
|
9579
|
-
spd: (
|
|
9584
|
+
spd: (U = y[m].spd) == null ? void 0 : U[w]
|
|
9580
9585
|
});
|
|
9581
|
-
_.push(
|
|
9586
|
+
_.push(G);
|
|
9582
9587
|
}
|
|
9583
9588
|
}) : b.forEach((f, w) => {
|
|
9584
|
-
var P, D, N, H, j,
|
|
9589
|
+
var P, D, N, H, j, U;
|
|
9585
9590
|
if (s < 2) {
|
|
9586
9591
|
if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
|
|
9587
|
-
const
|
|
9592
|
+
const G = Q.point([f, m], {
|
|
9588
9593
|
val: ((P = y[m].val) == null ? void 0 : P[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
|
|
9589
9594
|
spd: (N = y[m].spd) == null ? void 0 : N[w]
|
|
9590
9595
|
});
|
|
9591
|
-
_.push(
|
|
9596
|
+
_.push(G);
|
|
9592
9597
|
}
|
|
9593
9598
|
} else if (f >= s && f <= n && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9594
|
-
const
|
|
9599
|
+
const G = Q.point([f, m], {
|
|
9595
9600
|
val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
|
|
9596
|
-
spd: (
|
|
9601
|
+
spd: (U = y[m].spd) == null ? void 0 : U[w]
|
|
9597
9602
|
});
|
|
9598
|
-
_.push(
|
|
9603
|
+
_.push(G);
|
|
9599
9604
|
}
|
|
9600
9605
|
});
|
|
9601
9606
|
}
|
|
@@ -9628,38 +9633,38 @@ const js = {
|
|
|
9628
9633
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9629
9634
|
const b = y[m].lng;
|
|
9630
9635
|
s > n ? b.forEach((f, w) => {
|
|
9631
|
-
var P, D, N, H, j,
|
|
9636
|
+
var P, D, N, H, j, U;
|
|
9632
9637
|
if (i < 2) {
|
|
9633
9638
|
if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
|
|
9634
|
-
const
|
|
9639
|
+
const G = Q.point([f, m], {
|
|
9635
9640
|
val: ((P = y[m].val) == null ? void 0 : P[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
|
|
9636
9641
|
spd: (N = y[m].spd) == null ? void 0 : N[w]
|
|
9637
9642
|
});
|
|
9638
|
-
_.push(
|
|
9643
|
+
_.push(G);
|
|
9639
9644
|
}
|
|
9640
9645
|
} else if ((f >= s && f <= 180 || f >= -180 && f <= n) && (!(i <= this.zoom) || f % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9641
|
-
const
|
|
9646
|
+
const G = Q.point([f, m], {
|
|
9642
9647
|
val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
|
|
9643
|
-
spd: (
|
|
9648
|
+
spd: (U = y[m].spd) == null ? void 0 : U[w]
|
|
9644
9649
|
});
|
|
9645
|
-
_.push(
|
|
9650
|
+
_.push(G);
|
|
9646
9651
|
}
|
|
9647
9652
|
}) : b.forEach((f, w) => {
|
|
9648
|
-
var P, D, N, H, j,
|
|
9653
|
+
var P, D, N, H, j, U;
|
|
9649
9654
|
if (s < 2) {
|
|
9650
9655
|
if ((f >= 0 && f <= 360 || f >= -360 && f <= 0) && f % 10 === 0) {
|
|
9651
|
-
const
|
|
9656
|
+
const G = Q.point([f, m], {
|
|
9652
9657
|
val: ((P = y[m].val) == null ? void 0 : P[w]) || ((D = y[m].dir) == null ? void 0 : D[w]),
|
|
9653
9658
|
spd: (N = y[m].spd) == null ? void 0 : N[w]
|
|
9654
9659
|
});
|
|
9655
|
-
_.push(
|
|
9660
|
+
_.push(G);
|
|
9656
9661
|
}
|
|
9657
9662
|
} else if (f >= s && f <= n && (!(i <= this.zoom) || f % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9658
|
-
const
|
|
9663
|
+
const G = Q.point([f, m], {
|
|
9659
9664
|
val: ((H = y[m].val) == null ? void 0 : H[w]) || ((j = y[m].dir) == null ? void 0 : j[w]),
|
|
9660
|
-
spd: (
|
|
9665
|
+
spd: (U = y[m].spd) == null ? void 0 : U[w]
|
|
9661
9666
|
});
|
|
9662
|
-
_.push(
|
|
9667
|
+
_.push(G);
|
|
9663
9668
|
}
|
|
9664
9669
|
});
|
|
9665
9670
|
}
|
|
@@ -9783,7 +9788,7 @@ const js = {
|
|
|
9783
9788
|
}
|
|
9784
9789
|
for (const m in y.Point)
|
|
9785
9790
|
y.Point[m].lng.forEach((b, f) => {
|
|
9786
|
-
b =
|
|
9791
|
+
b = he.convertToStdLng(b), v.push(
|
|
9787
9792
|
Q.point([b, m], {
|
|
9788
9793
|
val: y.Point[m].val[f],
|
|
9789
9794
|
type: y.Point[m].type[f]
|
|
@@ -9806,7 +9811,7 @@ const js = {
|
|
|
9806
9811
|
this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
|
|
9807
9812
|
},
|
|
9808
9813
|
handleBboxClip(a, e) {
|
|
9809
|
-
const t = [], r =
|
|
9814
|
+
const t = [], r = he.convertToStdLng(e._sw.lng), i = he.convertToStdLng(e._ne.lng);
|
|
9810
9815
|
return a.features.forEach((s) => {
|
|
9811
9816
|
if (s.geometry.type !== "Point")
|
|
9812
9817
|
if (r > i) {
|
|
@@ -9891,8 +9896,8 @@ const js = {
|
|
|
9891
9896
|
class: "map-gl-home"
|
|
9892
9897
|
};
|
|
9893
9898
|
function Gs(a, e, t, r, i, s) {
|
|
9894
|
-
var
|
|
9895
|
-
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), L = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), A = R("IdmIceCover"), I = R("IdmIceThickness"), _ = R("IdmTropicals"), y = R("IdmCurrents"), v = R("IdmCurrentParticle"), m = R("IdmWindBarb"), b = R("IdmWindParticle"), f = R("IdmPrecip3h"), w = R("IdmVisibility"), P = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), H = R("IdmGmdssArea"), j = R("IdmEcaZone"),
|
|
9899
|
+
var W, Z, oe, le, Ae, Le, xe, B, Ee, Ce, ke, Be, ze, _e, J, q, S, De, K, $, Se, M, we, Me, Te, Qe, z, O, Ge, Ue;
|
|
9900
|
+
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), d = R("IdmWorldMarine"), h = R("IdmChinaRoute"), p = R("IdmSigWave"), L = R("IdmSwell"), x = R("IdmPrmsl"), E = R("IdmIceEdge"), A = R("IdmIceCover"), I = R("IdmIceThickness"), _ = R("IdmTropicals"), y = R("IdmCurrents"), v = R("IdmCurrentParticle"), m = R("IdmWindBarb"), b = R("IdmWindParticle"), f = R("IdmPrecip3h"), w = R("IdmVisibility"), P = R("IdmWaterTemp"), D = R("IdmTemp"), N = R("IdmWarZone"), H = R("IdmGmdssArea"), j = R("IdmEcaZone"), U = R("IdmAlertZone"), G = R("IdmPort"), de = R("IdmLoadLine"), re = R("IdmTimezone"), pe = R("IdmVRA"), ve = R("IdmSpecialArea"), me = R("IdmTerminator"), be = R("IdmLatLng"), ue = R("IdmMeasure"), ge = R("IdmPoint");
|
|
9896
9901
|
return t.map ? (u(), g("div", Ws, [
|
|
9897
9902
|
F(n, X({
|
|
9898
9903
|
ref: "layer",
|
|
@@ -9909,57 +9914,57 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9909
9914
|
"forecast-model": t.forecastModel,
|
|
9910
9915
|
onWeather: s.handleWeatherLayerChange,
|
|
9911
9916
|
onOther: s.handleOtherLayerChange,
|
|
9912
|
-
onToggleWindParticle: e[0] || (e[0] = (
|
|
9913
|
-
onToggleWindFeather: e[1] || (e[1] = (
|
|
9914
|
-
(i.showWindFeather =
|
|
9917
|
+
onToggleWindParticle: e[0] || (e[0] = (ne) => i.showWindParticle = ne),
|
|
9918
|
+
onToggleWindFeather: e[1] || (e[1] = (ne) => {
|
|
9919
|
+
(i.showWindFeather = ne) && s.handleDrawWeather4Json();
|
|
9915
9920
|
}),
|
|
9916
|
-
onToggleCurrentParticle: e[2] || (e[2] = (
|
|
9917
|
-
onToggleCurrentIsoband: e[3] || (e[3] = (
|
|
9918
|
-
(i.showCurrentIsoband =
|
|
9921
|
+
onToggleCurrentParticle: e[2] || (e[2] = (ne) => i.showCurrentParticle = ne),
|
|
9922
|
+
onToggleCurrentIsoband: e[3] || (e[3] = (ne) => {
|
|
9923
|
+
(i.showCurrentIsoband = ne) && s.handleDrawWeather4Json();
|
|
9919
9924
|
}),
|
|
9920
|
-
onToggleWindParticeVersion: e[4] || (e[4] = (
|
|
9921
|
-
onToggleCurrentParticeVersion: e[5] || (e[5] = (
|
|
9922
|
-
onCoordinate: e[6] || (e[6] = (
|
|
9923
|
-
onMeasure: e[7] || (e[7] = (
|
|
9924
|
-
onPoint: e[8] || (e[8] = (
|
|
9925
|
+
onToggleWindParticeVersion: e[4] || (e[4] = (ne) => i.toggleWindParticeVersion = Math.random()),
|
|
9926
|
+
onToggleCurrentParticeVersion: e[5] || (e[5] = (ne) => i.toggleCurrentParticeVersion = Math.random()),
|
|
9927
|
+
onCoordinate: e[6] || (e[6] = (ne) => i.showCoord = ne),
|
|
9928
|
+
onMeasure: e[7] || (e[7] = (ne) => i.showMeasure = ne),
|
|
9929
|
+
onPoint: e[8] || (e[8] = (ne) => i.showPoint = ne),
|
|
9925
9930
|
on3d: s.handle3dToggle,
|
|
9926
9931
|
onHandleToggleVersion: s.handleToggleVersion
|
|
9927
9932
|
}), null, 16, ["map", "toggle-version", "map-projection", "show-wind-feather", "show-wind-particle", "show-current-isoband", "show-current-particle", "token", "gateway", "forecast-model", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
9928
9933
|
F(l, X({
|
|
9929
9934
|
map: t.map,
|
|
9930
9935
|
token: t.token,
|
|
9931
|
-
enabled: (
|
|
9936
|
+
enabled: (W = i.otherLayers) == null ? void 0 : W.enc,
|
|
9932
9937
|
"toggle-version": t.toggleVersion
|
|
9933
9938
|
}, a.$attrs, {
|
|
9934
|
-
onEnc: e[9] || (e[9] = (
|
|
9939
|
+
onEnc: e[9] || (e[9] = (ne) => i.enc = ne)
|
|
9935
9940
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
9936
9941
|
F(c, X({
|
|
9937
9942
|
map: t.map,
|
|
9938
9943
|
token: t.token,
|
|
9939
9944
|
"weather-layers": i.weatherLayers,
|
|
9940
|
-
enabled: (
|
|
9945
|
+
enabled: (Z = i.otherLayers) == null ? void 0 : Z.world12nm
|
|
9941
9946
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9942
9947
|
F(d, X({
|
|
9943
9948
|
map: t.map,
|
|
9944
9949
|
token: t.token,
|
|
9945
9950
|
"weather-layers": i.weatherLayers,
|
|
9946
|
-
enabled: (
|
|
9951
|
+
enabled: (oe = i.otherLayers) == null ? void 0 : oe.worldMarine
|
|
9947
9952
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9948
9953
|
F(h, X({
|
|
9949
9954
|
map: t.map,
|
|
9950
9955
|
token: t.token,
|
|
9951
9956
|
"weather-layers": i.weatherLayers,
|
|
9952
|
-
enabled: (
|
|
9957
|
+
enabled: (le = i.otherLayers) == null ? void 0 : le.chinaRoute
|
|
9953
9958
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9954
9959
|
F(p, X({
|
|
9955
9960
|
map: t.map,
|
|
9956
|
-
"sig-wave": (
|
|
9961
|
+
"sig-wave": (Ae = i.weatherLayers) == null ? void 0 : Ae["sig-wave-height"],
|
|
9957
9962
|
"before-layer": t.beforeLayer,
|
|
9958
9963
|
"active-weather-layers": i.activeWeatherLayers
|
|
9959
9964
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
|
|
9960
9965
|
F(L, X({
|
|
9961
9966
|
map: t.map,
|
|
9962
|
-
swell: (
|
|
9967
|
+
swell: (Le = i.weatherLayers) == null ? void 0 : Le.swell,
|
|
9963
9968
|
"before-layer": t.beforeLayer,
|
|
9964
9969
|
"active-weather-layers": i.activeWeatherLayers
|
|
9965
9970
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
@@ -9983,7 +9988,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9983
9988
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9984
9989
|
F(I, X({
|
|
9985
9990
|
viewport: i.viewport,
|
|
9986
|
-
factor: (
|
|
9991
|
+
factor: (Ce = i.weatherLayers) == null ? void 0 : Ce["ice-thickness"],
|
|
9987
9992
|
"toggle-version": t.toggleVersion,
|
|
9988
9993
|
"before-layer": t.beforeLayer
|
|
9989
9994
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
@@ -10072,21 +10077,21 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10072
10077
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10073
10078
|
F(j, X({
|
|
10074
10079
|
map: t.map,
|
|
10075
|
-
zone: (
|
|
10080
|
+
zone: (we = i.otherLayers) == null ? void 0 : we["eca-zones"],
|
|
10076
10081
|
"before-layer": t.beforeLayer
|
|
10077
10082
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10078
|
-
F(
|
|
10083
|
+
F(U, X({
|
|
10079
10084
|
map: t.map,
|
|
10080
10085
|
zone: (Me = i.otherLayers) == null ? void 0 : Me["alert-zones"],
|
|
10081
10086
|
"before-layer": t.beforeLayer
|
|
10082
10087
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10083
|
-
F(
|
|
10088
|
+
F(G, X({
|
|
10084
10089
|
map: t.map,
|
|
10085
10090
|
port: (Te = i.otherLayers) == null ? void 0 : Te.ports,
|
|
10086
10091
|
"before-layer": t.beforeLayer,
|
|
10087
10092
|
"forecast-model": t.forecastModel
|
|
10088
10093
|
}, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
|
|
10089
|
-
F(
|
|
10094
|
+
F(de, X({
|
|
10090
10095
|
map: t.map,
|
|
10091
10096
|
line: (Qe = i.otherLayers) == null ? void 0 : Qe["load-lines"],
|
|
10092
10097
|
"before-layer": t.beforeLayer
|
|
@@ -10096,30 +10101,30 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10096
10101
|
zone: (z = i.otherLayers) == null ? void 0 : z["time-zones"],
|
|
10097
10102
|
"before-layer": t.beforeLayer
|
|
10098
10103
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10099
|
-
F(
|
|
10104
|
+
F(pe, X({
|
|
10100
10105
|
map: t.map,
|
|
10101
10106
|
area: (O = i.otherLayers) == null ? void 0 : O["voluntary-reporting-area"],
|
|
10102
10107
|
"before-layer": t.beforeLayer
|
|
10103
10108
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10104
|
-
F(
|
|
10109
|
+
F(ve, X({
|
|
10105
10110
|
map: t.map,
|
|
10106
10111
|
area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
|
|
10107
10112
|
"before-layer": t.beforeLayer
|
|
10108
10113
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10109
|
-
F(
|
|
10114
|
+
F(me, X({
|
|
10110
10115
|
map: t.map,
|
|
10111
10116
|
area: (Ue = i.otherLayers) == null ? void 0 : Ue["day-night"]
|
|
10112
10117
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
10113
|
-
F(
|
|
10118
|
+
F(be, X({
|
|
10114
10119
|
map: t.map,
|
|
10115
10120
|
show: i.showCoord,
|
|
10116
10121
|
"toggle-version": t.toggleVersion
|
|
10117
10122
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
10118
|
-
F(
|
|
10123
|
+
F(ue, X({
|
|
10119
10124
|
map: t.map,
|
|
10120
10125
|
show: i.showMeasure
|
|
10121
10126
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
10122
|
-
F(
|
|
10127
|
+
F(ge, X({
|
|
10123
10128
|
ref: "idmPoint",
|
|
10124
10129
|
map: t.map,
|
|
10125
10130
|
show: i.showPoint,
|
|
@@ -10145,5 +10150,5 @@ export {
|
|
|
10145
10150
|
dt as TropicalGL,
|
|
10146
10151
|
et as Viewport,
|
|
10147
10152
|
We as WebGL,
|
|
10148
|
-
|
|
10153
|
+
ce as WebGLSchema
|
|
10149
10154
|
};
|