@idmwx/idmui-gl3 6.2.7 → 6.2.9
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 +200 -191
- package/dist/index.umd.cjs +13 -13
- package/dist/mapbox/src/components/weather/windParticle.vue.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var mt = Object.defineProperty;
|
|
2
2
|
var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var ae = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { LayerHelper as Ze, CompanyHelper as qe } from "@idm-plugin/tag";
|
|
5
5
|
import ee from "moment";
|
|
6
6
|
import Qe from "axios";
|
|
7
7
|
import Ye from "moment-timezone";
|
|
8
|
-
import { resolveComponent as R, openBlock as m, createElementBlock as g, createElementVNode as o, normalizeStyle as
|
|
8
|
+
import { resolveComponent as R, openBlock as m, createElementBlock as g, createElementVNode as o, normalizeStyle as he, createVNode as H, withCtx as Ie, normalizeClass as Z, Fragment as V, renderList as $, toDisplayString as I, createCommentVNode as J, createBlock as gt, createTextVNode as le, withDirectives as Fe, createStaticVNode as yt, vShow as Oe, defineComponent as ft, withModifiers as Ve, mergeProps as X } from "vue";
|
|
9
9
|
import * as S from "@turf/turf";
|
|
10
10
|
import At from "@mapbox/sphericalmercator";
|
|
11
11
|
import je from "mapbox-gl";
|
|
12
|
-
import { TropicalHelper as ct, LngLatHelper as
|
|
12
|
+
import { TropicalHelper as ct, LngLatHelper as oe, LaneHelper as Re } from "@idm-plugin/geo";
|
|
13
13
|
import { TidesAssist as $e, Meteo2Assist as Ke } from "@idm-plugin/meteo";
|
|
14
14
|
const U = (a, e) => {
|
|
15
15
|
const t = a.__vccOpts || a;
|
|
@@ -305,7 +305,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
305
305
|
return m(), g("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
|
-
style:
|
|
308
|
+
style: he({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
309
309
|
}, [
|
|
310
310
|
o("div", bt, [
|
|
311
311
|
H(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: he({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
332
332
|
}, [
|
|
333
333
|
o("div", Lt, [
|
|
334
334
|
H(n, {
|
|
@@ -400,7 +400,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
400
400
|
s.hasCollectedLayers ? (m(), g("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
|
-
style:
|
|
403
|
+
style: he({ 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)) : J("", !0),
|
|
449
449
|
o("div", {
|
|
450
450
|
class: "available-layers flex-center",
|
|
451
|
-
style:
|
|
451
|
+
style: he({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
454
|
class: Z(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
@@ -564,7 +564,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
564
564
|
default: Ie(() => {
|
|
565
565
|
var A, b, E, w, k, _;
|
|
566
566
|
return [
|
|
567
|
-
|
|
567
|
+
le(I(h.name) + " ", 1),
|
|
568
568
|
d !== 0 ? (m(), g("span", $t, I(h.resolution) + "km " + I(h.length) + "days", 1)) : J("", !0),
|
|
569
569
|
d === 0 ? (m(), g("div", ea, "Provides the best forecast")) : (E = (b = (A = h == null ? void 0 : h.update) == null ? void 0 : A.default) == null ? void 0 : b.meta) != null && E.initialisationTime ? (m(), g("div", ta, "Update: " + I(s.computeDateZ((_ = (k = (w = h == null ? void 0 : h.update) == null ? void 0 : w.default) == null ? void 0 : k.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !0)
|
|
570
570
|
];
|
|
@@ -732,15 +732,15 @@ function sa(a, e, t, r, i, s) {
|
|
|
732
732
|
const oa = /* @__PURE__ */ U(ra, [["render", sa]]);
|
|
733
733
|
class et {
|
|
734
734
|
constructor(e) {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
735
|
+
ae(this, "map");
|
|
736
|
+
ae(this, "mercator");
|
|
737
|
+
ae(this, "rampColorLayer");
|
|
738
|
+
ae(this, "rampColorSource");
|
|
739
|
+
ae(this, "particleLayer");
|
|
740
|
+
ae(this, "particleSource");
|
|
741
|
+
ae(this, "rampColorCanvas");
|
|
742
|
+
ae(this, "particleCanvas");
|
|
743
|
+
ae(this, "ratio");
|
|
744
744
|
this.map = e, this.mercator = new At(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
745
745
|
}
|
|
746
746
|
/**
|
|
@@ -1008,10 +1008,10 @@ class We {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class ne {
|
|
1012
1012
|
}
|
|
1013
1013
|
// 顶点渲染
|
|
1014
|
-
|
|
1014
|
+
ae(ne, "vertexSchema", `
|
|
1015
1015
|
//canvas 坐标系上的坐标 (x, y)
|
|
1016
1016
|
attribute vec2 a_position; //像素坐标
|
|
1017
1017
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1026,7 +1026,7 @@ te(oe, "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
|
-
|
|
1029
|
+
ae(ne, "uvFragmentSchema", `
|
|
1030
1030
|
precision mediump float;
|
|
1031
1031
|
uniform sampler2D u_image;
|
|
1032
1032
|
uniform vec2 u_range_u_v;
|
|
@@ -1046,7 +1046,7 @@ te(oe, "uvFragmentSchema", `
|
|
|
1046
1046
|
|
|
1047
1047
|
gl_FragColor = color;
|
|
1048
1048
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1049
|
-
|
|
1049
|
+
ae(ne, "fragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
uniform sampler2D u_image; // 灰度
|
|
1052
1052
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -1057,9 +1057,9 @@ te(oe, "fragmentSchema", `
|
|
|
1057
1057
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
1058
1058
|
gl_FragColor = color;
|
|
1059
1059
|
}`);
|
|
1060
|
-
class
|
|
1060
|
+
class Ce {
|
|
1061
1061
|
}
|
|
1062
|
-
|
|
1062
|
+
ae(Ce, "vertexSchema", `
|
|
1063
1063
|
precision mediump float;
|
|
1064
1064
|
|
|
1065
1065
|
attribute float a_index; // 索引
|
|
@@ -1083,7 +1083,7 @@ te(be, "vertexSchema", `
|
|
|
1083
1083
|
gl_PointSize = 1.0;
|
|
1084
1084
|
// gl_PointSize = u_point;
|
|
1085
1085
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1086
|
-
}`),
|
|
1086
|
+
}`), ae(Ce, "fragmentSchema", `
|
|
1087
1087
|
precision mediump float;
|
|
1088
1088
|
|
|
1089
1089
|
uniform sampler2D u_factor;
|
|
@@ -1105,7 +1105,7 @@ te(be, "vertexSchema", `
|
|
|
1105
1105
|
|
|
1106
1106
|
float f = 1.0 - uv.b;
|
|
1107
1107
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1108
|
-
}`),
|
|
1108
|
+
}`), ae(Ce, "quadVertSchema", `
|
|
1109
1109
|
precision mediump float;
|
|
1110
1110
|
|
|
1111
1111
|
attribute vec2 a_pos;
|
|
@@ -1115,7 +1115,7 @@ te(be, "vertexSchema", `
|
|
|
1115
1115
|
void main() {
|
|
1116
1116
|
v_tex_pos = a_pos;
|
|
1117
1117
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1118
|
-
}`),
|
|
1118
|
+
}`), ae(Ce, "screenFragmentSchema", `
|
|
1119
1119
|
precision mediump float;
|
|
1120
1120
|
|
|
1121
1121
|
uniform sampler2D u_screen;
|
|
@@ -1127,7 +1127,7 @@ te(be, "vertexSchema", `
|
|
|
1127
1127
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1128
1128
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1129
1129
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1130
|
-
}`),
|
|
1130
|
+
}`), ae(Ce, "updateFragmentSchema", `
|
|
1131
1131
|
precision mediump float;
|
|
1132
1132
|
|
|
1133
1133
|
uniform sampler2D u_particles;
|
|
@@ -1208,12 +1208,12 @@ te(be, "vertexSchema", `
|
|
|
1208
1208
|
}`);
|
|
1209
1209
|
class na {
|
|
1210
1210
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1211
|
+
ae(this, "token");
|
|
1212
|
+
ae(this, "mapboxCustomer");
|
|
1213
|
+
ae(this, "i4");
|
|
1214
|
+
ae(this, "hi");
|
|
1215
|
+
ae(this, "td");
|
|
1216
|
+
ae(this, "windy");
|
|
1217
1217
|
this.token = e, this.mapboxCustomer = {
|
|
1218
1218
|
source: this.initialOnlineStyle().sources.composite,
|
|
1219
1219
|
layers: {
|
|
@@ -3134,10 +3134,11 @@ const la = {
|
|
|
3134
3134
|
// how often the particles move to a random place
|
|
3135
3135
|
dropRateBump: 0.01,
|
|
3136
3136
|
// drop rate increase relative to individual particle speed
|
|
3137
|
-
uvRange: [-
|
|
3137
|
+
uvRange: [-50, 50],
|
|
3138
3138
|
// uv 分量最小最大值
|
|
3139
|
-
sRange: [0,
|
|
3139
|
+
sRange: [0, 50],
|
|
3140
3140
|
// speed分量最小最大值
|
|
3141
|
+
scale: 1
|
|
3141
3142
|
},
|
|
3142
3143
|
paused: !1,
|
|
3143
3144
|
initial: !0,
|
|
@@ -3209,7 +3210,7 @@ const la = {
|
|
|
3209
3210
|
[1, "rgb(91, 136, 161)"]
|
|
3210
3211
|
];
|
|
3211
3212
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3212
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3213
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3213
3214
|
this.program = e, this.aPositionBuffer = t;
|
|
3214
3215
|
}
|
|
3215
3216
|
this.handleParticleSetup();
|
|
@@ -3223,11 +3224,11 @@ const la = {
|
|
|
3223
3224
|
];
|
|
3224
3225
|
this.wrapper = this.webgl.bindParticle(
|
|
3225
3226
|
this.particleContext,
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3227
|
+
Ce.vertexSchema,
|
|
3228
|
+
Ce.fragmentSchema,
|
|
3229
|
+
Ce.quadVertSchema,
|
|
3230
|
+
Ce.screenFragmentSchema,
|
|
3231
|
+
Ce.updateFragmentSchema
|
|
3231
3232
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
3232
3233
|
}
|
|
3233
3234
|
},
|
|
@@ -3263,7 +3264,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3263
3264
|
return (n = t.factor) != null && n.active ? (m(), g("div", ha, [
|
|
3264
3265
|
o("div", {
|
|
3265
3266
|
class: "legend-bars flex-center",
|
|
3266
|
-
style:
|
|
3267
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3267
3268
|
}, e[0] || (e[0] = [
|
|
3268
3269
|
o("span", null, "kts", -1),
|
|
3269
3270
|
o("span", null, "0", -1),
|
|
@@ -3276,7 +3277,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3276
3277
|
]), 4)
|
|
3277
3278
|
])) : J("", !0);
|
|
3278
3279
|
}
|
|
3279
|
-
const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-
|
|
3280
|
+
const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-e5910f11"]]);
|
|
3280
3281
|
const pa = {
|
|
3281
3282
|
name: "IdmCurrent",
|
|
3282
3283
|
props: {
|
|
@@ -3537,7 +3538,7 @@ const ga = {
|
|
|
3537
3538
|
[1, "rgb(195,194,194)"]
|
|
3538
3539
|
];
|
|
3539
3540
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3540
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3541
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3541
3542
|
this.program = e, this.aPositionBuffer = t;
|
|
3542
3543
|
}
|
|
3543
3544
|
this.handleParticleSetup();
|
|
@@ -3552,11 +3553,11 @@ const ga = {
|
|
|
3552
3553
|
];
|
|
3553
3554
|
this.wrapper = this.webgl.bindParticle(
|
|
3554
3555
|
this.particleContext,
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3556
|
+
Ce.vertexSchema,
|
|
3557
|
+
Ce.fragmentSchema,
|
|
3558
|
+
Ce.quadVertSchema,
|
|
3559
|
+
Ce.screenFragmentSchema,
|
|
3560
|
+
Ce.updateFragmentSchema
|
|
3560
3561
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
|
|
3561
3562
|
...this.wrapper,
|
|
3562
3563
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -3596,7 +3597,7 @@ function fa(a, e, t, r, i, s) {
|
|
|
3596
3597
|
return (n = t.factor) != null && n.active ? (m(), g("div", ya, [
|
|
3597
3598
|
o("div", {
|
|
3598
3599
|
class: "legend-bars flex-center",
|
|
3599
|
-
style:
|
|
3600
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3600
3601
|
}, e[0] || (e[0] = [
|
|
3601
3602
|
o("span", null, "kts", -1),
|
|
3602
3603
|
o("span", null, "0", -1),
|
|
@@ -4124,7 +4125,7 @@ const Ea = {
|
|
|
4124
4125
|
// 100%
|
|
4125
4126
|
];
|
|
4126
4127
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4127
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4128
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4128
4129
|
this.program = e, this.aPositionBuffer = t;
|
|
4129
4130
|
}
|
|
4130
4131
|
},
|
|
@@ -4143,7 +4144,7 @@ function Da(a, e, t, r, i, s) {
|
|
|
4143
4144
|
return (n = t.factor) != null && n.active ? (m(), g("div", ka, [
|
|
4144
4145
|
o("div", {
|
|
4145
4146
|
class: "legend-bars flex-center",
|
|
4146
|
-
style:
|
|
4147
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4147
4148
|
}, e[0] || (e[0] = [
|
|
4148
4149
|
o("span", null, null, -1),
|
|
4149
4150
|
o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
|
|
@@ -4240,7 +4241,7 @@ const Pa = {
|
|
|
4240
4241
|
// 100%
|
|
4241
4242
|
];
|
|
4242
4243
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4243
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4244
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4244
4245
|
this.program = e, this.aPositionBuffer = t;
|
|
4245
4246
|
}
|
|
4246
4247
|
},
|
|
@@ -4259,7 +4260,7 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4259
4260
|
return (n = t.factor) != null && n.active ? (m(), g("div", Ma, [
|
|
4260
4261
|
o("div", {
|
|
4261
4262
|
class: "legend-bars flex-center",
|
|
4262
|
-
style:
|
|
4263
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4263
4264
|
}, e[0] || (e[0] = [
|
|
4264
4265
|
o("span", null, "%", -1),
|
|
4265
4266
|
o("span", null, "20", -1),
|
|
@@ -4358,7 +4359,7 @@ const Qa = {
|
|
|
4358
4359
|
// 4m
|
|
4359
4360
|
];
|
|
4360
4361
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4361
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4362
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4362
4363
|
this.program = e, this.aPositionBuffer = t;
|
|
4363
4364
|
}
|
|
4364
4365
|
},
|
|
@@ -4377,7 +4378,7 @@ function Na(a, e, t, r, i, s) {
|
|
|
4377
4378
|
return (n = t.factor) != null && n.active ? (m(), g("div", Ha, [
|
|
4378
4379
|
o("div", {
|
|
4379
4380
|
class: "legend-bars flex-center",
|
|
4380
|
-
style:
|
|
4381
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4381
4382
|
}, e[0] || (e[0] = [
|
|
4382
4383
|
o("span", null, "m", -1),
|
|
4383
4384
|
o("span", null, "0", -1),
|
|
@@ -4736,10 +4737,10 @@ class ht {
|
|
|
4736
4737
|
}), i;
|
|
4737
4738
|
}
|
|
4738
4739
|
static pickHourly(e, t) {
|
|
4739
|
-
var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me,
|
|
4740
|
-
const
|
|
4741
|
-
if (
|
|
4742
|
-
const P =
|
|
4740
|
+
var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, B, ze, Le, Pe, Ee, He, ke;
|
|
4741
|
+
const se = typeof t == "string" ? ee(t) : t, ce = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, Be = ee((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), K = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), q = Be.clone().add((h = (p = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Me = [];
|
|
4742
|
+
if (se.isBetween(K, q, "millisecond", "[]")) {
|
|
4743
|
+
const P = se.utc().diff(K, "h", !1);
|
|
4743
4744
|
let de, De;
|
|
4744
4745
|
if (ce) {
|
|
4745
4746
|
let Se = 0, Te = 0;
|
|
@@ -4790,27 +4791,27 @@ class ht {
|
|
|
4790
4791
|
sig: {
|
|
4791
4792
|
height: (W = z == null ? void 0 : z.wave_height) == null ? void 0 : W.at(P),
|
|
4792
4793
|
degree: (me = z == null ? void 0 : z.wave_direction) == null ? void 0 : me.at(P),
|
|
4793
|
-
bearing: ((
|
|
4794
|
-
period: (
|
|
4794
|
+
bearing: ((re = z == null ? void 0 : z.wave_direction) == null ? void 0 : re.at(P)) !== null ? (((ue = z == null ? void 0 : z.wave_direction) == null ? void 0 : ue.at(P)) + 180) % 360 : null,
|
|
4795
|
+
period: (we = z == null ? void 0 : z.wave_period) == null ? void 0 : we.at(P)
|
|
4795
4796
|
},
|
|
4796
4797
|
swell: {
|
|
4797
4798
|
height: (ge = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : ge.at(P),
|
|
4798
|
-
degree: (
|
|
4799
|
-
bearing: ((
|
|
4800
|
-
period: (
|
|
4801
|
-
peakPeriod: (
|
|
4799
|
+
degree: (ve = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ve.at(P),
|
|
4800
|
+
bearing: ((ye = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : ye.at(P)) !== null ? (((Y = z == null ? void 0 : z.swell_wave_direction) == null ? void 0 : Y.at(P)) + 180) % 360 : null,
|
|
4801
|
+
period: (te = z == null ? void 0 : z.swell_wave_period) == null ? void 0 : te.at(P),
|
|
4802
|
+
peakPeriod: (fe = z == null ? void 0 : z.swell_wave_peak_period) == null ? void 0 : fe.at(P)
|
|
4802
4803
|
},
|
|
4803
4804
|
wd: {
|
|
4804
|
-
height: (
|
|
4805
|
-
degree: (
|
|
4806
|
-
bearing: ((xe = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : xe.at(P)) !== null ? (((
|
|
4805
|
+
height: (pe = z == null ? void 0 : z.wind_wave_height) == null ? void 0 : pe.at(P),
|
|
4806
|
+
degree: (Ae = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : Ae.at(P),
|
|
4807
|
+
bearing: ((xe = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : xe.at(P)) !== null ? (((be = z == null ? void 0 : z.wind_wave_direction) == null ? void 0 : be.at(P)) + 180) % 360 : null,
|
|
4807
4808
|
period: (_e = z == null ? void 0 : z.wind_wave_period) == null ? void 0 : _e.at(P),
|
|
4808
4809
|
peakPeriod: (B = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : B.at(P)
|
|
4809
4810
|
}
|
|
4810
4811
|
},
|
|
4811
4812
|
current: {
|
|
4812
4813
|
speed: (ze = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : ze.at(P),
|
|
4813
|
-
kts: (
|
|
4814
|
+
kts: (Le = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Le.at(P),
|
|
4814
4815
|
degree: (Pe = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Pe.at(P),
|
|
4815
4816
|
bearing: ((Ee = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Ee.at(P)) ?? null
|
|
4816
4817
|
},
|
|
@@ -4845,15 +4846,15 @@ class ht {
|
|
|
4845
4846
|
};
|
|
4846
4847
|
}
|
|
4847
4848
|
static pickDaily(e, t) {
|
|
4848
|
-
var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me,
|
|
4849
|
-
const ze = typeof t == "string" ? ee(t) : t,
|
|
4849
|
+
var r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, B;
|
|
4850
|
+
const ze = typeof t == "string" ? ee(t) : t, Le = e == null ? void 0 : e.weather, Pe = e == null ? void 0 : e.marine, Ee = ee((s = (i = (r = Le == null ? void 0 : Le[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), He = ee((c = (l = (n = Le == null ? void 0 : Le[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), ke = [];
|
|
4850
4851
|
if (ze.isBetween(Ee, He, "millisecond", "[]")) {
|
|
4851
|
-
let
|
|
4852
|
+
let se, ce;
|
|
4852
4853
|
const Q = ze.diff(Ee, "d", !1);
|
|
4853
|
-
if (
|
|
4854
|
-
for (const Be of
|
|
4854
|
+
if (Le)
|
|
4855
|
+
for (const Be of Le) {
|
|
4855
4856
|
const K = Be.daily;
|
|
4856
|
-
|
|
4857
|
+
se = {
|
|
4857
4858
|
code: (p = K.weather_code) == null ? void 0 : p.at(Q),
|
|
4858
4859
|
temp: {
|
|
4859
4860
|
max: (h = K.temperature_2m_max) == null ? void 0 : h.at(Q),
|
|
@@ -4885,11 +4886,11 @@ class ht {
|
|
|
4885
4886
|
bearing: ((j = K.wind_direction_10m_dominant) == null ? void 0 : j.at(Q)) !== null ? (((G = K.wind_direction_10m_dominant) == null ? void 0 : G.at(Q)) + 180) % 360 : null
|
|
4886
4887
|
}
|
|
4887
4888
|
};
|
|
4888
|
-
const { name: q, url: Me, bg: P } = this.parseWeatherCode(
|
|
4889
|
-
|
|
4889
|
+
const { name: q, url: Me, bg: P } = this.parseWeatherCode(se.code, !0);
|
|
4890
|
+
se.name = q, se.url = Me, se.bg = P, se.wind.scale = this.beaufort(this.kts2ms(se.wind.kts)), se.wind.direction = this.degree2Direction(se.wind.degree), ke.push({
|
|
4890
4891
|
utc: Ee.add(Q, "d").utc().format(),
|
|
4891
4892
|
model: Be.model,
|
|
4892
|
-
weather: { ...
|
|
4893
|
+
weather: { ...se }
|
|
4893
4894
|
});
|
|
4894
4895
|
}
|
|
4895
4896
|
if (Pe) {
|
|
@@ -4901,26 +4902,26 @@ class ht {
|
|
|
4901
4902
|
sig: {
|
|
4902
4903
|
height: (W = q.wave_height_max) == null ? void 0 : W.at(Q),
|
|
4903
4904
|
degree: (me = q.wave_direction_dominant) == null ? void 0 : me.at(Q),
|
|
4904
|
-
period: (
|
|
4905
|
-
bearing: ((ue = q.wave_direction_dominant) == null ? void 0 : ue.at(Q)) !== null ? (((
|
|
4905
|
+
period: (re = q.wave_period_max) == null ? void 0 : re.at(Q),
|
|
4906
|
+
bearing: ((ue = q.wave_direction_dominant) == null ? void 0 : ue.at(Q)) !== null ? (((we = q.wave_direction_dominant) == null ? void 0 : we.at(Q)) + 180) % 360 : null
|
|
4906
4907
|
},
|
|
4907
4908
|
swell: {
|
|
4908
4909
|
height: (ge = q.swell_wave_height_max) == null ? void 0 : ge.at(Q),
|
|
4909
|
-
degree: (
|
|
4910
|
-
period: (
|
|
4911
|
-
peakPeriod: (
|
|
4910
|
+
degree: (ve = q.swell_wave_direction_dominant) == null ? void 0 : ve.at(Q),
|
|
4911
|
+
period: (ye = q.swell_wave_period_max) == null ? void 0 : ye.at(Q),
|
|
4912
|
+
peakPeriod: (Y = q.swell_wave_peak_period_max) == null ? void 0 : Y.at(Q),
|
|
4912
4913
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
4913
|
-
bearing: ((
|
|
4914
|
+
bearing: ((te = q.swell_wave_direction_dominant) == null ? void 0 : te.at(Q)) !== null ? ((fe = q.swell_wave_direction_dominant) == null ? void 0 : fe.at(Q)) % 360 : null
|
|
4914
4915
|
},
|
|
4915
4916
|
wd: {
|
|
4916
|
-
height: (
|
|
4917
|
-
degree: (
|
|
4917
|
+
height: (pe = q.wind_wave_height_max) == null ? void 0 : pe.at(Q),
|
|
4918
|
+
degree: (Ae = q.wind_wave_direction_dominant) == null ? void 0 : Ae.at(Q),
|
|
4918
4919
|
period: (xe = q.wind_wave_period_max) == null ? void 0 : xe.at(Q),
|
|
4919
|
-
peakPeriod: (
|
|
4920
|
+
peakPeriod: (be = q.wind_wave_peak_period_max) == null ? void 0 : be.at(Q),
|
|
4920
4921
|
bearing: ((_e = q.wind_wave_direction_dominant) == null ? void 0 : _e.at(Q)) !== null ? (((B = q.wind_wave_direction_dominant) == null ? void 0 : B.at(Q)) + 180) % 360 : null
|
|
4921
4922
|
}
|
|
4922
4923
|
}
|
|
4923
|
-
}, ce.wave = this.parseWave(ce.wave,
|
|
4924
|
+
}, ce.wave = this.parseWave(ce.wave, se == null ? void 0 : se.wind), Object.assign(ke[Be], ce), Be++;
|
|
4924
4925
|
}
|
|
4925
4926
|
}
|
|
4926
4927
|
}
|
|
@@ -4931,14 +4932,22 @@ class ht {
|
|
|
4931
4932
|
const r = Math.sqrt(Math.pow(e.swell.height || 0, 2) + Math.pow(e.wd.height || 0, 2));
|
|
4932
4933
|
e.sig.height = Math.round(r * 100) / 100;
|
|
4933
4934
|
}
|
|
4934
|
-
if (e.swell.height === 0)
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4935
|
+
if (e.swell.height === 0)
|
|
4936
|
+
if (e.sig.height > e.wd.height) {
|
|
4937
|
+
const r = Math.sqrt(Math.abs(Math.pow(e.sig.height || 0, 2) - Math.pow(e.wd.height || 0, 2)));
|
|
4938
|
+
e.swell.height = Math.round(r * 100) / 100;
|
|
4939
|
+
} else {
|
|
4940
|
+
const r = Math.round(0.12 * this.kts2ms((t == null ? void 0 : t.kts) || 0) * 100) / 100, i = r > 1 ? r / 10 : r > 0.5 ? r / 5 : r > 0.3 ? r / 2 : r;
|
|
4941
|
+
e.swell.height = Math.round(i * 100) / 100;
|
|
4942
|
+
}
|
|
4943
|
+
if (e.wd.height === 0 || e.wd.height > e.sig.height)
|
|
4944
|
+
if (e.sig.height > e.swell.height) {
|
|
4945
|
+
const r = Math.sqrt(Math.abs(Math.pow(e.sig.height || 0, 2) - Math.pow(e.swell.height || 0, 2))), i = 0.24 * this.kts2ms((t == null ? void 0 : t.kts) || 0);
|
|
4946
|
+
e.wd.height = Math.round(Math.min(r, i) * 100) / 100;
|
|
4947
|
+
} else {
|
|
4948
|
+
const r = 0.24 * this.kts2ms((t == null ? void 0 : t.kts) || 0);
|
|
4949
|
+
e.wd.height = Math.round(r * 100) / 100;
|
|
4950
|
+
}
|
|
4942
4951
|
return e.swell.height > e.sig.height && (e.swell.height = Math.round(e.sig.height * 0.76 * 100) / 100), e.sig.period || (e.sig.period = Math.round(5 * Math.sqrt(e.sig.height))), e.swell.period || (e.swell.period = Math.round(5 * Math.sqrt(e.swell.height))), e.wd.period || (e.wd.period = Math.round(5 * Math.sqrt(e.wd.height))), e;
|
|
4943
4952
|
}
|
|
4944
4953
|
static parseWeatherCode(e, t) {
|
|
@@ -5306,7 +5315,7 @@ class ht {
|
|
|
5306
5315
|
*/
|
|
5307
5316
|
static beaufort(e) {
|
|
5308
5317
|
let t = 0;
|
|
5309
|
-
return isNaN(e) || (e = Math.round(e * 10) / 10, e <= 0.2 ? t = 0 : e <= 1.5 ? t = 1 : e <= 3.3 ? t = 2 : e <= 5.4 ? t = 3 : e <= 7.9 ? t = 4 : e <= 10.7 ? t = 5 : e <= 13.8 ? t = 6 : e <= 17.1 ? t = 7 : e <= 20.7 ? t = 8 : e <= 22.4 ? t = 9 : e <= 28.4 ? t = 10 : e <= 32.6 ? t = 11 : e >
|
|
5318
|
+
return isNaN(e) || (e = Math.round(e * 10) / 10, e <= 0.2 ? t = 0 : e <= 1.5 ? t = 1 : e <= 3.3 ? t = 2 : e <= 5.4 ? t = 3 : e <= 7.9 ? t = 4 : e <= 10.7 ? t = 5 : e <= 13.8 ? t = 6 : e <= 17.1 ? t = 7 : e <= 20.7 ? t = 8 : e <= 22.4 ? t = 9 : e <= 28.4 ? t = 10 : e <= 32.6 ? t = 11 : e <= 36.9 ? t = 12 : e <= 41.4 ? t = 13 : e <= 46.1 ? t = 14 : e <= 50.9 ? t = 15 : e <= 55.9 ? t = 16 : e <= 61.2 ? t = 17 : e > 61.2 && (t = 18)), t;
|
|
5310
5319
|
}
|
|
5311
5320
|
/**
|
|
5312
5321
|
* 计算海浪等级
|
|
@@ -5689,13 +5698,13 @@ const Oa = {
|
|
|
5689
5698
|
},
|
|
5690
5699
|
handleDateChange() {
|
|
5691
5700
|
var a, e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me;
|
|
5692
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
5693
|
-
const
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(
|
|
5701
|
+
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) {
|
|
5702
|
+
const re = ee(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), ue = ee.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), we = re.isBefore(ue) && ue.diff(re, "h") < 2 ? ue.format() : re.format(), ge = this.interpolateData.filter((Y) => Y.properties.date === we && !Y.properties.disabled), ve = this.handleComputePolygons(ge), ye = S.featureCollection([...ge]);
|
|
5703
|
+
ve.forEach((Y) => {
|
|
5704
|
+
ye.features.push(Y);
|
|
5705
|
+
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ye) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
5697
5706
|
type: "geojson",
|
|
5698
|
-
data:
|
|
5707
|
+
data: ye
|
|
5699
5708
|
}), (s = this.map) == null || s.addLayer({
|
|
5700
5709
|
id: this.interpolateLineLayer,
|
|
5701
5710
|
type: "line",
|
|
@@ -5707,17 +5716,17 @@ const Oa = {
|
|
|
5707
5716
|
"line-width": 1
|
|
5708
5717
|
}
|
|
5709
5718
|
})), this.interpolateMarkers = [];
|
|
5710
|
-
for (const Y of
|
|
5719
|
+
for (const Y of ge)
|
|
5711
5720
|
if (!Y.properties.disabled) {
|
|
5712
|
-
let
|
|
5713
|
-
((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ?
|
|
5714
|
-
const
|
|
5721
|
+
let te = "#f44336";
|
|
5722
|
+
((l = (n = Y.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((p = (c = Y.properties) == null ? void 0 : c.wind) != null && p.kts) ? te = "#03f869" : ((d = (h = Y.properties) == null ? void 0 : h.wind) == null ? void 0 : d.kts) >= 32 && ((b = (A = Y.properties) == null ? void 0 : A.wind) == null ? void 0 : b.kts) < 47 ? te = "#f2f202" : ((w = (E = Y.properties) == null ? void 0 : E.wind) == null ? void 0 : w.kts) >= 47 && ((_ = (k = Y.properties) == null ? void 0 : k.wind) == null ? void 0 : _.kts) < 63 ? te = "#ff9100" : ((v = (f = Y.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((C = (u = Y.properties) == null ? void 0 : u.wind) == null ? void 0 : C.kts) < 79 ? te = "#f44336" : ((L = (y = Y.properties) == null ? void 0 : y.wind) == null ? void 0 : L.kts) >= 79 && ((D = (T = Y.properties) == null ? void 0 : T.wind) == null ? void 0 : D.kts) < 94 ? te = "#f903d0" : ((N = (F = Y.properties) == null ? void 0 : F.wind) == null ? void 0 : N.kts) >= 94 ? te = "#8702f9" : te = "#f44336";
|
|
5723
|
+
const fe = `<svg t="1719918955501"
|
|
5715
5724
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5716
5725
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5717
5726
|
<path
|
|
5718
5727
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
5719
|
-
fill="${
|
|
5720
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
5728
|
+
fill="${te}" p-id="18383"></path>
|
|
5729
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${te}"
|
|
5721
5730
|
p-id="18384"></path>
|
|
5722
5731
|
<path
|
|
5723
5732
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -5726,9 +5735,9 @@ const Oa = {
|
|
|
5726
5735
|
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"
|
|
5727
5736
|
fill="#ffffff" p-id="18386"></path>
|
|
5728
5737
|
</svg>`, pe = document.createElement("div");
|
|
5729
|
-
pe.className = "hurricane-hourly-marker", pe.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${
|
|
5730
|
-
const
|
|
5731
|
-
this.interpolateMarkers.push(
|
|
5738
|
+
pe.className = "hurricane-hourly-marker", pe.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
|
|
5739
|
+
const Ae = new je.Marker(pe).setLngLat(Y.geometry.coordinates).addTo(this.map);
|
|
5740
|
+
this.interpolateMarkers.push(Ae), (G = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || G.setData(this.circleSourceData);
|
|
5732
5741
|
}
|
|
5733
5742
|
} else
|
|
5734
5743
|
(W = this.map) != null && W.getSource(this.interpolateSource) && ((me = this.map) == null || me.getSource(this.interpolateSource).setData(this.empty));
|
|
@@ -5873,7 +5882,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5873
5882
|
}, ""),
|
|
5874
5883
|
o("div", Wa, [
|
|
5875
5884
|
(l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(), g("span", Ga, I((p = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : p.level) + " , ", 1)) : J("", !0),
|
|
5876
|
-
|
|
5885
|
+
le(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5877
5886
|
]),
|
|
5878
5887
|
o("div", Ua, " Last update: " + I(s.computeTime(((A = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : A.updated) || ((w = (E = (b = i.activeTropicals) == null ? void 0 : b.forecasts) == null ? void 0 : E.filter((D) => !D.disabled)[0]) == null ? void 0 : w.date))), 1)
|
|
5879
5888
|
]),
|
|
@@ -6031,7 +6040,7 @@ const oi = {
|
|
|
6031
6040
|
[1, "rgba(197,5,58,0.8)"]
|
|
6032
6041
|
];
|
|
6033
6042
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6034
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6043
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6035
6044
|
this.program = e, this.aPositionBuffer = t;
|
|
6036
6045
|
}
|
|
6037
6046
|
},
|
|
@@ -6050,7 +6059,7 @@ function li(a, e, t, r, i, s) {
|
|
|
6050
6059
|
return (n = t.factor) != null && n.active ? (m(), g("div", ni, [
|
|
6051
6060
|
o("div", {
|
|
6052
6061
|
class: "legend-bars flex-center",
|
|
6053
|
-
style:
|
|
6062
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6054
6063
|
}, e[0] || (e[0] = [
|
|
6055
6064
|
o("span", null, "mm", -1),
|
|
6056
6065
|
o("span", null, "1.5", -1),
|
|
@@ -6145,7 +6154,7 @@ const ci = {
|
|
|
6145
6154
|
[1, "rgba(144,144,144,0)"]
|
|
6146
6155
|
];
|
|
6147
6156
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6148
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6157
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6149
6158
|
this.program = e, this.aPositionBuffer = t;
|
|
6150
6159
|
}
|
|
6151
6160
|
},
|
|
@@ -6164,7 +6173,7 @@ function pi(a, e, t, r, i, s) {
|
|
|
6164
6173
|
return (n = t.factor) != null && n.active ? (m(), g("div", di, [
|
|
6165
6174
|
o("div", {
|
|
6166
6175
|
class: "legend-bars flex-center",
|
|
6167
|
-
style:
|
|
6176
|
+
style: he([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
6168
6177
|
}, e[0] || (e[0] = [
|
|
6169
6178
|
o("span", null, "nm", -1),
|
|
6170
6179
|
o("span", null, "0", -1),
|
|
@@ -6265,7 +6274,7 @@ const ui = {
|
|
|
6265
6274
|
//
|
|
6266
6275
|
];
|
|
6267
6276
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6268
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6277
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6269
6278
|
this.program = e, this.aPositionBuffer = t;
|
|
6270
6279
|
}
|
|
6271
6280
|
},
|
|
@@ -6284,7 +6293,7 @@ function yi(a, e, t, r, i, s) {
|
|
|
6284
6293
|
return (n = t.factor) != null && n.active ? (m(), g("div", gi, [
|
|
6285
6294
|
o("div", {
|
|
6286
6295
|
class: "legend-bars flex-center",
|
|
6287
|
-
style:
|
|
6296
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6288
6297
|
}, e[0] || (e[0] = [
|
|
6289
6298
|
o("span", null, "°C", -1),
|
|
6290
6299
|
o("span", null, "0", -1),
|
|
@@ -6388,7 +6397,7 @@ const Ai = {
|
|
|
6388
6397
|
[1, "rgb(138, 43, 10)"]
|
|
6389
6398
|
];
|
|
6390
6399
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6391
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6400
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6392
6401
|
this.program = e, this.aPositionBuffer = t;
|
|
6393
6402
|
}
|
|
6394
6403
|
},
|
|
@@ -6407,7 +6416,7 @@ function vi(a, e, t, r, i, s) {
|
|
|
6407
6416
|
return (n = t.factor) != null && n.active ? (m(), g("div", wi, [
|
|
6408
6417
|
o("div", {
|
|
6409
6418
|
class: "legend-bars flex-center",
|
|
6410
|
-
style:
|
|
6419
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6411
6420
|
}, e[0] || (e[0] = [
|
|
6412
6421
|
o("span", null, "°C", -1),
|
|
6413
6422
|
o("span", null, "-20", -1),
|
|
@@ -6583,17 +6592,17 @@ const _i = {
|
|
|
6583
6592
|
},
|
|
6584
6593
|
computeLat() {
|
|
6585
6594
|
return function(a, e = 4) {
|
|
6586
|
-
return
|
|
6595
|
+
return oe.lat2pretty(a, e).pretty;
|
|
6587
6596
|
};
|
|
6588
6597
|
},
|
|
6589
6598
|
computeLng() {
|
|
6590
6599
|
return function(a, e = 4) {
|
|
6591
|
-
return
|
|
6600
|
+
return oe.lng2pretty(a, e).pretty;
|
|
6592
6601
|
};
|
|
6593
6602
|
},
|
|
6594
6603
|
roundPrecision() {
|
|
6595
6604
|
return function(a, e = 4) {
|
|
6596
|
-
return isNaN(a) ? "-" :
|
|
6605
|
+
return isNaN(a) ? "-" : oe.roundPrecision(a, e);
|
|
6597
6606
|
};
|
|
6598
6607
|
}
|
|
6599
6608
|
},
|
|
@@ -6636,16 +6645,16 @@ const _i = {
|
|
|
6636
6645
|
initTableData(a) {
|
|
6637
6646
|
var e, t, r, i, s, n, l, c, p;
|
|
6638
6647
|
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, ee(this.ts))) == null ? void 0 : l[0], ((p = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6639
|
-
var d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me,
|
|
6648
|
+
var d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe;
|
|
6640
6649
|
if (!document.getElementById("meteoMainBox"))
|
|
6641
6650
|
return !1;
|
|
6642
6651
|
if (!this.currentHourData)
|
|
6643
6652
|
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;
|
|
6644
|
-
for (let
|
|
6645
|
-
const _e = Ye(this.ts).tz(this.positionGmt).add(3 *
|
|
6653
|
+
for (let be = 0; be < 8; be++) {
|
|
6654
|
+
const _e = Ye(this.ts).tz(this.positionGmt).add(3 * be, "h").format();
|
|
6646
6655
|
this.tableData.hours.push(_e);
|
|
6647
6656
|
const B = ((d = Ke.pickHourly(a, _e)) == null ? void 0 : d[0]) || {};
|
|
6648
|
-
this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (b = B == null ? void 0 : B.weather) == null ? void 0 : b.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : k.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 = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((C = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = B == null ? void 0 : B.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = B == null ? void 0 : B.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (
|
|
6657
|
+
this.tableData.temp.push(this.roundPrecision((A = B == null ? void 0 : B.weather) == null ? void 0 : A.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((E = (b = B == null ? void 0 : B.weather) == null ? void 0 : b.precip) == null ? void 0 : E.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((k = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : k.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 = (f = B == null ? void 0 : B.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((C = (u = B == null ? void 0 : B.weather) == null ? void 0 : u.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (T = B == null ? void 0 : B.wave) == null ? void 0 : T.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((N = (F = B == null ? void 0 : B.wave) == null ? void 0 : F.sig) == null ? void 0 : N.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((G = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : G.height, 1) ?? "-"), this.tableData.windwaveDir.push((me = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : me.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((ue = (re = B == null ? void 0 : B.wave) == null ? void 0 : re.wd) == null ? void 0 : ue.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ge = (we = B == null ? void 0 : B.wave) == null ? void 0 : we.swell) == null ? void 0 : ge.height, 1) ?? "-"), this.tableData.swellDir.push((ye = (ve = B == null ? void 0 : B.wave) == null ? void 0 : ve.swell) == null ? void 0 : ye.bearing), this.tableData.swellPeriod.push(this.roundPrecision((te = (Y = B == null ? void 0 : B.wave) == null ? void 0 : Y.swell) == null ? void 0 : te.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((fe = B == null ? void 0 : B.current) == null ? void 0 : fe.speed, 1) ?? "-"), this.tableData.currentDir.push((pe = B == null ? void 0 : B.current) == null ? void 0 : pe.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((Ae = B == null ? void 0 : B.weather) == null ? void 0 : Ae.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
|
|
6649
6658
|
}
|
|
6650
6659
|
});
|
|
6651
6660
|
},
|
|
@@ -6771,7 +6780,7 @@ const _i = {
|
|
|
6771
6780
|
class: "main-box flex-center"
|
|
6772
6781
|
};
|
|
6773
6782
|
function Qr(a, e, t, r, i, s) {
|
|
6774
|
-
var p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me,
|
|
6783
|
+
var p, h, d, A, b, E, w, k, _, f, v, u, C, y, L, T, D, F, N, j, G, W, me, re, ue, we, ge, ve, ye, Y, te, fe, pe, Ae, xe, be, _e, B, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue, ie, Ne, tt, at, it, rt, st, ot;
|
|
6775
6784
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6776
6785
|
return Fe((m(), g("div", Bi, [
|
|
6777
6786
|
o("div", Ii, [
|
|
@@ -6834,7 +6843,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6834
6843
|
}, 8, ["content"]),
|
|
6835
6844
|
o("div", Qi, [
|
|
6836
6845
|
o("div", null, [
|
|
6837
|
-
|
|
6846
|
+
le(I(s.roundPrecision((E = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : E.temp, 0)), 1),
|
|
6838
6847
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6839
6848
|
])
|
|
6840
6849
|
]),
|
|
@@ -6884,7 +6893,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6884
6893
|
colspan: "1",
|
|
6885
6894
|
class: "tr-title"
|
|
6886
6895
|
}, [
|
|
6887
|
-
|
|
6896
|
+
le("Hours"),
|
|
6888
6897
|
o("span", { class: "unit" }, "(LT)")
|
|
6889
6898
|
], -1)),
|
|
6890
6899
|
(m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
|
|
@@ -6899,7 +6908,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6899
6908
|
colspan: "1",
|
|
6900
6909
|
class: "tr-title"
|
|
6901
6910
|
}, [
|
|
6902
|
-
|
|
6911
|
+
le("UTC"),
|
|
6903
6912
|
o("span", { class: "unit" })
|
|
6904
6913
|
], -1)),
|
|
6905
6914
|
(m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
|
|
@@ -6943,7 +6952,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6943
6952
|
colspan: "1",
|
|
6944
6953
|
class: "tr-title"
|
|
6945
6954
|
}, [
|
|
6946
|
-
|
|
6955
|
+
le("Temp"),
|
|
6947
6956
|
o("span", { class: "unit" }, "°C")
|
|
6948
6957
|
], -1)),
|
|
6949
6958
|
(m(!0), g(V, null, $(i.tableData.temp, (x, M) => (m(), g("td", {
|
|
@@ -6958,7 +6967,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6958
6967
|
colspan: "1",
|
|
6959
6968
|
class: "tr-title"
|
|
6960
6969
|
}, [
|
|
6961
|
-
|
|
6970
|
+
le("Precip"),
|
|
6962
6971
|
o("span", { class: "unit" }, "mm")
|
|
6963
6972
|
], -1)),
|
|
6964
6973
|
(m(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (m(), g("td", {
|
|
@@ -6973,7 +6982,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6973
6982
|
colspan: "1",
|
|
6974
6983
|
class: "tr-title"
|
|
6975
6984
|
}, [
|
|
6976
|
-
|
|
6985
|
+
le("Visibility"),
|
|
6977
6986
|
o("span", { class: "unit" }, "nm")
|
|
6978
6987
|
], -1)),
|
|
6979
6988
|
(m(!0), g(V, null, $(i.tableData.visibility, (x, M) => (m(), g("td", {
|
|
@@ -6988,7 +6997,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6988
6997
|
colspan: "1",
|
|
6989
6998
|
class: "tr-title"
|
|
6990
6999
|
}, [
|
|
6991
|
-
|
|
7000
|
+
le("Wind gust"),
|
|
6992
7001
|
o("span", { class: "unit" }, "kts")
|
|
6993
7002
|
], -1)),
|
|
6994
7003
|
(m(!0), g(V, null, $(i.tableData.windGust, (x, M) => (m(), g("td", {
|
|
@@ -7009,7 +7018,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7009
7018
|
colspan: "1",
|
|
7010
7019
|
class: "tr-title"
|
|
7011
7020
|
}, [
|
|
7012
|
-
|
|
7021
|
+
le("Hours"),
|
|
7013
7022
|
o("span", { class: "unit" }, "(LT)")
|
|
7014
7023
|
], -1)),
|
|
7015
7024
|
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
@@ -7024,7 +7033,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7024
7033
|
colspan: "1",
|
|
7025
7034
|
class: "tr-title"
|
|
7026
7035
|
}, [
|
|
7027
|
-
|
|
7036
|
+
le("UTC"),
|
|
7028
7037
|
o("span", { class: "unit" })
|
|
7029
7038
|
], -1)),
|
|
7030
7039
|
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
@@ -7039,7 +7048,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7039
7048
|
colspan: "1",
|
|
7040
7049
|
class: "tr-title"
|
|
7041
7050
|
}, [
|
|
7042
|
-
|
|
7051
|
+
le("Wind"),
|
|
7043
7052
|
o("span", { class: "unit" }, "kts")
|
|
7044
7053
|
], -1)),
|
|
7045
7054
|
(m(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (m(), g("td", {
|
|
@@ -7050,7 +7059,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7050
7059
|
isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7051
7060
|
key: 0,
|
|
7052
7061
|
class: "iconfont icon wind",
|
|
7053
|
-
style:
|
|
7062
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
|
|
7054
7063
|
}, "", 4)),
|
|
7055
7064
|
o("span", null, I(x), 1)
|
|
7056
7065
|
]))), 128))
|
|
@@ -7061,7 +7070,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7061
7070
|
colspan: "1",
|
|
7062
7071
|
class: "tr-title"
|
|
7063
7072
|
}, [
|
|
7064
|
-
|
|
7073
|
+
le("Sig Wave"),
|
|
7065
7074
|
o("span", { class: "unit" }, "m")
|
|
7066
7075
|
], -1)),
|
|
7067
7076
|
(m(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), g("td", {
|
|
@@ -7072,7 +7081,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7072
7081
|
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7073
7082
|
key: 0,
|
|
7074
7083
|
class: "iconfont icon sigwave",
|
|
7075
|
-
style:
|
|
7084
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
|
|
7076
7085
|
}, "", 4)),
|
|
7077
7086
|
o("span", null, I(x), 1)
|
|
7078
7087
|
]))), 128))
|
|
@@ -7083,7 +7092,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7083
7092
|
colspan: "1",
|
|
7084
7093
|
class: "tr-title"
|
|
7085
7094
|
}, [
|
|
7086
|
-
|
|
7095
|
+
le("Wind Wave"),
|
|
7087
7096
|
o("span", { class: "unit" }, "m")
|
|
7088
7097
|
], -1)),
|
|
7089
7098
|
(m(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), g("td", {
|
|
@@ -7094,7 +7103,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7094
7103
|
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7095
7104
|
key: 0,
|
|
7096
7105
|
class: "iconfont icon windwave",
|
|
7097
|
-
style:
|
|
7106
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
|
|
7098
7107
|
}, "", 4)),
|
|
7099
7108
|
o("span", null, I(x), 1)
|
|
7100
7109
|
]))), 128))
|
|
@@ -7105,7 +7114,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7105
7114
|
colspan: "1",
|
|
7106
7115
|
class: "tr-title"
|
|
7107
7116
|
}, [
|
|
7108
|
-
|
|
7117
|
+
le("Swell"),
|
|
7109
7118
|
o("span", { class: "unit" }, "m")
|
|
7110
7119
|
], -1)),
|
|
7111
7120
|
(m(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (m(), g("td", {
|
|
@@ -7116,7 +7125,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7116
7125
|
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7117
7126
|
key: 0,
|
|
7118
7127
|
class: "iconfont icon swell",
|
|
7119
|
-
style:
|
|
7128
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
|
|
7120
7129
|
}, "", 4)),
|
|
7121
7130
|
o("span", null, I(x), 1)
|
|
7122
7131
|
]))), 128))
|
|
@@ -7127,7 +7136,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7127
7136
|
colspan: "1",
|
|
7128
7137
|
class: "tr-title"
|
|
7129
7138
|
}, [
|
|
7130
|
-
|
|
7139
|
+
le("Current"),
|
|
7131
7140
|
o("span", { class: "unit" }, "kts")
|
|
7132
7141
|
], -1)),
|
|
7133
7142
|
(m(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), g("td", {
|
|
@@ -7139,7 +7148,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7139
7148
|
key: 0,
|
|
7140
7149
|
class: "iconfont icon current",
|
|
7141
7150
|
id: "meteoGrayIcon",
|
|
7142
|
-
style:
|
|
7151
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[M]}deg)` })
|
|
7143
7152
|
}, "", 4)),
|
|
7144
7153
|
o("span", null, I(x), 1)
|
|
7145
7154
|
]))), 128))
|
|
@@ -7154,7 +7163,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7154
7163
|
colspan: "1",
|
|
7155
7164
|
class: "tr-title"
|
|
7156
7165
|
}, [
|
|
7157
|
-
|
|
7166
|
+
le("Hours"),
|
|
7158
7167
|
o("span", { class: "unit" }, "(LT)")
|
|
7159
7168
|
], -1)),
|
|
7160
7169
|
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
@@ -7169,7 +7178,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7169
7178
|
colspan: "1",
|
|
7170
7179
|
class: "tr-title"
|
|
7171
7180
|
}, [
|
|
7172
|
-
|
|
7181
|
+
le("UTC"),
|
|
7173
7182
|
o("span", { class: "unit" })
|
|
7174
7183
|
], -1)),
|
|
7175
7184
|
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
@@ -7184,7 +7193,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7184
7193
|
colspan: "1",
|
|
7185
7194
|
class: "tr-title"
|
|
7186
7195
|
}, [
|
|
7187
|
-
|
|
7196
|
+
le("SeaLevel"),
|
|
7188
7197
|
o("span", { class: "unit" }, "m")
|
|
7189
7198
|
], -1)),
|
|
7190
7199
|
(m(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (m(), g("td", {
|
|
@@ -7199,7 +7208,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7199
7208
|
colspan: "1",
|
|
7200
7209
|
class: "tr-title"
|
|
7201
7210
|
}, [
|
|
7202
|
-
|
|
7211
|
+
le("SeaTemp"),
|
|
7203
7212
|
o("span", { class: "unit" }, "°C")
|
|
7204
7213
|
], -1)),
|
|
7205
7214
|
(m(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (m(), g("td", {
|
|
@@ -7251,17 +7260,17 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7251
7260
|
o("div", vr, [
|
|
7252
7261
|
o("div", br, [
|
|
7253
7262
|
e[33] || (e[33] = o("div", null, "Wind", -1)),
|
|
7254
|
-
o("div", null, I((N = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : N.direction) + "/" + I(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + I((ue = (
|
|
7263
|
+
o("div", null, I((N = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : N.direction) + "/" + I(s.roundPrecision((W = (G = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : G.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + I((ue = (re = (me = i.currentHourData) == null ? void 0 : me.weather) == null ? void 0 : re.wind) == null ? void 0 : ue.scale) + "/" + I(s.roundPrecision((ve = (ge = (we = i.currentHourData) == null ? void 0 : we.weather) == null ? void 0 : ge.wind) == null ? void 0 : ve.gusts, 1)) + " kts", 1)
|
|
7255
7264
|
]),
|
|
7256
7265
|
o("div", Lr, [
|
|
7257
7266
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7258
|
-
o("div", null, I((
|
|
7267
|
+
o("div", null, I((te = (Y = (ye = i.currentHourData) == null ? void 0 : ye.wave) == null ? void 0 : Y.sig) == null ? void 0 : te.direction) + "/" + I(s.roundPrecision((Ae = (pe = (fe = i.currentHourData) == null ? void 0 : fe.wave) == null ? void 0 : pe.sig) == null ? void 0 : Ae.height, 1)) + "m/" + I(s.roundPrecision((_e = (be = (xe = i.currentHourData) == null ? void 0 : xe.wave) == null ? void 0 : be.sig) == null ? void 0 : _e.period, 1)) + "s", 1)
|
|
7259
7268
|
])
|
|
7260
7269
|
]),
|
|
7261
7270
|
o("div", Cr, [
|
|
7262
7271
|
o("div", xr, [
|
|
7263
7272
|
e[35] || (e[35] = o("div", null, "Wind wave", -1)),
|
|
7264
|
-
o("div", null, I((
|
|
7273
|
+
o("div", null, I((Le = (ze = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : ze.wd) == null ? void 0 : Le.direction) + "/" + I(s.roundPrecision((He = (Ee = (Pe = i.currentHourData) == null ? void 0 : Pe.wave) == null ? void 0 : Ee.wd) == null ? void 0 : He.height, 1)) + "m/" + I(s.roundPrecision((ce = (se = (ke = i.currentHourData) == null ? void 0 : ke.wave) == null ? void 0 : se.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
|
|
7265
7274
|
]),
|
|
7266
7275
|
o("div", _r, [
|
|
7267
7276
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
@@ -7819,12 +7828,12 @@ const Zr = {
|
|
|
7819
7828
|
computed: {
|
|
7820
7829
|
computeLat() {
|
|
7821
7830
|
return function(a) {
|
|
7822
|
-
return
|
|
7831
|
+
return oe.lat2pretty(a, 4).pretty;
|
|
7823
7832
|
};
|
|
7824
7833
|
},
|
|
7825
7834
|
computeLng() {
|
|
7826
7835
|
return function(a) {
|
|
7827
|
-
return
|
|
7836
|
+
return oe.lng2pretty(a, 4).pretty;
|
|
7828
7837
|
};
|
|
7829
7838
|
}
|
|
7830
7839
|
},
|
|
@@ -8296,7 +8305,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
|
8296
8305
|
methods: {
|
|
8297
8306
|
handleRender() {
|
|
8298
8307
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
8299
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
8308
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => oe.convertToMonotonicLng2(e));
|
|
8300
8309
|
}), this.map.addSource(this.source, {
|
|
8301
8310
|
type: "geojson",
|
|
8302
8311
|
data: this.area
|
|
@@ -8476,7 +8485,7 @@ const Cs = {
|
|
|
8476
8485
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
8477
8486
|
},
|
|
8478
8487
|
handleMouseMove(a) {
|
|
8479
|
-
const e = a.lngLat, t =
|
|
8488
|
+
const e = a.lngLat, t = oe.lng2pretty(e.lng, 2), r = oe.lat2pretty(e.lat, 2);
|
|
8480
8489
|
this.lngLat = { lng: t, lat: r };
|
|
8481
8490
|
},
|
|
8482
8491
|
handleComputeLatLngs() {
|
|
@@ -8578,7 +8587,7 @@ function xs(a, e, t, r, i, s) {
|
|
|
8578
8587
|
return i.lngLat ? (m(), g("div", {
|
|
8579
8588
|
key: 0,
|
|
8580
8589
|
class: "lat-lng-tip",
|
|
8581
|
-
style:
|
|
8590
|
+
style: he({ right: i.right + "px", bottom: t.bottom })
|
|
8582
8591
|
}, [
|
|
8583
8592
|
o("span", null, I(i.lngLat.lat.pretty), 1),
|
|
8584
8593
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
@@ -8733,9 +8742,9 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8733
8742
|
const r = [];
|
|
8734
8743
|
for (let i = 1; i < e.length; i++) {
|
|
8735
8744
|
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = Re.calculateDistance(c, p, l.mode === "RL", 4), d = Re.calculateBearing(c, p, l.mode === "RL", 2);
|
|
8736
|
-
t =
|
|
8745
|
+
t = oe.roundPrecision(t + h, 2);
|
|
8737
8746
|
let A;
|
|
8738
|
-
l.mode === "RL" ? A =
|
|
8747
|
+
l.mode === "RL" ? A = oe.convertToMonotonicLng([c, p]) : A = oe.convertToMonotonicLng(Re.interpolateCoordinates(c, p, 200));
|
|
8739
8748
|
const b = S.lineString(A.map((E) => [E.lng, E.lat]));
|
|
8740
8749
|
b.properties.dist = h, b.properties.bearing = d, b.properties.total = t, r.push(b);
|
|
8741
8750
|
}
|
|
@@ -8750,7 +8759,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8750
8759
|
const c = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8751
8760
|
s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8752
8761
|
let d;
|
|
8753
|
-
c.mode === "RL" ? d =
|
|
8762
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([p, h]) : d = oe.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8754
8763
|
const A = S.lineString(d.map((b) => [b.lng, b.lat]));
|
|
8755
8764
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8756
8765
|
}
|
|
@@ -8758,7 +8767,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8758
8767
|
const c = t.properties, p = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8759
8768
|
s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8760
8769
|
let d;
|
|
8761
|
-
c.mode === "RL" ? d =
|
|
8770
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([p, h]) : d = oe.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8762
8771
|
const A = S.lineString(d.map((b) => [b.lng, b.lat]));
|
|
8763
8772
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8764
8773
|
}
|
|
@@ -8800,7 +8809,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8800
8809
|
}
|
|
8801
8810
|
});
|
|
8802
8811
|
let l;
|
|
8803
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${
|
|
8812
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${oe.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)
|
|
8804
8813
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8805
8814
|
else {
|
|
8806
8815
|
const c = document.createElement("div");
|
|
@@ -8945,7 +8954,7 @@ function zs(a, e, t, r, i, s) {
|
|
|
8945
8954
|
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), g("div", ks, [
|
|
8946
8955
|
o("div", {
|
|
8947
8956
|
class: "menu-bar-box",
|
|
8948
|
-
style:
|
|
8957
|
+
style: he({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
8949
8958
|
}, [
|
|
8950
8959
|
o("div", Ds, [
|
|
8951
8960
|
H(n, {
|
|
@@ -9498,7 +9507,7 @@ const js = {
|
|
|
9498
9507
|
var p, h, d, A, b, E;
|
|
9499
9508
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9500
9509
|
let e = 0, t = 0;
|
|
9501
|
-
const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), s =
|
|
9510
|
+
const r = (p = this.map) == null ? void 0 : p.getBounds(), i = this.map.getZoom(), s = oe.convertToStdLng(r._sw.lng), n = oe.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
9502
9511
|
for (const w in this.weatherLayers) {
|
|
9503
9512
|
let k = !1;
|
|
9504
9513
|
if (this.weatherLayers[w].active && this.weatherLayers[w].type === "json") {
|
|
@@ -9729,7 +9738,7 @@ const js = {
|
|
|
9729
9738
|
}
|
|
9730
9739
|
for (const u in f.Point)
|
|
9731
9740
|
f.Point[u].lng.forEach((C, y) => {
|
|
9732
|
-
C =
|
|
9741
|
+
C = oe.convertToStdLng(C), v.push(
|
|
9733
9742
|
S.point([C, u], {
|
|
9734
9743
|
val: f.Point[u].val[y],
|
|
9735
9744
|
type: f.Point[u].type[y]
|
|
@@ -9752,7 +9761,7 @@ const js = {
|
|
|
9752
9761
|
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"));
|
|
9753
9762
|
},
|
|
9754
9763
|
handleBboxClip(a, e) {
|
|
9755
|
-
const t = [], r =
|
|
9764
|
+
const t = [], r = oe.convertToStdLng(e._sw.lng), i = oe.convertToStdLng(e._ne.lng);
|
|
9756
9765
|
return a.features.forEach((s) => {
|
|
9757
9766
|
if (s.geometry.type !== "Point")
|
|
9758
9767
|
if (r > i) {
|
|
@@ -9808,12 +9817,12 @@ const js = {
|
|
|
9808
9817
|
}, 500);
|
|
9809
9818
|
else {
|
|
9810
9819
|
const e = a == null ? void 0 : a.reduce((t, r) => t + (r == null ? void 0 : r.weight), 0);
|
|
9811
|
-
a.find((t) => t.key === "enc") ? this.enc = this.$attrs.permission & qe.LEVEL.Supper ? "hi" : "i4" : this.enc = "", this.otherWeight
|
|
9820
|
+
a.find((t) => t.key === "enc") ? this.enc = this.$attrs.permission & qe.LEVEL.Supper ? "hi" : "i4" : this.enc = "", this.otherWeight !== e && (this.otherWeight = e, this.fetchOtherLayers({ all: !0 }));
|
|
9812
9821
|
}
|
|
9813
9822
|
},
|
|
9814
9823
|
handle3dToggle(a) {
|
|
9815
9824
|
var e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u;
|
|
9816
|
-
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id))
|
|
9825
|
+
a ? (this.map.setProjection("globe"), this.mapProjection = "globe", (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.rampColorLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((s = this.map) == null || s.moveLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.particleLayer) && ((c = this.map) != null && c.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((h = this.map) == null || h.moveLayer((p = this.viewport) == null ? void 0 : p.particleLayer, this.helper.mapboxCustomer.layers.water.id))) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", (A = this.map) != null && A.getLayer((d = this.viewport) == null ? void 0 : d.rampColorLayer) && ((b = this.map) != null && b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((w = this.map) == null || w.moveLayer((E = this.viewport) == null ? void 0 : E.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (_ = this.map) != null && _.getLayer((k = this.viewport) == null ? void 0 : k.particleLayer) && ((f = this.map) != null && f.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((v = this.viewport) == null ? void 0 : v.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9817
9826
|
},
|
|
9818
9827
|
handleParticle(a) {
|
|
9819
9828
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9834,11 +9843,11 @@ const js = {
|
|
|
9834
9843
|
}, Ws = {
|
|
9835
9844
|
key: 0,
|
|
9836
9845
|
ref: "mapGlHome",
|
|
9837
|
-
|
|
9846
|
+
class: "map-gl-home"
|
|
9838
9847
|
};
|
|
9839
9848
|
function Gs(a, e, t, r, i, s) {
|
|
9840
|
-
var
|
|
9841
|
-
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"), b = R("IdmPrmsl"), E = R("IdmIceEdge"), w = R("IdmIceCover"), k = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), v = R("IdmCurrentParticle"), u = R("IdmWindBarb"), C = R("IdmWindParticle"), y = R("IdmPrecip3h"), L = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"),
|
|
9849
|
+
var te, fe, pe, Ae, xe, be, _e, B, ze, Le, Pe, Ee, He, ke, se, ce, Q, Be, K, q, Me, P, de, De, Se, Te, z, O, Ge, Ue;
|
|
9850
|
+
const n = R("IdmGlLayer"), l = R("IdmENC"), c = R("IdmWorld12nm"), p = R("IdmWorldMarine"), h = R("IdmChinaRoute"), d = R("IdmSigWave"), A = R("IdmSwell"), b = R("IdmPrmsl"), E = R("IdmIceEdge"), w = R("IdmIceCover"), k = R("IdmIceThickness"), _ = R("IdmTropicals"), f = R("IdmCurrents"), v = R("IdmCurrentParticle"), u = R("IdmWindBarb"), C = R("IdmWindParticle"), y = R("IdmPrecip3h"), L = R("IdmVisibility"), T = R("IdmWaterTemp"), D = R("IdmTemp"), F = R("IdmWarZone"), N = R("IdmGmdssArea"), j = R("IdmEcaZone"), G = R("IdmAlertZone"), W = R("IdmPort"), me = R("IdmLoadLine"), re = R("IdmTimezone"), ue = R("IdmVRA"), we = R("IdmSpecialArea"), ge = R("IdmTerminator"), ve = R("IdmLatLng"), ye = R("IdmMeasure"), Y = R("IdmPoint");
|
|
9842
9851
|
return t.map ? (m(), g("div", Ws, [
|
|
9843
9852
|
H(n, X({
|
|
9844
9853
|
ref: "layer",
|
|
@@ -9857,11 +9866,11 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9857
9866
|
onOther: s.handleOtherLayerChange,
|
|
9858
9867
|
onToggleWindParticle: e[0] || (e[0] = (ie) => i.showWindParticle = ie),
|
|
9859
9868
|
onToggleWindFeather: e[1] || (e[1] = (ie) => {
|
|
9860
|
-
i.showWindFeather = ie
|
|
9869
|
+
(i.showWindFeather = ie) && s.handleDrawWeather4Json();
|
|
9861
9870
|
}),
|
|
9862
9871
|
onToggleCurrentParticle: e[2] || (e[2] = (ie) => i.showCurrentParticle = ie),
|
|
9863
9872
|
onToggleCurrentIsoband: e[3] || (e[3] = (ie) => {
|
|
9864
|
-
i.showCurrentIsoband = ie
|
|
9873
|
+
(i.showCurrentIsoband = ie) && s.handleDrawWeather4Json();
|
|
9865
9874
|
}),
|
|
9866
9875
|
onToggleWindParticeVersion: e[4] || (e[4] = (ie) => i.toggleWindParticeVersion = Math.random()),
|
|
9867
9876
|
onToggleCurrentParticeVersion: e[5] || (e[5] = (ie) => i.toggleCurrentParticeVersion = Math.random()),
|
|
@@ -9874,7 +9883,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9874
9883
|
H(l, X({
|
|
9875
9884
|
map: t.map,
|
|
9876
9885
|
token: t.token,
|
|
9877
|
-
enabled: (
|
|
9886
|
+
enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
|
|
9878
9887
|
"toggle-version": t.toggleVersion
|
|
9879
9888
|
}, a.$attrs, {
|
|
9880
9889
|
onEnc: e[9] || (e[9] = (ie) => i.enc = ie)
|
|
@@ -9883,19 +9892,19 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9883
9892
|
map: t.map,
|
|
9884
9893
|
token: t.token,
|
|
9885
9894
|
"weather-layers": i.weatherLayers,
|
|
9886
|
-
enabled: (
|
|
9895
|
+
enabled: (fe = i.otherLayers) == null ? void 0 : fe.world12nm
|
|
9887
9896
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9888
9897
|
H(p, X({
|
|
9889
9898
|
map: t.map,
|
|
9890
9899
|
token: t.token,
|
|
9891
9900
|
"weather-layers": i.weatherLayers,
|
|
9892
|
-
enabled: (
|
|
9901
|
+
enabled: (pe = i.otherLayers) == null ? void 0 : pe.worldMarine
|
|
9893
9902
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9894
9903
|
H(h, X({
|
|
9895
9904
|
map: t.map,
|
|
9896
9905
|
token: t.token,
|
|
9897
9906
|
"weather-layers": i.weatherLayers,
|
|
9898
|
-
enabled: (
|
|
9907
|
+
enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.chinaRoute
|
|
9899
9908
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9900
9909
|
H(d, X({
|
|
9901
9910
|
map: t.map,
|
|
@@ -9905,7 +9914,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9905
9914
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
|
|
9906
9915
|
H(A, X({
|
|
9907
9916
|
map: t.map,
|
|
9908
|
-
swell: (
|
|
9917
|
+
swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
|
|
9909
9918
|
"before-layer": t.beforeLayer,
|
|
9910
9919
|
"active-weather-layers": i.activeWeatherLayers
|
|
9911
9920
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
@@ -9929,7 +9938,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9929
9938
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9930
9939
|
H(k, X({
|
|
9931
9940
|
viewport: i.viewport,
|
|
9932
|
-
factor: (
|
|
9941
|
+
factor: (Le = i.weatherLayers) == null ? void 0 : Le["ice-thickness"],
|
|
9933
9942
|
"toggle-version": t.toggleVersion,
|
|
9934
9943
|
"before-layer": t.beforeLayer
|
|
9935
9944
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
@@ -9965,7 +9974,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9965
9974
|
map: t.map,
|
|
9966
9975
|
"map-projection": i.mapProjection,
|
|
9967
9976
|
wind: (ke = i.weatherLayers) == null ? void 0 : ke.wind,
|
|
9968
|
-
current: (
|
|
9977
|
+
current: (se = i.weatherLayers) == null ? void 0 : se.current,
|
|
9969
9978
|
"before-layer": t.beforeLayer,
|
|
9970
9979
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
9971
9980
|
"show-wind-feather": i.showWindFeather,
|
|
@@ -10037,7 +10046,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10037
10046
|
line: (Te = i.otherLayers) == null ? void 0 : Te["load-lines"],
|
|
10038
10047
|
"before-layer": t.beforeLayer
|
|
10039
10048
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
10040
|
-
H(
|
|
10049
|
+
H(re, X({
|
|
10041
10050
|
map: t.map,
|
|
10042
10051
|
zone: (z = i.otherLayers) == null ? void 0 : z["time-zones"],
|
|
10043
10052
|
"before-layer": t.beforeLayer
|
|
@@ -10047,7 +10056,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10047
10056
|
area: (O = i.otherLayers) == null ? void 0 : O["voluntary-reporting-area"],
|
|
10048
10057
|
"before-layer": t.beforeLayer
|
|
10049
10058
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10050
|
-
H(
|
|
10059
|
+
H(we, X({
|
|
10051
10060
|
map: t.map,
|
|
10052
10061
|
area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
|
|
10053
10062
|
"before-layer": t.beforeLayer
|
|
@@ -10056,16 +10065,16 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10056
10065
|
map: t.map,
|
|
10057
10066
|
area: (Ue = i.otherLayers) == null ? void 0 : Ue["day-night"]
|
|
10058
10067
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
10059
|
-
H(
|
|
10068
|
+
H(ve, X({
|
|
10060
10069
|
map: t.map,
|
|
10061
10070
|
show: i.showCoord,
|
|
10062
10071
|
"toggle-version": t.toggleVersion
|
|
10063
10072
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
10064
|
-
H(
|
|
10073
|
+
H(ye, X({
|
|
10065
10074
|
map: t.map,
|
|
10066
10075
|
show: i.showMeasure
|
|
10067
10076
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
10068
|
-
H(
|
|
10077
|
+
H(Y, X({
|
|
10069
10078
|
ref: "idmPoint",
|
|
10070
10079
|
map: t.map,
|
|
10071
10080
|
show: i.showPoint,
|
|
@@ -10087,9 +10096,9 @@ export {
|
|
|
10087
10096
|
Us as MapboxGL,
|
|
10088
10097
|
ao as MapboxGLPlugin,
|
|
10089
10098
|
na as MapboxHelper,
|
|
10090
|
-
|
|
10099
|
+
Ce as ParticleSchema,
|
|
10091
10100
|
dt as TropicalGL,
|
|
10092
10101
|
et as Viewport,
|
|
10093
10102
|
We as WebGL,
|
|
10094
|
-
|
|
10103
|
+
ne as WebGLSchema
|
|
10095
10104
|
};
|