@idmwx/idmui-gl4 3.1.5 → 3.1.7

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-015f1cf2.js";
1
+ import { l as b } from "./index-24eb91d3.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-d9dfce02.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-c3f2a279.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-d9dfce02.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-c3f2a279.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-c5dac70f.js";
2
- import { W as f } from "./chunk-3VYIPD3A-d9dfce02.js";
3
- import "./index-015f1cf2.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-d3551934.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-c3f2a279.js";
3
+ import "./index-24eb91d3.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -6537,7 +6537,7 @@ const Ec = {
6537
6537
  },
6538
6538
  handleFastWeatherToggle(t) {
6539
6539
  let e = [];
6540
- this.checkList.includes(t) ? e = this.checkList.filter((a) => a !== t) : e = [...this.checkList, t], this.handleCheckListChange(e, this.checkList);
6540
+ this.checkList.includes(t) ? e = this.checkList.filter((a) => a !== t) : (e = [...this.checkList, t], this.checkList = e), this.handleCheckListChange(e, this.checkList);
6541
6541
  },
6542
6542
  handleCheckListChange(t, e) {
6543
6543
  if (this.arraysEqual(t, e))
@@ -17052,52 +17052,52 @@ Se.capture = async (t, e, a) => {
17052
17052
  if (a !== br)
17053
17053
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17054
17054
  let i = await yr(t, e), o = { img: async (g, h) => {
17055
- let { toImg: f } = await import("./toImg-10d2fb32.js");
17055
+ let { toImg: f } = await import("./toImg-f7528e1e.js");
17056
17056
  return f(i, { ...g, ...h || {} });
17057
17057
  }, svg: async (g, h) => {
17058
- let { toSvg: f } = await import("./toImg-10d2fb32.js");
17058
+ let { toSvg: f } = await import("./toImg-f7528e1e.js");
17059
17059
  return f(i, { ...g, ...h || {} });
17060
17060
  }, canvas: async (g, h) => {
17061
- let { toCanvas: f } = await import("./toCanvas-ff799b49.js");
17061
+ let { toCanvas: f } = await import("./toCanvas-32be45c3.js");
17062
17062
  return f(i, { ...g, ...h || {} });
17063
17063
  }, blob: async (g, h) => {
17064
- let { toBlob: f } = await import("./toBlob-80795585.js");
17064
+ let { toBlob: f } = await import("./toBlob-0271f0b1.js");
17065
17065
  return f(i, { ...g, ...h || {} });
17066
17066
  }, png: async (g, h) => {
17067
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-e471a19e.js");
17067
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-89cfe273.js");
17068
17068
  return f(i, { ...g, ...h || {}, format: "png" });
17069
17069
  }, jpeg: async (g, h) => {
17070
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-e471a19e.js");
17070
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-89cfe273.js");
17071
17071
  return f(i, { ...g, ...h || {}, format: "jpeg" });
17072
17072
  }, webp: async (g, h) => {
17073
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-e471a19e.js");
17073
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-89cfe273.js");
17074
17074
  return f(i, { ...g, ...h || {}, format: "webp" });
17075
17075
  }, download: async (g, h) => {
17076
- let { download: f } = await import("./download-e67cef15.js");
17076
+ let { download: f } = await import("./download-d2ace138.js");
17077
17077
  return f(i, { ...g, ...h || {} });
17078
17078
  } }, r = { ...e, export: { url: i }, exports: { svg: async (g) => {
17079
- let { toSvg: h } = await import("./toImg-10d2fb32.js");
17079
+ let { toSvg: h } = await import("./toImg-f7528e1e.js");
17080
17080
  return h(i, { ...e, ...g || {}, [qe]: !0 });
17081
17081
  }, canvas: async (g) => {
17082
- let { toCanvas: h } = await import("./toCanvas-ff799b49.js");
17082
+ let { toCanvas: h } = await import("./toCanvas-32be45c3.js");
17083
17083
  return h(i, { ...e, ...g || {}, [qe]: !0 });
17084
17084
  }, png: async (g) => {
17085
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-e471a19e.js");
17085
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-89cfe273.js");
17086
17086
  return h(i, { ...e, ...g || {}, format: "png", [qe]: !0 });
17087
17087
  }, jpeg: async (g) => {
17088
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-e471a19e.js");
17088
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-89cfe273.js");
17089
17089
  return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
17090
17090
  }, jpg: async (g) => {
17091
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-e471a19e.js");
17091
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-89cfe273.js");
17092
17092
  return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
17093
17093
  }, webp: async (g) => {
17094
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-e471a19e.js");
17094
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-89cfe273.js");
17095
17095
  return h(i, { ...e, ...g || {}, format: "webp", [qe]: !0 });
17096
17096
  }, blob: async (g) => {
17097
- let { toBlob: h } = await import("./toBlob-80795585.js");
17097
+ let { toBlob: h } = await import("./toBlob-0271f0b1.js");
17098
17098
  return h(i, { ...e, ...g || {}, [qe]: !0 });
17099
17099
  }, img: async (g) => {
17100
- let { toImg: h } = await import("./toImg-10d2fb32.js");
17100
+ let { toImg: h } = await import("./toImg-f7528e1e.js");
17101
17101
  return h(i, { ...e, ...g || {}, [qe]: !0 });
17102
17102
  } } }, l = await Fg("defineExports", r), c = Object.assign({}, ...l.filter((g) => g && typeof g == "object")), s = { ...o, ...c };
17103
17103
  s.jpeg && !s.jpg && (s.jpg = (g, h) => s.jpeg(g, h));
@@ -18395,8 +18395,10 @@ const wr = /* @__PURE__ */ ie(Vf, [["render", Bf]]), Zf = {
18395
18395
  layerVersion: {
18396
18396
  handler() {
18397
18397
  if (this.map) {
18398
- const t = this.autoActive && this.weatherCheckList.some((i) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp"].some((o) => o === i)), e = this.otherCheckList.some((i) => ["navareas", "eca-zones", "load-lines", "voluntary-reporting-area", "war-zones", "special-area", "ice-areas"].some((o) => o === i)), a = t || e;
18399
- this.mapFeather === "nautical" ? t ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "none"), this.map.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "none"), this.map.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "visible"), this.map.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "visible"), this.map.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "visible"), this.map.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "visible"), this.map.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "visible")) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "visible"), this.map.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "visible"), this.map.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "none"), this.map.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "none"), this.map.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "none"), this.map.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "none"), this.map.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "none")) : this.mapFeather === "satellite" ? t ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "visible"), this.map.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "country-boundaries"), this.map.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "country-boundaries")) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "none")) : a ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible"), t && (this.map.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), this.map.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"))) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none"));
18398
+ const t = this.autoActive && this.weatherCheckList.some((i) => ["wind-particle", "sig-wave", "swell", "current-particle", "water-temp", "temp", "sig-wave-height"].some((o) => o === i)), e = this.otherCheckList.some((i) => ["navareas", "eca-zones", "load-lines", "voluntary-reporting-area", "war-zones", "special-area", "ice-areas"].some((o) => o === i)), a = t || e;
18399
+ this.mapFeather === "nautical" ? t ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "none"), this.map.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "none"), this.map.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "visible"), this.map.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "visible"), this.map.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "visible"), this.map.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "visible"), this.map.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "visible")) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("i4") && this.map.setLayoutProperty("i4", "visibility", "visible"), this.map.getLayer("hi") && this.map.setLayoutProperty("hi", "visibility", "visible"), this.map.getLayer("admin-0-boundary-bg") && this.map.setLayoutProperty("admin-0-boundary-bg", "visibility", "none"), this.map.getLayer("admin-0-boundary") && this.map.setLayoutProperty("admin-0-boundary", "visibility", "none"), this.map.getLayer("admin-0-boundary-disputed") && this.map.setLayoutProperty("admin-0-boundary-disputed", "visibility", "none"), this.map.getLayer("country-label") && this.map.setLayoutProperty("country-label", "visibility", "none"), this.map.getLayer("continent-label") && this.map.setLayoutProperty("continent-label", "visibility", "none")) : this.mapFeather === "satellite" ? t ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "visible"), this.map.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "country-boundaries"), this.map.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "country-boundaries")) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("water-outline") && this.map.setLayoutProperty("water-outline", "visibility", "none")) : a ? (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "visible"), this.map.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "visible"), t && (this.map.getLayer("ramp-color-layer") && this.map.moveLayer("ramp-color-layer", "empty-layer-0"), this.map.getLayer("particle-layer") && this.map.moveLayer("particle-layer", "empty-layer-0"), setTimeout(() => {
18400
+ this.map.getLayer("sig-wave-height-label-layer") && this.map.moveLayer("sig-wave-height-label-layer", "empty-layer-0"), this.map.getLayer("sig-wave-height-layer") && this.map.moveLayer("sig-wave-height-layer", "empty-layer-0");
18401
+ }, 1e3))) : (this.map.getLayer("country-boundaries") && this.map.setLayoutProperty("country-boundaries", "visibility", "none"), this.map.getLayer("water-outline2") && this.map.setLayoutProperty("water-outline2", "visibility", "none"));
18400
18402
  }
18401
18403
  },
18402
18404
  immediate: !0
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as n, D as x, L as D, a as T, b as S, M as W, g as f, f as h, P as k, d as y, T as V, V as d, W as u, e as w } from "./index-015f1cf2.js";
1
+ import { c as n, D as x, L as D, a as T, b as S, M as W, g as f, f as h, P as k, d as y, T as V, V as d, W as u, e as w } from "./index-24eb91d3.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";