@idmwx/idmui-gl3 6.1.6 → 6.1.8

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/README.md CHANGED
@@ -1,27 +1,27 @@
1
- ## IDMUI WebGL
2
- > IDM大气海洋可视化工具
3
-
4
- ## Mapbox本地化
5
- > 主要参考[Mapbox本地化](https://www.jianshu.com/p/43ce4591c621)
6
-
7
- ### 字体本地化
8
- Mapbox使用的是pbf格式,需要先将ttf字体转换为pbf格式。
9
-
10
- 以下为在CentOS7.9上转换字体的方法:
11
- #### 1 安装node-fontnik工具包
12
- > [主要参考](https://www.cnblogs.com/lqqgis/p/18048426)
13
- > 自行安装较为复杂,基于docker镜像快速安装:
14
- ### 下载镜像
15
- ```
16
- docker pull registry.cn-hangzhou.aliyuncs.com/idmwx/node-fontnik
17
- ```
18
-
19
- ### 转换字段
20
- ```
21
- # 转换ttf (TrueType Font)
22
- docker run -v /opt/html/idm-fontnik/input:/input -v /opt/html/idm-fontnik/output:/output -e EXTENSION=.ttf registry.cn-hangzhou.aliyuncs.com/idmwx/node-fontnik
23
-
24
- # 转换otf (OpenType Font)
25
- docker run -v /opt/html/idm-fontnik/input:/input -v /opt/html/idm-fontnik/output:/output -e EXTENSION=.otf registry.cn-hangzhou.aliyuncs.com/idmwx/node-fontnik
26
- ```
1
+ ## IDMUI WebGL
2
+ > IDM大气海洋可视化工具
3
+
4
+ ## Mapbox本地化
5
+ > 主要参考[Mapbox本地化](https://www.jianshu.com/p/43ce4591c621)
6
+
7
+ ### 字体本地化
8
+ Mapbox使用的是pbf格式,需要先将ttf字体转换为pbf格式。
9
+
10
+ 以下为在CentOS7.9上转换字体的方法:
11
+ #### 1 安装node-fontnik工具包
12
+ > [主要参考](https://www.cnblogs.com/lqqgis/p/18048426)
13
+ > 自行安装较为复杂,基于docker镜像快速安装:
14
+ ### 下载镜像
15
+ ```
16
+ docker pull registry.cn-hangzhou.aliyuncs.com/idmwx/node-fontnik
17
+ ```
18
+
19
+ ### 转换字段
20
+ ```
21
+ # 转换ttf (TrueType Font)
22
+ docker run -v /opt/html/idm-fontnik/input:/input -v /opt/html/idm-fontnik/output:/output -e EXTENSION=.ttf registry.cn-hangzhou.aliyuncs.com/idmwx/node-fontnik
23
+
24
+ # 转换otf (OpenType Font)
25
+ docker run -v /opt/html/idm-fontnik/input:/input -v /opt/html/idm-fontnik/output:/output -e EXTENSION=.otf registry.cn-hangzhou.aliyuncs.com/idmwx/node-fontnik
26
+ ```
27
27
  > 注意:input目录下存放需要转换的字体文件,output目录下存放转换后的字体文件
package/dist/index.js CHANGED
@@ -3276,7 +3276,7 @@ function ca(a, e, t, r, i, s) {
3276
3276
  ]), 4)
3277
3277
  ])) : J("", !0);
3278
3278
  }
3279
- const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-24e5434b"]]);
3279
+ const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-14070127"]]);
3280
3280
  const pa = {
3281
3281
  name: "IdmCurrent",
3282
3282
  props: {
@@ -3608,7 +3608,7 @@ function fa(a, e, t, r, i, s) {
3608
3608
  ]), 4)
3609
3609
  ])) : J("", !0);
3610
3610
  }
3611
- const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]), wa = {
3611
+ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-02a8206f"]]), wa = {
3612
3612
  name: "IdmSigWave",
3613
3613
  props: {
3614
3614
  map: {
@@ -4160,7 +4160,7 @@ function Da(a, e, t, r, i, s) {
4160
4160
  ]), 4)
4161
4161
  ])) : J("", !0);
