@idmwx/idmui-gl4 3.8.0 → 3.8.1

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-343fa4ed.js";
1
+ import { l as b } from "./index-28a4f6f9.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-0ef283fe.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-7c3245c9.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-0ef283fe.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-7c3245c9.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-ea5fc0ab.js";
2
- import { W as f } from "./chunk-3VYIPD3A-0ef283fe.js";
3
- import "./index-343fa4ed.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-4cdcfb4a.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-7c3245c9.js";
3
+ import "./index-28a4f6f9.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -3291,7 +3291,8 @@ const dc = {
3291
3291
  versionKey: "otherLayerCacheVersionGL4",
3292
3292
  checkListKey: "otherChecklistCacheGL4",
3293
3293
  followListKey: "otherFollowListCacheGL4",
3294
- mapFeatherKey: "mapFeathersCacheGL4"
3294
+ mapFeatherKey: "mapFeathersCacheGL4",
3295
+ nauticalKey: "nauticalLayerCacheGL4"
3295
3296
  },
3296
3297
  mapFeathers: [
3297
3298
  { name: "Light Map", value: "light", locale: "lightMap" },
@@ -3355,7 +3356,7 @@ const dc = {
3355
3356
  fetchCache() {
3356
3357
  var i;
3357
3358
  const t = localStorage.getItem(this.cache.versionKey);
3358
- this.cache.v !== t && (localStorage.removeItem(this.cache.checkListKey), localStorage.removeItem(this.cache.followListKey), localStorage.removeItem(this.cache.mapFeatherKey), localStorage.setItem(this.cache.versionKey, this.cache.v));
3359
+ this.cache.v !== t && (localStorage.removeItem(this.cache.checkListKey), localStorage.removeItem(this.cache.followListKey), localStorage.removeItem(this.cache.mapFeatherKey), localStorage.removeItem(this.cache.nauticalKey), localStorage.setItem(this.cache.versionKey, this.cache.v));
3359
3360
  let e = localStorage.getItem(this.cache.checkListKey);
3360
3361
  this.checkList = JSON.parse(e || '["eca-zones"]'), localStorage.setItem(this.cache.checkListKey, JSON.stringify(this.checkList)), e = localStorage.getItem(this.cache.mapFeatherKey);
3361
3362
  const a = this.mapFeathers.some((o) => o.value === e && !o.hide) ? e : ((i = this.mapFeathers.find((o) => o.value === e)) == null ? void 0 : i.replace) || "dark";
@@ -17776,52 +17777,52 @@ Te.capture = async (t, e, a) => {
17776
17777
  if (a !== tl)
17777
17778
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17778
17779
  let i = await el(t, e), o = { img: async (u, h) => {
17779
- let { toImg: y } = await import("./toImg-94498a8a.js");
17780
+ let { toImg: y } = await import("./toImg-d29e4678.js");
17780
17781
  return y(i, { ...u, ...h || {} });
17781
17782
  }, svg: async (u, h) => {
17782
- let { toSvg: y } = await import("./toImg-94498a8a.js");
17783
+ let { toSvg: y } = await import("./toImg-d29e4678.js");
17783
17784
  return y(i, { ...u, ...h || {} });
17784
17785
  }, canvas: async (u, h) => {
17785
- let { toCanvas: y } = await import("./toCanvas-8da58ca9.js");
17786
+ let { toCanvas: y } = await import("./toCanvas-5845fed6.js");
17786
17787
  return y(i, { ...u, ...h || {} });
17787
17788
  }, blob: async (u, h) => {
17788
- let { toBlob: y } = await import("./toBlob-100ba758.js");
17789
+ let { toBlob: y } = await import("./toBlob-09130b9b.js");
17789
17790
  return y(i, { ...u, ...h || {} });
17790
17791
  }, png: async (u, h) => {
17791
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-f275825a.js");
17792
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-c48564a9.js");
17792
17793
  return y(i, { ...u, ...h || {}, format: "png" });
17793
17794
  }, jpeg: async (u, h) => {
17794
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-f275825a.js");
17795
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-c48564a9.js");
17795
17796
  return y(i, { ...u, ...h || {}, format: "jpeg" });
17796
17797
  }, webp: async (u, h) => {
17797
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-f275825a.js");
17798
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-c48564a9.js");
17798
17799
  return y(i, { ...u, ...h || {}, format: "webp" });
17799
17800
  }, download: async (u, h) => {
17800
- let { download: y } = await import("./download-6d62ba13.js");
17801
+ let { download: y } = await import("./download-87732143.js");
17801
17802
  return y(i, { ...u, ...h || {} });
17802
17803
  } }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
17803
- let { toSvg: h } = await import("./toImg-94498a8a.js");
17804
+ let { toSvg: h } = await import("./toImg-d29e4678.js");
17804
17805
  return h(i, { ...e, ...u || {}, [da]: !0 });
17805
17806
  }, canvas: async (u) => {
17806
- let { toCanvas: h } = await import("./toCanvas-8da58ca9.js");
17807
+ let { toCanvas: h } = await import("./toCanvas-5845fed6.js");
17807
17808
  return h(i, { ...e, ...u || {}, [da]: !0 });
17808
17809
  }, png: async (u) => {
17809
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-f275825a.js");
17810
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-c48564a9.js");
17810
17811
  return h(i, { ...e, ...u || {}, format: "png", [da]: !0 });
17811
17812
  }, jpeg: async (u) => {
17812
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-f275825a.js");
17813
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-c48564a9.js");
17813
17814
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17814
17815
  }, jpg: async (u) => {
17815
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-f275825a.js");
17816
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-c48564a9.js");
17816
17817
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17817
17818
  }, webp: async (u) => {
17818
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-f275825a.js");
17819
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-c48564a9.js");
17819
17820
  return h(i, { ...e, ...u || {}, format: "webp", [da]: !0 });
17820
17821
  }, blob: async (u) => {
17821
- let { toBlob: h } = await import("./toBlob-100ba758.js");
17822
+ let { toBlob: h } = await import("./toBlob-09130b9b.js");
17822
17823
  return h(i, { ...e, ...u || {}, [da]: !0 });
17823
17824
  }, img: async (u) => {
17824
- let { toImg: h } = await import("./toImg-94498a8a.js");
17825
+ let { toImg: h } = await import("./toImg-d29e4678.js");
17825
17826
  return h(i, { ...e, ...u || {}, [da]: !0 });
17826
17827
  } } }, l = await qf("defineExports", r), s = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), c = { ...o, ...s };
