@idmwx/idmui-gl4 3.8.0 → 3.8.2

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-a6959b8a.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-f3c90593.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-f3c90593.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-25c7d9fb.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-f3c90593.js";
3
+ import "./index-a6959b8a.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";
@@ -5992,6 +5993,12 @@ const qc = /* @__PURE__ */ ne(Kc, [["render", Qc]]), $c = {
5992
5993
  },
5993
5994
  theme: {
5994
5995
  type: String
5996
+ },
5997
+ hasRampLayer: {
5998
+ type: Boolean
5999
+ },
6000
+ nautical: {
6001
+ type: String
5995
6002
  }
5996
6003
  },
5997
6004
  data() {
@@ -6003,6 +6010,11 @@ const qc = /* @__PURE__ */ ne(Kc, [["render", Qc]]), $c = {
6003
6010
  empty: W.featureCollection([])
6004
6011
  };
6005
6012
  },
6013
+ computed: {
6014
+ opacity() {
6015
+ return (this.theme === "light" || this.nautical === "hi" || this.nautical === "i4") && !this.hasRampLayer ? 1 : 0.3;
6016
+ }
6017
+ },
6006
6018
  watch: {
6007
6019
  "prmsl.version": {
6008
6020
  handler() {
@@ -6010,6 +6022,12 @@ const qc = /* @__PURE__ */ ne(Kc, [["render", Qc]]), $c = {
6010
6022
  (t = this.prmsl) != null && t.active ? this.handleRender() : this.handleClear();
6011
6023
  },
6012
6024
  immediate: !0
6025
+ },
6026
+ opacity: {
6027
+ handler() {
6028
+ var t;
6029
+ (t = this.prmsl) != null && t.active && (this.handleClear(), this.handleRender());
6030
+ }
6013
6031
  }
6014
6032
  },
6015
6033
  methods: {
@@ -6037,7 +6055,7 @@ const qc = /* @__PURE__ */ ne(Kc, [["render", Qc]]), $c = {
6037
6055
  "rgba(199,171,250,1)"
6038
6056
  ],
6039
6057
  "line-width": 1,
6040
- "line-opacity": this.theme === "light" ? 1 : 0.3
6058
+ "line-opacity": this.opacity
6041
6059
  }
6042
6060
  },
6043
6061
  this.beforeLayer
