@whcecw/maotu 0.0.33 → 0.0.34

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/maotu.es.js CHANGED
@@ -17723,7 +17723,7 @@ const VPopover = "popover", ElPopoverDirective = withInstallDirective(directive_
17723
17723
  ]),
17724
17724
  _: 1
17725
17725
  })) : createCommentVNode("", !0),
17726
- Wg[10] || (Wg[10] = createElementVNode("span", { class: "header-toolbar-hint" }, "按住空白处可拖拽平移画布 · 双击图元重命名", -1))
17726
+ Wg[10] || (Wg[10] = createElementVNode("span", { class: "header-toolbar-hint" }, "按住空白处可拖拽平移画布", -1))
17727
17727
  ]),
17728
17728
  createElementVNode("div", _hoisted_5$9, [
17729
17729
  createVNode(unref(ElButton), {
@@ -17772,7 +17772,7 @@ const VPopover = "popover", ElPopoverDirective = withInstallDirective(directive_
17772
17772
  ])
17773
17773
  ]));
17774
17774
  }
17775
- }), index_vue_vue_type_style_index_0_scoped_effd7bcb_lang = "", HeaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-effd7bcb"]]), globalStore = reactive({
17775
+ }), index_vue_vue_type_style_index_0_scoped_77388377_lang = "", HeaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-77388377"]]), globalStore = reactive({
17776
17776
  intention: "none",
17777
17777
  create_item_info: null,
17778
17778
  selected_items_id: [],
@@ -17996,46 +17996,13 @@ const VPopover = "popover", ElPopoverDirective = withInstallDirective(directive_
17996
17996
  }), nextTick(() => {
17997
17997
  useUpdateSysLineRect(Ag, eg, Ig);
17998
17998
  });
17999
- }, MAX_CANVAS_BG_EDGE = 16384;
17999
+ };
18000
18000
  function loadImageFromDataUrl(Ag) {
18001
18001
  return new Promise((gg, eg) => {
18002
18002
  const Ig = new Image();
18003
18003
  Ig.onload = () => gg(Ig), Ig.onerror = () => eg(new Error("图片加载失败")), Ig.src = Ag;
18004
18004
  });
18005
18005
  }
