@idmwx/idmui-gl4 2.1.4 → 2.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,33 +1,33 @@
1
- ## IDMUI WebGL
2
- > IDM大气海洋可视化工具
3
-
4
- ## Mapbox本地化
5
- > 主要参考[Mapbox本地化](https://www.jianshu.com/p/43ce4591c621)
6
- ### 1)图标本地化
7
- ```
8
- yarn global add mapnik
9
- yarn global add @mapbox/spritezero
10
- yarn global add @mapbox/spritezero-cli --unsafe-perm
11
- ```
12
-
13
- ### 字体本地化
14
- Mapbox使用的是pbf格式,需要先将ttf字体转换为pbf格式。
15
-
16
- 以下为在CentOS7.9上转换字体的方法:
17
- #### 1 安装node-fontnik工具包
18
- > [主要参考](https://www.cnblogs.com/lqqgis/p/18048426)
19
- > 自行安装较为复杂,基于docker镜像快速安装:
20
- ### 下载镜像
21
- ```
22
- docker pull registry.cn-hangzhou.aliyuncs.com/idmwx/node-fontnik
23
- ```
24
-
25
- ### 转换字段
26
- ```
27
- # 转换ttf (TrueType Font)
28
- 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
29
-
30
- # 转换otf (OpenType Font)
31
- 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
32
- ```
1
+ ## IDMUI WebGL
2
+ > IDM大气海洋可视化工具
3
+
4
+ ## Mapbox本地化
5
+ > 主要参考[Mapbox本地化](https://www.jianshu.com/p/43ce4591c621)
6
+ ### 1)图标本地化
7
+ ```
8
+ yarn global add mapnik
9
+ yarn global add @mapbox/spritezero
10
+ yarn global add @mapbox/spritezero-cli --unsafe-perm
11
+ ```
12
+
13
+ ### 字体本地化
14
+ Mapbox使用的是pbf格式,需要先将ttf字体转换为pbf格式。
15
+
16
+ 以下为在CentOS7.9上转换字体的方法:
17
+ #### 1 安装node-fontnik工具包
18
+ > [主要参考](https://www.cnblogs.com/lqqgis/p/18048426)
19
+ > 自行安装较为复杂,基于docker镜像快速安装:
20
+ ### 下载镜像
21
+ ```
22
+ docker pull registry.cn-hangzhou.aliyuncs.com/idmwx/node-fontnik
23
+ ```
24
+
25
+ ### 转换字段
26
+ ```
27
+ # 转换ttf (TrueType Font)
28
+ 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
29
+
30
+ # 转换otf (OpenType Font)
31
+ 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
32
+ ```
33
33
  > 注意:input目录下存放需要转换的字体文件,output目录下存放转换后的字体文件
package/dist/index.js CHANGED
@@ -1340,7 +1340,8 @@ const yi = {
1340
1340
  // },
1341
1341
  },
1342
1342
  theme: {
1343
- type: String
1343
+ type: String,
1344
+ default: "dark"
1344
1345
  },
1345
1346
  realTime: {
1346
1347
  type: String
@@ -1476,7 +1477,7 @@ const yi = {
1476
1477
  },
1477
1478
  async fetchForecastData() {
1478
1479
  var i, a;
1479
- this.loading = !0, this.meteoData = [];
1480
+ console.log(333, this.theme, this.simple, this.followList), this.loading = !0, this.meteoData = [];
1480
1481
  const { weatherModels: t, marineModels: e } = To.autoPickMeteoModel(this.forecastModel);
1481
1482
  let o = {
1482
1483
  lat: (i = this.port) == null ? void 0 : i.lat,
@@ -2038,7 +2039,7 @@ function wr(t, e, o, i, a, r) {
2038
2039
  _: 1
2039
2040
  }, 8, ["class"]);
2040
2041
  }
2041
- const Do = /* @__PURE__ */ Z(yi, [["render", wr], ["__scopeId", "data-v-2ee20173"]]);
2042
+ const Do = /* @__PURE__ */ Z(yi, [["render", wr], ["__scopeId", "data-v-b3877867"]]);
2042
2043
  const xr = {
2043
2044
  name: "IdmPort",
2044
2045
  components: {
@@ -2184,7 +2185,7 @@ function zr(t, e, o, i, a, r) {
2184
2185
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "onClose"])) : I("", !0)
2185
2186
  ]);
2186
2187
  }
2187
- const Lr = /* @__PURE__ */ Z(xr, [["render", zr], ["__scopeId", "data-v-f13a96e9"]]), Pr = {
2188
+ const Lr = /* @__PURE__ */ Z(xr, [["render", zr], ["__scopeId", "data-v-0c0f27d3"]]), Pr = {
2188
2189
  name: "IdmLoadLine",
2189
2190
  props: {
2190
2191
  map: {
@@ -2834,7 +2835,8 @@ const Kr = {
2834
2835
  type: String
2835
2836
  },
2836
2837
  theme: {
2837
- type: String
2838
+ type: String,
2839
+ default: "dark"
2838
2840
  },
2839
2841
  locale: {
2840
2842
  type: String
@@ -3235,7 +3237,7 @@ function Cs(t, e, o, i, a, r) {
3235
3237
  _: 1
3236
3238
  }, 8, ["class"]);
3237
3239
  }
3238
- const Ss = /* @__PURE__ */ Z(Kr, [["render", Cs], ["__scopeId", "data-v-ea434277"]]);
3240
+ const Ss = /* @__PURE__ */ Z(Kr, [["render", Cs], ["__scopeId", "data-v-02553a04"]]);
3239
3241
  const Ms = {
3240
3242
  name: "IdmTideStations",
3241
3243
  components: {
@@ -3343,7 +3345,7 @@ function Os(t, e, o, i, a, r) {
3343
3345
  }, t.$attrs), null, 16, ["station", "onClose"])) : I("", !0)
3344
3346
  ]);
3345
3347
  }
3346
- const Bs = /* @__PURE__ */ Z(Ms, [["render", Os], ["__scopeId", "data-v-09a7d5d7"]]), js = {
3348
+ const Bs = /* @__PURE__ */ Z(Ms, [["render", Os], ["__scopeId", "data-v-7f9e02c0"]]), js = {
3347
3349
  name: "IdmIceAreas",
3348
3350
  props: {
3349
3351
  map: {
@@ -4518,7 +4520,7 @@ function Ys(t, e, o, i, a, r) {
4518
4520
  }, t.$attrs), null, 16, ["portId", "port", "forecastModel", "followList", "onClose"])) : I("", !0)
4519
4521
  ]);