4162
4162
  }
4163
- const za = /* @__PURE__ */ U(Ea, [["render", Da], ["__scopeId", "data-v-14ae1a6c"]]);
4163
+ const za = /* @__PURE__ */ U(Ea, [["render", Da], ["__scopeId", "data-v-ae31802c"]]);
4164
4164
  const Pa = {
4165
4165
  name: "IdmCover",
4166
4166
  props: {
@@ -4270,7 +4270,7 @@ function Sa(a, e, t, r, i, s) {
4270
4270
  ]), 4)
4271
4271
  ])) : J("", !0);
4272
4272
  }
4273
- const Ta = /* @__PURE__ */ U(Pa, [["render", Sa], ["__scopeId", "data-v-f21edb81"]]);
4273
+ const Ta = /* @__PURE__ */ U(Pa, [["render", Sa], ["__scopeId", "data-v-026a5595"]]);
4274
4274
  const Qa = {
4275
4275
  name: "IdmThickness",
4276
4276
  props: {
@@ -4389,7 +4389,7 @@ function Na(a, e, t, r, i, s) {
4389
4389
  ]), 4)
4390
4390
  ])) : J("", !0);
4391
4391
  }
4392
- const Fa = /* @__PURE__ */ U(Qa, [["render", Na], ["__scopeId", "data-v-a4c3d2ed"]]), Xe = [
4392
+ const Fa = /* @__PURE__ */ U(Qa, [["render", Na], ["__scopeId", "data-v-348d48fb"]]), Xe = [
4393
4393
  {
4394
4394
  rank: 0,
4395
4395
  name: "Best Match",
@@ -4703,6 +4703,7 @@ class ht {
4703
4703
  */
4704
4704
  static autoPickMeteoModel(e = "best_match") {
4705
4705
  var t, r;
4706
+ e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
4706
4707
  const i = e.toLowerCase().split(","), s = [], n = [];
4707
4708
  for (const l of i) {
4708
4709
  let c = Xe.find((h) => {
@@ -4908,7 +4909,8 @@ class ht {
4908
4909
  degree: (Y = q.swell_wave_direction_dominant) == null ? void 0 : Y.at(Q),
4909
4910
  period: (ae = q.swell_wave_period_max) == null ? void 0 : ae.at(Q),
4910
4911
  peakPeriod: (Ae = q.swell_wave_peak_period_max) == null ? void 0 : Ae.at(Q),
4911
- bearing: ((pe = q.swell_wave_direction_dominant) == null ? void 0 : pe.at(Q)) !== null ? (((ye = q.swell_wave_direction_dominant) == null ? void 0 : ye.at(Q)) + 180) % 360 : null
4912
+ // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
4913
+ bearing: ((pe = q.swell_wave_direction_dominant) == null ? void 0 : pe.at(Q)) !== null ? ((ye = q.swell_wave_direction_dominant) == null ? void 0 : ye.at(Q)) % 360 : null
4912
4914
  },
4913
4915
  wd: {
4914
4916
  height: (Le = q.wind_wave_height_max) == null ? void 0 : Le.at(Q),
@@ -4926,16 +4928,16 @@ class ht {
4926
4928
  }
4927
4929
  static parseWave(e, t) {
4928
4930
  if (e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e.sig.height === 0) {
4929
- const r = Math.sqrt(Math.pow(e.swell.height || 0, 2) + Math.pow(e.wd.height || 0, 2)), i = 0.28 * Math.pow(this.kts2ms((t == null ? void 0 : t.kts) || 0), 2) / 9.80665;
4930
- e.sig.height = Math.round(Math.max(r, i) * 100) / 100;
4931
+ const r = Math.sqrt(Math.pow(e.swell.height || 0, 2) + Math.pow(e.wd.height || 0, 2));
4932
+ e.sig.height = Math.round(r * 100) / 100;
4931
4933
  }
4932
4934
  if (e.swell.height === 0) {
4933
- const r = Math.sqrt(Math.abs(Math.pow(e.sig.height || 0, 2) - Math.pow(e.wd.height || 0, 2))), i = 0.28 * Math.pow(this.kts2ms((t == null ? void 0 : t.kts) || 0), 2) / 9.80665;
4934
- e.swell.height = Math.round((Math.min(r, i) || i) * 100) / 100;
4935
+ const r = Math.sqrt(Math.abs(Math.pow(e.sig.height || 0, 2) - Math.pow(e.wd.height || 0, 2))), i = 0.28 * Math.pow(this.kts2ms((t == null ? void 0 : t.kts) || 0), 2) / 48.0665;
4936
+ e.swell.height = Math.round(Math.min(r, i) * 100) / 100;
4935
4937
  }
4936
4938
  if (e.wd.height === 0 || e.wd.height > e.sig.height) {
4937
- const r = Math.sqrt(Math.abs(Math.pow(e.sig.height || 0, 2) - Math.pow(e.swell.height || 0, 2))), i = 0.28 * Math.pow(this.kts2ms((t == null ? void 0 : t.kts) || 0), 2) / 9.80665;
4938
- e.wd.height = Math.round((Math.min(r, i) || i) * 100) / 100;
4939
+ const r = Math.sqrt(Math.abs(Math.pow(e.sig.height || 0, 2) - Math.pow(e.swell.height || 0, 2))), i = 0.28 * Math.pow(this.kts2ms((t == null ? void 0 : t.kts) || 0), 2) / 48.0665;
4940
+ e.wd.height = Math.round(Math.min(r, i) * 100) / 100;
4939
4941
  }
4940
4942
  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;
4941
4943
  }
@@ -5921,7 +5923,7 @@ function si(a, e, t, r, i, s) {
5921
5923
  ])
5922
5924
  ])
5923
5925
  ]),
5924
- e[8] || (e[8] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-79e256a6></div><div class="row" style="padding:2px 10px;" data-v-79e256a6><div class="legend" data-v-79e256a6><div class="icon td" data-v-79e256a6></div><div class="label" data-v-79e256a6>TD</div></div><div class="legend" data-v-79e256a6><div class="icon ts" data-v-79e256a6></div><div class="label" data-v-79e256a6>TS</div></div><div class="legend" data-v-79e256a6><div class="icon sts" data-v-79e256a6></div><div class="label" data-v-79e256a6>STS</div></div><div class="legend" data-v-79e256a6><div class="icon ty" data-v-79e256a6></div><div class="label" data-v-79e256a6>TY</div></div><div class="legend" data-v-79e256a6><div class="icon sty" data-v-79e256a6></div><div class="label" data-v-79e256a6>STY</div></div><div class="legend" data-v-79e256a6><div class="icon supper-ty" data-v-79e256a6></div><div class="label" data-v-79e256a6>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-79e256a6><div class="legend" data-v-79e256a6><div class="icon history" data-v-79e256a6></div><div class="label" data-v-79e256a6>History</div></div><div class="legend" data-v-79e256a6><div class="icon r7" data-v-79e256a6></div><div class="label" data-v-79e256a6>35kts Radii</div></div><div class="legend" data-v-79e256a6><div class="icon r10" data-v-79e256a6></div><div class="label" data-v-79e256a6>50kts Radii</div></div></div>', 3))
5926
+ e[8] || (e[8] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);"></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon td"></div><div class="label">TD</div></div><div class="legend"><div class="icon ts"></div><div class="label">TS</div></div><div class="legend"><div class="icon sts"></div><div class="label">STS</div></div><div class="legend"><div class="icon ty"></div><div class="label">TY</div></div><div class="legend"><div class="icon sty"></div><div class="label">STY</div></div><div class="legend"><div class="icon supper-ty"></div><div class="label">Super TY</div></div></div><div class="row" style="padding:2px 10px;"><div class="legend"><div class="icon history"></div><div class="label">History</div></div><div class="legend"><div class="icon r7"></div><div class="label">35kts Radii</div></div><div class="legend"><div class="icon r10"></div><div class="label">50kts Radii</div></div></div>', 3))
5925
5927
  ]),
5926
5928
  o("div", ri, [
5927
5929
  t.permission & i.helper.LEVEL.Supper ? (m(), u("div", {
@@ -5940,7 +5942,7 @@ function si(a, e, t, r, i, s) {
5940
5942
  [Oe, i.showTropicals && !a.$attrs.hideTropicalsLegend]
5941
5943
  ]);
5942
5944
  }
5943
- const dt = /* @__PURE__ */ U(Oa, [["render", si], ["__scopeId", "data-v-79e256a6"]]);
5945
+ const dt = /* @__PURE__ */ U(Oa, [["render", si]]);
5944
5946
  const oi = {
5945
5947
  name: "IdmPrecip3h",
5946
5948
  props: {
@@ -6061,7 +6063,7 @@ function li(a, e, t, r, i, s) {
6061
6063
  ]), 4)
6062
6064
  ])) : J("", !0);
6063
6065
  }
6064
- const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-9708a7a3"]]);
6066
+ const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-e83717bd"]]);
6065
6067
  const ci = {
6066
6068
  name: "IdmVisibility",
6067
6069
  props: {
@@ -6173,7 +6175,7 @@ function pi(a, e, t, r, i, s) {
6173
6175
  ]), 4)
6174
6176
  ])) : J("", !0);
