@idmwx/idmui-gl4 2.4.9 → 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-d0ef10ca.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-5f949d1e.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-5f949d1e.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-5461e68d.js";
2
- import { W as f } from "./chunk-3VYIPD3A-5f949d1e.js";
3
- import "./index-d0ef10ca.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-42e39379.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-42e39379.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-56baa693.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-32f458d6.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-5f8e9eae.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-5f8e9eae.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-5f8e9eae.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-0c2430a1.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-42e39379.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-56baa693.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-5f8e9eae.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-5f8e9eae.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-5f8e9eae.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-5f8e9eae.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-32f458d6.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-42e39379.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 返回空图片");
@@ -18343,7 +18343,7 @@ function y0(e, t, o, i, a, r) {
18343
18343
  n("div", n0, b(a.selection.width) + " × " + b(a.selection.height), 1)
18344
18344
  ]),
18345
18345
  n("div", {
18346
- class: "action-buttons px-2 rounded font-weight-bold bg-background d-flex align-center justify-end ga-4",
18346
+ class: "action-status mt-2 px-2 rounded font-weight-bold bg-background d-flex align-center justify-end ga-4",
18347
18347
  onMousedown: t[5] || (t[5] = ze(() => {
18348
18348
  }, ["stop"])),
18349
18349
  onMouseup: t[6] || (t[6] = ze(() => {
@@ -18379,7 +18379,7 @@ function y0(e, t, o, i, a, r) {
18379
18379
  ]),
18380
18380
  _: 1
18381
18381
  }),
18382
- k(h),
18382
+ k(h, { class: "w-100" }),
18383
18383
  k(g, { class: "flex-1-1-0 d-flex flex-column align-center justify-center pa-8 ga-4 text-body-1" }, {
18384
18384
  default: C(() => {
18385
18385
  var y, f, d;
@@ -18436,7 +18436,7 @@ function y0(e, t, o, i, a, r) {
18436
18436
  })) : N("", !0)
18437
18437
  ]);
18438
18438
  }
18439
- const b0 = /* @__PURE__ */ ne(o0, [["render", y0], ["__scopeId", "data-v-44b53e8c"]]);
18439
+ const b0 = /* @__PURE__ */ ne(o0, [["render", y0], ["__scopeId", "data-v-9bb76d33"]]);
18440
18440
  const w0 = {
18441
18441
  name: "IdmBottomBar",
18442
18442
  components: { DateTimePicker: ta, IdmCapture: b0 },
@@ -18663,7 +18663,7 @@ function S0(e, t, o, i, a, r) {
18663
18663
  variant: "text",
18664
18664
  color: a.gifEnabled ? "primary" : "",
18665
18665
  class: "mr-1",
18666
- style: { "margin-top": "1px" },
18666
+ style: { "margin-top": "-2px" },
18667
18667
  onClick: t[5] || (t[5] = (u) => a.gifEnabled = !a.gifEnabled)
18668
18668
  }), {
18669
18669
  default: C(() => t[12] || (t[12] = [
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-d0ef10ca.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";