4520
4522
  }
4521
- const Zs = /* @__PURE__ */ Z(Gs, [["render", Ys], ["__scopeId", "data-v-16e02248"]]);
4523
+ const Zs = /* @__PURE__ */ Z(Gs, [["render", Ys], ["__scopeId", "data-v-95e70a1f"]]);
4522
4524
  const Xs = {
4523
4525
  name: "IdmFollowPosition",
4524
4526
  props: {
@@ -5465,7 +5467,7 @@ function Qs(t, e, o, i, a, r) {
5465
5467
  [Ze, a.showInfo]
5466
5468
  ]);
5467
5469
  }
5468
- const $s = /* @__PURE__ */ Z(Xs, [["render", Qs], ["__scopeId", "data-v-469134f9"]]);
5470
+ const $s = /* @__PURE__ */ Z(Xs, [["render", Qs], ["__scopeId", "data-v-82405c68"]]);
5469
5471
  const el = {
5470
5472
  name: "IdmOtherLayerr",
5471
5473
  components: {
@@ -6033,21 +6035,23 @@ function dl(t, e, o, i, a, r) {
6033
6035
  o.map ? (g(), A(Q, j({
6034
6036
  key: 16,
6035
6037
  ref: "idmFollowPort",
6038
+ simple: o.simple,
6036
6039
  map: o.map,
6037
6040
  show: a.checkList.includes("follow-ports"),
6038
6041
  gateway: o.gateway,
6039
6042
  token: o.token,
6040
6043
  "forecast-model": o.forecastModel,
6041
6044
  realTime: o.realTime
6042
- }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "show", "gateway", "token", "forecast-model", "realTime"])) : I("", !0),
6045
+ }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "realTime"])) : I("", !0),
6043
6046
  o.map ? (g(), A($, j({
6044
6047
  key: 17,
6045
6048
  ref: "idmFollowPosition",
6049
+ simple: o.simple,
6046
6050
  map: o.map,
6047
6051
  show: a.checkList.includes("follow-positions"),
6048
6052
  "forecast-model": o.forecastModel,
6049
6053
  realTime: o.realTime
6050
- }, t.$attrs), null, 16, ["map", "show", "forecast-model", "realTime"])) : I("", !0)
6054
+ }, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "realTime"])) : I("", !0)
6051
6055
  ]);
6052
6056
  }
6053
6057
  const pl = /* @__PURE__ */ Z(el, [["render", dl]]);
@@ -7351,7 +7355,7 @@ function Dl(t, e, o, i, a, r) {
7351
7355
  ]), 4)
7352
7356
  ])) : I("", !0);
7353
7357
  }
7354
- const Il = /* @__PURE__ */ Z(Sl, [["render", Dl], ["__scopeId", "data-v-c71d1b16"]]), Rl = {
7358
+ const Il = /* @__PURE__ */ Z(Sl, [["render", Dl], ["__scopeId", "data-v-c6137292"]]), Rl = {
7355
7359
  name: "IdmSigWaveHeight",
7356
7360
  props: {
7357
7361
  map: {
@@ -7618,7 +7622,7 @@ function El(t, e, o, i, a, r) {
7618
7622
  ]), 4)
7619
7623
  ])) : I("", !0);
7620
7624
  }
7621
- const Nl = /* @__PURE__ */ Z(Bl, [["render", El], ["__scopeId", "data-v-98324f2c"]]), Fl = {
7625
+ const Nl = /* @__PURE__ */ Z(Bl, [["render", El], ["__scopeId", "data-v-3c94b068"]]), Fl = {
7622
7626
  name: "IdmPrmsl",
7623
7627
  props: {
7624
7628
  map: {
@@ -8004,7 +8008,7 @@ function ql(t, e, o, i, a, r) {
8004
8008
  ]), 4)
8005
8009
  ])) : I("", !0);
8006
8010
  }
8007
- const Kl = /* @__PURE__ */ Z(Zl, [["render", ql], ["__scopeId", "data-v-e8a34776"]]);
8011
+ const Kl = /* @__PURE__ */ Z(Zl, [["render", ql], ["__scopeId", "data-v-916b01eb"]]);
8008
8012
  const Jl = {
8009
8013
  name: "IdmThickness",
8010
8014
  props: {
@@ -8839,6 +8843,9 @@ const bn = {
8839
8843
  immediate: !0
8840
8844
  }
8841
8845
  },
8846
+ mounted() {
8847
+ this.fetchModels();
8848
+ },
8842
8849
  methods: {
8843
8850
  arraysEqual(t, e) {
8844
8851
  if ((t == null ? void 0 : t.length) !== (e == null ? void 0 : e.length))