6175
6177
  }
6176
- const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-f7b2fb08"]]);
6178
+ const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-1c8a9237"]]);
6177
6179
  const ui = {
6178
6180
  name: "IdmWaterTemp",
6179
6181
  props: {
@@ -6293,7 +6295,7 @@ function yi(a, e, t, r, i, s) {
6293
6295
  ]), 4)
6294
6296
  ])) : J("", !0);
6295
6297
  }
6296
- const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-7521f582"]]);
6298
+ const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-8974924d"]]);
6297
6299
  const Ai = {
6298
6300
  name: "IdmTemp",
6299
6301
  props: {
@@ -6418,7 +6420,7 @@ function vi(a, e, t, r, i, s) {
6418
6420
  ]), 4)
6419
6421
  ])) : J("", !0);
6420
6422
  }
6421
- const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-25daaa82"]]);
6423
+ const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-d709ba86"]]);
6422
6424
  /*! Element Plus Icons Vue v2.3.1 */
6423
6425
  var Li = /* @__PURE__ */ ft({
6424
6426
  name: "LocationFilled",
@@ -7296,7 +7298,7 @@ function Qr(a, e, t, r, i, s) {
7296
7298
  [Oe, i.showMeteo]
7297
7299
  ]);
7298
7300
  }
7299
- const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-4c995c6d"]]), Nr = {
7301
+ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-fa02c365"]]), Nr = {
7300
7302
  name: "IdmWarZone",
