@idmwx/idmui-gl4 3.5.8 → 3.5.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.
@@ -1,4 +1,4 @@
1
- import { l as b } from "./index-9e998034.js";
1
+ import { l as b } from "./index-62e95a3b.js";
2
2
  function M(e) {
3
3
  return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { W as a } from "./chunk-3VYIPD3A-ea18ece9.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-4c6cf162.js";
2
2
  async function o(r, t) {
3
3
  let i = await a(r, t), e = new Image();
4
4
  return e.src = i.toDataURL(`image/${t.format}`, t.quality), await e.decode(), e.style.width = `${i.width / t.dpr}px`, e.style.height = `${i.height / t.dpr}px`, e;
@@ -1,4 +1,4 @@
1
- import { W as m } from "./chunk-3VYIPD3A-ea18ece9.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-4c6cf162.js";
2
2
  async function a(n, e) {
3
3
  let o = e.type;
4
4
  if (o === "svg") {
@@ -1,6 +1,6 @@
1
- import { m as d } from "./chunk-T4JIPPZO-2eaa3353.js";
2
- import { W as f } from "./chunk-3VYIPD3A-ea18ece9.js";
3
- import "./index-9e998034.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-03c56c7b.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-4c6cf162.js";
3
+ import "./index-62e95a3b.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -3859,16 +3859,20 @@ class ua {
3859
3859
  }
3860
3860
  resize() {
3861
3861
  let e = this.map.getSource(this.rampColorSource);
3862
- e.setCoordinates(this.getBoundLngLat()), e = this.map.getSource(this.particleSource), e.setCoordinates(this.getBoundLngLat()), this.rampColorCanvas.width = this.map._canvas.clientWidth, this.rampColorCanvas.height = this.map._canvas.clientHeight, this.particleCanvas.width = this.map._canvas.clientWidth, this.particleCanvas.height = this.map._canvas.clientHeight;
3862
+ e == null || e.setCoordinates(this.getBoundLngLat()), e = this.map.getSource(this.particleSource), e == null || e.setCoordinates(this.getBoundLngLat()), this.rampColorCanvas.width = this.map._canvas.clientWidth, this.rampColorCanvas.height = this.map._canvas.clientHeight, this.particleCanvas.width = this.map._canvas.clientWidth, this.particleCanvas.height = this.map._canvas.clientHeight;
3863
3863
  }
3864
3864
  toggle(e) {
3865
3865
  var a;
3866
- const o = (a = this.map) == null ? void 0 : a.getLayoutProperty(this.rampColorLayer, "visibility"), i = e ? "visible" : "none";
3866
+ if (!((a = this.map) != null && a.getLayer(this.rampColorLayer)))
3867
+ return;
3868
+ const o = this.map.getLayoutProperty(this.rampColorLayer, "visibility"), i = e ? "visible" : "none";
3867
3869
  o !== i && this.map.setLayoutProperty(this.rampColorLayer, "visibility", i);
3868
3870
  }
3869
3871
  toggleParticle(e) {
3870
3872
  var a;
3871
- const o = (a = this.map) == null ? void 0 : a.getLayoutProperty(this.particleLayer, "visibility"), i = e ? "visible" : "none";
3873
+ if (!((a = this.map) != null && a.getLayer(this.particleLayer)))
3874
+ return;
3875
+ const o = this.map.getLayoutProperty(this.particleLayer, "visibility"), i = e ? "visible" : "none";
3872
3876
  o !== i && this.map.setLayoutProperty(this.particleLayer, "visibility", i);
3873
3877
  }
3874
3878
  }
@@ -6484,7 +6488,10 @@ const zm = {
6484
6488
  },
6485
6489
  map: {
6486
6490
  handler() {
6487
- this.map && (this.fetchCache(), this.map.on("move", this.handleMove4Weather), this.viewport = new ua(this.map), this.handleRampColorInitial());
6491
+ const t = this.map;
6492
+ t && (this.viewport = new ua(t), t.once("idle", () => {
6493
+ this.map === t && (this.fetchCache(), t.on("move", this.handleMove4Weather), this.handleRampColorInitial());
6494
+ }), t.triggerRepaint());
6488
6495
  },
6489
6496
  immediate: !0
6490
6497
  },
@@ -7066,7 +7073,7 @@ function ud(t, e, o, i, a, l) {
7066
7073
  l.showTipMenu ? (A(), R("div", Cm, [
7067
7074
  n("div", {
7068
7075
  class: ue(["menu-bar-box pa-1 rounded", o.simple ? "simple" : ""]),
7069
- style: ge({ right: a.right + "px", top: o.simple ? "394px" : "490px" })
7076
+ style: ge({ right: a.right + "px", top: o.simple ? "394px" : "580px" })
7070
7077
  }, [
7071
7078
  w(c, {
7072
7079
  text: t.$t("weather.legend"),
@@ -17109,52 +17116,52 @@ Se.capture = async (t, e, o) => {
17109
17116
  if (o !== $l)
17110
17117
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17111
17118
  let i = await ql(t, e), a = { img: async (u, h) => {
17112
- let { toImg: f } = await import("./toImg-6357dd5b.js");
17119
+ let { toImg: f } = await import("./toImg-0ca56397.js");
17113
17120
  return f(i, { ...u, ...h || {} });
17114
17121
  }, svg: async (u, h) => {
17115
- let { toSvg: f } = await import("./toImg-6357dd5b.js");
17122
+ let { toSvg: f } = await import("./toImg-0ca56397.js");
17116
17123
  return f(i, { ...u, ...h || {} });
17117
17124
  }, canvas: async (u, h) => {
17118
- let { toCanvas: f } = await import("./toCanvas-a791e335.js");
17125
+ let { toCanvas: f } = await import("./toCanvas-98141454.js");
17119
17126
  return f(i, { ...u, ...h || {} });
17120
17127
  }, blob: async (u, h) => {
17121
- let { toBlob: f } = await import("./toBlob-e159d4f3.js");
17128
+ let { toBlob: f } = await import("./toBlob-ad6cc35a.js");
17122
17129
  return f(i, { ...u, ...h || {} });
17123
17130
  }, png: async (u, h) => {
17124
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
17131
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-6880f738.js");
17125
17132
  return f(i, { ...u, ...h || {}, format: "png" });
17126
17133
  }, jpeg: async (u, h) => {
17127
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
17134
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-6880f738.js");
17128
17135
  return f(i, { ...u, ...h || {}, format: "jpeg" });
17129
17136
  }, webp: async (u, h) => {
17130
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
17137
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-6880f738.js");
17131
17138
  return f(i, { ...u, ...h || {}, format: "webp" });
17132
17139
  }, download: async (u, h) => {
17133
- let { download: f } = await import("./download-9206a571.js");
17140
+ let { download: f } = await import("./download-4477d123.js");
17134
17141
  return f(i, { ...u, ...h || {} });
17135
17142
  } }, l = { ...e, export: { url: i }, exports: { svg: async (u) => {
17136
- let { toSvg: h } = await import("./toImg-6357dd5b.js");
17143
+ let { toSvg: h } = await import("./toImg-0ca56397.js");
17137
17144
  return h(i, { ...e, ...u || {}, [mo]: !0 });
17138
17145
  }, canvas: async (u) => {
17139
- let { toCanvas: h } = await import("./toCanvas-a791e335.js");
17146
+ let { toCanvas: h } = await import("./toCanvas-98141454.js");
17140
17147
  return h(i, { ...e, ...u || {}, [mo]: !0 });
17141
17148
  }, png: async (u) => {
17142
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
17149
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-6880f738.js");
17143
17150
  return h(i, { ...e, ...u || {}, format: "png", [mo]: !0 });
17144
17151
  }, jpeg: async (u) => {
17145
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
17152
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-6880f738.js");
17146
17153
  return h(i, { ...e, ...u || {}, format: "jpeg", [mo]: !0 });
17147
17154
  }, jpg: async (u) => {
17148
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
17155
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-6880f738.js");
17149
17156
  return h(i, { ...e, ...u || {}, format: "jpeg", [mo]: !0 });
17150
17157
  }, webp: async (u) => {
17151
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-2725ed9a.js");
17158
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-6880f738.js");
17152
17159
  return h(i, { ...e, ...u || {}, format: "webp", [mo]: !0 });
17153
17160
  }, blob: async (u) => {
17154
- let { toBlob: h } = await import("./toBlob-e159d4f3.js");
17161
+ let { toBlob: h } = await import("./toBlob-ad6cc35a.js");
17155
17162
  return h(i, { ...e, ...u || {}, [mo]: !0 });
17156
17163
  }, img: async (u) => {
17157
- let { toImg: h } = await import("./toImg-6357dd5b.js");
17164
+ let { toImg: h } = await import("./toImg-0ca56397.js");
17158
17165
  return h(i, { ...e, ...u || {}, [mo]: !0 });
17159
17166
  } } }, r = await W0("defineExports", l), c = Object.assign({}, ...r.filter((u) => u && typeof u == "object")), s = { ...a, ...c };
17160
17167
  s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as x, c as D, D as T, L as g, a as S, b as W, M as f, f as h, e as k, P as y, T as B, V, W as d, d as u } from "./index-9e998034.js";
1
+ import { B as x, c as D, D as T, L as g, a as S, b as W, M as f, f as h, e as k, P as y, T as B, V, W as d, d as u } from "./index-62e95a3b.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";