@idmwx/idmui-gl4 3.8.3 → 3.8.5

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-0f297b00.js";
1
+ import { l as b } from "./index-1f8cfea5.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-03109a46.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-98ecbb08.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-03109a46.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-98ecbb08.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-bfa83c91.js";
2
- import { W as f } from "./chunk-3VYIPD3A-03109a46.js";
3
- import "./index-0f297b00.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-4866a352.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-98ecbb08.js";
3
+ import "./index-1f8cfea5.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -3290,7 +3290,7 @@ const dc = {
3290
3290
  otherLayers: {},
3291
3291
  activeOtherLayers: [],
3292
3292
  cache: {
3293
- v: "0.0.2",
3293
+ v: "0.0.4",
3294
3294
  versionKey: "otherLayerCacheVersionGL4",
3295
3295
  checkListKey: "otherChecklistCacheGL4",
3296
3296
  followListKey: "otherFollowListCacheGL4",
@@ -3330,19 +3330,18 @@ const dc = {
3330
3330
  handler() {
3331
3331
  this.theme === "light" ? this.mapboxFeather = ["light", "nautical"].includes(this.mapboxFeather) ? this.mapboxFeather : "light" : this.theme === "dark" && (this.mapboxFeather = ["dark", "satellite"].includes(this.mapboxFeather) ? this.mapboxFeather : "dark");
3332
3332
  }
3333
- // immediate: true,
3334
3333
  },
3335
3334
  mapFeather: {
3336
- handler() {
3337
- this.mapFeather && (this.mapboxFeather = this.mapFeather);
3335
+ handler(t, e) {
3336
+ t !== e && (this.mapboxFeather = this.mapFeather);
3338
3337
  },
3339
3338
  immediate: !0
3340
3339
  },
3341
3340
  mapboxFeather: {
3342
3341
  handler() {
3343
3342
  localStorage.setItem(this.cache.mapFeatherKey, this.mapboxFeather), this.$emit("mapFeather", this.mapboxFeather), this.$emit("theme", ["light", "nautical"].includes(this.mapboxFeather) ? "light" : "dark");
3344
- }
3345
- // immediate: true
3343
+ },
3344
+ immediate: !0
3346
3345
  },
3347
3346
  checkList: {
3348
3347
  handler(t, e) {
@@ -7071,7 +7070,7 @@ const Sm = {
7071
7070
  weatherLayers: {},
7072
7071
  activeWeatherLayers: [],
7073
7072
  cache: {
7074
- v: "0.0.2",
7073
+ v: "0.0.4",
7075
7074
  versionKey: "weatherLayerCacheVersionGL4",
7076
7075
  autoActiveKey: "autoActiveCacheGL4",
7077
7076
  checkListKey: "weatherCheckListCacheGL4"
@@ -17803,52 +17802,52 @@ Te.capture = async (t, e, a) => {
17803
17802
  if (a !== tl)
17804
17803
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17805
17804
  let i = await el(t, e), o = { img: async (u, h) => {
17806
- let { toImg: y } = await import("./toImg-1ebb6a86.js");
17805
+ let { toImg: y } = await import("./toImg-77e68994.js");
17807
17806
  return y(i, { ...u, ...h || {} });
17808
17807
  }, svg: async (u, h) => {
17809
- let { toSvg: y } = await import("./toImg-1ebb6a86.js");
17808
+ let { toSvg: y } = await import("./toImg-77e68994.js");
17810
17809
  return y(i, { ...u, ...h || {} });
17811
17810
  }, canvas: async (u, h) => {
17812
- let { toCanvas: y } = await import("./toCanvas-017719bc.js");
17811
+ let { toCanvas: y } = await import("./toCanvas-295e8484.js");
17813
17812
  return y(i, { ...u, ...h || {} });
17814
17813
  }, blob: async (u, h) => {
17815
- let { toBlob: y } = await import("./toBlob-fed1c14a.js");
17814
+ let { toBlob: y } = await import("./toBlob-b60b55dd.js");
17816
17815
  return y(i, { ...u, ...h || {} });
17817
17816
  }, png: async (u, h) => {
17818
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-6f31de44.js");
17817
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-1ac6547f.js");
17819
17818
  return y(i, { ...u, ...h || {}, format: "png" });
17820
17819
  }, jpeg: async (u, h) => {
17821
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-6f31de44.js");
17820
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-1ac6547f.js");
17822
17821
  return y(i, { ...u, ...h || {}, format: "jpeg" });
17823
17822
  }, webp: async (u, h) => {
17824
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-6f31de44.js");
17823
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-1ac6547f.js");
17825
17824
  return y(i, { ...u, ...h || {}, format: "webp" });
17826
17825
  }, download: async (u, h) => {
17827
- let { download: y } = await import("./download-f1f9b65a.js");
17826
+ let { download: y } = await import("./download-2643c063.js");
17828
17827
  return y(i, { ...u, ...h || {} });
17829
17828
  } }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
17830
- let { toSvg: h } = await import("./toImg-1ebb6a86.js");
17829
+ let { toSvg: h } = await import("./toImg-77e68994.js");
17831
17830
  return h(i, { ...e, ...u || {}, [da]: !0 });
17832
17831
  }, canvas: async (u) => {
17833
- let { toCanvas: h } = await import("./toCanvas-017719bc.js");
17832
+ let { toCanvas: h } = await import("./toCanvas-295e8484.js");
17834
17833
  return h(i, { ...e, ...u || {}, [da]: !0 });
17835
17834
  }, png: async (u) => {
17836
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-6f31de44.js");
17835
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1ac6547f.js");
17837
17836
  return h(i, { ...e, ...u || {}, format: "png", [da]: !0 });
17838
17837
  }, jpeg: async (u) => {
17839
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-6f31de44.js");
17838
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1ac6547f.js");
17840
17839
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17841
17840
  }, jpg: async (u) => {
17842
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-6f31de44.js");
17841
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1ac6547f.js");
17843
17842
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17844
17843
  }, webp: async (u) => {
17845
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-6f31de44.js");
17844
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-1ac6547f.js");
17846
17845
  return h(i, { ...e, ...u || {}, format: "webp", [da]: !0 });
17847
17846
  }, blob: async (u) => {
17848
- let { toBlob: h } = await import("./toBlob-fed1c14a.js");
17847
+ let { toBlob: h } = await import("./toBlob-b60b55dd.js");
17849
17848
  return h(i, { ...e, ...u || {}, [da]: !0 });
17850
17849
  }, img: async (u) => {
17851
- let { toImg: h } = await import("./toImg-1ebb6a86.js");
17850
+ let { toImg: h } = await import("./toImg-77e68994.js");
17852
17851
  return h(i, { ...e, ...u || {}, [da]: !0 });
17853
17852
  } } }, l = await qf("defineExports", r), s = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), c = { ...o, ...s };
17854
17853
  c.jpeg && !c.jpg && (c.jpg = (u, h) => c.jpeg(u, h));
@@ -39347,7 +39346,7 @@ const M1 = {
39347
39346
  },
39348
39347
  mapFeather: {
39349
39348
  handler() {
39350
- this.platform !== "ops" && (this.mapFeather === "nautical" ? this.vendor = "i4" : this.vendor = ""), this.vendor = localStorage.getItem("nauticalLayerCacheGL4"), this.map = void 0, this.mapFeather && this.$nextTick(() => {
39349
+ this.platform !== "ops" && (this.mapFeather === "nautical" ? this.vendor = "i4" : this.vendor = ""), this.map = void 0, this.mapFeather && this.$nextTick(() => {
39351
39350
  this.initOnlineMap();
39352
39351
  });
39353
39352
  },
@@ -39359,15 +39358,15 @@ const M1 = {
39359
39358
  },
39360
39359
  immediate: !0
39361
39360
  },
39362
- vendor: {
39363
- handler(t) {
39364
- this.$emit("nautical", t);
39361
+ nautical: {
39362
+ handler(t, e) {
39363
+ this.vendor = t;
39365
39364
  },
39366
39365
  immediate: !0
39367
39366
  },
39368
- nautical: {
39367
+ vendor: {
39369
39368
  handler(t, e) {
39370
- console.log("nautical", t, e), localStorage.setItem("nauticalLayerCacheGL4", t), this.handleNauticalToggle(t, e);
39369
+ this.handleNauticalToggle(t, e), this.$emit("nautical", t);
39371
39370
  }
39372
39371
  }
39373
39372
  },
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-0f297b00.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-1f8cfea5.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";