@@ -17776,52 +17794,52 @@ Te.capture = async (t, e, a) => {
17776
17794
  if (a !== tl)
17777
17795
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17778
17796
  let i = await el(t, e), o = { img: async (u, h) => {
17779
- let { toImg: y } = await import("./toImg-94498a8a.js");
17797
+ let { toImg: y } = await import("./toImg-351e9073.js");
17780
17798
  return y(i, { ...u, ...h || {} });
17781
17799
  }, svg: async (u, h) => {
17782
- let { toSvg: y } = await import("./toImg-94498a8a.js");
17800
+ let { toSvg: y } = await import("./toImg-351e9073.js");
17783
17801
  return y(i, { ...u, ...h || {} });
17784
17802
  }, canvas: async (u, h) => {
17785
- let { toCanvas: y } = await import("./toCanvas-8da58ca9.js");
17803
+ let { toCanvas: y } = await import("./toCanvas-944333ee.js");
17786
17804
  return y(i, { ...u, ...h || {} });
17787
17805
  }, blob: async (u, h) => {
17788
- let { toBlob: y } = await import("./toBlob-100ba758.js");
17806
+ let { toBlob: y } = await import("./toBlob-15aac33f.js");
17789
17807
  return y(i, { ...u, ...h || {} });
17790
17808
  }, png: async (u, h) => {
17791
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-f275825a.js");
17809
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-90e5dfc4.js");
17792
17810
  return y(i, { ...u, ...h || {}, format: "png" });
17793
17811
  }, jpeg: async (u, h) => {
17794
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-f275825a.js");
17812
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-90e5dfc4.js");
17795
17813
  return y(i, { ...u, ...h || {}, format: "jpeg" });
17796
17814
  }, webp: async (u, h) => {
17797
- let { rasterize: y } = await import("./rasterize-JS5G2XHH-f275825a.js");
17815
+ let { rasterize: y } = await import("./rasterize-JS5G2XHH-90e5dfc4.js");
17798
17816
  return y(i, { ...u, ...h || {}, format: "webp" });
17799
17817
  }, download: async (u, h) => {
17800
- let { download: y } = await import("./download-6d62ba13.js");
17818
+ let { download: y } = await import("./download-a8d2dc8d.js");
17801
17819
  return y(i, { ...u, ...h || {} });
17802
17820
  } }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
17803
- let { toSvg: h } = await import("./toImg-94498a8a.js");
17821
+ let { toSvg: h } = await import("./toImg-351e9073.js");
17804
17822
  return h(i, { ...e, ...u || {}, [da]: !0 });
17805
17823
  }, canvas: async (u) => {
17806
- let { toCanvas: h } = await import("./toCanvas-8da58ca9.js");
17824
+ let { toCanvas: h } = await import("./toCanvas-944333ee.js");
17807
17825
  return h(i, { ...e, ...u || {}, [da]: !0 });
17808
17826
  }, png: async (u) => {
17809
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-f275825a.js");
17827
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-90e5dfc4.js");
17810
17828
  return h(i, { ...e, ...u || {}, format: "png", [da]: !0 });
17811
17829
  }, jpeg: async (u) => {
17812
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-f275825a.js");
17830
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-90e5dfc4.js");
17813
17831
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17814
17832
  }, jpg: async (u) => {
17815
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-f275825a.js");
17833
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-90e5dfc4.js");
17816
17834
  return h(i, { ...e, ...u || {}, format: "jpeg", [da]: !0 });
17817
17835
  }, webp: async (u) => {
17818
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-f275825a.js");
17836
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-90e5dfc4.js");
17819
17837
  return h(i, { ...e, ...u || {}, format: "webp", [da]: !0 });
17820
17838
  }, blob: async (u) => {
17821
- let { toBlob: h } = await import("./toBlob-100ba758.js");
17839
+ let { toBlob: h } = await import("./toBlob-15aac33f.js");
17822
17840
  return h(i, { ...e, ...u || {}, [da]: !0 });
17823
17841
  }, img: async (u) => {
17824
- let { toImg: h } = await import("./toImg-94498a8a.js");
17842
+ let { toImg: h } = await import("./toImg-351e9073.js");
17825
17843
  return h(i, { ...e, ...u || {}, [da]: !0 });
17826
17844
  } } }, l = await qf("defineExports", r), s = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), c = { ...o, ...s };
17827
17845
  c.jpeg && !c.jpg && (c.jpg = (u, h) => c.jpeg(u, h));
@@ -39300,7 +39318,7 @@ const M1 = {
39300
39318
  zoom: 2,
39301
39319
  right: 10,
39302
39320
  vendorKeys: ["hi", "i4"],
39303
- vendor: localStorage.getItem("nauticalLayerCacheGL4")
39321
+ vendor: void 0
39304
39322
  };
39305
39323
  },
39306
39324
  computed: {
@@ -39320,7 +39338,7 @@ const M1 = {
39320
39338
  },
39321
39339
  mapFeather: {
39322
39340
  handler() {
39323
- this.platform !== "ops" && (this.mapFeather === "nautical" ? this.vendor = "i4" : this.vendor = ""), this.map = void 0, this.mapFeather && this.$nextTick(() => {
39341
+ 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
39342
  this.initOnlineMap();
39325
39343
  });
39326
39344
  },
@@ -39340,7 +39358,7 @@ const M1 = {
39340
39358
  },
39341
39359
  nautical: {
39342
39360
  handler(t, e) {
39343
- localStorage.setItem("nauticalLayerCacheGL4", t), this.handleNauticalToggle(t, e);
39361
+ console.log("nautical", t, e), localStorage.setItem("nauticalLayerCacheGL4", t), this.handleNauticalToggle(t, e);
39344
39362
  }
39345
39363
  }
39346
39364
  },
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-a6959b8a.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";