18006
- async function rotatePortraitBackgroundToLandscape(Ag) {
18007
- const gg = Ag.naturalWidth, eg = Ag.naturalHeight;
18008
- if (!gg || !eg || gg >= eg)
18009
- return { img: Ag, width: gg, height: eg, rotated: !1 };
18010
- const Ig = document.createElement("canvas");
18011
- Ig.width = eg, Ig.height = gg;
18012
- const Cg = Ig.getContext("2d");
18013
- if (!Cg)
18014
- throw new Error("无法创建画布上下文");
18015
- Cg.translate(0, Ig.height), Cg.rotate(-Math.PI / 2), Cg.drawImage(Ag, 0, 0, gg, eg);
18016
- const tg = Ig.toDataURL("image/jpeg", 0.88);
18017
- return {
18018
- img: await loadImageFromDataUrl(tg),
18019
- width: eg,
18020
- height: gg,
18021
- rotated: !0
18022
- };
18023
- }
18024
- function scaleImageToDataUrl(Ag, gg, eg, Ig, Cg, tg) {
18025
- const ig = document.createElement("canvas");
18026
- ig.width = gg, ig.height = eg;
18027
- const ng = ig.getContext("2d");
18028
- if (!ng)
18029
- throw new Error("无法创建画布上下文");
18030
- return ng.drawImage(Ag, 0, 0, gg, eg), {
18031
- dataUrl: ig.toDataURL("image/jpeg", 0.88),
18032
- width: gg,
18033
- height: eg,
18034
- originalWidth: Ig,
18035
- originalHeight: Cg,
18036
- scaled: tg
18037
- };
18038
- }
18039
18006
  async function processCanvasBackgroundUrl(Ag, gg, eg) {
18040
18007
  if (gg && eg)
18041
18008
  return {
@@ -18046,26 +18013,17 @@ async function processCanvasBackgroundUrl(Ag, gg, eg) {
18046
18013
  originalHeight: eg,
18047
18014
  scaled: !1
18048
18015
  };
18049
- const Ig = await loadImageFromDataUrl(Ag);
18050
- let Cg = Ig.naturalWidth, tg = Ig.naturalHeight;
18016
+ const Ig = await loadImageFromDataUrl(Ag), Cg = Ig.naturalWidth, tg = Ig.naturalHeight;
18051
18017
  if (!Cg || !tg)
18052
18018
  throw new Error("无法读取背景尺寸");
18053
- const ig = await rotatePortraitBackgroundToLandscape(Ig);
18054
- let ng = ig.img, lg = ig.width, og = ig.height, sg = !1;
18055
- ig.rotated && (Cg = lg, tg = og);
18056
- const rg = Math.max(lg, og);
18057
- if (rg > MAX_CANVAS_BG_EDGE) {
18058
- const cg = MAX_CANVAS_BG_EDGE / rg;
18059
- lg = Math.max(1, Math.floor(lg * cg)), og = Math.max(1, Math.floor(og * cg)), sg = !0;
18060
- }
18061
- return !sg && !ig.rotated ? {
18019
+ return {
18062
18020
  dataUrl: Ag,
18063
- width: lg,
18064
- height: og,
18021
+ width: Cg,
18022
+ height: tg,
18065
18023
  originalWidth: Cg,
18066
18024
  originalHeight: tg,
18067
18025
  scaled: !1
18068
- } : scaleImageToDataUrl(ng, lg, og, Cg, tg, sg);
18026
+ };
18069
18027
  }
18070
18028
  const createGroupInfo = (Ag, gg, eg, Ig) => {
18071
18029
  let Cg = 1 / 0, tg = 1 / 0, ig = -1 / 0, ng = -1 / 0;
@@ -18569,7 +18527,7 @@ const blobToBase64 = (Ag) => new Promise(function(gg, eg) {
18569
18527
  }, _hoisted_1$v = {
18570
18528
  id: "mt-left-aside",
18571
18529
  class: "left-aside-root"
18572
- }, _hoisted_2$j = { class: "left-aside-head" }, _hoisted_3$g = { class: "left-aside-list-wrap" }, _hoisted_4$a = { class: "left-aside-collapse-title" }, _hoisted_5$8 = { class: "left-aside-collapse-label" }, _hoisted_6$8 = { class: "left-aside-collapse-count" }, _hoisted_7$6 = { class: "left-aside-card-grid" }, _hoisted_8$5 = ["onDragstart", "onTouchstartPassive"], _hoisted_9$5 = { class: "left-aside-card-thumb" }, _hoisted_10$4 = ["src", "alt"], _hoisted_11$4 = ["title"], _hoisted_12$2 = { class: "left-aside-card-sub" }, _hoisted_13$1 = { class: "flex" }, _hoisted_14$1 = { class: "flex justify-center" }, _hoisted_15$1 = { key: 0 }, _hoisted_16 = { class: "flex flex-wrap" }, _hoisted_17 = ["onMouseenter"], _hoisted_18 = { class: "w-60px h-60px flex justify-center items-center" }, _hoisted_19 = {
18530
+ }, _hoisted_2$j = { class: "left-aside-head" }, _hoisted_3$g = { class: "left-aside-list-wrap" }, _hoisted_4$a = { class: "left-aside-collapse-title" }, _hoisted_5$8 = { class: "left-aside-collapse-label" }, _hoisted_6$8 = { class: "left-aside-collapse-count" }, _hoisted_7$6 = { class: "left-aside-card-grid" }, _hoisted_8$5 = ["onDragstart", "onTouchstartPassive"], _hoisted_9$4 = { class: "left-aside-card-thumb" }, _hoisted_10$4 = ["src", "alt"], _hoisted_11$4 = ["title"], _hoisted_12$2 = { class: "left-aside-card-sub" }, _hoisted_13$1 = { class: "flex" }, _hoisted_14$1 = { class: "flex justify-center" }, _hoisted_15$1 = { key: 0 }, _hoisted_16 = { class: "flex flex-wrap" }, _hoisted_17 = ["onMouseenter"], _hoisted_18 = { class: "w-60px h-60px flex justify-center items-center" }, _hoisted_19 = {
18573
18531
  key: 0,
18574
18532
  class: "absolute w-160px h-160px left-0 top-0 opacity-80 bg-light-300 flex justify-center items-center"
18575
18533
  }, _sfc_main$y = /* @__PURE__ */ defineComponent({
@@ -18734,7 +18692,7 @@ const blobToBase64 = (Ag) => new Promise(function(gg, eg) {
18734
18692
  onDragstart: (Kg) => Wg(Ng, Yg.id),
18735
18693
  onTouchstartPassive: (Kg) => Wg(Ng, Yg.id)
18736
18694
  }, [
18737
- createElementVNode("div", _hoisted_9$5, [
18695
+ createElementVNode("div", _hoisted_9$4, [
18738
18696
  createElementVNode("img", {
18739
18697
  draggable: "false",
18740
18698
  class: "left-aside-card-image select-none",
@@ -19061,7 +19019,7 @@ const blobToBase64 = (Ag) => new Promise(function(gg, eg) {
19061
19019
  fontSize: {
19062
19020
  title: "文字大小",
19063
19021
  type: "number",
19064
- val: 18
19022
+ val: 40
19065
19023
  },
19066
19024
  fill: {
19067
19025
  title: "文字颜色",
@@ -19441,7 +19399,7 @@ const blobToBase64 = (Ag) => new Promise(function(gg, eg) {
19441
19399
  ], 12, _hoisted_2$i))), 128))
19442
19400
  ]));
19443
19401
  }
19444
- }), index_vue_vue_type_style_index_0_scoped_d359f9ac_lang = "", GroupRender = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-d359f9ac"]]), _hoisted_1$s = ["id"], _hoisted_2$h = ["fill"], _hoisted_3$f = ["id"], _hoisted_4$9 = ["fill"], _hoisted_5$7 = ["d", "stroke", "stroke-width", "stroke-dasharray", "marker-start", "marker-end"], _hoisted_6$7 = ["from", "to", "dur"], _hoisted_7$5 = ["d", "stroke-width", "marker-start", "marker-end"], _hoisted_8$4 = ["d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_9$4 = ["from", "to", "dur"], _hoisted_10$3 = ["r", "fill"], _hoisted_11$3 = ["path", "dur"], _hoisted_12$1 = { key: 2 }, _hoisted_13 = ["cx", "cy", "stroke", "onMousedown", "onTouchstartPassive"], _hoisted_14 = { key: 3 }, _hoisted_15 = ["id", "cx", "cy", "stroke", "onMousedown", "onTouchstartPassive"], _sfc_main$v = /* @__PURE__ */ defineComponent({
19402
+ }), index_vue_vue_type_style_index_0_scoped_d359f9ac_lang = "", GroupRender = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-d359f9ac"]]), _hoisted_1$s = ["id"], _hoisted_2$h = ["fill"], _hoisted_3$f = ["id"], _hoisted_4$9 = ["fill"], _hoisted_5$7 = ["d", "stroke", "stroke-width", "stroke-dasharray", "marker-start", "marker-end"], _hoisted_6$7 = ["from", "to", "dur"], _hoisted_7$5 = ["d", "stroke-width", "marker-start", "marker-end"], _hoisted_8$4 = ["d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_9$3 = ["from", "to", "dur"], _hoisted_10$3 = ["r", "fill"], _hoisted_11$3 = ["path", "dur"], _hoisted_12$1 = { key: 2 }, _hoisted_13 = ["cx", "cy", "stroke", "onMousedown", "onTouchstartPassive"], _hoisted_14 = { key: 3 }, _hoisted_15 = ["id", "cx", "cy", "stroke", "onMousedown", "onTouchstartPassive"], _sfc_main$v = /* @__PURE__ */ defineComponent({
19445
19403
  __name: "index",
19446
19404
  props: {
19447
19405
  itemJson: {},
@@ -19718,7 +19676,7 @@ const blobToBase64 = (Ag) => new Promise(function(gg, eg) {
19718
19676
  dur: `${eg.itemJson.props.ani_dur.val < 1 ? 1 : eg.itemJson.props.ani_dur.val}s`,
19719
19677
  repeatCount: "indefinite",
19720
19678
  fill: "freeze"
19721
- }, null, 8, _hoisted_9$4)
19679
+ }, null, 8, _hoisted_9$3)
19722
19680
  ], 8, _hoisted_8$4)) : eg.itemJson.props.ani_type.val === "track" ? (openBlock(), createElementBlock("circle", {
19723
19681
  key: 1,
19724
19682
  cx: "0",
@@ -22371,7 +22329,7 @@ const _hoisted_1$a = { class: "main-panel-shell w-full h-full flex flex-col over
22371
22329
  ]);
22372
22330
  };
22373
22331
  }
22374
- }), index_vue_vue_type_style_index_0_scoped_eba46ced_lang = "", MainPanel = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-eba46ced"]]), _hoisted_1$9 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_2$6 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_3$5 = { class: "right-aside-field" }, _hoisted_4$5 = { class: "flex justify-between items-center px-8px py-8px border-t border-#e4e7ed" }, _hoisted_5$4 = { class: "right-aside-field right-aside-color-field" }, _hoisted_6$4 = { class: "right-aside-color-hex" }, _hoisted_7$3 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_8$3 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_9$3 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_10$2 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_11$2 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
22332
+ }), index_vue_vue_type_style_index_0_scoped_eba46ced_lang = "", MainPanel = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-eba46ced"]]), _hoisted_1$9 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_2$6 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_3$5 = { class: "right-aside-field" }, _hoisted_4$5 = { class: "flex justify-between items-center px-8px py-8px border-t border-#e4e7ed" }, _hoisted_5$4 = { class: "right-aside-field right-aside-color-field" }, _hoisted_6$4 = { class: "right-aside-color-hex" }, _hoisted_7$3 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_8$3 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_9$2 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_10$2 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_11$2 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
22375
22333
  __name: "page-setting",
