@idmwx/idmui-gl4 2.6.4 → 2.6.6
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-17b64249.js → chunk-3VYIPD3A-3b78f690.js} +1 -1
- package/dist/{chunk-ANSXOGKI-46d7209f.js → chunk-ANSXOGKI-b4c88107.js} +1 -1
- package/dist/{chunk-T4JIPPZO-69da27e3.js → chunk-T4JIPPZO-67b20721.js} +1 -1
- package/dist/{download-101a4a1f.js → download-7ac899e6.js} +3 -3
- package/dist/{index-f05d7c33.js → index-091de948.js} +21 -23
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/mapbox/src/components/capture/index.vue.d.ts +0 -1
- package/dist/{rasterize-JS5G2XHH-5c492e33.js → rasterize-JS5G2XHH-d8fb9215.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{toBlob-60a7613b.js → toBlob-690bbc0e.js} +3 -3
- package/dist/{toCanvas-d57ef46f.js → toCanvas-96b70c4b.js} +2 -2
- package/dist/{toImg-2cffe07a.js → toImg-0071ec16.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-3b78f690.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-67b20721.js";
|
|
2
|
+
import { W as f } from "./chunk-3VYIPD3A-3b78f690.js";
|
|
3
|
+
import "./index-091de948.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-0071ec16.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-0071ec16.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-96b70c4b.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-690bbc0e.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-d8fb9215.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-d8fb9215.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-d8fb9215.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-7ac899e6.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-0071ec16.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-96b70c4b.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-d8fb9215.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-d8fb9215.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-d8fb9215.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-d8fb9215.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-690bbc0e.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-0071ec16.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));
|
|
@@ -18052,7 +18052,7 @@ class o0 {
|
|
|
18052
18052
|
this.captureRect.height
|
|
18053
18053
|
// 目标画布高度(CSS像素)
|
|
18054
18054
|
);
|
|
18055
|
-
const s = o, d =
|
|
18055
|
+
const s = o, d = Math.max(this.captureRect.width / 48, this.captureRect.height / 48), m = 8, g = 12;
|
|
18056
18056
|
this.ctx.font = `bold ${d}px Arial, sans-serif`, this.ctx.textAlign = "center", this.ctx.textBaseline = "top";
|
|
18057
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
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);
|
|
@@ -18173,7 +18173,6 @@ const a0 = {
|
|
|
18173
18173
|
},
|
|
18174
18174
|
frameCount: 0,
|
|
18175
18175
|
blob: null,
|
|
18176
|
-
ossClient: null,
|
|
18177
18176
|
gifUrl: ""
|
|
18178
18177
|
};
|
|
18179
18178
|
},
|
|
@@ -18207,7 +18206,6 @@ const a0 = {
|
|
|
18207
18206
|
}
|
|
18208
18207
|
},
|
|
18209
18208
|
async mounted() {
|
|
18210
|
-
this.ossClient = await Mr.create(this.token);
|
|
18211
18209
|
},
|
|
18212
18210
|
methods: {
|
|
18213
18211
|
handleMouseDown(e) {
|
|
@@ -18273,13 +18271,13 @@ const a0 = {
|
|
|
18273
18271
|
this.actionStatus = 0, this.frameCount = 0, this.blob = null, this.gifUrl = "", this.recorder && ((e = this.recorder) == null || e.reset(), this.recorder = null), this.$emit("closeRecord"), console.log("[BottomBar] 关闭录制功能,清空数据");
|
|
18274
18272
|
},
|
|
18275
18273
|
async handleUpload(e) {
|
|
18276
|
-
var
|
|
18274
|
+
var a;
|
|
18277
18275
|
console.log("[BottomBar] 开始上传");
|
|
18278
18276
|
const t = {
|
|
18279
18277
|
stream: e,
|
|
18280
18278
|
ext: "gif"
|
|
18281
|
-
}, o = await (
|
|
18282
|
-
this.gifUrl = ((a =
|
|
18279
|
+
}, o = await Mr.create(this.token), i = await (o == null ? void 0 : o.put2HZ("/share", [t]));
|
|
18280
|
+
this.gifUrl = ((a = i == null ? void 0 : i[0]) == null ? void 0 : a.url) || "", console.log("[BottomBar] 上传成功"), this.actionStatus = 7;
|
|
18283
18281
|
},
|
|
18284
18282
|
handleDownload() {
|
|
18285
18283
|
const t = `ORM-Record-${G().format("yyyyMMDD-HHmm")}.gif`;
|
|
@@ -18365,7 +18363,7 @@ function u0(e, t, o, i, a, r) {
|
|
|
18365
18363
|
], 6)) : N("", !0)
|
|
18366
18364
|
]);
|
|
18367
18365
|
}
|
|
18368
|
-
const p0 = /* @__PURE__ */ ne(a0, [["render", u0], ["__scopeId", "data-v-
|
|
18366
|
+
const p0 = /* @__PURE__ */ ne(a0, [["render", u0], ["__scopeId", "data-v-f5316abe"]]);
|
|
18369
18367
|
const g0 = {
|
|
18370
18368
|
name: "IdmBottomBar",
|
|
18371
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-
|
|
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-091de948.js";
|
|
2
2
|
import "axios";
|
|
3
3
|
import "vuetify";
|
|
4
4
|
import "vue";
|