@idmwx/idmui-gl4 2.5.0 → 2.5.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-7d123658.js";
1
+ import { l as b } from "./index-9e5296a5.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-7bba9867.js";
1
+ import { W as a } from "./chunk-3VYIPD3A-ba1cb73b.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-7bba9867.js";
1
+ import { W as m } from "./chunk-3VYIPD3A-ba1cb73b.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-35a51ff3.js";
2
- import { W as f } from "./chunk-3VYIPD3A-7bba9867.js";
3
- import "./index-7d123658.js";
1
+ import { m as d } from "./chunk-T4JIPPZO-24f87493.js";
2
+ import { W as f } from "./chunk-3VYIPD3A-ba1cb73b.js";
3
+ import "./index-9e5296a5.js";
4
4
  import "axios";
5
5
  import "vuetify";
6
6
  import "vue";
@@ -17553,52 +17553,52 @@ Me.capture = async (e, t, o) => {
17553
17553
  if (o !== xr)
17554
17554
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17555
17555
  let i = await wr(e, t), a = { img: async (f, d) => {
17556
- let { toImg: u } = await import("./toImg-fda395a3.js");
17556
+ let { toImg: u } = await import("./toImg-a03147f8.js");
17557
17557
  return u(i, { ...f, ...d || {} });
17558
17558
  }, svg: async (f, d) => {
17559
- let { toSvg: u } = await import("./toImg-fda395a3.js");
17559
+ let { toSvg: u } = await import("./toImg-a03147f8.js");
17560
17560
  return u(i, { ...f, ...d || {} });
17561
17561
  }, canvas: async (f, d) => {
17562
- let { toCanvas: u } = await import("./toCanvas-6cce7667.js");
17562
+ let { toCanvas: u } = await import("./toCanvas-10f5b117.js");
17563
17563
  return u(i, { ...f, ...d || {} });
17564
17564
  }, blob: async (f, d) => {
17565
- let { toBlob: u } = await import("./toBlob-943afae5.js");
17565
+ let { toBlob: u } = await import("./toBlob-310d782f.js");
17566
17566
  return u(i, { ...f, ...d || {} });
17567
17567
  }, png: async (f, d) => {
17568
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-3680a964.js");
17568
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-74c6389f.js");
17569
17569
  return u(i, { ...f, ...d || {}, format: "png" });
17570
17570
  }, jpeg: async (f, d) => {
17571
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-3680a964.js");
17571
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-74c6389f.js");
17572
17572
  return u(i, { ...f, ...d || {}, format: "jpeg" });
17573
17573
  }, webp: async (f, d) => {
17574
- let { rasterize: u } = await import("./rasterize-JS5G2XHH-3680a964.js");
17574
+ let { rasterize: u } = await import("./rasterize-JS5G2XHH-74c6389f.js");
17575
17575
  return u(i, { ...f, ...d || {}, format: "webp" });
17576
17576
  }, download: async (f, d) => {
17577
- let { download: u } = await import("./download-3d60b5fc.js");
17577
+ let { download: u } = await import("./download-9bad9665.js");
17578
17578
  return u(i, { ...f, ...d || {} });
17579
17579
  } }, r = { ...t, export: { url: i }, exports: { svg: async (f) => {
17580
- let { toSvg: d } = await import("./toImg-fda395a3.js");
17580
+ let { toSvg: d } = await import("./toImg-a03147f8.js");
17581
17581
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17582
17582
  }, canvas: async (f) => {
17583
- let { toCanvas: d } = await import("./toCanvas-6cce7667.js");
17583
+ let { toCanvas: d } = await import("./toCanvas-10f5b117.js");
17584
17584
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17585
17585
  }, png: async (f) => {
17586
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-3680a964.js");
17586
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-74c6389f.js");
17587
17587
  return d(i, { ...t, ...f || {}, format: "png", [$e]: !0 });
17588
17588
  }, jpeg: async (f) => {
17589
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-3680a964.js");
17589
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-74c6389f.js");
17590
17590
  return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17591
17591
  }, jpg: async (f) => {
17592
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-3680a964.js");
17592
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-74c6389f.js");
17593
17593
  return d(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
17594
17594
  }, webp: async (f) => {
17595
- let { rasterize: d } = await import("./rasterize-JS5G2XHH-3680a964.js");
17595
+ let { rasterize: d } = await import("./rasterize-JS5G2XHH-74c6389f.js");
17596
17596
  return d(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
17597
17597
  }, blob: async (f) => {
17598
- let { toBlob: d } = await import("./toBlob-943afae5.js");
17598
+ let { toBlob: d } = await import("./toBlob-310d782f.js");
17599
17599
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17600
17600
  }, img: async (f) => {
17601
- let { toImg: d } = await import("./toImg-fda395a3.js");
17601
+ let { toImg: d } = await import("./toImg-a03147f8.js");
17602
17602
  return d(i, { ...t, ...f || {}, [$e]: !0 });
17603
17603
  } } }, l = await kp("defineExports", r), c = Object.assign({}, ...l.filter((f) => f && typeof f == "object")), s = { ...a, ...c };
17604
17604
  s.jpeg && !s.jpg && (s.jpg = (f, d) => s.jpeg(f, d));
@@ -18013,7 +18013,7 @@ class t0 {
18013
18013
  try {
18014
18014
  console.log("[GifRecorder] 开始 snapdom 截图(全屏模式)...");
18015
18015
  const r = await (await Me(o, {
18016
- filter: (l) => !(l instanceof HTMLElement && (l.classList.contains("capture-frame") || l.classList.contains("capture-area-selector")))
18016
+ filter: (l) => !(l instanceof HTMLElement && (l.classList.contains("capture-frame") || l.classList.contains("capture-selector")))
18017
18017
  })).toPng();
18018
18018
  if (console.log("[GifRecorder] snapdom 截图完成, img:", (i = r == null ? void 0 : r.src) == null ? void 0 : i.length), !r || !r.src) {
18019
18019
  console.error("[GifRecorder] snapdom 返回空图片");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as G, D as M, L as g, a as n, b as x, M as D, g as T, f as S, P as W, d as f, T as h, V as k, W as y, e as V } from "./index-7d123658.js";
1
+ import { c as G, D as M, L as g, a as n, b as x, M as D, g as T, f as S, P as W, d as f, T as h, V as k, W as y, e as V } from "./index-9e5296a5.js";
2
2
  import "axios";
3
3
  import "vuetify";
4
4
  import "vue";