@idmwx/idmui-gl4 2.6.3 → 2.6.4
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.
- package/dist/{chunk-3VYIPD3A-1f84a1b9.js → chunk-3VYIPD3A-17b64249.js} +1 -1
- package/dist/{chunk-ANSXOGKI-c27e8fbc.js → chunk-ANSXOGKI-46d7209f.js} +1 -1
- package/dist/{chunk-T4JIPPZO-1348f62a.js → chunk-T4JIPPZO-69da27e3.js} +1 -1
- package/dist/{download-8536a283.js → download-101a4a1f.js} +3 -3
- package/dist/{index-ee3e2e9c.js → index-f05d7c33.js} +35 -26
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/{rasterize-JS5G2XHH-24bd8fc4.js → rasterize-JS5G2XHH-5c492e33.js} +3 -3
- package/dist/{toBlob-ab3af0d5.js → toBlob-60a7613b.js} +3 -3
- package/dist/{toCanvas-a801c3d5.js → toCanvas-d57ef46f.js} +2 -2
- package/dist/{toImg-3c0178b4.js → toImg-2cffe07a.js} +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as a } from "./chunk-3VYIPD3A-
|
|
1
|
+
import { W as a } from "./chunk-3VYIPD3A-17b64249.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,6 +1,6 @@
|
|
|
1
|
-
import { m as d } from "./chunk-T4JIPPZO-
|
|
2
|
-
import { W as f } from "./chunk-3VYIPD3A-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { m as d } from "./chunk-T4JIPPZO-69da27e3.js";
|
|
2
|
+
import { W as f } from "./chunk-3VYIPD3A-17b64249.js";
|
|
3
|
+
import "./index-f05d7c33.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-
|
|
17557
|
+
let { toImg: u } = await import("./toImg-2cffe07a.js");
|
|
17558
17558
|
return u(i, { ...f, ...h || {} });
|
|
17559
17559
|
}, svg: async (f, h) => {
|
|
17560
|
-
let { toSvg: u } = await import("./toImg-
|
|
17560
|
+
let { toSvg: u } = await import("./toImg-2cffe07a.js");
|
|
17561
17561
|
return u(i, { ...f, ...h || {} });
|
|
17562
17562
|
}, canvas: async (f, h) => {
|
|
17563
|
-
let { toCanvas: u } = await import("./toCanvas-
|
|
17563
|
+
let { toCanvas: u } = await import("./toCanvas-d57ef46f.js");
|
|
17564
17564
|
return u(i, { ...f, ...h || {} });
|
|
17565
17565
|
}, blob: async (f, h) => {
|
|
17566
|
-
let { toBlob: u } = await import("./toBlob-
|
|
17566
|
+
let { toBlob: u } = await import("./toBlob-60a7613b.js");
|
|
17567
17567
|
return u(i, { ...f, ...h || {} });
|
|
17568
17568
|
}, png: async (f, h) => {
|
|
17569
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17569
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-5c492e33.js");
|
|
17570
17570
|
return u(i, { ...f, ...h || {}, format: "png" });
|
|
17571
17571
|
}, jpeg: async (f, h) => {
|
|
17572
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17572
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-5c492e33.js");
|
|
17573
17573
|
return u(i, { ...f, ...h || {}, format: "jpeg" });
|
|
17574
17574
|
}, webp: async (f, h) => {
|
|
17575
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17575
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-5c492e33.js");
|
|
17576
17576
|
return u(i, { ...f, ...h || {}, format: "webp" });
|
|
17577
17577
|
}, download: async (f, h) => {
|
|
17578
|
-
let { download: u } = await import("./download-
|
|
17578
|
+
let { download: u } = await import("./download-101a4a1f.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-
|
|
17581
|
+
let { toSvg: h } = await import("./toImg-2cffe07a.js");
|
|
17582
17582
|
return h(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17583
17583
|
}, canvas: async (f) => {
|
|
17584
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17584
|
+
let { toCanvas: h } = await import("./toCanvas-d57ef46f.js");
|
|
17585
17585
|
return h(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17586
17586
|
}, png: async (f) => {
|
|
17587
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17587
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-5c492e33.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-
|
|
17590
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-5c492e33.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-
|
|
17593
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-5c492e33.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-
|
|
17596
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-5c492e33.js");
|
|
17597
17597
|
return h(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
|
|
17598
17598
|
}, blob: async (f) => {
|
|
17599
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17599
|
+
let { toBlob: h } = await import("./toBlob-60a7613b.js");
|
|
17600
17600
|
return h(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17601
17601
|
}, img: async (f) => {
|
|
17602
|
-
let { toImg: h } = await import("./toImg-
|
|
17602
|
+
let { toImg: h } = await import("./toImg-2cffe07a.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));
|
|
@@ -18032,23 +18032,32 @@ class o0 {
|
|
|
18032
18032
|
}
|
|
18033
18033
|
}
|
|
18034
18034
|
processImage(t, o) {
|
|
18035
|
+
const i = window.devicePixelRatio || 1, a = this.captureRect.x * i, r = this.captureRect.y * i, l = this.captureRect.width * i, c = this.captureRect.height * i;
|
|
18035
18036
|
this.ctx.drawImage(
|
|
18036
18037
|
t,
|
|
18037
|
-
|
|
18038
|
-
|
|
18039
|
-
|
|
18040
|
-
|
|
18038
|
+
a,
|
|
18039
|
+
// 源图像x坐标(实际像素)
|
|
18040
|
+
r,
|
|
18041
|
+
// 源图像y坐标(实际像素)
|
|
18042
|
+
l,
|
|
18043
|
+
// 源图像宽度(实际像素)
|
|
18044
|
+
c,
|
|
18045
|
+
// 源图像高度(实际像素)
|
|
18041
18046
|
0,
|
|
18047
|
+
// 目标画布x坐标(CSS像素)
|
|
18042
18048
|
0,
|
|
18049
|
+
// 目标画布y坐标(CSS像素)
|
|
18043
18050
|
this.captureRect.width,
|
|
18051
|
+
// 目标画布宽度(CSS像素)
|
|
18044
18052
|
this.captureRect.height
|
|
18053
|
+
// 目标画布高度(CSS像素)
|
|
18045
18054
|
);
|
|
18046
|
-
const
|
|
18047
|
-
this.ctx.font = `bold ${
|
|
18048
|
-
const
|
|
18049
|
-
this.ctx.fillStyle = "rgba(0, 0, 0, 0.6)", this.ctx.beginPath(), this.ctx.roundRect(
|
|
18050
|
-
const
|
|
18051
|
-
this.frames.push(
|
|
18055
|
+
const s = o, d = 18, m = 8, g = 12;
|
|
18056
|
+
this.ctx.font = `bold ${d}px Arial, sans-serif`, this.ctx.textAlign = "center", this.ctx.textBaseline = "top";
|
|
18057
|
+
const y = this.ctx.measureText(s).width, f = d, h = (this.captureRect.width - y) / 2 - m * 2, u = g, x = y + m * 4, v = f + m * 2;
|
|
18058
|
+
this.ctx.fillStyle = "rgba(0, 0, 0, 0.6)", this.ctx.beginPath(), this.ctx.roundRect(h, u, x, v, 16), this.ctx.fill(), this.ctx.fillStyle = "#ffffff", this.ctx.fillText(s, this.captureRect.width / 2, g + m);
|
|
18059
|
+
const w = this.ctx.getImageData(0, 0, this.captureRect.width, this.captureRect.height);
|
|
18060
|
+
this.frames.push(w), console.log("[GifRecorder] 帧添加成功, 当前帧数:", this.frames.length);
|
|
18052
18061
|
}
|
|
18053
18062
|
/**
|
|
18054
18063
|
* 获取当前帧数
|
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-
|
|
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-f05d7c33.js";
|
|
2
2
|
import "axios";
|
|
3
3
|
import "vuetify";
|
|
4
4
|
import "vue";
|