@idmwx/idmui-gl4 2.6.0 → 2.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-223dd25b.js";
1
+ import { l as b } from "./index-4737b244.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-f30f0363.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-c7d94042.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-f30f0363.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-c7d94042.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-b52c6f76.js";
2
- import { W as f } from "./chunk-3VYIPD3A-f30f0363.js";
3
- import "./index-223dd25b.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-3f64f80d.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-c7d94042.js";
3
+ import "./index-4737b244.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -17554,52 +17554,52 @@ Ce.capture = async (e, t, o) => {
17554
17554
  if (o !== xr)
17555
17555
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17556
17556
  let i = await wr(e, t), a = { img: async (f, h) => {
17557
- let { toImg: u } = await import("./toImg-a6072aec.js");
17557
+ let { toImg: u } = await import("./toImg-7a64999f.js");
17558
17558
  return u(i, { ...f, ...h || {} });
17559
17559
  }, svg: async (f, h) => {
17560
- let { toSvg: u } = await import("./toImg-a6072aec.js");
17560
+ let { toSvg: u } = await import("./toImg-7a64999f.js");
17561
17561
  return u(i, { ...f, ...h || {} });
17562
17562
  }, canvas: async (f, h) => {
17563
- let { toCanvas: u } = await import("./toCanvas-562c3f18.js");
17563
+ let { toCanvas: u } = await import("./toCanvas-b64eaa3e.js");
17564
17564
  return u(i, { ...f, ...h || {} });
17565
17565
  }, blob: async (f, h) => {
17566
- let { toBlob: u } = await import("./toBlob-1f919cd5.js");
17566
+ let { toBlob: u } = await import("./toBlob-98323997.js");
17567
17567
  return u(i, { ...f, ...h || {} });
17568
17568
  }, png: async (f, h) => {
17569
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-aa148d42.js");
17569
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-9131b570.js");
17570
17570
  return u(i, { ...f, ...h || {}, format: "png" });
17571
17571
  }, jpeg: async (f, h) => {
17572
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-aa148d42.js");
17572
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-9131b570.js");
17573
17573
  return u(i, { ...f, ...h || {}, format: "jpeg" });
17574
17574
  }, webp: async (f, h) => {
17575
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-aa148d42.js");
17575
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-9131b570.js");
17576
17576
  return u(i, { ...f, ...h || {}, format: "webp" });
17577
17577
  }, download: async (f, h) => {
17578
- let { download: u } = await import("./download-3d119985.js");
17578
+ let { download: u } = await import("./download-6d383bf8.js");
17579
17579
  return u(i, { ...f, ...h || {} });
17580
17580
  } }, r = { ...t, export: { url: i }, exports: { svg: async (f) => {
17581
- let { toSvg: h } = await import("./toImg-a6072aec.js");
17581
+ let { toSvg: h } = await import("./toImg-7a64999f.js");
17582
17582
  return h(i, { ...t, ...f || {}, [$e]: !0 });
17583
17583
  }, canvas: async (f) => {
17584
- let { toCanvas: h } = await import("./toCanvas-562c3f18.js");
17584
+ let { toCanvas: h } = await import("./toCanvas-b64eaa3e.js");
17585
17585
  return h(i, { ...t, ...f || {}, [$e]: !0 });
17586
17586
  }, png: async (f) => {
17587
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-aa148d42.js");
17587
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-9131b570.js");
17588
17588
  return h(i, { ...t, ...f || {}, format: "png", [$e]: !0 });
17589
17589
  }, jpeg: async (f) => {
17590
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-aa148d42.js");
17590
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-9131b570.js");
17591
17591
  return h(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17592
17592
  }, jpg: async (f) => {
17593
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-aa148d42.js");
17593
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-9131b570.js");
17594
17594
  return h(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17595
17595
  }, webp: async (f) => {
17596
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-aa148d42.js");
17596
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-9131b570.js");
17597
17597
  return h(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
17598
17598
  }, blob: async (f) => {
17599
- let { toBlob: h } = await import("./toBlob-1f919cd5.js");
17599
+ let { toBlob: h } = await import("./toBlob-98323997.js");
17600
17600
  return h(i, { ...t, ...f || {}, [$e]: !0 });
17601
17601
  }, img: async (f) => {
17602
- let { toImg: h } = await import("./toImg-a6072aec.js");
17602
+ let { toImg: h } = await import("./toImg-7a64999f.js");
17603
17603
  return h(i, { ...t, ...f || {}, [$e]: !0 });
17604
17604
  } } }, l = await _p("defineExports", r), c = Object.assign({}, ...l.filter((f) => f && typeof f == "object")), s = { ...a, ...c };
17605
17605
  s.jpeg && !s.jpg && (s.jpg = (f, h) => s.jpeg(f, h));
@@ -18191,14 +18191,14 @@ const a0 = {
18191
18191
  watch: {
18192
18192
  isPlaying: {
18193
18193
  handler(e) {
18194
- e ? this.actionStatus === 4 && this.recorder && (this.recorder.startRecording(), this.actionStatus = 5, this.frameCount = 0, console.log("[BottomBar] GIF 模式开始,使用正常播放 + 事件截图")) : this.actionStatus === 5 && this.recorder && (console.log("[BottomBar] 等待最后一帧截图完成..."), setTimeout(async () => {
18194
+ e ? this.actionStatus === 4 && this.recorder && (this.recorder.startRecording(), this.actionStatus = 5, this.frameCount = 0, console.log("[BottomBar] GIF 模式开始,使用正常播放 + 事件截图")) : this.actionStatus === 5 && this.recorder ? (console.log("[BottomBar] 等待最后一帧截图完成..."), setTimeout(async () => {
18195
18195
  await this.finishGifGeneration();
18196
- }, 2e3));
18196
+ }, 2e3)) : this.clear();
18197
18197
  }
18198
18198
  },
18199
18199
  enabled: {
18200
18200
  handler(e) {
18201
- e ? this.actionStatus = 1 : this.clear();
18201
+ e && (this.actionStatus = 1);
18202
18202
  }
18203
18203
  }
18204
18204
  },
@@ -18363,7 +18363,7 @@ function u0(e, t, o, i, a, r) {
18363
18363
  ], 6)) : N("", !0)
18364
18364
  ]);
18365
18365
  }
18366
- const p0 = /* @__PURE__ */ ne(a0, [["render", u0], ["__scopeId", "data-v-561badd1"]]);
18366
+ const p0 = /* @__PURE__ */ ne(a0, [["render", u0], ["__scopeId", "data-v-07609a91"]]);
18367
18367
  const g0 = {
18368
18368
  name: "IdmBottomBar",
18369
18369
  components: { DateTimePicker: ta, IdmCapture: p0 },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as M, D as g, L as n, a as x, b as D, M as T, g as S, f as W, P as f, d as h, T as k, V as y, W as V, e as d } from "./index-223dd25b.js";
1
+ import { c as M, D as g, L as n, a as x, b as D, M as T, g as S, f as W, P as f, d as h, T as k, V as y, W as V, e as d } from "./index-4737b244.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";