@idmwx/idmui-gl4 3.9.6 → 3.9.8

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-f5930426.js";
1
+ import { l as b } from "./index-212fbf94.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-24ad3023.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-503de71a.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-24ad3023.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-503de71a.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-2877877c.js";
2
- import { W as f } from "./chunk-3VYIPD3A-24ad3023.js";
3
- import "./index-f5930426.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-bb038cca.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-503de71a.js";
3
+ import "./index-212fbf94.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -11066,13 +11066,14 @@ const Su = {
11066
11066
  currentRealTime: {
11067
11067
  handler(t, e) {
11068
11068
  t !== e && this.$emit("currentRealTime", this.currentRealTime);
11069
- }
11069
+ },
11070
+ immediate: !0
11070
11071
  }
11071
11072
  },
11072
11073
  mounted() {
11073
11074
  this.timer = setInterval(() => {
11074
11075
  this.currentRealTime = `${S.tz(S().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
11075
- }, 100), document.addEventListener("click", this.handleClickOutside);
11076
+ }, 1e3), document.addEventListener("click", this.handleClickOutside);
11076
11077
  },
11077
11078
  unmounted() {
11078
11079
  clearInterval(this.timer), this.handleCancelDate(), document.removeEventListener("click", this.handleClickOutside);
@@ -18350,52 +18351,52 @@ Se.capture = async (t, e, o) => {
18350
18351
  if (o !== fl)
18351
18352
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
18352
18353
  let i = await gl(t, e), a = { img: async (u, h) => {
18353
- let { toImg: f } = await import("./toImg-27ca69b4.js");
18354
+ let { toImg: f } = await import("./toImg-0cfbd5c8.js");
18354
18355
  return f(i, { ...u, ...h || {} });
18355
18356
  }, svg: async (u, h) => {
18356
- let { toSvg: f } = await import("./toImg-27ca69b4.js");
18357
+ let { toSvg: f } = await import("./toImg-0cfbd5c8.js");
18357
18358
  return f(i, { ...u, ...h || {} });
18358
18359
  }, canvas: async (u, h) => {
18359
- let { toCanvas: f } = await import("./toCanvas-cb314a1f.js");
18360
+ let { toCanvas: f } = await import("./toCanvas-3592d269.js");
18360
18361
  return f(i, { ...u, ...h || {} });
18361
18362
  }, blob: async (u, h) => {
18362
- let { toBlob: f } = await import("./toBlob-c01e1e2b.js");
18363
+ let { toBlob: f } = await import("./toBlob-b83c42a5.js");
18363
18364
  return f(i, { ...u, ...h || {} });
18364
18365
  }, png: async (u, h) => {
18365
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-ef4de766.js");
18366
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-9d61edec.js");
18366
18367
  return f(i, { ...u, ...h || {}, format: "png" });
18367
18368
  }, jpeg: async (u, h) => {
18368
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-ef4de766.js");
18369
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-9d61edec.js");
18369
18370
  return f(i, { ...u, ...h || {}, format: "jpeg" });
18370
18371
  }, webp: async (u, h) => {
18371
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-ef4de766.js");
18372
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-9d61edec.js");
18372
18373
  return f(i, { ...u, ...h || {}, format: "webp" });
18373
18374
  }, download: async (u, h) => {
18374
- let { download: f } = await import("./download-ab84e805.js");
18375
+ let { download: f } = await import("./download-5d3a7841.js");
18375
18376
  return f(i, { ...u, ...h || {} });
18376
18377
  } }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
18377
- let { toSvg: h } = await import("./toImg-27ca69b4.js");
18378
+ let { toSvg: h } = await import("./toImg-0cfbd5c8.js");
18378
18379
  return h(i, { ...e, ...u || {}, [po]: !0 });
18379
18380
  }, canvas: async (u) => {
18380
- let { toCanvas: h } = await import("./toCanvas-cb314a1f.js");
18381
+ let { toCanvas: h } = await import("./toCanvas-3592d269.js");
18381
18382
  return h(i, { ...e, ...u || {}, [po]: !0 });
18382
18383
  }, png: async (u) => {
18383
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-ef4de766.js");
18384
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-9d61edec.js");
18384
18385
  return h(i, { ...e, ...u || {}, format: "png", [po]: !0 });
18385
18386
  }, jpeg: async (u) => {
18386
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-ef4de766.js");
18387
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-9d61edec.js");
18387
18388
  return h(i, { ...e, ...u || {}, format: "jpeg", [po]: !0 });
18388
18389
  }, jpg: async (u) => {
18389
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-ef4de766.js");
18390
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-9d61edec.js");
18390
18391
  return h(i, { ...e, ...u || {}, format: "jpeg", [po]: !0 });
18391
18392
  }, webp: async (u) => {
18392
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-ef4de766.js");
18393
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-9d61edec.js");
18393
18394
  return h(i, { ...e, ...u || {}, format: "webp", [po]: !0 });
18394
18395
  }, blob: async (u) => {
18395
- let { toBlob: h } = await import("./toBlob-c01e1e2b.js");
18396
+ let { toBlob: h } = await import("./toBlob-b83c42a5.js");
18396
18397
  return h(i, { ...e, ...u || {}, [po]: !0 });
18397
18398
  }, img: async (u) => {
18398
- let { toImg: h } = await import("./toImg-27ca69b4.js");
18399
+ let { toImg: h } = await import("./toImg-0cfbd5c8.js");
18399
18400
  return h(i, { ...e, ...u || {}, [po]: !0 });
18400
18401
  } } }, l = await D0("defineExports", r), n = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...a, ...n };
18401
18402
  s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
@@ -20450,7 +20451,7 @@ const j1 = {
20450
20451
  }, Y1 = ["onClick"], U1 = { class: "timeline-hours" }, K1 = ["onClick"], J1 = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Q1 = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, q1 = {
20451
20452
  key: 0,
20452
20453
  class: "list d-flex flex-wrap pa-2 rounded ga-2"
20453
- }, $1 = ["onClick"], eb = { class: "btn-box d-flex flex-column justify-space-around align-center rounded py-1 px-3" }, tb = { class: "text-body-2" }, ob = {
20454
+ }, $1 = ["onClick"], eb = { class: "btn-box d-flex flex-column justify-space-around align-center rounded ga-0 py-1 px-3" }, tb = { class: "text-body-2" }, ob = {
20454
20455
  key: 0,
20455
20456
  class: "record-logo"
20456
20457
  }, ab = { style: { padding: "6px 16px", margin: "auto", background: "#3468f5", color: "var(--idm-white, #fff)", "border-radius": "6px", "font-size": "20px", "font-weight": "bold" } };
@@ -20861,6 +20862,7 @@ function ib(t, e, o, i, a, r) {
20861
20862
  }, b(y < 0 ? y : "+" + y), 9, $1))), 128))
20862
20863
  ])) : I("", !0),
20863
20864
  c("div", eb, [
20865
+ c("div", tb, b(a.currentRealTime), 1),
20864
20866
  w(l, {
20865
20867
  text: "",
20866
20868
  variant: "flat",
@@ -20873,8 +20875,7 @@ function ib(t, e, o, i, a, r) {
20873
20875
  j(" UTC " + b(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
20874
20876
  ]),
20875
20877
  _: 1
20876
- }),
20877
- c("div", tb, b(a.currentRealTime), 1)
20878
+ })
20878
20879
  ])
20879
20880
  ], 4),
20880
20881
  a.recorder ? (v(), D("div", ob, [
@@ -39993,6 +39994,7 @@ const db = {
39993
39994
  helper: void 0,
39994
39995
  zoom: 2,
39995
39996
  defaultZoom: 2,
39997
+ minZoom: 2,
39996
39998
  maxZoom: 22,
39997
39999
  right: 10,
39998
40000
  vendorKeys: ["hi", "i4"],
@@ -40043,7 +40045,7 @@ const db = {
40043
40045
  }
40044
40046
  },
40045
40047
  mounted() {
40046
- this.defaultZoom = this.simple ? 1 : 2;
40048
+ this.defaultZoom = this.simple ? 1 : 2, this.minZoom = this.projection === "mercator" ? 2 : 1;
40047
40049
  },
40048
40050
  async beforeUnmount() {
40049
40051
  var t;
@@ -40069,7 +40071,7 @@ const db = {
40069
40071
  // style: 'mapbox://styles/neatchenheng/cmddwkooj003i01ptch7p9gvz', // nautical
40070
40072
  // style: 'mapbox://styles/neatchenheng/cmg0ale3r008801rhdey4f0go', // street
40071
40073
  style: this.helper.mapboxStyle[this.mapFeather],
40072
- minZoom: this.defaultZoom,
40074
+ minZoom: this.minZoom,
40073
40075
  maxZoom: this.maxZoom,
40074
40076
  zoom: a,
40075
40077
  center: r,
@@ -40121,7 +40123,7 @@ const db = {
40121
40123
  const e = this.projection === "mercator" ? "globe" : "mercator";
40122
40124
  if (this.$emit("projection", e), await this.$nextTick(), this.map !== t)
40123
40125
  return;
40124
- t.setProjection(e), e === "globe" ? t.setZoom(this.defaultZoom) : (t.setZoom(this.defaultZoom), t.easeTo({ pitch: 0, bearing: 0, duration: 600 }));
40126
+ t.setProjection(e), e === "globe" ? (this.minZoom = 1, t.setMinZoom(this.minZoom), t.setZoom(this.defaultZoom)) : (this.minZoom = 2, t.setMinZoom(this.defaultZoom), t.setZoom(this.defaultZoom), t.easeTo({ pitch: 0, bearing: 0, duration: 600 }));
40125
40127
  }
40126
40128
  }
40127
40129
  }, hb = { class: "v-btn--variant-elevated rounded" }, ub = { class: "v-btn--variant-elevated rounded" }, pb = { class: "zoom font-weight-600" }, gb = {
@@ -40215,7 +40217,7 @@ function fb(t, e, o, i, a, r) {
40215
40217
  height: "32",
40216
40218
  class: "elevation-0 pa-0",
40217
40219
  variant: "text",
40218
- disabled: a.zoom <= a.defaultZoom,
40220
+ disabled: a.zoom <= a.minZoom,
40219
40221
  onClick: r.handleZoomOut
40220
40222
  }, {
40221
40223
  default: x(() => e[3] || (e[3] = [
@@ -40419,7 +40421,7 @@ const bb = {
40419
40421
  return (t, e, o = "yyyy-MM-DD") => {
40420
40422
  var i, a;
40421
40423
  if (t) {
40422
- const r = e || 0;
40424
+ const r = Number(e) || 0;
40423
40425
  return (a = (i = S(t)) == null ? void 0 : i.utcOffset(r)) == null ? void 0 : a.format(o);
40424
40426
  }
40425
40427
  return "-";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as D, c as M, D as n, L as x, a as T, b as W, M as h, g as V, e as f, P as k, S as w, T as y, V as B, f as d, W as u, d as v } from "./index-f5930426.js";
1
+ import { B as D, c as M, D as n, L as x, a as T, b as W, M as h, g as V, e as f, P as k, S as w, T as y, V as B, f as d, W as u, d as v } from "./index-212fbf94.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";