bp-aicc-editor 1.0.0
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/LICENSE +21 -0
- package/README.EN.md +129 -0
- package/README.md +133 -0
- package/lib/accounting-BdNhlOvc.js +150 -0
- package/lib/arrow-right-ZYLcC6uE.js +24 -0
- package/lib/atlas-Dqnvg58g.js +27 -0
- package/lib/blueprint-7yYCtfFC.js +28 -0
- package/lib/border-box-BoVwKoLu.js +226 -0
- package/lib/browser_upgrade/chrome.png +0 -0
- package/lib/browser_upgrade/edge.png +0 -0
- package/lib/browser_upgrade/index.css +49 -0
- package/lib/btn-group-aVjYHP70.js +125 -0
- package/lib/btn-return-KOGYYoba.js +37 -0
- package/lib/button-base-CUvUtpPb.js +42 -0
- package/lib/cache-Cs2VtqJi.js +43 -0
- package/lib/capitalize-CJ7zhOsJ.js +46 -0
- package/lib/carousel-table-hn7W3uoD.js +163 -0
- package/lib/children-manager-CdxNQ6Oe.js +457 -0
- package/lib/circle-DdqdosvQ.js +10 -0
- package/lib/config-6kqKwjzS.js +783 -0
- package/lib/config-B1XQHD5S.js +110 -0
- package/lib/config-BqncRAOx.js +167 -0
- package/lib/config-CSUhHF5L.js +10 -0
- package/lib/config-CXGTRw74.js +743 -0
- package/lib/config-CjMfBTu9.js +75 -0
- package/lib/config-Cm22p_rY.js +40 -0
- package/lib/config-D3z2R85K.js +373 -0
- package/lib/config-D846M2Gv.js +813 -0
- package/lib/config-DHGpQmWe.js +695 -0
- package/lib/config-DJJlRxrQ.js +510 -0
- package/lib/config-DOtfpO43.js +64 -0
- package/lib/config-DS3NxQuJ.js +427 -0
- package/lib/config-DSw2PMKb.js +528 -0
- package/lib/config-DwVaqCyN.js +369 -0
- package/lib/config-Ec_zeOmT.js +10 -0
- package/lib/config-V6sABZH7.js +152 -0
- package/lib/config-XBAZDWTe.js +739 -0
- package/lib/config-ZZyCB-UG.js +210 -0
- package/lib/config-efyvf2nq.js +799 -0
- package/lib/context-Bl7hm9BN.js +5 -0
- package/lib/context-DXwgwPsi.js +5 -0
- package/lib/dashedLine-CJojzUDO.js +23 -0
- package/lib/data-CnP9NKXT.js +7 -0
- package/lib/data-field-DL4ZWkqD.js +17 -0
- package/lib/data-source-9Lgf-grI.js +78 -0
- package/lib/datav-BNctF3aF.js +89 -0
- package/lib/dater-BmOxJMnU.js +34 -0
- package/lib/db-rnJHM_q3.js +22 -0
- package/lib/decoration-ByPSHV8P.js +408 -0
- package/lib/delete-074QJWYN.js +112 -0
- package/lib/dialogBox-D3bwyGqh.js +21 -0
- package/lib/dialogSquare-C4KW-cRk.js +43 -0
- package/lib/dottedLine-CUbyTDpF.js +23 -0
- package/lib/doubleHeadedArrow-ph10_VNV.js +31 -0
- package/lib/ds-api-editor-uAArtQJI.js +115 -0
- package/lib/ds-global-editor-Cp80r2NN.js +121 -0
- package/lib/ds-sql-editor-ijeSFlXA.js +338 -0
- package/lib/ds-static-editor-CyEO_12Q.js +21592 -0
- package/lib/eightPointedStar-iyNwBma5.js +12 -0
- package/lib/empty-panel-C6Y6WgQ5.js +49 -0
- package/lib/event-DDj_G-ix.js +130 -0
- package/lib/favicon.svg +14 -0
- package/lib/filter-panel-BXIsc124.js +573 -0
- package/lib/fivePointedStar-CG-mQPKI.js +12 -0
- package/lib/fourPointedStar-Cjt9WMZi.js +12 -0
- package/lib/full-screen-By33Ud_D.js +34 -0
- package/lib/group-Bw2QYoqv.js +24 -0
- package/lib/heart-BS_j9yRq.js +4 -0
- package/lib/hexagon-BfE9vpeG.js +12 -0
- package/lib/hexagonalStar-CDF1zFRy.js +12 -0
- package/lib/icon/add.png +0 -0
- package/lib/icon/align-center.png +0 -0
- package/lib/icon/amplify.png +0 -0
- package/lib/icon/audio.png +0 -0
- package/lib/icon/bottomUp.png +0 -0
- package/lib/icon/carouselList.png +0 -0
- package/lib/icon/characters.png +0 -0
- package/lib/icon/delete.png +0 -0
- package/lib/icon/delete1.png +0 -0
- package/lib/icon/edit.png +0 -0
- package/lib/icon/file.png +0 -0
- package/lib/icon/graphic.png +0 -0
- package/lib/icon/icon/357/274/217/346/267/273/345/212/240 /347/231/275/350/211/262 1@2x.png +0 -0
- package/lib/icon/icon/357/274/217/346/267/273/345/212/240@2x.png +0 -0
- package/lib/icon/img.png +0 -0
- package/lib/icon/lock.png +0 -0
- package/lib/icon/multiline.png +0 -0
- package/lib/icon/navigate.png +0 -0
- package/lib/icon/next.png +0 -0
- package/lib/icon/pictureScrolling.png +0 -0
- package/lib/icon/previous.png +0 -0
- package/lib/icon/reduce.png +0 -0
- package/lib/icon/return.png +0 -0
- package/lib/icon/save.png +0 -0
- package/lib/icon/scBg.png +0 -0
- package/lib/icon/scrollText.png +0 -0
- package/lib/icon/search.png +0 -0
- package/lib/icon/share.png +0 -0
- package/lib/icon/topUp.png +0 -0
- package/lib/icon/upload.png +0 -0
- package/lib/icon/video.png +0 -0
- package/lib/icon/view.png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/346/234/252/351/200/211@2x.png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x(1).png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x.png +0 -0
- package/lib/iking-utils.es-Ba74AedH.js +13822 -0
- package/lib/index-B76XXskt.js +225 -0
- package/lib/index-B9lRx-kg.js +85 -0
- package/lib/index-B9nm6Rgv.js +142 -0
- package/lib/index-BAN9B0Xt.js +176 -0
- package/lib/index-BH6iU67J.js +209 -0
- package/lib/index-BSeD4M2U.js +988 -0
- package/lib/index-BbUCT3bG.js +66 -0
- package/lib/index-Bjs1bW2W.js +6291 -0
- package/lib/index-Bzc3Ri47.js +472 -0
- package/lib/index-C2ezj_lw.js +19 -0
- package/lib/index-C8Ni1uMd.js +435 -0
- package/lib/index-CCCckUnm.js +19 -0
- package/lib/index-CGni9huM.js +339 -0
- package/lib/index-CI6xXcR0.js +47 -0
- package/lib/index-CTo4-44e.js +2013 -0
- package/lib/index-CX6tHoIu.js +208 -0
- package/lib/index-Cb06BDgi.js +48 -0
- package/lib/index-CuapA_N-.js +586 -0
- package/lib/index-D0Kh7c2E.js +142 -0
- package/lib/index-D8pryMlS.js +228 -0
- package/lib/index-DGErpAp1.js +245 -0
- package/lib/index-DHe-NWes.js +415 -0
- package/lib/index-DL5IJLR7.js +156 -0
- package/lib/index-DN_9YBN_.js +957 -0
- package/lib/index-DOYvASbD.js +121 -0
- package/lib/index-D_ojDCWy.js +52 -0
- package/lib/index-DcmokBSP.js +109 -0
- package/lib/index-Dm1le54W.js +226 -0
- package/lib/index-Dpg5we85.js +127 -0
- package/lib/index-IeVkGUKs.js +146 -0
- package/lib/index-VSfx-dDV.js +87 -0
- package/lib/index-_Ya8vNUb.js +79 -0
- package/lib/index.es.js +5 -0
- package/lib/index.umd.js +99 -0
- package/lib/kebabCase-CO6lu_Gu.js +250 -0
- package/lib/keyMap-wL6Ma83z.js +91 -0
- package/lib/layer-setting-panel-C86c3fN0.js +486 -0
- package/lib/main-graph-BjOO_j7Y.js +43 -0
- package/lib/marquee-B6qUH-Kc.js +49 -0
- package/lib/message-carousel-ToN1yK7K.js +34 -0
- package/lib/multi-layout-config-DWBvxtbQ.js +312 -0
- package/lib/number-title-flop-DUzpC1bo.js +112 -0
- package/lib/orderBy--EIhNVJu.js +388 -0
- package/lib/page-config-DT1C_kDM.js +5598 -0
- package/lib/page-table-U2Zv9dzo.js +169 -0
- package/lib/paragraph-D7CutH53.js +51 -0
- package/lib/pentagon-6sVh023X.js +12 -0
- package/lib/plus-DjE6l8qH.js +24 -0
- package/lib/rank-board-Cgj8rzLd.js +121 -0
- package/lib/rectangle-BQXP06pk.js +10 -0
- package/lib/roundedRectangle-DnEbzLph.js +10 -0
- package/lib/scroll-article-BC3pQhTm.js +130 -0
- package/lib/scroll-rank-BsbvGjIy.js +191 -0
- package/lib/scroll-rank-bar-BfceYhB-.js +189 -0
- package/lib/scroll-table-BTbnMVFS.js +303 -0
- package/lib/search-DkzwOoCx.js +24 -0
- package/lib/select-options-BTOkre7F.js +338 -0
- package/lib/setting-panel-CMKniQhs.js +397 -0
- package/lib/source-panel-ClGOmTVn.js +557 -0
- package/lib/straightLine-DPMRNFNz.js +23 -0
- package/lib/style.css +1 -0
- package/lib/table-bar-ciEVdDFG.js +117 -0
- package/lib/transform-layer.vue_vue_type_style_index_0_scoped_04cdae36_lang-6ixEI9oF.js +593 -0
- package/lib/triangle-NkNGdZCH.js +15 -0
- package/lib/use-border-BUij5e0F.js +29 -0
- package/lib/use-data-center-Cj9FGyCg.js +31 -0
- package/lib/use-series-Cmnkexlu.js +18 -0
- package/lib/use-swiper-B17v1vT0.js +12 -0
- package/lib/vue-util-oCdnLsQn.js +6 -0
- package/lib/warning-DYO0amRd.js +25 -0
- package/package.json +154 -0
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
import { defineComponent as W, computed as g, createElementBlock as fe, openBlock as ye, createElementVNode as X, normalizeStyle as Y, toDisplayString as q, h as w, withModifiers as b, getCurrentInstance as me, ref as Z, watch as ge } from "vue";
|
|
2
|
+
import { a as H, aG as xe, C as D, _ as ve, aH as we, b as $e, aI as Ce, m as Me } from "./index-Bjs1bW2W.js";
|
|
3
|
+
import { u as U } from "./cache-Cs2VtqJi.js";
|
|
4
|
+
import { o as S, a as I, u as be, c as ze } from "./index-D0Kh7c2E.js";
|
|
5
|
+
const Se = [
|
|
6
|
+
{ direction: "lt", angle: 0, cursor: "nwse-resize", singleCursor: "nw-resize" },
|
|
7
|
+
{ direction: "t", angle: 45, cursor: "ns-resize", singleCursor: "n-resize" },
|
|
8
|
+
{ direction: "rt", angle: 90, cursor: "nesw-resize", singleCursor: "ne-resize" },
|
|
9
|
+
{ direction: "r", angle: 135, cursor: "ew-resize", singleCursor: "e-resize" },
|
|
10
|
+
{ direction: "rb", angle: 180, cursor: "nwse-resize", singleCursor: "se-resize" },
|
|
11
|
+
{ direction: "b", angle: 225, cursor: "ns-resize", singleCursor: "s-resize" },
|
|
12
|
+
{ direction: "lb", angle: 270, cursor: "nesw-resize", singleCursor: "sw-resize" },
|
|
13
|
+
{ direction: "l", angle: 315, cursor: "ew-resize", singleCursor: "w-resize" }
|
|
14
|
+
], N = [
|
|
15
|
+
{ start: 338, end: 23, cursor: "nwse-resize", singleCursor: "nw-resize" },
|
|
16
|
+
{ start: 23, end: 68, cursor: "ns-resize", singleCursor: "n-resize" },
|
|
17
|
+
{ start: 68, end: 113, cursor: "nesw-resize", singleCursor: "ne-resize" },
|
|
18
|
+
{ start: 113, end: 158, cursor: "ew-resize", singleCursor: "e-resize" },
|
|
19
|
+
{ start: 158, end: 203, cursor: "nwse-resize", singleCursor: "se-resize" },
|
|
20
|
+
{ start: 203, end: 248, cursor: "ns-resize", singleCursor: "s-resize" },
|
|
21
|
+
{ start: 248, end: 293, cursor: "nesw-resize", singleCursor: "sw-resize" },
|
|
22
|
+
{ start: 293, end: 338, cursor: "ew-resize", singleCursor: "w-resize" }
|
|
23
|
+
];
|
|
24
|
+
function Ie(e) {
|
|
25
|
+
const a = (e + 360) % 360, l = {};
|
|
26
|
+
let o = -1;
|
|
27
|
+
return Se.forEach((r) => {
|
|
28
|
+
const c = (r.angle + a) % 360, f = N.length, u = 0;
|
|
29
|
+
for (; u < f; ) {
|
|
30
|
+
o = (o + 1) % f;
|
|
31
|
+
const i = N[o];
|
|
32
|
+
if (c < 23 || c >= 338) {
|
|
33
|
+
l[r.direction] = "nwse-resize";
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
if (i.start <= c && c < i.end) {
|
|
37
|
+
l[r.direction] = i.cursor;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}), l;
|
|
42
|
+
}
|
|
43
|
+
function Le(e, a) {
|
|
44
|
+
return {
|
|
45
|
+
x: e.x + (a.x - e.x) / 2,
|
|
46
|
+
y: e.y + (a.y - e.y) / 2
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function k(e, a, l) {
|
|
50
|
+
const o = xe(l);
|
|
51
|
+
return {
|
|
52
|
+
x: (e.x - a.x) * Math.cos(o) - (e.y - a.y) * Math.sin(o) + a.x,
|
|
53
|
+
y: (e.x - a.x) * Math.sin(o) + (e.y - a.y) * Math.cos(o) + a.y
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function ke(e, a, l, o, r, c) {
|
|
57
|
+
const f = Le(l, o), u = k(o, f, -a.deg), i = k(l, f, -a.deg);
|
|
58
|
+
e[0] === "l" ? (c.x = Math.round(i.x / r), c.w = Math.round((u.x - i.x) / r)) : e[0] === "r" && (c.x = Math.round(u.x / r), c.w = Math.round((i.x - u.x) / r)), e[1] === "t" ? (c.y = Math.round(i.y / r), c.h = Math.round((u.y - i.y) / r)) : e[1] === "b" && (c.y = Math.round(u.y / r), c.h = Math.round((i.y - u.y) / r));
|
|
59
|
+
}
|
|
60
|
+
function _e(e, a, l, o, r, c, f) {
|
|
61
|
+
const u = k(o, l, -a.deg);
|
|
62
|
+
if (e === "t" || e === "b") {
|
|
63
|
+
const i = k({ x: l.x, y: u.y }, l, a.deg), h = Math.sqrt((i.x - r.x) ** 2 + (i.y - r.y) ** 2);
|
|
64
|
+
if (h > 0) {
|
|
65
|
+
const y = {
|
|
66
|
+
x: i.x - (i.x - r.x) / 2,
|
|
67
|
+
y: i.y + (r.y - i.y) / 2
|
|
68
|
+
};
|
|
69
|
+
f.h = Math.round(h / c), f.x = Math.round(y.x / c - a.w / 2), f.y = Math.round((y.y - h / 2) / c);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (e === "l" || e === "r") {
|
|
73
|
+
const i = k({ x: u.x, y: l.y }, l, a.deg), h = Math.sqrt((i.x - r.x) ** 2 + (i.y - r.y) ** 2);
|
|
74
|
+
if (h > 0) {
|
|
75
|
+
const y = {
|
|
76
|
+
x: i.x - (i.x - r.x) / 2,
|
|
77
|
+
y: i.y + (r.y - i.y) / 2
|
|
78
|
+
};
|
|
79
|
+
f.w = Math.round(h / c), f.x = Math.round((y.x - h / 2) / c), f.y = Math.round(y.y / c - a.h / 2);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function Re(e, a, l, o, r, c) {
|
|
84
|
+
e === "t" ? (c.h = Math.round(a.h + (l.y - o.y) / r), c.y = Math.round(a.y + (o.y - l.y) / r)) : e === "rt" ? (c.h = Math.round(a.h + (l.y - o.y) / r), c.w = Math.round(a.w + (o.x - l.x) / r), c.y = Math.round(a.y + (o.y - l.y) / r)) : e === "r" ? c.w = Math.round(a.w + (o.x - l.x) / r) : e === "rb" ? (c.h = Math.round(a.h + (o.y - l.y) / r), c.w = Math.round(a.w + (o.x - l.x) / r)) : e === "b" ? c.h = Math.round(a.h + (o.y - l.y) / r) : e === "lb" ? (c.h = Math.round(a.h + (o.y - l.y) / r), c.w = Math.round(a.w + (l.x - o.x) / r), c.x = Math.round(a.x + (o.x - l.x) / r)) : e === "l" ? (c.w = Math.round(a.w + (l.x - o.x) / r), c.x = Math.round(a.x + (o.x - l.x) / r)) : e === "lt" && (c.h = Math.round(a.h + (l.y - o.y) / r), c.w = Math.round(a.w + (l.x - o.x) / r), c.x = Math.round(a.x + (o.x - l.x) / r), c.y = Math.round(a.y + (o.y - l.y) / r));
|
|
85
|
+
}
|
|
86
|
+
function Fe(e, a, l, o, r, c, f) {
|
|
87
|
+
const u = { ...l.attr }, i = /* @__PURE__ */ Object.create(null);
|
|
88
|
+
let h, y, C;
|
|
89
|
+
const $ = { x: 0, y: 0 };
|
|
90
|
+
if (r)
|
|
91
|
+
y = { x: e.clientX, y: e.clientY };
|
|
92
|
+
else {
|
|
93
|
+
const x = { x: (u.x + u.w / 2) * o, y: (u.y + u.h / 2) * o };
|
|
94
|
+
h = document.getElementById("canvas-coms").getBoundingClientRect(), y = { x: e.clientX - h.left, y: e.clientY - h.top }, C = { x: x.x - (y.x - x.x), y: x.y - (y.y - x.y) };
|
|
95
|
+
}
|
|
96
|
+
const _ = (x) => {
|
|
97
|
+
r ? ($.x = x.clientX, $.y = x.clientY, Re(a, u, y, $, o, i)) : ($.x = x.clientX - h.left, $.y = x.clientY - h.top, a.length === 1 ? _e(a, u, y, $, C, o, i) : ke(a, u, $, C, o, i)), i.x != null && (l.attr.x = i.x), i.y != null && (l.attr.y = i.y), i.w != null && (l.scaling.w = Math.max(10, i.w)), i.h != null && (l.scaling.h = Math.max(10, i.h)), c();
|
|
98
|
+
}, R = () => {
|
|
99
|
+
I(document, "mousemove", _), I(document, "mouseup", R), f();
|
|
100
|
+
try {
|
|
101
|
+
U().addCache();
|
|
102
|
+
} catch (x) {
|
|
103
|
+
console.error("error: ", x);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
S(document, "mousemove", _), S(document, "mouseup", R);
|
|
107
|
+
}
|
|
108
|
+
function Oe(e, a, l, o, r, c) {
|
|
109
|
+
const { x: f, y: u } = a.attr;
|
|
110
|
+
H().coms;
|
|
111
|
+
const i = (y) => {
|
|
112
|
+
a.attr.x = f + Math.round((y.clientX - e.clientX) / l / o) * o, a.attr.y = u + Math.round((y.clientY - e.clientY) / l / o) * o, r();
|
|
113
|
+
}, h = () => {
|
|
114
|
+
I(document, "mousemove", i), I(document, "mouseup", h), c();
|
|
115
|
+
};
|
|
116
|
+
S(document, "mousemove", i), S(document, "mouseup", h);
|
|
117
|
+
}
|
|
118
|
+
function Ee(e, a, l, o) {
|
|
119
|
+
const r = a.getBoundingClientRect(), c = r.left + r.width / 2, f = r.top + r.height / 2;
|
|
120
|
+
let u = 0;
|
|
121
|
+
const i = Math.atan2(
|
|
122
|
+
f - e.clientY,
|
|
123
|
+
c - e.clientX
|
|
124
|
+
) * 180 / Math.PI - l.attr.deg, h = (C) => {
|
|
125
|
+
const $ = Math.atan2(
|
|
126
|
+
f - C.clientY,
|
|
127
|
+
c - C.clientX
|
|
128
|
+
) * 180 / Math.PI - i;
|
|
129
|
+
u = Math.round($ % 360), l.attr.deg = u < 0 ? u + 360 : u;
|
|
130
|
+
}, y = () => {
|
|
131
|
+
I(document, "mousemove", h), I(document, "mouseup", y), o(u);
|
|
132
|
+
};
|
|
133
|
+
S(document, "mousemove", h), S(document, "mouseup", y);
|
|
134
|
+
}
|
|
135
|
+
function V(e, a) {
|
|
136
|
+
e.attr.deg = 0, e.children.forEach((l) => {
|
|
137
|
+
if (l.type === D.layer)
|
|
138
|
+
V(l, a);
|
|
139
|
+
else {
|
|
140
|
+
const o = Math.round((l.attr.deg + a) % 360);
|
|
141
|
+
l.attr.deg = o < 0 ? o + 360 : o;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
const Xe = W({
|
|
146
|
+
name: "ReferLine",
|
|
147
|
+
props: {
|
|
148
|
+
pos: {
|
|
149
|
+
type: Object,
|
|
150
|
+
required: !0
|
|
151
|
+
},
|
|
152
|
+
scale: {
|
|
153
|
+
type: Number,
|
|
154
|
+
required: !0
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
setup(e) {
|
|
158
|
+
const o = g(() => ({
|
|
159
|
+
height: `${e.pos.y + 60 / e.scale}px`,
|
|
160
|
+
borderLeftWidth: `${0.9 / e.scale}px`
|
|
161
|
+
})), r = g(() => ({
|
|
162
|
+
width: `${e.pos.x + 60 / e.scale}px`,
|
|
163
|
+
borderTopWidth: `${0.9 / e.scale}px`
|
|
164
|
+
})), c = g(() => ({
|
|
165
|
+
fontSize: `${12 / e.scale}px`,
|
|
166
|
+
top: `-${6 / e.scale}px`,
|
|
167
|
+
left: `-${6 / e.scale}px`
|
|
168
|
+
}));
|
|
169
|
+
return {
|
|
170
|
+
topLineStyle: o,
|
|
171
|
+
leftLineStyle: r,
|
|
172
|
+
accountStyle: c
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}), Ye = { class: "nav-line" };
|
|
176
|
+
function De(e, a, l, o, r, c) {
|
|
177
|
+
return ye(), fe("div", Ye, [
|
|
178
|
+
X("div", {
|
|
179
|
+
class: "nav-line-top",
|
|
180
|
+
style: Y(e.topLineStyle)
|
|
181
|
+
}, null, 4),
|
|
182
|
+
X("div", {
|
|
183
|
+
class: "nav-line-left",
|
|
184
|
+
style: Y(e.leftLineStyle)
|
|
185
|
+
}, null, 4),
|
|
186
|
+
X("div", {
|
|
187
|
+
class: "nav-line-account",
|
|
188
|
+
style: Y(e.accountStyle)
|
|
189
|
+
}, q(e.pos.x) + ", " + q(e.pos.y), 5)
|
|
190
|
+
]);
|
|
191
|
+
}
|
|
192
|
+
const Te = /* @__PURE__ */ ve(Xe, [["render", De], ["__scopeId", "data-v-424d6fb0"]]), Ze = W({
|
|
193
|
+
name: "TransformLayer",
|
|
194
|
+
props: {
|
|
195
|
+
com: {
|
|
196
|
+
type: Object,
|
|
197
|
+
required: !0
|
|
198
|
+
},
|
|
199
|
+
parentCom: {
|
|
200
|
+
type: Object
|
|
201
|
+
},
|
|
202
|
+
editable: Boolean
|
|
203
|
+
},
|
|
204
|
+
setup(e, a) {
|
|
205
|
+
we(e.com);
|
|
206
|
+
const l = me(), o = $e(), r = H(), { showMenu: c, hideMenu: f } = be(), u = Z(!1), i = g(() => e.com.type === D.layer), h = g(() => o.canvas.scale), y = g(() => o.referLine), C = g(() => {
|
|
207
|
+
let { x: t, y: n } = e.com.attr;
|
|
208
|
+
return z().coms.forEach((s) => {
|
|
209
|
+
t += s.attr.x, n += s.attr.y;
|
|
210
|
+
}), { x: t, y: n };
|
|
211
|
+
}), $ = g(() => ({
|
|
212
|
+
"datav-transform": !0,
|
|
213
|
+
selected: e.com.selected,
|
|
214
|
+
hided: e.com.hided,
|
|
215
|
+
locked: e.com.locked
|
|
216
|
+
})), _ = g(() => {
|
|
217
|
+
const { x: t, y: n, w: d, h: s } = e.com.attr;
|
|
218
|
+
return {
|
|
219
|
+
top: 0,
|
|
220
|
+
left: 0,
|
|
221
|
+
width: `${d}px`,
|
|
222
|
+
height: `${s}px`,
|
|
223
|
+
transform: `translate(${t}px, ${n}px)`
|
|
224
|
+
};
|
|
225
|
+
}), R = g(() => ({
|
|
226
|
+
"datav-scale": !0,
|
|
227
|
+
hovered: e.com.hovered,
|
|
228
|
+
"--relative-hovered": j.value.hovered
|
|
229
|
+
})), x = g(() => {
|
|
230
|
+
const { zoom: t, sx: n, sy: d } = e.com.scaling, s = t ? `scale(${n.toFixed(6)}, ${d.toFixed(6)})` : void 0;
|
|
231
|
+
return i.value ? {
|
|
232
|
+
transform: s || "none"
|
|
233
|
+
} : {
|
|
234
|
+
display: e.com.hided ? "none" : "block",
|
|
235
|
+
transform: s
|
|
236
|
+
};
|
|
237
|
+
}), G = g(() => {
|
|
238
|
+
const { hided: t, attr: n, scaling: d } = e.com, s = {
|
|
239
|
+
overflow: "visible",
|
|
240
|
+
display: t ? "none" : "block",
|
|
241
|
+
transform: `rotate(${n.deg}deg)`,
|
|
242
|
+
opacity: n.opacity
|
|
243
|
+
}, { zoom: m, sx: v, sy: L } = d;
|
|
244
|
+
return m && (s.transform = `scale(${(1 / v).toFixed(6)}, ${(1 / L).toFixed(6)}) ${s.transform} scale(${v.toFixed(6)}, ${L.toFixed(6)})`), s;
|
|
245
|
+
}), J = g(() => {
|
|
246
|
+
const { selected: t, attr: n } = e.com, d = {
|
|
247
|
+
cursor: t ? "move" : "inherit"
|
|
248
|
+
};
|
|
249
|
+
if (i.value)
|
|
250
|
+
n.apply3d && (n.perspective || (n.perspective = 500), n.perspectiveOrigin || (n.perspectiveOrigin = {
|
|
251
|
+
x: 50,
|
|
252
|
+
y: 50
|
|
253
|
+
}), d.perspective = `${n.perspective}px`, d.perspectiveOrigin = `${n.perspectiveOrigin.x}% ${n.perspectiveOrigin.y}%`);
|
|
254
|
+
else {
|
|
255
|
+
const { zoom: s, sx: m, sy: v } = e.com.scaling;
|
|
256
|
+
d.transform = s ? `scale(${(1 / m).toFixed(6)}, ${(1 / v).toFixed(6)}) ${d.transform} scale(${m.toFixed(6)}, ${v.toFixed(6)})` : `rotate(${e.com.attr.deg}deg)`;
|
|
257
|
+
}
|
|
258
|
+
return d;
|
|
259
|
+
}), F = Z(""), T = async (t) => {
|
|
260
|
+
if (!t)
|
|
261
|
+
return F.value = "";
|
|
262
|
+
t.startsWith("http") ? F.value = t : F.value = "";
|
|
263
|
+
};
|
|
264
|
+
T(o.pageConfig.resourceList[e.com.bgImg.url]), ge(
|
|
265
|
+
() => o.pageConfig.resourceList[e.com.bgImg.url],
|
|
266
|
+
(t) => {
|
|
267
|
+
T(t);
|
|
268
|
+
},
|
|
269
|
+
{ deep: !0 }
|
|
270
|
+
);
|
|
271
|
+
const K = g(() => {
|
|
272
|
+
const { hided: t, attr: n, bgImg: d } = e.com, s = o.pageConfig.styleFilterParams;
|
|
273
|
+
let m = "";
|
|
274
|
+
return s.enable && (m = `hue-rotate(${s.hue}deg) contrast(${s.contrast}%) opacity(${s.opacity}%) saturate(${s.saturate}%) brightness(${s.brightness}%)`), {
|
|
275
|
+
display: t ? "none" : "block",
|
|
276
|
+
transform: `scaleX(${n.filpH ? -1 : 1}) scaleY(${n.filpV ? -1 : 1}) rotateZ(360deg)`,
|
|
277
|
+
filter: m,
|
|
278
|
+
backgroundImage: d?.url ? `url(${F.value})` : "none",
|
|
279
|
+
backgroundRepeat: d?.repeat
|
|
280
|
+
};
|
|
281
|
+
}), Q = g(() => ({
|
|
282
|
+
width: `${e.com.attr.w}px`,
|
|
283
|
+
height: `${e.com.attr.h}px`
|
|
284
|
+
})), M = g(() => Ie(e.com.attr.deg)), P = g(() => {
|
|
285
|
+
const { zoom: t, sx: n, sy: d } = e.com.scaling, s = t ? `scale(${1 / n / h.value}, ${1 / d / h.value})` : `scale(${1 / h.value}, ${1 / h.value})`;
|
|
286
|
+
return {
|
|
287
|
+
t: {
|
|
288
|
+
name: "top",
|
|
289
|
+
style: { cursor: M.value.t, transform: s }
|
|
290
|
+
},
|
|
291
|
+
rt: {
|
|
292
|
+
name: "top-right",
|
|
293
|
+
style: { cursor: M.value.rt },
|
|
294
|
+
rotateStyle: { "transform-origin": "25% 75%", transform: s }
|
|
295
|
+
},
|
|
296
|
+
r: {
|
|
297
|
+
name: "right",
|
|
298
|
+
style: { cursor: M.value.r, transform: s }
|
|
299
|
+
},
|
|
300
|
+
rb: {
|
|
301
|
+
name: "bottom-right",
|
|
302
|
+
style: { cursor: M.value.rb },
|
|
303
|
+
rotateStyle: { "transform-origin": "25% 25%", transform: s }
|
|
304
|
+
},
|
|
305
|
+
b: {
|
|
306
|
+
name: "bottom",
|
|
307
|
+
style: { cursor: M.value.b, transform: s }
|
|
308
|
+
},
|
|
309
|
+
lb: {
|
|
310
|
+
name: "bottom-left",
|
|
311
|
+
style: { cursor: M.value.lb },
|
|
312
|
+
rotateStyle: { "transform-origin": "75% 25%", transform: s }
|
|
313
|
+
},
|
|
314
|
+
l: {
|
|
315
|
+
name: "left",
|
|
316
|
+
style: { cursor: M.value.l, transform: s }
|
|
317
|
+
},
|
|
318
|
+
lt: {
|
|
319
|
+
name: "top-left",
|
|
320
|
+
style: { cursor: M.value.lt },
|
|
321
|
+
rotateStyle: { "transform-origin": "75% 75%", transform: s }
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
}), j = g(() => {
|
|
325
|
+
let t = e.parentCom?.selected, n = !1;
|
|
326
|
+
if (i.value && !t) {
|
|
327
|
+
const d = Ce(e.com);
|
|
328
|
+
t = d.hovered || d.selected, n = d.selected;
|
|
329
|
+
}
|
|
330
|
+
return {
|
|
331
|
+
hovered: t,
|
|
332
|
+
selected: n
|
|
333
|
+
};
|
|
334
|
+
}), ee = (t, n) => {
|
|
335
|
+
const d = (s, m) => s === m ? 1 : 0;
|
|
336
|
+
return `rotate3d(${d(t, "x")}, ${d(t, "y")}, ${d(t, "z")}, ${n}deg)`;
|
|
337
|
+
}, te = (t) => {
|
|
338
|
+
const { attr: n } = t, d = {
|
|
339
|
+
justifyContent: "center",
|
|
340
|
+
alignItems: "center",
|
|
341
|
+
display: "block",
|
|
342
|
+
opacity: 1,
|
|
343
|
+
transform: "translate3d(0, 0, 0)",
|
|
344
|
+
width: "auto",
|
|
345
|
+
height: "auto",
|
|
346
|
+
position: "absolute",
|
|
347
|
+
transformOrigin: `${n.w / 2 + n.x}px ${n.h / 2 + n.y}`
|
|
348
|
+
}, { attr: s, config: m } = e.com;
|
|
349
|
+
if (s.apply3d) {
|
|
350
|
+
const v = m.find((he) => he.transform3d.id === t.id), { rotate3d: L, scale3d: p, translate3d: E } = v.transform3d;
|
|
351
|
+
d.transform = `translate3d(${E.x}px, ${E.y}px, ${E.z}px) scale3d(${p.x}, ${p.y}, 1) ${ee(L.axis, L.deg)}`;
|
|
352
|
+
}
|
|
353
|
+
return d;
|
|
354
|
+
}, ne = () => {
|
|
355
|
+
e.editable && (e.parentCom ? e.editable && !e.com.selected && (e.com.hovered = !0) : e.com.selected || (e.com.hovered = !0));
|
|
356
|
+
}, se = () => {
|
|
357
|
+
e.com.hovered = !1;
|
|
358
|
+
}, O = (t) => {
|
|
359
|
+
const n = Me(t);
|
|
360
|
+
(n || !e.com.selected) && r.select(e.com.id, e.com.parentId, n);
|
|
361
|
+
}, oe = (t) => {
|
|
362
|
+
if (e.editable)
|
|
363
|
+
if (e.parentCom && !e.editable) {
|
|
364
|
+
const n = z(), d = n.editables.lastIndexOf(!1);
|
|
365
|
+
c(t, n.coms[d]);
|
|
366
|
+
} else
|
|
367
|
+
c(t, e.com);
|
|
368
|
+
}, re = (t) => {
|
|
369
|
+
if (e.editable)
|
|
370
|
+
if (e.parentCom && !e.editable) {
|
|
371
|
+
const n = z(), d = n.editables.lastIndexOf(!1);
|
|
372
|
+
n.instances[d].proxy.onMove(t);
|
|
373
|
+
} else
|
|
374
|
+
A(t);
|
|
375
|
+
}, A = (t) => {
|
|
376
|
+
if (o.contextMenu.show)
|
|
377
|
+
return f(), !1;
|
|
378
|
+
if (!e.com.selected)
|
|
379
|
+
return ze(t.target, "mouseup", O), !1;
|
|
380
|
+
r.selectedComs.forEach((n) => {
|
|
381
|
+
Oe(
|
|
382
|
+
t,
|
|
383
|
+
n,
|
|
384
|
+
h.value,
|
|
385
|
+
o.pageConfig.grid,
|
|
386
|
+
() => {
|
|
387
|
+
e.com.id === n.id && (u.value = !0, o.calcAlignLine(e.com));
|
|
388
|
+
},
|
|
389
|
+
() => {
|
|
390
|
+
if (e.com.id === n.id)
|
|
391
|
+
if (u.value) {
|
|
392
|
+
u.value = !1, o.hideAlignLine(e.com.id);
|
|
393
|
+
const d = z();
|
|
394
|
+
d.coms.length > 0 && r.resizeParents(d.coms);
|
|
395
|
+
try {
|
|
396
|
+
U().addCache();
|
|
397
|
+
} catch (s) {
|
|
398
|
+
console.error("error: ", s);
|
|
399
|
+
}
|
|
400
|
+
} else t.button === 0 && r.select(e.com.id, e.com.parentId);
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
});
|
|
404
|
+
}, ae = (t, n) => {
|
|
405
|
+
if (f(), !e.com.selected)
|
|
406
|
+
return !1;
|
|
407
|
+
const d = (s, m) => {
|
|
408
|
+
s.scaling.w = s.attr.w, s.scaling.h = s.attr.h, Fe(
|
|
409
|
+
t,
|
|
410
|
+
n,
|
|
411
|
+
s,
|
|
412
|
+
h.value,
|
|
413
|
+
m,
|
|
414
|
+
() => {
|
|
415
|
+
s.scaling.zoom = !0, s.scaling.sx = s.scaling.w / s.attr.w, s.scaling.sy = s.scaling.h / s.attr.h;
|
|
416
|
+
},
|
|
417
|
+
() => {
|
|
418
|
+
i.value && r.resizeChildren(s), s.scaling.zoom = !1, s.scaling.sx = 1, s.scaling.sy = 1, s.attr.w = s.scaling.w, s.attr.h = s.scaling.h;
|
|
419
|
+
const v = z();
|
|
420
|
+
v.coms.length > 0 && r.resizeParents(v.coms);
|
|
421
|
+
}
|
|
422
|
+
);
|
|
423
|
+
};
|
|
424
|
+
r.selectedComs.length > 1 ? r.selectedComs.forEach((s) => {
|
|
425
|
+
d(s, !0);
|
|
426
|
+
}) : d(e.com, o.isNormalResizeMode);
|
|
427
|
+
}, le = (t) => {
|
|
428
|
+
f(), r.selectedComs.forEach((n) => {
|
|
429
|
+
Ee(t, l.vnode.el, n, (d) => {
|
|
430
|
+
i.value && V(n, d);
|
|
431
|
+
});
|
|
432
|
+
});
|
|
433
|
+
}, z = () => {
|
|
434
|
+
const t = [], n = [], d = [], s = (m) => {
|
|
435
|
+
const v = m.props.parentCom;
|
|
436
|
+
v && (t.push(v), n.push(m.props.editable ?? !1), d.push(m.parent), s(m.parent));
|
|
437
|
+
};
|
|
438
|
+
return s(l), {
|
|
439
|
+
coms: t,
|
|
440
|
+
editables: n,
|
|
441
|
+
instances: d
|
|
442
|
+
};
|
|
443
|
+
}, ce = (t) => {
|
|
444
|
+
e.parentCom && !e.editable && (e.parentCom.selected ? O(t) : z().instances[0].proxy.selectCom(t));
|
|
445
|
+
}, ie = (t) => w(
|
|
446
|
+
"div",
|
|
447
|
+
{
|
|
448
|
+
key: t.id,
|
|
449
|
+
class: "slider-item",
|
|
450
|
+
style: te(t)
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
default: () => a.slots.default ? a.slots.default({
|
|
454
|
+
data: t,
|
|
455
|
+
editable: j.value.selected
|
|
456
|
+
}) : null
|
|
457
|
+
}
|
|
458
|
+
), de = () => {
|
|
459
|
+
const { animate: t } = e.com, n = t ? `${t.type} animate__duration-${t.delay}s animate__repeat-${t.repeat} animate__delay-${t.delay}` : "";
|
|
460
|
+
return w(
|
|
461
|
+
"div",
|
|
462
|
+
{
|
|
463
|
+
class: `datav-com ${n}`,
|
|
464
|
+
style: K.value
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
default: () => [
|
|
468
|
+
a.slots.default ? a.slots.default() : null,
|
|
469
|
+
w("div", {
|
|
470
|
+
class: "datav-wrapper-event-disable",
|
|
471
|
+
style: Q.value
|
|
472
|
+
})
|
|
473
|
+
]
|
|
474
|
+
}
|
|
475
|
+
);
|
|
476
|
+
}, ue = (t, n) => {
|
|
477
|
+
const d = w("span", {
|
|
478
|
+
class: "control-point",
|
|
479
|
+
style: n.style,
|
|
480
|
+
onMousedown: b(
|
|
481
|
+
(s) => {
|
|
482
|
+
ae(s, t);
|
|
483
|
+
},
|
|
484
|
+
["stop"]
|
|
485
|
+
)
|
|
486
|
+
});
|
|
487
|
+
return n.rotateStyle ? w(
|
|
488
|
+
"i",
|
|
489
|
+
{
|
|
490
|
+
class: `${n.name}-handler`,
|
|
491
|
+
"data-html2canvas-ignore": !0
|
|
492
|
+
},
|
|
493
|
+
w(
|
|
494
|
+
"span",
|
|
495
|
+
{
|
|
496
|
+
class: "rotate-handler",
|
|
497
|
+
style: n.rotateStyle,
|
|
498
|
+
onMousedown: b(
|
|
499
|
+
(s) => {
|
|
500
|
+
le(s);
|
|
501
|
+
},
|
|
502
|
+
["stop"]
|
|
503
|
+
)
|
|
504
|
+
},
|
|
505
|
+
d
|
|
506
|
+
)
|
|
507
|
+
) : w(
|
|
508
|
+
"i",
|
|
509
|
+
{
|
|
510
|
+
class: `${n.name}-handler`,
|
|
511
|
+
"data-html2canvas-ignore": !0
|
|
512
|
+
},
|
|
513
|
+
d
|
|
514
|
+
);
|
|
515
|
+
}, B = () => w(
|
|
516
|
+
"div",
|
|
517
|
+
{
|
|
518
|
+
class: {
|
|
519
|
+
"transform-handler": !0,
|
|
520
|
+
hided: !e.com.selected || e.com.locked || !e.editable
|
|
521
|
+
},
|
|
522
|
+
style: J.value
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
default: () => {
|
|
526
|
+
let t = [];
|
|
527
|
+
if (i.value ? t = e.com.children.map((n) => ie(n)) : t.push(de()), e.editable)
|
|
528
|
+
for (const [n, d] of Object.entries(P.value))
|
|
529
|
+
t.push(ue(n, d));
|
|
530
|
+
return t.push(w("div", { class: "transform-bg" })), t;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
);
|
|
534
|
+
return {
|
|
535
|
+
scale: h,
|
|
536
|
+
referLine: y,
|
|
537
|
+
referLinePos: C,
|
|
538
|
+
transformClass: $,
|
|
539
|
+
transformStyle: _,
|
|
540
|
+
scaleClass: R,
|
|
541
|
+
scaleStyle: x,
|
|
542
|
+
createTransform: B,
|
|
543
|
+
createSlider: () => w(
|
|
544
|
+
"div",
|
|
545
|
+
{
|
|
546
|
+
class: "datav-layer slider",
|
|
547
|
+
style: G.value
|
|
548
|
+
},
|
|
549
|
+
B()
|
|
550
|
+
),
|
|
551
|
+
onEnter: ne,
|
|
552
|
+
onLeave: se,
|
|
553
|
+
onDown: re,
|
|
554
|
+
onMove: A,
|
|
555
|
+
selectCom: O,
|
|
556
|
+
showContextMenu: oe,
|
|
557
|
+
selectInnerItem: ce
|
|
558
|
+
};
|
|
559
|
+
},
|
|
560
|
+
render() {
|
|
561
|
+
const { scale: e, referLine: a, referLinePos: l } = this;
|
|
562
|
+
return w(
|
|
563
|
+
"div",
|
|
564
|
+
{
|
|
565
|
+
class: this.transformClass,
|
|
566
|
+
style: this.transformStyle
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
default: () => [
|
|
570
|
+
a.enable && this.$props.com.selected && this.$props.editable ? w(Te, { scale: e, pos: l }) : null,
|
|
571
|
+
w(
|
|
572
|
+
"div",
|
|
573
|
+
{
|
|
574
|
+
class: this.scaleClass,
|
|
575
|
+
style: this.scaleStyle,
|
|
576
|
+
onMouseenter: b(this.onEnter, ["stop"]),
|
|
577
|
+
onMouseleave: b(this.onLeave, ["stop"]),
|
|
578
|
+
onMousedown: b(this.onDown, ["stop"]),
|
|
579
|
+
onContextmenu: b(this.showContextMenu, ["stop"]),
|
|
580
|
+
onDblclick: b(this.selectInnerItem, ["stop"]),
|
|
581
|
+
onClick: b(() => {
|
|
582
|
+
}, ["stop"])
|
|
583
|
+
},
|
|
584
|
+
this.$props.com.type === D.layer ? this.createSlider() : this.createTransform()
|
|
585
|
+
)
|
|
586
|
+
]
|
|
587
|
+
}
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
export {
|
|
592
|
+
Ze as _
|
|
593
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createElementBlock as t, openBlock as r, createElementVNode as o } from "vue";
|
|
2
|
+
import { _ as n } from "./index-Bjs1bW2W.js";
|
|
3
|
+
const l = {}, i = { style: { stroke: "#919191", fill: "#919191", width: "100%", height: "100%" } };
|
|
4
|
+
function s(c, e) {
|
|
5
|
+
return r(), t("svg", i, [...e[0] || (e[0] = [
|
|
6
|
+
o("path", {
|
|
7
|
+
fill: "inherit",
|
|
8
|
+
d: "M365.5,0 L0,411 L731,411Z"
|
|
9
|
+
}, null, -1)
|
|
10
|
+
])]);
|
|
11
|
+
}
|
|
12
|
+
const a = /* @__PURE__ */ n(l, [["render", s]]);
|
|
13
|
+
export {
|
|
14
|
+
a as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function o() {
|
|
2
|
+
return {
|
|
3
|
+
show: !0,
|
|
4
|
+
from: 0,
|
|
5
|
+
to: 100,
|
|
6
|
+
duration: 3e3,
|
|
7
|
+
autoplay: !0
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function e() {
|
|
11
|
+
return {
|
|
12
|
+
borderColor: "#fff",
|
|
13
|
+
borderWidth: 1,
|
|
14
|
+
borderType: "solid"
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function t(r = {}) {
|
|
18
|
+
return {
|
|
19
|
+
borderColor: "#fff",
|
|
20
|
+
borderWidth: 1,
|
|
21
|
+
borderType: "solid",
|
|
22
|
+
...r
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
o as a,
|
|
27
|
+
t as b,
|
|
28
|
+
e as u
|
|
29
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineStore as i } from "pinia";
|
|
2
|
+
const s = i("api", {
|
|
3
|
+
state: () => ({
|
|
4
|
+
dataMap: {}
|
|
5
|
+
}),
|
|
6
|
+
actions: {
|
|
7
|
+
setData(a, t, e) {
|
|
8
|
+
this.dataMap[a] || (this.dataMap[a] = {}), this.dataMap[a][t] = e;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
function r(a) {
|
|
13
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
14
|
+
for (const [e, n] of Object.entries(a))
|
|
15
|
+
t[e] = n.map || e;
|
|
16
|
+
return t;
|
|
17
|
+
}
|
|
18
|
+
function c(a) {
|
|
19
|
+
return {
|
|
20
|
+
data: {}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
async function f(a, t, e, n) {
|
|
24
|
+
s().setData(a, t, {});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
c as a,
|
|
28
|
+
r as g,
|
|
29
|
+
f as s,
|
|
30
|
+
s as u
|
|
31
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ref as l } from "vue";
|
|
2
|
+
function v(e, a) {
|
|
3
|
+
const s = l("0");
|
|
4
|
+
return {
|
|
5
|
+
activeTab: s,
|
|
6
|
+
handleAddSeriesItem: () => {
|
|
7
|
+
e.value.series || (e.value.series = []);
|
|
8
|
+
const r = `Series ${e.value.series.length + 1}`;
|
|
9
|
+
e.value.series.push(new a(r)), s.value = String(e.value.series.length - 1);
|
|
10
|
+
},
|
|
11
|
+
handRemoveSeriesItem: (r) => {
|
|
12
|
+
e.value.series.splice(r, 1), e.value.series.length > 0 ? s.value = "0" : s.value = "";
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
v as u
|
|
18
|
+
};
|