22376
22334
  props: {
22377
22335
  canvasCfg: {},
@@ -22619,7 +22577,7 @@ const _hoisted_1$a = { class: "main-panel-shell w-full h-full flex flex-col over
22619
22577
  }),
22620
22578
  createVNode(unref(ElFormItem), { label: "网格" }, {
22621
22579
  default: withCtx(() => [
22622
- createElementVNode("div", _hoisted_9$3, [
22580
+ createElementVNode("div", _hoisted_9$2, [
22623
22581
  createVNode(unref(ElSwitch), {
22624
22582
  modelValue: cg.value,
22625
22583
  "onUpdate:modelValue": mg[8] || (mg[8] = (Zg) => cg.value = Zg),
@@ -38420,7 +38378,7 @@ langTools.addCompleter({
38420
38378
  const _hoisted_1$6 = {
38421
38379
  key: 0,
38422
38380
  class: "right-aside-item-setting select-none"
38423
- }, _hoisted_2$5 = { class: "right-aside-field" }, _hoisted_3$4 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_4$4 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_5$3 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_6$3 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_7$2 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_8$2 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_9$2 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_10$1 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_11$1 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_12 = { class: "right-aside-field right-aside-switch-field" }, _sfc_main$8 = /* @__PURE__ */ defineComponent({
38381
+ }, _hoisted_2$5 = { class: "right-aside-field" }, _hoisted_3$4 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_4$4 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_5$3 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_6$3 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_7$2 = { class: "right-aside-field right-aside-number-field right-aside-plain-number" }, _hoisted_8$2 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_9$1 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_10$1 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_11$1 = { class: "right-aside-field right-aside-switch-field" }, _hoisted_12 = { class: "right-aside-field right-aside-switch-field" }, _sfc_main$8 = /* @__PURE__ */ defineComponent({
38424
38382
  __name: "select-item-setting",
38425
38383
  props: {
38426
38384
  itemJson: {},
@@ -38764,7 +38722,7 @@ const _hoisted_1$6 = {
38764
38722
  size: "small"
38765
38723
  }, {
38766
38724
  default: withCtx(() => [
38767
- createElementVNode("div", _hoisted_9$2, [
38725
+ createElementVNode("div", _hoisted_9$1, [
38768
38726
  createVNode(unref(ElSwitch), {
38769
38727
  size: "small",
38770
38728
  modelValue: dg.value,
@@ -38838,10 +38796,10 @@ const _hoisted_1$6 = {
38838
38796
  }, 8, ["modelValue"])
38839
38797
  ])) : createCommentVNode("", !0);
38840
38798
  }
38841
- }), _hoisted_1$5 = { class: "task-sop-setting" }, _hoisted_2$4 = ["aria-expanded"], _hoisted_3$3 = { class: "task-sop-body" }, _hoisted_4$3 = ["title"], _hoisted_5$2 = { class: "task-sop-name-tag" }, _hoisted_6$2 = {
38799
+ }), _hoisted_1$5 = ["aria-expanded"], _hoisted_2$4 = { class: "task-sop-body" }, _hoisted_3$3 = ["title"], _hoisted_4$3 = { class: "task-sop-name-tag" }, _hoisted_5$2 = {
38842
38800
  key: 0,
38843
38801
  class: "task-sop-list"
38844
- }, _hoisted_7$1 = ["onClick"], _hoisted_8$1 = ["title"], _hoisted_9$1 = {
38802
+ }, _hoisted_6$2 = ["onClick"], _hoisted_7$1 = ["title"], _hoisted_8$1 = {
38845
38803
  key: 1,
38846
38804
  class: "task-sop-empty"
38847
38805
  }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
@@ -38858,7 +38816,9 @@ const _hoisted_1$6 = {
38858
38816
  }, tg = computed(() => (eg.task.sopList ?? []).filter((ng) => ng.isDel !== "Y")), ig = (ng) => {
38859
38817
  ng !== eg.activeSopId && Ig("selectSop", ng);
38860
38818
  };
38861
- return (ng, lg) => (openBlock(), createElementBlock("div", _hoisted_1$5, [
38819
+ return (ng, lg) => (openBlock(), createElementBlock("div", {
38820
+ class: normalizeClass$1(["task-sop-setting", { "is-expanded": Ag.expanded }])
38821
+ }, [
38862
38822
  createElementVNode("button", {
38863
38823
  type: "button",
38864
38824
  class: "task-sop-collapse-header",
@@ -38870,13 +38830,13 @@ const _hoisted_1$6 = {
38870
38830
  "aria-hidden": "true"
38871
38831
  }, null, 2),
38872
38832
  lg[0] || (lg[0] = createElementVNode("span", { class: "task-sop-collapse-label" }, "任务与SOP", -1))
38873
- ], 8, _hoisted_2$4),
38874
- withDirectives(createElementVNode("div", _hoisted_3$3, [
38833
+ ], 8, _hoisted_1$5),
38834
+ withDirectives(createElementVNode("div", _hoisted_2$4, [
38875
38835
  createElementVNode("p", {
38876
38836
  class: "task-sop-plan",
38877
38837
  title: Ag.task.planIdName
38878
- }, toDisplayString(Ag.task.planIdName), 9, _hoisted_4$3),
38879
- createElementVNode("div", _hoisted_5$2, toDisplayString(Ag.task.taskName), 1),
38838
+ }, toDisplayString(Ag.task.planIdName), 9, _hoisted_3$3),
38839
+ createElementVNode("div", _hoisted_4$3, toDisplayString(Ag.task.taskName), 1),
38880
38840
  lg[2] || (lg[2] = createElementVNode("div", {
38881
38841
  class: "task-sop-divider",
38882
38842
  "aria-hidden": "true"
@@ -38885,7 +38845,7 @@ const _hoisted_1$6 = {
38885
38845
  createElementVNode("span", { class: "task-sop-list-title" }, "关联 SOP 列表"),
38886
38846
  createElementVNode("span", { class: "task-sop-list-hint" }, "可拖拽图元")
38887
38847
  ], -1)),
38888
- tg.value.length ? (openBlock(), createElementBlock("ul", _hoisted_6$2, [
38848
+ tg.value.length ? (openBlock(), createElementBlock("ul", _hoisted_5$2, [
38889
38849
  (openBlock(!0), createElementBlock(Fragment, null, renderList(tg.value, (og) => (openBlock(), createElementBlock("li", {
38890
38850
  key: og.sopId,
38891
38851
  class: normalizeClass$1(["task-sop-list-item", { "is-active": og.sopId === Ag.activeSopId }]),
@@ -38898,15 +38858,15 @@ const _hoisted_1$6 = {
38898
38858
  createElementVNode("span", {
38899
38859
  class: "task-sop-list-label",
38900
38860
  title: og.sopName
38901
- }, toDisplayString(og.sopName), 9, _hoisted_8$1)
38902
- ], 10, _hoisted_7$1))), 128))
38903
- ])) : (openBlock(), createElementBlock("p", _hoisted_9$1, "当前任务暂无关联 SOP"))
38861
+ }, toDisplayString(og.sopName), 9, _hoisted_7$1)
38862
+ ], 10, _hoisted_6$2))), 128))
38863
+ ])) : (openBlock(), createElementBlock("p", _hoisted_8$1, "当前任务暂无关联 SOP"))
38904
38864
  ], 512), [
38905
38865
  [vShow, Ag.expanded]
38906
38866
  ])
38907
- ]));
38867
+ ], 2));
38908
38868
  }
38909
- }), taskSopSetting_vue_vue_type_style_index_0_scoped_ac63c7f8_lang = "", TaskSopSetting = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-ac63c7f8"]]), _hoisted_1$4 = {
38869
+ }), taskSopSetting_vue_vue_type_style_index_0_scoped_bc9c9bc0_lang = "", TaskSopSetting = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-bc9c9bc0"]]), _hoisted_1$4 = {
38910
38870
  key: 0,
38911
38871
  class: "right-aside-main right-aside-view-mode"
38912
38872
  }, _hoisted_2$3 = {
@@ -57232,7 +57192,7 @@ const _hoisted_1$2 = { class: "task-timeline" }, _hoisted_2$2 = { class: "task-t
57232
57192
  const uA = await processCanvasBackgroundUrl(rA.url, rA.width, rA.height);
57233
57193
  return uA.scaled ? ElMessage.warning(
57234
57194
  `背景尺寸 ${uA.originalWidth}×${uA.originalHeight} 超出浏览器限制,已缩放为 ${uA.width}×${uA.height} 并同步画布大小`
57235
- ) : ElMessage.success(`已切换底图,画布尺寸 ${uA.width}×${uA.height}`), setCanvasBackground(globalStore.canvasCfg, uA.dataUrl, uA.width, uA.height), !0;
57195
+ ) : ElMessage.success(`已切换底图,画布尺寸 ${uA.width}×${uA.height}`), setCanvasBackground(globalStore.canvasCfg, rA.url, uA.width, uA.height), !0;
57236
57196
  } catch (uA) {
57237
57197
  console.error("[canvas-bg-preset]", uA);
57238
57198
  const MA = uA instanceof Error ? uA.message : "";
@@ -57624,7 +57584,7 @@ const _hoisted_1$2 = { class: "task-timeline" }, _hoisted_2$2 = { class: "task-t
57624
57584
  ]);
57625
57585
  };
57626
57586
  }
57627
- }), index_vue_vue_type_style_index_0_scoped_57dc5010_lang = "", MtEdit = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-57dc5010"]]), _hoisted_1 = { style: { height: "100vh" } }, _hoisted_2 = ["src"], _sfc_main = /* @__PURE__ */ defineComponent({
57587
+ }), index_vue_vue_type_style_index_0_scoped_4728ec8c_lang = "", MtEdit = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-4728ec8c"]]), _hoisted_1 = { style: { height: "100vh" } }, _hoisted_2 = ["src"], _sfc_main = /* @__PURE__ */ defineComponent({
57628
57588
  __name: "index",
57629
57589
  props: {
57630
57590
  exportJson: {},