@idmwx/idmui-gl4 3.6.0 → 3.6.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-96a2b166.js";
1
+ import { l as b } from "./index-91c63063.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-27ea74b9.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-7d0f9c9c.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-27ea74b9.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-7d0f9c9c.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-37810b1b.js";
2
- import { W as f } from "./chunk-3VYIPD3A-27ea74b9.js";
3
- import "./index-96a2b166.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-7fdd2f7f.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-7d0f9c9c.js";
3
+ import "./index-91c63063.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -6353,12 +6353,16 @@ const zm = {
6353
6353
  },
6354
6354
  top: {
6355
6355
  type: Number,
6356
- default: 60
6356
+ default: 0
6357
6357
  },
6358
6358
  paddingTop: {
6359
6359
  type: Number,
6360
6360
  default: 48
6361
6361
  },
6362
+ menuHeight: {
6363
+ type: Number,
6364
+ default: 248
6365
+ },
6362
6366
  menuToggle: {
6363
6367
  type: Object,
6364
6368
  default: {}
@@ -6371,6 +6375,9 @@ const zm = {
6371
6375
  },
6372
6376
  beforeLayer: {
6373
6377
  type: String
6378
+ },
6379
+ platform: {
6380
+ type: String
6374
6381
  }
6375
6382
  },
6376
6383
  emits: ["forecastModel", "menuToggle", "weatherCheckList", "autoActive", "weatherRendered"],
@@ -6464,6 +6471,9 @@ const zm = {
6464
6471
  t.push("icon-a-" + r);
6465
6472
  }
6466
6473
  return t;
6474
+ },
6475
+ lengendTipTop() {
6476
+ return this.platform === "ops" ? this.top + this.menuHeight + 232 : this.top + this.menuHeight + 142;
6467
6477
  }
6468
6478
  },
