@idmwx/idmui-gl3 6.1.5 → 6.1.6

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-14070127"]]);
3279
+ const da = /* @__PURE__ */ U(la, [["render", ca], ["__scopeId", "data-v-24e5434b"]]);
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-02a8206f"]]), wa = {
3611
+ const Aa = /* @__PURE__ */ U(ga, [["render", fa], ["__scopeId", "data-v-c2962e63"]]), 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-ae31802c"]]);
4163
+ const za = /* @__PURE__ */ U(Ea, [["render", Da], ["__scopeId", "data-v-14ae1a6c"]]);
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-026a5595"]]);
4273
+ const Ta = /* @__PURE__ */ U(Pa, [["render", Sa], ["__scopeId", "data-v-f21edb81"]]);
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-348d48fb"]]), Xe = [
4392
+ const Fa = /* @__PURE__ */ U(Qa, [["render", Na], ["__scopeId", "data-v-a4c3d2ed"]]), Xe = [
4393
4393
  {
4394
4394
  rank: 0,
4395
4395
  name: "Best Match",
@@ -5330,9 +5330,12 @@ const Oa = {
5330
5330
  timeZone: {
5331
5331
  type: Number,
5332
5332
  default: 0
5333
+ },
5334
+ permission: {
5335
+ type: Number
5333
5336
  }
5334
5337
  },
5335
- emits: ["tropical", "tropicalProbability"],
5338
+ emits: ["tropical", "tropicalProbability", "tropicalNotification"],
5336
5339
  data() {
5337
5340
  return {
5338
5341
  helper: Ze,
@@ -5763,6 +5766,9 @@ const Oa = {
5763
5766
  handleStrikeProbability(a) {
5764
5767
  this.$emit("tropicalProbability", a);
5765
5768
  },
5769
+ handleNotification(a) {
5770
+ this.$emit("tropicalNotification", a);
5771
+ },
5766
5772
  handleToggleCircles(a) {
5767
5773
  var e, t;
5768
5774
  a.showCircle = !a.showCircle, (t = (e = this.tropicals.data) == null ? void 0 : e.features) == null || t.forEach((r) => {
@@ -5873,28 +5879,28 @@ function si(a, e, t, r, i, s) {
5873
5879
  o("div", Ka, [
5874
5880
  o("div", Xa, [
5875
5881
  o("div", Ja, [
5876
- e[2] || (e[2] = o("label", null, "Wind speed : ", -1)),
5882
+ e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
5877
5883
  o("span", null, I(((_ = (k = i.activeTropicals) == null ? void 0 : k.history) == null ? void 0 : _.kts) || "-") + " [kts]", 1),
5878
5884
  o("span", null, ", BF " + I(s.computeBF(((b = (f = i.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : b.kts) || 0)), 1)
5879
5885
  ]),
5880
5886
  o("div", qa, [
5881
- e[3] || (e[3] = o("label", null, "Pressure : ", -1)),
5887
+ e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
5882
5888
  o("span", null, I(((C = (g = i.activeTropicals) == null ? void 0 : g.history) == null ? void 0 : C.pressure) || "-") + " [hPa]", 1)
5883
5889
  ])
5884
5890
  ]),
5885
5891
  o("div", Va, [
5886
5892
  o("div", Za, [
5887
- e[4] || (e[4] = o("label", null, "Move Speed: ", -1)),
5893
+ e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
5888
5894
  o("span", null, I((y = s.computeMovement(i.activeTropicals)) == null ? void 0 : y.kts) + " [kts]", 1)
5889
5895
  ]),
5890
5896
  o("div", $a, [
5891
- e[5] || (e[5] = o("label", null, "Move Dir: ", -1)),
5897
+ e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
5892
5898
  o("span", null, I((L = s.computeMovement(i.activeTropicals)) == null ? void 0 : L.deg) + " [°]", 1)
5893
5899
  ])
5894
5900
  ]),
5895
5901
  o("div", ei, [
5896
5902
  o("div", ti, [
5897
- e[6] || (e[6] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
5903
+ e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
5898
5904
  o("div", ai, [
5899
5905
  (m(!0), u(V, null, $((T = i.activeTropicals) == null ? void 0 : T.forecasts, (D, F) => {
5900
5906
  var N, j, G, W;
@@ -5915,12 +5921,18 @@ function si(a, e, t, r, i, s) {
5915
5921
  ])
5916
5922
  ])
5917
5923
  ]),
5918
- e[7] || (e[7] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-14b013a5></div><div class="row" style="padding:2px 10px;" data-v-14b013a5><div class="legend" data-v-14b013a5><div class="icon td" data-v-14b013a5></div><div class="label" data-v-14b013a5>TD</div></div><div class="legend" data-v-14b013a5><div class="icon ts" data-v-14b013a5></div><div class="label" data-v-14b013a5>TS</div></div><div class="legend" data-v-14b013a5><div class="icon sts" data-v-14b013a5></div><div class="label" data-v-14b013a5>STS</div></div><div class="legend" data-v-14b013a5><div class="icon ty" data-v-14b013a5></div><div class="label" data-v-14b013a5>TY</div></div><div class="legend" data-v-14b013a5><div class="icon sty" data-v-14b013a5></div><div class="label" data-v-14b013a5>STY</div></div><div class="legend" data-v-14b013a5><div class="icon supper-ty" data-v-14b013a5></div><div class="label" data-v-14b013a5>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-14b013a5><div class="legend" data-v-14b013a5><div class="icon history" data-v-14b013a5></div><div class="label" data-v-14b013a5>History</div></div><div class="legend" data-v-14b013a5><div class="icon r7" data-v-14b013a5></div><div class="label" data-v-14b013a5>35kts Radii</div></div><div class="legend" data-v-14b013a5><div class="icon r10" data-v-14b013a5></div><div class="label" data-v-14b013a5>50kts Radii</div></div></div>', 3))
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))
5919
5925
  ]),
5920
5926
  o("div", ri, [
5927
+ t.permission & i.helper.LEVEL.Supper ? (m(), u("div", {
5928
+ key: 0,
5929
+ class: "button",
5930
+ style: { "margin-right": "10px" },
5931
+ onClick: e[1] || (e[1] = (D) => s.handleNotification(i.activeTropicals))
5932
+ }, "Notify")) : J("", !0),
5921
5933
  o("div", {
5922
5934
  class: "button",
5923
- onClick: e[1] || (e[1] = (D) => s.handleStrikeProbability(i.activeTropicals))
5935
+ onClick: e[2] || (e[2] = (D) => s.handleStrikeProbability(i.activeTropicals))
5924
5936
  }, "Strike Probability >>")
5925
5937
  ])
5926
5938
  ])
@@ -5928,7 +5940,7 @@ function si(a, e, t, r, i, s) {
5928
5940
  [Oe, i.showTropicals && !a.$attrs.hideTropicalsLegend]
5929
5941
  ]);
5930
5942
  }
5931
- const dt = /* @__PURE__ */ U(Oa, [["render", si], ["__scopeId", "data-v-14b013a5"]]);
5943
+ const dt = /* @__PURE__ */ U(Oa, [["render", si], ["__scopeId", "data-v-79e256a6"]]);
5932
5944
  const oi = {
5933
5945
  name: "IdmPrecip3h",
5934
5946
  props: {
@@ -6049,7 +6061,7 @@ function li(a, e, t, r, i, s) {
6049
6061
  ]), 4)
6050
6062
  ])) : J("", !0);
6051
6063
  }
6052
- const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-e83717bd"]]);
6064
+ const hi = /* @__PURE__ */ U(oi, [["render", li], ["__scopeId", "data-v-9708a7a3"]]);
6053
6065
  const ci = {
6054
6066
  name: "IdmVisibility",
6055
6067
  props: {
@@ -6161,7 +6173,7 @@ function pi(a, e, t, r, i, s) {
6161
6173
  ]), 4)
6162
6174
  ])) : J("", !0);
6163
6175
  }
6164
- const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-1c8a9237"]]);
6176
+ const mi = /* @__PURE__ */ U(ci, [["render", pi], ["__scopeId", "data-v-f7b2fb08"]]);
6165
6177
  const ui = {
6166
6178
  name: "IdmWaterTemp",
6167
6179
  props: {
@@ -6281,7 +6293,7 @@ function yi(a, e, t, r, i, s) {
6281
6293
  ]), 4)
6282
6294
  ])) : J("", !0);
6283
6295
  }