17827
17828
  c.jpeg && !c.jpg && (c.jpg = (u, h) => c.jpeg(u, h));
@@ -39300,7 +39301,7 @@ const M1 = {
39300
39301
  zoom: 2,
39301
39302
  right: 10,
39302
39303
  vendorKeys: ["hi", "i4"],
39303
- vendor: localStorage.getItem("nauticalLayerCacheGL4")
39304
+ vendor: void 0
39304
39305
  };
39305
39306
  },
39306
39307
  computed: {
@@ -39320,7 +39321,7 @@ const M1 = {
39320
39321
  },
39321
39322
  mapFeather: {
39322
39323
  handler() {
39323
- this.platform !== "ops" && (this.mapFeather === "nautical" ? this.vendor = "i4" : this.vendor = ""), this.map = void 0, this.mapFeather && this.$nextTick(() => {
39324
+ this.platform !== "ops" && (this.mapFeather === "nautical" ? this.vendor = "i4" : this.vendor = ""), this.vendor = localStorage.getItem("nauticalLayerCacheGL4"), this.map = void 0, this.mapFeather && this.$nextTick(() => {
39324
39325
  this.initOnlineMap();
39325
39326
  });
39326
39327
  },
@@ -39340,7 +39341,7 @@ const M1 = {
39340
39341
  },
39341
39342
  nautical: {
39342
39343
  handler(t, e) {
39343
- localStorage.setItem("nauticalLayerCacheGL4", t), this.handleNauticalToggle(t, e);
39344
+ console.log("nautical", t, e), localStorage.setItem("nauticalLayerCacheGL4", t), this.handleNauticalToggle(t, e);
39344
39345
  }
39345
39346
  }
39346
39347
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as g, c as n, D as x, L as D, a as T, b as W, M as h, f, e as k, P as y, S as B, T as V, V as d, W as u, d as v } from "./index-343fa4ed.js";
1
+ import { B as g, c as n, D as x, L as D, a as T, b as W, M as h, f, e as k, P as y, S as B, T as V, V as d, W as u, d as v } from "./index-28a4f6f9.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";