6469
6479
  watch: {
@@ -7073,7 +7083,7 @@ function ud(t, e, o, i, a, l) {
7073
7083
  l.showTipMenu ? (A(), R("div", Cm, [
7074
7084
  n("div", {
7075
7085
  class: ue(["menu-bar-box pa-1 rounded", o.simple ? "simple" : ""]),
7076
- style: ge({ right: a.right + "px", top: o.simple ? "394px" : "580px" })
7086
+ style: ge({ right: a.right + "px", top: o.simple ? "394px" : l.lengendTipTop + "px" })
7077
7087
  }, [
7078
7088
  w(c, {
7079
7089
  text: t.$t("weather.legend"),
@@ -17116,52 +17126,52 @@ Se.capture = async (t, e, o) => {
17116
17126
  if (o !== $l)
17117
17127
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17118
17128
  let i = await ql(t, e), a = { img: async (u, h) => {
17119
- let { toImg: f } = await import("./toImg-378c92f2.js");
17129
+ let { toImg: f } = await import("./toImg-e5f57246.js");
17120
17130
  return f(i, { ...u, ...h || {} });
17121
17131
  }, svg: async (u, h) => {
17122
- let { toSvg: f } = await import("./toImg-378c92f2.js");
17132
+ let { toSvg: f } = await import("./toImg-e5f57246.js");
17123
17133
  return f(i, { ...u, ...h || {} });
17124
17134
  }, canvas: async (u, h) => {
17125
- let { toCanvas: f } = await import("./toCanvas-49669d9c.js");
17135
+ let { toCanvas: f } = await import("./toCanvas-46a8ad3a.js");
17126
17136
  return f(i, { ...u, ...h || {} });
17127
17137
  }, blob: async (u, h) => {
17128
- let { toBlob: f } = await import("./toBlob-192fbb34.js");
17138
+ let { toBlob: f } = await import("./toBlob-881b3d23.js");
17129
17139
  return f(i, { ...u, ...h || {} });
17130
17140
  }, png: async (u, h) => {
17131
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-12fed3a5.js");
17141
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-f30008d7.js");
17132
17142
  return f(i, { ...u, ...h || {}, format: "png" });
17133
17143
  }, jpeg: async (u, h) => {
17134
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-12fed3a5.js");
17144
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-f30008d7.js");
17135
17145
  return f(i, { ...u, ...h || {}, format: "jpeg" });
17136
17146
  }, webp: async (u, h) => {
17137
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-12fed3a5.js");
17147
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-f30008d7.js");
17138
17148
  return f(i, { ...u, ...h || {}, format: "webp" });
17139
17149
  }, download: async (u, h) => {
17140
- let { download: f } = await import("./download-558eb2c8.js");
17150
+ let { download: f } = await import("./download-1e14a88f.js");
17141
17151
  return f(i, { ...u, ...h || {} });
17142
17152
  } }, l = { ...e, export: { url: i }, exports: { svg: async (u) => {
17143
- let { toSvg: h } = await import("./toImg-378c92f2.js");
17153
+ let { toSvg: h } = await import("./toImg-e5f57246.js");
17144
17154
  return h(i, { ...e, ...u || {}, [mo]: !0 });
17145
17155
  }, canvas: async (u) => {
17146
- let { toCanvas: h } = await import("./toCanvas-49669d9c.js");
17156
+ let { toCanvas: h } = await import("./toCanvas-46a8ad3a.js");
17147
17157
  return h(i, { ...e, ...u || {}, [mo]: !0 });
17148
17158
  }, png: async (u) => {
17149
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-12fed3a5.js");
17159
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-f30008d7.js");
17150
17160
  return h(i, { ...e, ...u || {}, format: "png", [mo]: !0 });
17151
17161
  }, jpeg: async (u) => {
17152
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-12fed3a5.js");
17162
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-f30008d7.js");
17153
17163
  return h(i, { ...e, ...u || {}, format: "jpeg", [mo]: !0 });
17154
17164
  }, jpg: async (u) => {
17155
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-12fed3a5.js");
17165
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-f30008d7.js");
17156
17166
  return h(i, { ...e, ...u || {}, format: "jpeg", [mo]: !0 });
17157
17167
  }, webp: async (u) => {
17158
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-12fed3a5.js");
17168
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-f30008d7.js");
17159
17169
  return h(i, { ...e, ...u || {}, format: "webp", [mo]: !0 });
17160
17170
  }, blob: async (u) => {
17161
- let { toBlob: h } = await import("./toBlob-192fbb34.js");
17171
+ let { toBlob: h } = await import("./toBlob-881b3d23.js");
17162
17172
  return h(i, { ...e, ...u || {}, [mo]: !0 });
17163
17173
  }, img: async (u) => {
17164
- let { toImg: h } = await import("./toImg-378c92f2.js");
17174
+ let { toImg: h } = await import("./toImg-e5f57246.js");
17165
17175
  return h(i, { ...e, ...u || {}, [mo]: !0 });
17166
17176
  } } }, r = await W0("defineExports", l), c = Object.assign({}, ...r.filter((u) => u && typeof u == "object")), s = { ...a, ...c };
17167
17177
  s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
@@ -38221,7 +38231,11 @@ const fy = {
38221
38231
  },
38222
38232
  top: {
38223
38233
  type: Number,
38224
- default: 60
38234
+ default: 0
38235
+ },
38236
+ menuHeight: {
38237
+ type: Number,
38238
+ default: 248
38225
38239
  },
38226
38240
  simple: {
38227
38241
  type: Boolean,
@@ -38383,7 +38397,7 @@ function xy(t, e, o, i, a, l) {
38383
38397
  o.simple ? I("", !0) : (A(), R("div", {
38384
38398
  key: 1,
38385
38399
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
38386
- style: ge({ top: o.top + 308 + "px", right: a.right + "px", height: "112px" })
38400
+ style: ge({ top: o.top + o.menuHeight + 20 + "px", right: a.right + "px", height: "112px" })
38387
38401
  }, [
38388
38402
  n("div", by, [
38389
38403
  w(r, {
@@ -38418,7 +38432,7 @@ function xy(t, e, o, i, a, l) {
38418
38432
  !o.simple && o.mapFeather === "nautical" && o.platform === "ops" ? (A(), R("div", {
38419
38433
  key: 2,
38420
38434
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
38421
- style: ge({ top: o.top + 430 + "px", right: a.right + "px", height: "80px" })
38435
+ style: ge({ top: o.top + o.menuHeight + 142 + "px", right: a.right + "px", height: "80px" })
38422
38436
  }, [
38423
38437
  w(c, {
38424
38438
  modelValue: a.nautical,
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-96a2b166.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-91c63063.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";