7301
7303
  props: {
7302
7304
  map: {
@@ -7901,7 +7903,7 @@ function os(a, e, t, r, i, s) {
7901
7903
  [Oe, i.showPort]
7902
7904
  ]);
7903
7905
  }
7904
- const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804"]]), ls = {
7906
+ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-2fc5fc5e"]]), ls = {
7905
7907
  name: "IdmLoadLine",
7906
7908
  props: {
7907
7909
  map: {
@@ -8561,7 +8563,7 @@ function xs(a, e, t, r, i, s) {
8561
8563
  o("span", null, I(i.lngLat.lng.pretty), 1)
8562
8564
  ], 4)) : J("", !0);
8563
8565
  }
8564
- const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7"]]), _s = {
8566
+ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-ad66a24c"]]), _s = {
8565
8567
  name: "IdmMeasure",
8566
8568
  props: {
8567
8569
  map: {
@@ -8960,7 +8962,7 @@ function zs(a, e, t, r, i, s) {
8960
8962
  ], 4)
8961
8963
  ])) : J("", !0);
8962
8964
  }
8963
- const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d"]]), Ms = {
8965
+ const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8ff97b39"]]), Ms = {
8964
8966
  name: "IdmWorld12nm",
8965
8967
  props: {
8966
8968
  map: {