@idmwx/idmui-gl3 6.2.8 → 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 +196 -188
- package/dist/index.umd.cjs +13 -13
- 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: {
|
|
@@ -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, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3214
3214
|
this.program = e, this.aPositionBuffer = t;
|
|
3215
3215
|
}
|
|
3216
3216
|
this.handleParticleSetup();
|
|
@@ -3224,11 +3224,11 @@ const la = {
|
|
|
3224
3224
|
];
|
|
3225
3225
|
this.wrapper = this.webgl.bindParticle(
|
|
3226
3226
|
this.particleContext,
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3227
|
+
Ce.vertexSchema,
|
|
3228
|
+
Ce.fragmentSchema,
|
|
3229
|
+
Ce.quadVertSchema,
|
|
3230
|
+
Ce.screenFragmentSchema,
|
|
3231
|
+
Ce.updateFragmentSchema
|
|
3232
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);
|
|
3233
3233
|
}
|
|
3234
3234
|
},
|
|
@@ -3264,7 +3264,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3264
3264
|
return (n = t.factor) != null && n.active ? (m(), g("div", ha, [
|
|
3265
3265
|
o("div", {
|
|
3266
3266
|
class: "legend-bars flex-center",
|
|
3267
|
-
style:
|
|
3267
|
+
style: he([{ 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, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3542
3542
|
this.program = e, this.aPositionBuffer = t;
|
|
3543
3543
|
}
|
|
3544
3544
|
this.handleParticleSetup();
|
|
@@ -3553,11 +3553,11 @@ const ga = {
|
|
|
3553
3553
|
];
|
|
3554
3554
|
this.wrapper = this.webgl.bindParticle(
|
|
3555
3555
|
this.particleContext,
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3556
|
+
Ce.vertexSchema,
|
|
3557
|
+
Ce.fragmentSchema,
|
|
3558
|
+
Ce.quadVertSchema,
|
|
3559
|
+
Ce.screenFragmentSchema,
|
|
3560
|
+
Ce.updateFragmentSchema
|
|
3561
3561
|
), this.wrapper.color = this.webgl.setup(this.particleContext, a, !0, 16, 16), this.wrapper = {
|
|
3562
3562
|
...this.wrapper,
|
|
3563
3563
|
...this.webgl.setupParticle(this.particleContext, 9e3),
|
|
@@ -3597,7 +3597,7 @@ function fa(a, e, t, r, i, s) {
|
|
|
3597
3597
|
return (n = t.factor) != null && n.active ? (m(), g("div", ya, [
|
|
3598
3598
|
o("div", {
|
|
3599
3599
|
class: "legend-bars flex-center",
|
|
3600
|
-
style:
|
|
3600
|
+
style: he([{ 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, ne.vertexSchema, ne.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 ? (m(), g("div", ka, [
|
|
4145
4145
|
o("div", {
|
|
4146
4146
|
class: "legend-bars flex-center",
|
|
4147
|
-
style:
|
|
4147
|
+
style: he([{ 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, ne.vertexSchema, ne.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 ? (m(), g("div", Ma, [
|
|
4261
4261
|
o("div", {
|
|
4262
4262
|
class: "legend-bars flex-center",
|
|
4263
|
-
style:
|
|
4263
|
+
style: he([{ 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, ne.vertexSchema, ne.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 ? (m(), g("div", Ha, [
|
|
4379
4379
|
o("div", {
|
|
4380
4380
|
class: "legend-bars flex-center",
|
|
4381
|
-
style:
|
|
4381
|
+
style: he([{ 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,10 +4737,10 @@ class ht {
|
|
|
4737
4737
|
}), i;
|
|
4738
4738
|
}
|
|
4739
4739
|
static pickHourly(e, t) {
|
|
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,
|
|
4741
|
-
const
|
|
4742
|
-
if (
|
|
4743
|
-
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);
|
|
4744
4744
|
let de, De;
|
|
4745
4745
|
if (ce) {
|
|
4746
4746
|
let Se = 0, Te = 0;
|
|
@@ -4791,27 +4791,27 @@ class ht {
|
|
|
4791
4791
|
sig: {
|
|
4792
4792
|
height: (W = z == null ? void 0 : z.wave_height) == null ? void 0 : W.at(P),
|
|
4793
4793
|
degree: (me = z == null ? void 0 : z.wave_direction) == null ? void 0 : me.at(P),
|
|
4794
|
-
bearing: ((
|
|
4795
|
-
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)
|
|
4796
4796
|
},
|
|
4797
4797
|
swell: {
|
|
4798
4798
|
height: (ge = z == null ? void 0 : z.swell_wave_height) == null ? void 0 : ge.at(P),
|
|
4799
|
-
degree: (
|
|
4800
|
-
bearing: ((
|
|
4801
|
-
period: (
|
|
4802
|
-
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)
|
|
4803
4803
|
},
|
|
4804
4804
|
wd: {
|
|
4805
|
-
height: (
|
|
4806
|
-
degree: (
|
|
4807
|
-
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,
|
|
4808
4808
|
period: (_e = z == null ? void 0 : z.wind_wave_period) == null ? void 0 : _e.at(P),
|
|
4809
4809
|
peakPeriod: (B = z == null ? void 0 : z.wind_wave_peak_period) == null ? void 0 : B.at(P)
|
|
4810
4810
|
}
|
|
4811
4811
|
},
|
|
4812
4812
|
current: {
|
|
4813
4813
|
speed: (ze = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : ze.at(P),
|
|
4814
|
-
kts: (
|
|
4814
|
+
kts: (Le = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Le.at(P),
|
|
4815
4815
|
degree: (Pe = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Pe.at(P),
|
|
4816
4816
|
bearing: ((Ee = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Ee.at(P)) ?? null
|
|
4817
4817
|
},
|
|
@@ -4846,15 +4846,15 @@ class ht {
|
|
|
4846
4846
|
};
|
|
4847
4847
|
}
|
|
4848
4848
|
static pickDaily(e, 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,
|
|
4850
|
-
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 = [];
|
|
4851
4851
|
if (ze.isBetween(Ee, He, "millisecond", "[]")) {
|
|
4852
|
-
let
|
|
4852
|
+
let se, ce;
|
|
4853
4853
|
const Q = ze.diff(Ee, "d", !1);
|
|
4854
|
-
if (
|
|
4855
|
-
for (const Be of
|
|
4854
|
+
if (Le)
|
|
4855
|
+
for (const Be of Le) {
|
|
4856
4856
|
const K = Be.daily;
|
|
4857
|
-
|
|
4857
|
+
se = {
|
|
4858
4858
|
code: (p = K.weather_code) == null ? void 0 : p.at(Q),
|
|
4859
4859
|
temp: {
|
|
4860
4860
|
max: (h = K.temperature_2m_max) == null ? void 0 : h.at(Q),
|
|
@@ -4886,11 +4886,11 @@ class ht {
|
|
|
4886
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
|
|
4887
4887
|
}
|
|
4888
4888
|
};
|
|
4889
|
-
const { name: q, url: Me, bg: P } = this.parseWeatherCode(
|
|
4890
|
-
|
|
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({
|
|
4891
4891
|
utc: Ee.add(Q, "d").utc().format(),
|
|
4892
4892
|
model: Be.model,
|
|
4893
|
-
weather: { ...
|
|
4893
|
+
weather: { ...se }
|
|
4894
4894
|
});
|
|
4895
4895
|
}
|
|
4896
4896
|
if (Pe) {
|
|
@@ -4902,26 +4902,26 @@ class ht {
|
|
|
4902
4902
|
sig: {
|
|
4903
4903
|
height: (W = q.wave_height_max) == null ? void 0 : W.at(Q),
|
|
4904
4904
|
degree: (me = q.wave_direction_dominant) == null ? void 0 : me.at(Q),
|
|
4905
|
-
period: (
|
|
4906
|
-
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
|
|
4907
4907
|
},
|
|
4908
4908
|
swell: {
|
|
4909
4909
|
height: (ge = q.swell_wave_height_max) == null ? void 0 : ge.at(Q),
|
|
4910
|
-
degree: (
|
|
4911
|
-
period: (
|
|
4912
|
-
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),
|
|
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: ((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
|
|
4915
4915
|
},
|
|
4916
4916
|
wd: {
|
|
4917
|
-
height: (
|
|
4918
|
-
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),
|
|
4919
4919
|
period: (xe = q.wind_wave_period_max) == null ? void 0 : xe.at(Q),
|
|
4920
|
-
peakPeriod: (
|
|
4920
|
+
peakPeriod: (be = q.wind_wave_peak_period_max) == null ? void 0 : be.at(Q),
|
|
4921
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
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
|
-
}, 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++;
|
|
4925
4925
|
}
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
@@ -4932,14 +4932,22 @@ class ht {
|
|
|
4932
4932
|
const r = Math.sqrt(Math.pow(e.swell.height || 0, 2) + Math.pow(e.wd.height || 0, 2));
|
|
4933
4933
|
e.sig.height = Math.round(r * 100) / 100;
|
|
4934
4934
|
}
|
|
4935
|
-
if (e.swell.height === 0)
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
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
|
+
}
|
|
4943
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;
|
|
4944
4952
|
}
|
|
4945
4953
|
static parseWeatherCode(e, t) {
|
|
@@ -5307,7 +5315,7 @@ class ht {
|
|
|
5307
5315
|
*/
|
|
5308
5316
|
static beaufort(e) {
|
|
5309
5317
|
let t = 0;
|
|
5310
|
-
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;
|
|
5311
5319
|
}
|
|
5312
5320
|
/**
|
|
5313
5321
|
* 计算海浪等级
|
|
@@ -5690,13 +5698,13 @@ const Oa = {
|
|
|
5690
5698
|
},
|
|
5691
5699
|
handleDateChange() {
|
|
5692
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;
|
|
5693
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
5694
|
-
const
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
}), (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, {
|
|
5698
5706
|
type: "geojson",
|
|
5699
|
-
data:
|
|
5707
|
+
data: ye
|
|
5700
5708
|
}), (s = this.map) == null || s.addLayer({
|
|
5701
5709
|
id: this.interpolateLineLayer,
|
|
5702
5710
|
type: "line",
|
|
@@ -5708,17 +5716,17 @@ const Oa = {
|
|
|
5708
5716
|
"line-width": 1
|
|
5709
5717
|
}
|
|
5710
5718
|
})), this.interpolateMarkers = [];
|
|
5711
|
-
for (const Y of
|
|
5719
|
+
for (const Y of ge)
|
|
5712
5720
|
if (!Y.properties.disabled) {
|
|
5713
|
-
let
|
|
5714
|
-
((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) ?
|
|
5715
|
-
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"
|
|
5716
5724
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5717
5725
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5718
5726
|
<path
|
|
5719
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"
|
|
5720
|
-
fill="${
|
|
5721
|
-
<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}"
|
|
5722
5730
|
p-id="18384"></path>
|
|
5723
5731
|
<path
|
|
5724
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"
|
|
@@ -5727,9 +5735,9 @@ const Oa = {
|
|
|
5727
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"
|
|
5728
5736
|
fill="#ffffff" p-id="18386"></path>
|
|
5729
5737
|
</svg>`, pe = document.createElement("div");
|
|
5730
|
-
pe.className = "hurricane-hourly-marker", pe.innerHTML = `<div class="${Y.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${
|
|
5731
|
-
const
|
|
5732
|
-
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);
|
|
5733
5741
|
}
|
|
5734
5742
|
} else
|
|
5735
5743
|
(W = this.map) != null && W.getSource(this.interpolateSource) && ((me = this.map) == null || me.getSource(this.interpolateSource).setData(this.empty));
|
|
@@ -5874,7 +5882,7 @@ function si(a, e, t, r, i, s) {
|
|
|
5874
5882
|
}, ""),
|
|
5875
5883
|
o("div", Wa, [
|
|
5876
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),
|
|
5877
|
-
|
|
5885
|
+
le(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
|
|
5878
5886
|
]),
|
|
5879
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)
|
|
5880
5888
|
]),
|
|
@@ -6032,7 +6040,7 @@ const oi = {
|
|
|
6032
6040
|
[1, "rgba(197,5,58,0.8)"]
|
|
6033
6041
|
];
|
|
6034
6042
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6035
|
-
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);
|
|
6036
6044
|
this.program = e, this.aPositionBuffer = t;
|
|
6037
6045
|
}
|
|
6038
6046
|
},
|
|
@@ -6051,7 +6059,7 @@ function li(a, e, t, r, i, s) {
|
|
|
6051
6059
|
return (n = t.factor) != null && n.active ? (m(), g("div", ni, [
|
|
6052
6060
|
o("div", {
|
|
6053
6061
|
class: "legend-bars flex-center",
|
|
6054
|
-
style:
|
|
6062
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6055
6063
|
}, e[0] || (e[0] = [
|
|
6056
6064
|
o("span", null, "mm", -1),
|
|
6057
6065
|
o("span", null, "1.5", -1),
|
|
@@ -6146,7 +6154,7 @@ const ci = {
|
|
|
6146
6154
|
[1, "rgba(144,144,144,0)"]
|
|
6147
6155
|
];
|
|
6148
6156
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6149
|
-
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);
|
|
6150
6158
|
this.program = e, this.aPositionBuffer = t;
|
|
6151
6159
|
}
|
|
6152
6160
|
},
|
|
@@ -6165,7 +6173,7 @@ function pi(a, e, t, r, i, s) {
|
|
|
6165
6173
|
return (n = t.factor) != null && n.active ? (m(), g("div", di, [
|
|
6166
6174
|
o("div", {
|
|
6167
6175
|
class: "legend-bars flex-center",
|
|
6168
|
-
style:
|
|
6176
|
+
style: he([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
6169
6177
|
}, e[0] || (e[0] = [
|
|
6170
6178
|
o("span", null, "nm", -1),
|
|
6171
6179
|
o("span", null, "0", -1),
|
|
@@ -6266,7 +6274,7 @@ const ui = {
|
|
|
6266
6274
|
//
|
|
6267
6275
|
];
|
|
6268
6276
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6269
|
-
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);
|
|
6270
6278
|
this.program = e, this.aPositionBuffer = t;
|
|
6271
6279
|
}
|
|
6272
6280
|
},
|
|
@@ -6285,7 +6293,7 @@ function yi(a, e, t, r, i, s) {
|
|
|
6285
6293
|
return (n = t.factor) != null && n.active ? (m(), g("div", gi, [
|
|
6286
6294
|
o("div", {
|
|
6287
6295
|
class: "legend-bars flex-center",
|
|
6288
|
-
style:
|
|
6296
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6289
6297
|
}, e[0] || (e[0] = [
|
|
6290
6298
|
o("span", null, "°C", -1),
|
|
6291
6299
|
o("span", null, "0", -1),
|
|
@@ -6389,7 +6397,7 @@ const Ai = {
|
|
|
6389
6397
|
[1, "rgb(138, 43, 10)"]
|
|
6390
6398
|
];
|
|
6391
6399
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6392
|
-
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);
|
|
6393
6401
|
this.program = e, this.aPositionBuffer = t;
|
|
6394
6402
|
}
|
|
6395
6403
|
},
|
|
@@ -6408,7 +6416,7 @@ function vi(a, e, t, r, i, s) {
|
|
|
6408
6416
|
return (n = t.factor) != null && n.active ? (m(), g("div", wi, [
|
|
6409
6417
|
o("div", {
|
|
6410
6418
|
class: "legend-bars flex-center",
|
|
6411
|
-
style:
|
|
6419
|
+
style: he([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6412
6420
|
}, e[0] || (e[0] = [
|
|
6413
6421
|
o("span", null, "°C", -1),
|
|
6414
6422
|
o("span", null, "-20", -1),
|
|
@@ -6584,17 +6592,17 @@ const _i = {
|
|
|
6584
6592
|
},
|
|
6585
6593
|
computeLat() {
|
|
6586
6594
|
return function(a, e = 4) {
|
|
6587
|
-
return
|
|
6595
|
+
return oe.lat2pretty(a, e).pretty;
|
|
6588
6596
|
};
|
|
6589
6597
|
},
|
|
6590
6598
|
computeLng() {
|
|
6591
6599
|
return function(a, e = 4) {
|
|
6592
|
-
return
|
|
6600
|
+
return oe.lng2pretty(a, e).pretty;
|
|
6593
6601
|
};
|
|
6594
6602
|
},
|
|
6595
6603
|
roundPrecision() {
|
|
6596
6604
|
return function(a, e = 4) {
|
|
6597
|
-
return isNaN(a) ? "-" :
|
|
6605
|
+
return isNaN(a) ? "-" : oe.roundPrecision(a, e);
|
|
6598
6606
|
};
|
|
6599
6607
|
}
|
|
6600
6608
|
},
|
|
@@ -6637,16 +6645,16 @@ const _i = {
|
|
|
6637
6645
|
initTableData(a) {
|
|
6638
6646
|
var e, t, r, i, s, n, l, c, p;
|
|
6639
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(() => {
|
|
6640
|
-
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;
|
|
6641
6649
|
if (!document.getElementById("meteoMainBox"))
|
|
6642
6650
|
return !1;
|
|
6643
6651
|
if (!this.currentHourData)
|
|
6644
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;
|
|
6645
|
-
for (let
|
|
6646
|
-
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();
|
|
6647
6655
|
this.tableData.hours.push(_e);
|
|
6648
6656
|
const B = ((d = Ke.pickHourly(a, _e)) == null ? void 0 : d[0]) || {};
|
|
6649
|
-
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) ?? "-");
|
|
6650
6658
|
}
|
|
6651
6659
|
});
|
|
6652
6660
|
},
|
|
@@ -6772,7 +6780,7 @@ const _i = {
|
|
|
6772
6780
|
class: "main-box flex-center"
|
|
6773
6781
|
};
|
|
6774
6782
|
function Qr(a, e, t, r, i, s) {
|
|
6775
|
-
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;
|
|
6776
6784
|
const n = R("LocationFilled"), l = R("ElIcon"), c = R("ElTooltip");
|
|
6777
6785
|
return Fe((m(), g("div", Bi, [
|
|
6778
6786
|
o("div", Ii, [
|
|
@@ -6835,7 +6843,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6835
6843
|
}, 8, ["content"]),
|
|
6836
6844
|
o("div", Qi, [
|
|
6837
6845
|
o("div", null, [
|
|
6838
|
-
|
|
6846
|
+
le(I(s.roundPrecision((E = (b = i.currentHourData) == null ? void 0 : b.weather) == null ? void 0 : E.temp, 0)), 1),
|
|
6839
6847
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6840
6848
|
])
|
|
6841
6849
|
]),
|
|
@@ -6885,7 +6893,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6885
6893
|
colspan: "1",
|
|
6886
6894
|
class: "tr-title"
|
|
6887
6895
|
}, [
|
|
6888
|
-
|
|
6896
|
+
le("Hours"),
|
|
6889
6897
|
o("span", { class: "unit" }, "(LT)")
|
|
6890
6898
|
], -1)),
|
|
6891
6899
|
(m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
|
|
@@ -6900,7 +6908,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6900
6908
|
colspan: "1",
|
|
6901
6909
|
class: "tr-title"
|
|
6902
6910
|
}, [
|
|
6903
|
-
|
|
6911
|
+
le("UTC"),
|
|
6904
6912
|
o("span", { class: "unit" })
|
|
6905
6913
|
], -1)),
|
|
6906
6914
|
(m(!0), g(V, null, $(i.tableData.hours, (x) => (m(), g("th", {
|
|
@@ -6944,7 +6952,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6944
6952
|
colspan: "1",
|
|
6945
6953
|
class: "tr-title"
|
|
6946
6954
|
}, [
|
|
6947
|
-
|
|
6955
|
+
le("Temp"),
|
|
6948
6956
|
o("span", { class: "unit" }, "°C")
|
|
6949
6957
|
], -1)),
|
|
6950
6958
|
(m(!0), g(V, null, $(i.tableData.temp, (x, M) => (m(), g("td", {
|
|
@@ -6959,7 +6967,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6959
6967
|
colspan: "1",
|
|
6960
6968
|
class: "tr-title"
|
|
6961
6969
|
}, [
|
|
6962
|
-
|
|
6970
|
+
le("Precip"),
|
|
6963
6971
|
o("span", { class: "unit" }, "mm")
|
|
6964
6972
|
], -1)),
|
|
6965
6973
|
(m(!0), g(V, null, $(i.tableData.precip1h, (x, M) => (m(), g("td", {
|
|
@@ -6974,7 +6982,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6974
6982
|
colspan: "1",
|
|
6975
6983
|
class: "tr-title"
|
|
6976
6984
|
}, [
|
|
6977
|
-
|
|
6985
|
+
le("Visibility"),
|
|
6978
6986
|
o("span", { class: "unit" }, "nm")
|
|
6979
6987
|
], -1)),
|
|
6980
6988
|
(m(!0), g(V, null, $(i.tableData.visibility, (x, M) => (m(), g("td", {
|
|
@@ -6989,7 +6997,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
6989
6997
|
colspan: "1",
|
|
6990
6998
|
class: "tr-title"
|
|
6991
6999
|
}, [
|
|
6992
|
-
|
|
7000
|
+
le("Wind gust"),
|
|
6993
7001
|
o("span", { class: "unit" }, "kts")
|
|
6994
7002
|
], -1)),
|
|
6995
7003
|
(m(!0), g(V, null, $(i.tableData.windGust, (x, M) => (m(), g("td", {
|
|
@@ -7010,7 +7018,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7010
7018
|
colspan: "1",
|
|
7011
7019
|
class: "tr-title"
|
|
7012
7020
|
}, [
|
|
7013
|
-
|
|
7021
|
+
le("Hours"),
|
|
7014
7022
|
o("span", { class: "unit" }, "(LT)")
|
|
7015
7023
|
], -1)),
|
|
7016
7024
|
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
@@ -7025,7 +7033,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7025
7033
|
colspan: "1",
|
|
7026
7034
|
class: "tr-title"
|
|
7027
7035
|
}, [
|
|
7028
|
-
|
|
7036
|
+
le("UTC"),
|
|
7029
7037
|
o("span", { class: "unit" })
|
|
7030
7038
|
], -1)),
|
|
7031
7039
|
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
@@ -7040,7 +7048,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7040
7048
|
colspan: "1",
|
|
7041
7049
|
class: "tr-title"
|
|
7042
7050
|
}, [
|
|
7043
|
-
|
|
7051
|
+
le("Wind"),
|
|
7044
7052
|
o("span", { class: "unit" }, "kts")
|
|
7045
7053
|
], -1)),
|
|
7046
7054
|
(m(!0), g(V, null, $(i.tableData.windSpeed, (x, M) => (m(), g("td", {
|
|
@@ -7051,7 +7059,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7051
7059
|
isNaN(i.tableData.windDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7052
7060
|
key: 0,
|
|
7053
7061
|
class: "iconfont icon wind",
|
|
7054
|
-
style:
|
|
7062
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.windDir[M]}deg)` })
|
|
7055
7063
|
}, "", 4)),
|
|
7056
7064
|
o("span", null, I(x), 1)
|
|
7057
7065
|
]))), 128))
|
|
@@ -7062,7 +7070,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7062
7070
|
colspan: "1",
|
|
7063
7071
|
class: "tr-title"
|
|
7064
7072
|
}, [
|
|
7065
|
-
|
|
7073
|
+
le("Sig Wave"),
|
|
7066
7074
|
o("span", { class: "unit" }, "m")
|
|
7067
7075
|
], -1)),
|
|
7068
7076
|
(m(!0), g(V, null, $(i.tableData.sigwaveHeight, (x, M) => (m(), g("td", {
|
|
@@ -7073,7 +7081,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7073
7081
|
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7074
7082
|
key: 0,
|
|
7075
7083
|
class: "iconfont icon sigwave",
|
|
7076
|
-
style:
|
|
7084
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[M]}deg)` })
|
|
7077
7085
|
}, "", 4)),
|
|
7078
7086
|
o("span", null, I(x), 1)
|
|
7079
7087
|
]))), 128))
|
|
@@ -7084,7 +7092,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7084
7092
|
colspan: "1",
|
|
7085
7093
|
class: "tr-title"
|
|
7086
7094
|
}, [
|
|
7087
|
-
|
|
7095
|
+
le("Wind Wave"),
|
|
7088
7096
|
o("span", { class: "unit" }, "m")
|
|
7089
7097
|
], -1)),
|
|
7090
7098
|
(m(!0), g(V, null, $(i.tableData.windwaveHeight, (x, M) => (m(), g("td", {
|
|
@@ -7095,7 +7103,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7095
7103
|
isNaN(i.tableData.sigwaveDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7096
7104
|
key: 0,
|
|
7097
7105
|
class: "iconfont icon windwave",
|
|
7098
|
-
style:
|
|
7106
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[M]}deg)` })
|
|
7099
7107
|
}, "", 4)),
|
|
7100
7108
|
o("span", null, I(x), 1)
|
|
7101
7109
|
]))), 128))
|
|
@@ -7106,7 +7114,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7106
7114
|
colspan: "1",
|
|
7107
7115
|
class: "tr-title"
|
|
7108
7116
|
}, [
|
|
7109
|
-
|
|
7117
|
+
le("Swell"),
|
|
7110
7118
|
o("span", { class: "unit" }, "m")
|
|
7111
7119
|
], -1)),
|
|
7112
7120
|
(m(!0), g(V, null, $(i.tableData.swellHeight, (x, M) => (m(), g("td", {
|
|
@@ -7117,7 +7125,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7117
7125
|
isNaN(i.tableData.swellDir[M]) ? J("", !0) : (m(), g("span", {
|
|
7118
7126
|
key: 0,
|
|
7119
7127
|
class: "iconfont icon swell",
|
|
7120
|
-
style:
|
|
7128
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[M]}deg)` })
|
|
7121
7129
|
}, "", 4)),
|
|
7122
7130
|
o("span", null, I(x), 1)
|
|
7123
7131
|
]))), 128))
|
|
@@ -7128,7 +7136,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7128
7136
|
colspan: "1",
|
|
7129
7137
|
class: "tr-title"
|
|
7130
7138
|
}, [
|
|
7131
|
-
|
|
7139
|
+
le("Current"),
|
|
7132
7140
|
o("span", { class: "unit" }, "kts")
|
|
7133
7141
|
], -1)),
|
|
7134
7142
|
(m(!0), g(V, null, $(i.tableData.currentSpeed, (x, M) => (m(), g("td", {
|
|
@@ -7140,7 +7148,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7140
7148
|
key: 0,
|
|
7141
7149
|
class: "iconfont icon current",
|
|
7142
7150
|
id: "meteoGrayIcon",
|
|
7143
|
-
style:
|
|
7151
|
+
style: he({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[M]}deg)` })
|
|
7144
7152
|
}, "", 4)),
|
|
7145
7153
|
o("span", null, I(x), 1)
|
|
7146
7154
|
]))), 128))
|
|
@@ -7155,7 +7163,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7155
7163
|
colspan: "1",
|
|
7156
7164
|
class: "tr-title"
|
|
7157
7165
|
}, [
|
|
7158
|
-
|
|
7166
|
+
le("Hours"),
|
|
7159
7167
|
o("span", { class: "unit" }, "(LT)")
|
|
7160
7168
|
], -1)),
|
|
7161
7169
|
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
@@ -7170,7 +7178,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7170
7178
|
colspan: "1",
|
|
7171
7179
|
class: "tr-title"
|
|
7172
7180
|
}, [
|
|
7173
|
-
|
|
7181
|
+
le("UTC"),
|
|
7174
7182
|
o("span", { class: "unit" })
|
|
7175
7183
|
], -1)),
|
|
7176
7184
|
(m(!0), g(V, null, $(i.tableData.hours, (x, M) => (m(), g("th", {
|
|
@@ -7185,7 +7193,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7185
7193
|
colspan: "1",
|
|
7186
7194
|
class: "tr-title"
|
|
7187
7195
|
}, [
|
|
7188
|
-
|
|
7196
|
+
le("SeaLevel"),
|
|
7189
7197
|
o("span", { class: "unit" }, "m")
|
|
7190
7198
|
], -1)),
|
|
7191
7199
|
(m(!0), g(V, null, $(i.tableData.seaLevel, (x, M) => (m(), g("td", {
|
|
@@ -7200,7 +7208,7 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7200
7208
|
colspan: "1",
|
|
7201
7209
|
class: "tr-title"
|
|
7202
7210
|
}, [
|
|
7203
|
-
|
|
7211
|
+
le("SeaTemp"),
|
|
7204
7212
|
o("span", { class: "unit" }, "°C")
|
|
7205
7213
|
], -1)),
|
|
7206
7214
|
(m(!0), g(V, null, $(i.tableData.seaTemp, (x, M) => (m(), g("td", {
|
|
@@ -7252,17 +7260,17 @@ function Qr(a, e, t, r, i, s) {
|
|
|
7252
7260
|
o("div", vr, [
|
|
7253
7261
|
o("div", br, [
|
|
7254
7262
|
e[33] || (e[33] = o("div", null, "Wind", -1)),
|
|
7255
|
-
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)
|
|
7256
7264
|
]),
|
|
7257
7265
|
o("div", Lr, [
|
|
7258
7266
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7259
|
-
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)
|
|
7260
7268
|
])
|
|
7261
7269
|
]),
|
|
7262
7270
|
o("div", Cr, [
|
|
7263
7271
|
o("div", xr, [
|
|
7264
7272
|
e[35] || (e[35] = o("div", null, "Wind wave", -1)),
|
|
7265
|
-
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)
|
|
7266
7274
|
]),
|
|
7267
7275
|
o("div", _r, [
|
|
7268
7276
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
@@ -7820,12 +7828,12 @@ const Zr = {
|
|
|
7820
7828
|
computed: {
|
|
7821
7829
|
computeLat() {
|
|
7822
7830
|
return function(a) {
|
|
7823
|
-
return
|
|
7831
|
+
return oe.lat2pretty(a, 4).pretty;
|
|
7824
7832
|
};
|
|
7825
7833
|
},
|
|
7826
7834
|
computeLng() {
|
|
7827
7835
|
return function(a) {
|
|
7828
|
-
return
|
|
7836
|
+
return oe.lng2pretty(a, 4).pretty;
|
|
7829
7837
|
};
|
|
7830
7838
|
}
|
|
7831
7839
|
},
|
|
@@ -8297,7 +8305,7 @@ const ys = /* @__PURE__ */ U(us, [["render", gs]]), fs = {
|
|
|
8297
8305
|
methods: {
|
|
8298
8306
|
handleRender() {
|
|
8299
8307
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
8300
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
8308
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => oe.convertToMonotonicLng2(e));
|
|
8301
8309
|
}), this.map.addSource(this.source, {
|
|
8302
8310
|
type: "geojson",
|
|
8303
8311
|
data: this.area
|
|
@@ -8477,7 +8485,7 @@ const Cs = {
|
|
|
8477
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));
|
|
8478
8486
|
},
|
|
8479
8487
|
handleMouseMove(a) {
|
|
8480
|
-
const e = a.lngLat, t =
|
|
8488
|
+
const e = a.lngLat, t = oe.lng2pretty(e.lng, 2), r = oe.lat2pretty(e.lat, 2);
|
|
8481
8489
|
this.lngLat = { lng: t, lat: r };
|
|
8482
8490
|
},
|
|
8483
8491
|
handleComputeLatLngs() {
|
|
@@ -8579,7 +8587,7 @@ function xs(a, e, t, r, i, s) {
|
|
|
8579
8587
|
return i.lngLat ? (m(), g("div", {
|
|
8580
8588
|
key: 0,
|
|
8581
8589
|
class: "lat-lng-tip",
|
|
8582
|
-
style:
|
|
8590
|
+
style: he({ right: i.right + "px", bottom: t.bottom })
|
|
8583
8591
|
}, [
|
|
8584
8592
|
o("span", null, I(i.lngLat.lat.pretty), 1),
|
|
8585
8593
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
@@ -8734,9 +8742,9 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8734
8742
|
const r = [];
|
|
8735
8743
|
for (let i = 1; i < e.length; i++) {
|
|
8736
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);
|
|
8737
|
-
t =
|
|
8745
|
+
t = oe.roundPrecision(t + h, 2);
|
|
8738
8746
|
let A;
|
|
8739
|
-
l.mode === "RL" ? A =
|
|
8747
|
+
l.mode === "RL" ? A = oe.convertToMonotonicLng([c, p]) : A = oe.convertToMonotonicLng(Re.interpolateCoordinates(c, p, 200));
|
|
8740
8748
|
const b = S.lineString(A.map((E) => [E.lng, E.lat]));
|
|
8741
8749
|
b.properties.dist = h, b.properties.bearing = d, b.properties.total = t, r.push(b);
|
|
8742
8750
|
}
|
|
@@ -8751,7 +8759,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8751
8759
|
const c = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8752
8760
|
s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8753
8761
|
let d;
|
|
8754
|
-
c.mode === "RL" ? d =
|
|
8762
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([p, h]) : d = oe.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8755
8763
|
const A = S.lineString(d.map((b) => [b.lng, b.lat]));
|
|
8756
8764
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8757
8765
|
}
|
|
@@ -8759,7 +8767,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8759
8767
|
const c = t.properties, p = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8760
8768
|
s = Re.calculateDistance(p, h, c.mode === "RL", 4), n = Re.calculateBearing(p, h, c.mode === "RL", 2);
|
|
8761
8769
|
let d;
|
|
8762
|
-
c.mode === "RL" ? d =
|
|
8770
|
+
c.mode === "RL" ? d = oe.convertToMonotonicLng([p, h]) : d = oe.convertToMonotonicLng(Re.interpolateCoordinates(p, h, 200));
|
|
8763
8771
|
const A = S.lineString(d.map((b) => [b.lng, b.lat]));
|
|
8764
8772
|
A.properties.dist = s, A.properties.bearing = n, i.features.push(A);
|
|
8765
8773
|
}
|
|
@@ -8801,7 +8809,7 @@ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7
|
|
|
8801
8809
|
}
|
|
8802
8810
|
});
|
|
8803
8811
|
let l;
|
|
8804
|
-
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)
|
|
8805
8813
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8806
8814
|
else {
|
|
8807
8815
|
const c = document.createElement("div");
|
|
@@ -8946,7 +8954,7 @@ function zs(a, e, t, r, i, s) {
|
|
|
8946
8954
|
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), g("div", ks, [
|
|
8947
8955
|
o("div", {
|
|
8948
8956
|
class: "menu-bar-box",
|
|
8949
|
-
style:
|
|
8957
|
+
style: he({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
8950
8958
|
}, [
|
|
8951
8959
|
o("div", Ds, [
|
|
8952
8960
|
H(n, {
|
|
@@ -9499,7 +9507,7 @@ const js = {
|
|
|
9499
9507
|
var p, h, d, A, b, E;
|
|
9500
9508
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9501
9509
|
let e = 0, t = 0;
|
|
9502
|
-
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);
|
|
9503
9511
|
for (const w in this.weatherLayers) {
|
|
9504
9512
|
let k = !1;
|
|
9505
9513
|
if (this.weatherLayers[w].active && this.weatherLayers[w].type === "json") {
|
|
@@ -9730,7 +9738,7 @@ const js = {
|
|
|
9730
9738
|
}
|
|
9731
9739
|
for (const u in f.Point)
|
|
9732
9740
|
f.Point[u].lng.forEach((C, y) => {
|
|
9733
|
-
C =
|
|
9741
|
+
C = oe.convertToStdLng(C), v.push(
|
|
9734
9742
|
S.point([C, u], {
|
|
9735
9743
|
val: f.Point[u].val[y],
|
|
9736
9744
|
type: f.Point[u].type[y]
|
|
@@ -9753,7 +9761,7 @@ const js = {
|
|
|
9753
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"));
|
|
9754
9762
|
},
|
|
9755
9763
|
handleBboxClip(a, e) {
|
|
9756
|
-
const t = [], r =
|
|
9764
|
+
const t = [], r = oe.convertToStdLng(e._sw.lng), i = oe.convertToStdLng(e._ne.lng);
|
|
9757
9765
|
return a.features.forEach((s) => {
|
|
9758
9766
|
if (s.geometry.type !== "Point")
|
|
9759
9767
|
if (r > i) {
|
|
@@ -9809,12 +9817,12 @@ const js = {
|
|
|
9809
9817
|
}, 500);
|
|
9810
9818
|
else {
|
|
9811
9819
|
const e = a == null ? void 0 : a.reduce((t, r) => t + (r == null ? void 0 : r.weight), 0);
|
|
9812
|
-
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 }));
|
|
9813
9821
|
}
|
|
9814
9822
|
},
|
|
9815
9823
|
handle3dToggle(a) {
|
|
9816
9824
|
var e, t, r, i, s, n, l, c, p, h, d, A, b, E, w, k, _, f, v, u;
|
|
9817
|
-
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)));
|
|
9818
9826
|
},
|
|
9819
9827
|
handleParticle(a) {
|
|
9820
9828
|
this.particleFactor = a, this.weatherLayers[a.key] && (this.weatherLayers[a.key].particle = a.particle), this.activeWeatherLayers.map((r) => {
|
|
@@ -9835,11 +9843,11 @@ const js = {
|
|
|
9835
9843
|
}, Ws = {
|
|
9836
9844
|
key: 0,
|
|
9837
9845
|
ref: "mapGlHome",
|
|
9838
|
-
|
|
9846
|
+
class: "map-gl-home"
|
|
9839
9847
|
};
|
|
9840
9848
|
function Gs(a, e, t, r, i, s) {
|
|
9841
|
-
var
|
|
9842
|
-
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");
|
|
9843
9851
|
return t.map ? (m(), g("div", Ws, [
|
|
9844
9852
|
H(n, X({
|
|
9845
9853
|
ref: "layer",
|
|
@@ -9858,11 +9866,11 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9858
9866
|
onOther: s.handleOtherLayerChange,
|
|
9859
9867
|
onToggleWindParticle: e[0] || (e[0] = (ie) => i.showWindParticle = ie),
|
|
9860
9868
|
onToggleWindFeather: e[1] || (e[1] = (ie) => {
|
|
9861
|
-
i.showWindFeather = ie
|
|
9869
|
+
(i.showWindFeather = ie) && s.handleDrawWeather4Json();
|
|
9862
9870
|
}),
|
|
9863
9871
|
onToggleCurrentParticle: e[2] || (e[2] = (ie) => i.showCurrentParticle = ie),
|
|
9864
9872
|
onToggleCurrentIsoband: e[3] || (e[3] = (ie) => {
|
|
9865
|
-
i.showCurrentIsoband = ie
|
|
9873
|
+
(i.showCurrentIsoband = ie) && s.handleDrawWeather4Json();
|
|
9866
9874
|
}),
|
|
9867
9875
|
onToggleWindParticeVersion: e[4] || (e[4] = (ie) => i.toggleWindParticeVersion = Math.random()),
|
|
9868
9876
|
onToggleCurrentParticeVersion: e[5] || (e[5] = (ie) => i.toggleCurrentParticeVersion = Math.random()),
|
|
@@ -9875,7 +9883,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9875
9883
|
H(l, X({
|
|
9876
9884
|
map: t.map,
|
|
9877
9885
|
token: t.token,
|
|
9878
|
-
enabled: (
|
|
9886
|
+
enabled: (te = i.otherLayers) == null ? void 0 : te.enc,
|
|
9879
9887
|
"toggle-version": t.toggleVersion
|
|
9880
9888
|
}, a.$attrs, {
|
|
9881
9889
|
onEnc: e[9] || (e[9] = (ie) => i.enc = ie)
|
|
@@ -9884,19 +9892,19 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9884
9892
|
map: t.map,
|
|
9885
9893
|
token: t.token,
|
|
9886
9894
|
"weather-layers": i.weatherLayers,
|
|
9887
|
-
enabled: (
|
|
9895
|
+
enabled: (fe = i.otherLayers) == null ? void 0 : fe.world12nm
|
|
9888
9896
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9889
9897
|
H(p, X({
|
|
9890
9898
|
map: t.map,
|
|
9891
9899
|
token: t.token,
|
|
9892
9900
|
"weather-layers": i.weatherLayers,
|
|
9893
|
-
enabled: (
|
|
9901
|
+
enabled: (pe = i.otherLayers) == null ? void 0 : pe.worldMarine
|
|
9894
9902
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9895
9903
|
H(h, X({
|
|
9896
9904
|
map: t.map,
|
|
9897
9905
|
token: t.token,
|
|
9898
9906
|
"weather-layers": i.weatherLayers,
|
|
9899
|
-
enabled: (
|
|
9907
|
+
enabled: (Ae = i.otherLayers) == null ? void 0 : Ae.chinaRoute
|
|
9900
9908
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
9901
9909
|
H(d, X({
|
|
9902
9910
|
map: t.map,
|
|
@@ -9906,7 +9914,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9906
9914
|
}, a.$attrs), null, 16, ["map", "sig-wave", "before-layer", "active-weather-layers"]),
|
|
9907
9915
|
H(A, X({
|
|
9908
9916
|
map: t.map,
|
|
9909
|
-
swell: (
|
|
9917
|
+
swell: (be = i.weatherLayers) == null ? void 0 : be.swell,
|
|
9910
9918
|
"before-layer": t.beforeLayer,
|
|
9911
9919
|
"active-weather-layers": i.activeWeatherLayers
|
|
9912
9920
|
}, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
|
|
@@ -9930,7 +9938,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9930
9938
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
9931
9939
|
H(k, X({
|
|
9932
9940
|
viewport: i.viewport,
|
|
9933
|
-
factor: (
|
|
9941
|
+
factor: (Le = i.weatherLayers) == null ? void 0 : Le["ice-thickness"],
|
|
9934
9942
|
"toggle-version": t.toggleVersion,
|
|
9935
9943
|
"before-layer": t.beforeLayer
|
|
9936
9944
|
}, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
|
|
@@ -9966,7 +9974,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
9966
9974
|
map: t.map,
|
|
9967
9975
|
"map-projection": i.mapProjection,
|
|
9968
9976
|
wind: (ke = i.weatherLayers) == null ? void 0 : ke.wind,
|
|
9969
|
-
current: (
|
|
9977
|
+
current: (se = i.weatherLayers) == null ? void 0 : se.current,
|
|
9970
9978
|
"before-layer": t.beforeLayer,
|
|
9971
9979
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
9972
9980
|
"show-wind-feather": i.showWindFeather,
|
|
@@ -10038,7 +10046,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10038
10046
|
line: (Te = i.otherLayers) == null ? void 0 : Te["load-lines"],
|
|
10039
10047
|
"before-layer": t.beforeLayer
|
|
10040
10048
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
10041
|
-
H(
|
|
10049
|
+
H(re, X({
|
|
10042
10050
|
map: t.map,
|
|
10043
10051
|
zone: (z = i.otherLayers) == null ? void 0 : z["time-zones"],
|
|
10044
10052
|
"before-layer": t.beforeLayer
|
|
@@ -10048,7 +10056,7 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10048
10056
|
area: (O = i.otherLayers) == null ? void 0 : O["voluntary-reporting-area"],
|
|
10049
10057
|
"before-layer": t.beforeLayer
|
|
10050
10058
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10051
|
-
H(
|
|
10059
|
+
H(we, X({
|
|
10052
10060
|
map: t.map,
|
|
10053
10061
|
area: (Ge = i.otherLayers) == null ? void 0 : Ge["special-area"],
|
|
10054
10062
|
"before-layer": t.beforeLayer
|
|
@@ -10057,16 +10065,16 @@ function Gs(a, e, t, r, i, s) {
|
|
|
10057
10065
|
map: t.map,
|
|
10058
10066
|
area: (Ue = i.otherLayers) == null ? void 0 : Ue["day-night"]
|
|
10059
10067
|
}, a.$attrs), null, 16, ["map", "area"]),
|
|
10060
|
-
H(
|
|
10068
|
+
H(ve, X({
|
|
10061
10069
|
map: t.map,
|
|
10062
10070
|
show: i.showCoord,
|
|
10063
10071
|
"toggle-version": t.toggleVersion
|
|
10064
10072
|
}, a.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
10065
|
-
H(
|
|
10073
|
+
H(ye, X({
|
|
10066
10074
|
map: t.map,
|
|
10067
10075
|
show: i.showMeasure
|
|
10068
10076
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
10069
|
-
H(
|
|
10077
|
+
H(Y, X({
|
|
10070
10078
|
ref: "idmPoint",
|
|
10071
10079
|
map: t.map,
|
|
10072
10080
|
show: i.showPoint,
|
|
@@ -10088,9 +10096,9 @@ export {
|
|
|
10088
10096
|
Us as MapboxGL,
|
|
10089
10097
|
ao as MapboxGLPlugin,
|
|
10090
10098
|
na as MapboxHelper,
|
|
10091
|
-
|
|
10099
|
+
Ce as ParticleSchema,
|
|
10092
10100
|
dt as TropicalGL,
|
|
10093
10101
|
et as Viewport,
|
|
10094
10102
|
We as WebGL,
|
|
10095
|
-
|
|
10103
|
+
ne as WebGLSchema
|
|
10096
10104
|
};
|