dascom-le-editor 0.0.28 → 0.0.29

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.
@@ -86255,7 +86255,7 @@ const Fbe = {
86255
86255
  let m = null;
86256
86256
  async function w() {
86257
86257
  if (m) return m;
86258
- const D = await import("./pdf-CL8flbgP.js").then((N) => N.p), R = await import("./pdf.worker-D7Ag4Z1H.js");
86258
+ const D = await import("./pdf-BJzPT5eI.js").then((N) => N.p), R = await import("./pdf.worker-D7Ag4Z1H.js");
86259
86259
  return D.GlobalWorkerOptions.workerSrc = R.default, m = D, m;
86260
86260
  }
86261
86261
  async function y(D) {
@@ -94455,7 +94455,7 @@ const eCe = {
94455
94455
  label: "间距",
94456
94456
  comp: Ez
94457
94457
  }
94458
- ]), A = (h) => {
94458
+ ]), A = async (h) => {
94459
94459
  var p;
94460
94460
  if (h === "ok") {
94461
94461
  if (l.setError) {
@@ -94464,9 +94464,13 @@ const eCe = {
94464
94464
  }
94465
94465
  delete l.setError, a.value = !1;
94466
94466
  const v = o.getActiveTab(), m = v.config;
94467
- JSON.stringify(m) !== JSON.stringify(l) && ((p = u.value.getCanvas()) == null || p.fire("custom:object:checkdirty", { isToDirty: !0 })), v.config = l, u.value.labelConfig = l, Cn(() => {
94468
- Bt.emit("refresh-editor", u.value), Bt.emit("refresh-preview");
94469
- });
94467
+ JSON.stringify(m) !== JSON.stringify(l) && ((p = u.value.getCanvas()) == null || p.fire("custom:object:checkdirty", { isToDirty: !0 })), v.config = l, u.value.labelConfig = l, await Cn(), Bt.emit("refresh-editor", u.value);
94468
+ const w = u.value.getPlugin("WorkspacePlugin");
94469
+ await (w == null ? void 0 : w.setBackground({
94470
+ color: l.backgroundColor || "#FFFFFFFF",
94471
+ image: l.backgroundImage || "",
94472
+ cover: l.backgroundImageCover !== !1
94473
+ })), Bt.emit("refresh-preview");
94470
94474
  } else
94471
94475
  a.value = !1;
94472
94476
  };
@@ -94521,7 +94525,7 @@ const eCe = {
94521
94525
  }, 8, ["open"]);
94522
94526
  };
94523
94527
  }
94524
- }), TCe = /* @__PURE__ */ xn(DCe, [["__scopeId", "data-v-2c89b580"]]), u5 = "图层", kCe = /^图层\s+(\d+)$/, v8 = 2;
94528
+ }), TCe = /* @__PURE__ */ xn(DCe, [["__scopeId", "data-v-7792fb6d"]]), u5 = "图层", kCe = /^图层\s+(\d+)$/, v8 = 2;
94525
94529
  function kL(n) {
94526
94530
  return n.reduce((o, a) => {
94527
94531
  var l;
@@ -102826,7 +102830,7 @@ const OMe = { key: 0 }, EMe = /* @__PURE__ */ Pe({
102826
102830
  let m = null;
102827
102831
  async function w() {
102828
102832
  if (m) return m;
102829
- const R = await import("./pdf-CL8flbgP.js").then((j) => j.p), N = await import("./pdf.worker-D7Ag4Z1H.js");
102833
+ const R = await import("./pdf-BJzPT5eI.js").then((j) => j.p), N = await import("./pdf.worker-D7Ag4Z1H.js");
102830
102834
  return R.GlobalWorkerOptions.workerSrc = N.default, m = R, m;
102831
102835
  }
102832
102836
  async function y(R) {
@@ -13,7 +13,7 @@ var he = (St, d, lt, c) => ({
13
13
  return t(St, d, c);
14
14
  }
15
15
  });
16
- import { g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./main-CpFkjUmb.js";
16
+ import { g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./main-YejiOk2c.js";
17
17
  function _mergeNamespaces(St, d) {
18
18
  for (var lt = 0; lt < d.length; lt++) {
19
19
  const c = d[lt];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dascom-le-editor",
3
3
  "private": false,
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",