6284
- const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-8974924d"]]);
6296
+ const fi = /* @__PURE__ */ U(ui, [["render", yi], ["__scopeId", "data-v-7521f582"]]);
6285
6297
  const Ai = {
6286
6298
  name: "IdmTemp",
6287
6299
  props: {
@@ -6406,7 +6418,7 @@ function vi(a, e, t, r, i, s) {
6406
6418
  ]), 4)
6407
6419
  ])) : J("", !0);
6408
6420
  }
6409
- const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-d709ba86"]]);
6421
+ const bi = /* @__PURE__ */ U(Ai, [["render", vi], ["__scopeId", "data-v-25daaa82"]]);
6410
6422
  /*! Element Plus Icons Vue v2.3.1 */
6411
6423
  var Li = /* @__PURE__ */ ft({
6412
6424
  name: "LocationFilled",
@@ -7284,7 +7296,7 @@ function Qr(a, e, t, r, i, s) {
7284
7296
  [Oe, i.showMeteo]
7285
7297
  ]);
7286
7298
  }
7287
- const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-fa02c365"]]), Nr = {
7299
+ const Hr = /* @__PURE__ */ U(_i, [["render", Qr], ["__scopeId", "data-v-4c995c6d"]]), Nr = {
7288
7300
  name: "IdmWarZone",
7289
7301
  props: {
7290
7302
  map: {
@@ -7889,7 +7901,7 @@ function os(a, e, t, r, i, s) {
7889
7901
  [Oe, i.showPort]
7890
7902
  ]);
7891
7903
  }
7892
- const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-2fc5fc5e"]]), ls = {
7904
+ const ns = /* @__PURE__ */ U(Zr, [["render", os], ["__scopeId", "data-v-39da1804"]]), ls = {
7893
7905
  name: "IdmLoadLine",
7894
7906
  props: {
7895
7907
  map: {
@@ -8549,7 +8561,7 @@ function xs(a, e, t, r, i, s) {
8549
8561
  o("span", null, I(i.lngLat.lng.pretty), 1)
8550
8562
  ], 4)) : J("", !0);
8551
8563
  }
8552
- const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-ad66a24c"]]), _s = {
8564
+ const pt = /* @__PURE__ */ U(Cs, [["render", xs], ["__scopeId", "data-v-73241fe7"]]), _s = {
8553
8565
  name: "IdmMeasure",
8554
8566
  props: {
8555
8567
  map: {
@@ -8948,7 +8960,7 @@ function zs(a, e, t, r, i, s) {
8948
8960
  ], 4)
8949
8961
  ])) : J("", !0);
8950
8962
  }
8951
- const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8ff97b39"]]), Ms = {
8963
+ const Ps = /* @__PURE__ */ U(Es, [["render", zs], ["__scopeId", "data-v-8eecd76d"]]), Ms = {
8952
8964
  name: "IdmWorld12nm",
8953
8965
  props: {
8954
8966
  map: {