go-view-worker 0.0.1
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.md +221 -0
- package/dist/chunks/403-382550a8.js +42 -0
- package/dist/chunks/404-3d357d75.js +42 -0
- package/dist/chunks/500-96d14fb0.js +43 -0
- package/dist/chunks/StylesSetting-952ff564.js +338 -0
- package/dist/chunks/chartEditStore-a725b558.js +4975 -0
- package/dist/chunks/designStore-fe92c2ba.js +6268 -0
- package/dist/chunks/index-00b6339d.js +588 -0
- package/dist/chunks/index-0472b3a5.js +173 -0
- package/dist/chunks/index-097ae4b0.js +436 -0
- package/dist/chunks/index-09e62bb4.js +284 -0
- package/dist/chunks/index-1cb69ab6.js +136 -0
- package/dist/chunks/index-32d13283.js +26 -0
- package/dist/chunks/index-3fd591ea.js +81 -0
- package/dist/chunks/index-51458edb.js +143 -0
- package/dist/chunks/index-54f304ef.js +89 -0
- package/dist/chunks/index-62a7855c.js +51 -0
- package/dist/chunks/index-82d00e13.js +300 -0
- package/dist/chunks/index-9502bd7e.js +155 -0
- package/dist/chunks/index-95c5f0a0.js +1664 -0
- package/dist/chunks/index-a410a1d3.js +250 -0
- package/dist/chunks/index-da8ddb02.js +13 -0
- package/dist/chunks/index-de0a1234.js +482 -0
- package/dist/chunks/index-e31a7881.js +32 -0
- package/dist/chunks/index-f266153a.js +1985 -0
- package/dist/chunks/index-f97e5ffc.js +13 -0
- package/dist/chunks/index-fdf7dc1e.js +88 -0
- package/dist/chunks/index-fec9f9f8.js +368 -0
- package/dist/chunks/index.vue_vue_type_script_setup_true_lang-c6159a17.js +3357 -0
- package/dist/chunks/lodash-c80b695e.js +3680 -0
- package/dist/chunks/router-106a6abc.js +57 -0
- package/dist/chunks/useKeyboard.hook-da88451a.js +341 -0
- package/dist/chunks/useSyncUpdate.hook-5517a8ad.js +40 -0
- package/dist/chunks/useTargetData.hook-28a7e43b.js +12 -0
- package/dist/chunks/wrapper-4c15ca94.js +28 -0
- package/dist/favicon.ico +0 -0
- package/dist/go-view-worker.js +23 -0
- package/dist/init.js +688 -0
- package/dist/style.css +7 -0
- package/dist/types/packages/index.d.ts +12 -0
- package/dist/types/packages/init.d.ts +6 -0
- package/dist/types/packages/utils/resize.d.ts +1 -0
- package/dist/types/src/components/GoAppProvider/index.d.ts +3 -0
- package/dist/types/src/components/GoIconify/index.d.ts +3 -0
- package/dist/types/src/components/GoLoading/index.d.ts +5 -0
- package/dist/types/src/components/GoReload/index.d.ts +3 -0
- package/dist/types/src/components/GoSkeleton/index.d.ts +3 -0
- package/dist/types/src/components/GoSystemInfo/index.d.ts +3 -0
- package/dist/types/src/components/GoSystemSet/index.d.ts +3 -0
- package/dist/types/src/components/GoThemeSelect/index.d.ts +3 -0
- package/dist/types/src/components/GoUserInfo/index.d.ts +3 -0
- package/dist/types/src/components/Pages/ChartGlobImage/index.d.ts +3 -0
- package/dist/types/src/components/Pages/ChartItemSetting/index.d.ts +11 -0
- package/dist/types/src/components/Pages/Flipper/index.d.ts +4 -0
- package/dist/types/src/components/Pages/ThemeColorSelect/index.d.ts +3 -0
- package/dist/types/src/components/Pages/VChartItemSetting/index.d.ts +8 -0
- package/dist/types/src/components/Plugins/DialogContent/index.d.ts +3 -0
- package/dist/types/src/components/Plugins/LoadingContent/index.d.ts +3 -0
- package/dist/types/src/components/Plugins/MessageContent/index.d.ts +3 -0
- package/dist/types/src/components/Tips/MacOsControlBtn/index.d.ts +3 -0
- package/dist/types/src/directives/index.d.ts +2 -0
- package/dist/types/src/enums/editPageEnum.d.ts +55 -0
- package/dist/types/src/enums/eventEnum.d.ts +32 -0
- package/dist/types/src/enums/fileTypeEnum.d.ts +7 -0
- package/dist/types/src/enums/httpEnum.d.ts +96 -0
- package/dist/types/src/enums/pageEnum.d.ts +34 -0
- package/dist/types/src/enums/pluginEnum.d.ts +6 -0
- package/dist/types/src/enums/storageEnum.d.ts +10 -0
- package/dist/types/src/enums/styleEnum.d.ts +14 -0
- package/dist/types/src/hooks/index.d.ts +6 -0
- package/dist/types/src/hooks/useCanvasInitOptions.hook.d.ts +8 -0
- package/dist/types/src/hooks/useChartDataPondFetch.hook.d.ts +8 -0
- package/dist/types/src/hooks/useChartInteract.hook.d.ts +9 -0
- package/dist/types/src/hooks/useLang.hook.d.ts +126 -0
- package/dist/types/src/hooks/useLifeHandler.hook.d.ts +10 -0
- package/dist/types/src/hooks/usePreviewScale.hook.d.ts +32 -0
- package/dist/types/src/hooks/useTheme.hook.d.ts +7 -0
- package/dist/types/src/layout/components/LayoutFooter/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutHeader/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutHeaderPro/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutMain/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutTransitionMain/index.d.ts +3 -0
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/packages/chartConfiguration/echarts/axis.d.ts +24 -0
- package/dist/types/src/packages/chartConfiguration/echarts/index.d.ts +4 -0
- package/dist/types/src/packages/chartConfiguration/echarts/label.d.ts +10 -0
- package/dist/types/src/packages/chartConfiguration/echarts/legend.d.ts +18 -0
- package/dist/types/src/packages/chartConfiguration/echarts/line.d.ts +8 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/index.d.ts +3 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/label.d.ts +14 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/legends.d.ts +27 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/style.d.ts +18 -0
- package/dist/types/src/packages/components/Charts/Bars/BarCommon/config.d.ts +63 -0
- package/dist/types/src/packages/components/Charts/Bars/BarCommon/index.d.ts +3 -0
- package/dist/types/src/packages/components/Charts/Bars/index.d.ts +2 -0
- package/dist/types/src/packages/components/Charts/index.d.ts +8 -0
- package/dist/types/src/packages/components/Photos/Private/index.d.ts +17 -0
- package/dist/types/src/packages/components/Photos/Share/index.d.ts +14 -0
- package/dist/types/src/packages/components/Photos/index.d.ts +9 -0
- package/dist/types/src/packages/index.d.ts +214 -0
- package/dist/types/src/packages/public/index.d.ts +2 -0
- package/dist/types/src/packages/public/publicConfig.d.ts +81 -0
- package/dist/types/src/packages/public/vChart.d.ts +14 -0
- package/dist/types/src/plugins/customComponents.d.ts +7 -0
- package/dist/types/src/plugins/directives.d.ts +7 -0
- package/dist/types/src/plugins/icon.d.ts +111 -0
- package/dist/types/src/plugins/index.d.ts +5 -0
- package/dist/types/src/plugins/initFunction.d.ts +4 -0
- package/dist/types/src/plugins/naive.d.ts +3 -0
- package/dist/types/src/router/base.d.ts +7 -0
- package/dist/types/src/router/constant.d.ts +5 -0
- package/dist/types/src/router/index.d.ts +6 -0
- package/dist/types/src/router/modules/chart.route.d.ts +4 -0
- package/dist/types/src/router/modules/index.d.ts +5 -0
- package/dist/types/src/router/modules/preview.route.d.ts +4 -0
- package/dist/types/src/router/router-guards.d.ts +3 -0
- package/dist/types/src/router/types.d.ts +26 -0
- package/dist/types/src/settings/animations/index.d.ts +7 -0
- package/dist/types/src/settings/chartThemes/index.d.ts +195 -0
- package/dist/types/src/settings/designSetting.d.ts +33 -0
- package/dist/types/src/settings/pathConst.d.ts +3 -0
- package/dist/types/src/settings/systemSetting.d.ts +11 -0
- package/dist/types/src/settings/vchartThemes/index.d.ts +139 -0
- package/dist/types/src/store/index.d.ts +5 -0
- package/dist/types/src/store/modules/chartEditStore/chartEditStore.d.ts +215 -0
- package/dist/types/src/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
- package/dist/types/src/store/modules/chartHistoryStore/chartHistoryStore.d.ts +79 -0
- package/dist/types/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
- package/dist/types/src/store/modules/designStore/designStore.d.ts +20 -0
- package/dist/types/src/store/modules/globalConfigStore/globalConfigStore.d.ts +183 -0
- package/dist/types/src/store/modules/langStore/langStore.d.ts +6 -0
- package/dist/types/src/store/modules/packagesStore/packagesStore.d.ts +10 -0
- package/dist/types/src/store/modules/settingStore/settingStore.d.ts +31 -0
- package/dist/types/src/utils/components.d.ts +13 -0
- package/dist/types/src/utils/file.d.ts +19 -0
- package/dist/types/src/utils/index.d.ts +8 -0
- package/dist/types/src/utils/plugin.d.ts +30 -0
- package/dist/types/src/utils/router.d.ts +77 -0
- package/dist/types/src/utils/storage.d.ts +35 -0
- package/dist/types/src/utils/style.d.ts +154 -0
- package/dist/types/src/utils/type.d.ts +8 -0
- package/dist/types/src/utils/utils.d.ts +128 -0
- package/dist/types/src/views/chart/ContentBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/hooks/useAside.hook.d.ts +11 -0
- package/dist/types/src/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +10 -0
- package/dist/types/src/views/chart/ContentCharts/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +57 -0
- package/dist/types/src/views/chart/ContentConfigurations/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditBottom/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditGroup/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditHistory/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditRange/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditRule/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditSelect/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +9 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditWatermark/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +13 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +17 -0
- package/dist/types/src/views/chart/ContentEdit/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerLeftBtn/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerRightBtn/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerTitle/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersListItem/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersStatus/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/enums.d.ts +0 -0
- package/dist/types/src/views/chart/ContentLayers/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLoad/index.d.ts +3 -0
- package/dist/types/src/views/chart/hooks/useContextMenu.hook.d.ts +12 -0
- package/dist/types/src/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
- package/dist/types/src/views/chart/hooks/useSync.hook.d.ts +5 -0
- package/dist/types/src/views/preview/components/PreviewRenderGroup/index.d.ts +3 -0
- package/dist/types/src/views/preview/components/PreviewRenderList/index.d.ts +3 -0
- package/dist/types/src/views/preview/hooks/useComInstall.hook.d.ts +5 -0
- package/dist/types/src/views/preview/hooks/useScale.hook.d.ts +17 -0
- package/dist/types/src/views/preview/hooks/useStore.hook.d.ts +3 -0
- package/dist/types/src/views/preview/utils/drag.d.ts +1 -0
- package/dist/types/src/views/preview/utils/index.d.ts +4 -0
- package/dist/types/src/views/preview/utils/keyboard.d.ts +1 -0
- package/dist/types/src/views/preview/utils/storage.d.ts +6 -0
- package/dist/types/src/views/preview/utils/style.d.ts +26 -0
- package/package.json +99 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "vue-router";
|
|
2
|
+
import { P as c, R as n } from "./designStore-fe92c2ba.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "naive-ui";
|
|
5
|
+
const i = (t, r, e) => {
|
|
6
|
+
if (e) {
|
|
7
|
+
const a = u(t, "href");
|
|
8
|
+
s(a);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (r) {
|
|
12
|
+
n.replace({
|
|
13
|
+
name: t
|
|
14
|
+
});
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
n.push({
|
|
18
|
+
name: t
|
|
19
|
+
});
|
|
20
|
+
}, u = (t, r) => {
|
|
21
|
+
try {
|
|
22
|
+
const e = n.resolve({
|
|
23
|
+
name: t
|
|
24
|
+
});
|
|
25
|
+
return r ? e[r] : e;
|
|
26
|
+
} catch {
|
|
27
|
+
window.$message.warning("查询路由信息失败,请联系管理员!");
|
|
28
|
+
}
|
|
29
|
+
}, f = (t, r, e, a) => {
|
|
30
|
+
let o = "";
|
|
31
|
+
if (r?.length && (o = `${t}/${r.join("/")}`), a)
|
|
32
|
+
return s(o);
|
|
33
|
+
if (e) {
|
|
34
|
+
n.replace({
|
|
35
|
+
path: o
|
|
36
|
+
});
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
n.push({
|
|
40
|
+
path: o
|
|
41
|
+
});
|
|
42
|
+
}, w = () => {
|
|
43
|
+
i(c.RELOAD_NAME);
|
|
44
|
+
}, s = (t) => window.open(t, "_blank"), P = () => {
|
|
45
|
+
try {
|
|
46
|
+
return document.location.hash.split("?")[0].split("/").pop() || "";
|
|
47
|
+
} catch {
|
|
48
|
+
return window.$message.warning("查询路由信息失败,请联系管理员!"), "";
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
f as a,
|
|
53
|
+
P as b,
|
|
54
|
+
w as c,
|
|
55
|
+
u as f,
|
|
56
|
+
i as r
|
|
57
|
+
};
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { u as te } from "./chartEditStore-a725b558.js";
|
|
2
|
+
import { ap as re, w as ne, M as n, ak as D, al as $, aq as U, O as g, a7 as P } from "./designStore-fe92c2ba.js";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
import "naive-ui";
|
|
5
|
+
import "vue";
|
|
6
|
+
var G = { exports: {} };
|
|
7
|
+
(function(a) {
|
|
8
|
+
(function(c) {
|
|
9
|
+
var o, s = {}, p = { 16: !1, 18: !1, 17: !1, 91: !1 }, S = "all", K = {
|
|
10
|
+
"⇧": 16,
|
|
11
|
+
shift: 16,
|
|
12
|
+
"⌥": 18,
|
|
13
|
+
alt: 18,
|
|
14
|
+
option: 18,
|
|
15
|
+
"⌃": 17,
|
|
16
|
+
ctrl: 17,
|
|
17
|
+
control: 17,
|
|
18
|
+
"⌘": 91,
|
|
19
|
+
command: 91
|
|
20
|
+
}, W = {
|
|
21
|
+
backspace: 8,
|
|
22
|
+
tab: 9,
|
|
23
|
+
clear: 12,
|
|
24
|
+
enter: 13,
|
|
25
|
+
return: 13,
|
|
26
|
+
esc: 27,
|
|
27
|
+
escape: 27,
|
|
28
|
+
space: 32,
|
|
29
|
+
left: 37,
|
|
30
|
+
up: 38,
|
|
31
|
+
right: 39,
|
|
32
|
+
down: 40,
|
|
33
|
+
del: 46,
|
|
34
|
+
delete: 46,
|
|
35
|
+
home: 36,
|
|
36
|
+
end: 35,
|
|
37
|
+
pageup: 33,
|
|
38
|
+
pagedown: 34,
|
|
39
|
+
",": 188,
|
|
40
|
+
".": 190,
|
|
41
|
+
"/": 191,
|
|
42
|
+
"`": 192,
|
|
43
|
+
"-": 189,
|
|
44
|
+
"=": 187,
|
|
45
|
+
";": 186,
|
|
46
|
+
"'": 222,
|
|
47
|
+
"[": 219,
|
|
48
|
+
"]": 221,
|
|
49
|
+
"\\": 220
|
|
50
|
+
}, A = function(e) {
|
|
51
|
+
return W[e] || e.toUpperCase().charCodeAt(0);
|
|
52
|
+
}, O = [];
|
|
53
|
+
for (o = 1; o < 20; o++)
|
|
54
|
+
W["f" + o] = 111 + o;
|
|
55
|
+
function k(e, t) {
|
|
56
|
+
for (var r = e.length; r--; )
|
|
57
|
+
if (e[r] === t)
|
|
58
|
+
return r;
|
|
59
|
+
return -1;
|
|
60
|
+
}
|
|
61
|
+
function I(e, t) {
|
|
62
|
+
if (e.length != t.length)
|
|
63
|
+
return !1;
|
|
64
|
+
for (var r = 0; r < e.length; r++)
|
|
65
|
+
if (e[r] !== t[r])
|
|
66
|
+
return !1;
|
|
67
|
+
return !0;
|
|
68
|
+
}
|
|
69
|
+
var N = {
|
|
70
|
+
16: "shiftKey",
|
|
71
|
+
18: "altKey",
|
|
72
|
+
17: "ctrlKey",
|
|
73
|
+
91: "metaKey"
|
|
74
|
+
};
|
|
75
|
+
function x(e) {
|
|
76
|
+
for (o in p)
|
|
77
|
+
p[o] = e[N[o]];
|
|
78
|
+
}
|
|
79
|
+
function B(e) {
|
|
80
|
+
var t, r, i, R, m, E;
|
|
81
|
+
if (t = e.keyCode, k(O, t) == -1 && O.push(t), (t == 93 || t == 224) && (t = 91), t in p) {
|
|
82
|
+
p[t] = !0;
|
|
83
|
+
for (i in K)
|
|
84
|
+
K[i] == t && (T[i] = !0);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (x(e), !!T.filter.call(this, e) && t in s) {
|
|
88
|
+
for (E = C(), R = 0; R < s[t].length; R++)
|
|
89
|
+
if (r = s[t][R], r.scope == E || r.scope == "all") {
|
|
90
|
+
m = r.mods.length > 0;
|
|
91
|
+
for (i in p)
|
|
92
|
+
(!p[i] && k(r.mods, +i) > -1 || p[i] && k(r.mods, +i) == -1) && (m = !1);
|
|
93
|
+
(r.mods.length == 0 && !p[16] && !p[18] && !p[17] && !p[91] || m) && r.method(e, r) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble && (e.cancelBubble = !0));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function z(e) {
|
|
98
|
+
var t = e.keyCode, r, i = k(O, t);
|
|
99
|
+
if (i >= 0 && O.splice(i, 1), (t == 93 || t == 224) && (t = 91), t in p) {
|
|
100
|
+
p[t] = !1;
|
|
101
|
+
for (r in K)
|
|
102
|
+
K[r] == t && (T[r] = !1);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function Y() {
|
|
106
|
+
for (o in p)
|
|
107
|
+
p[o] = !1;
|
|
108
|
+
for (o in K)
|
|
109
|
+
T[o] = !1;
|
|
110
|
+
}
|
|
111
|
+
function T(e, t, r) {
|
|
112
|
+
var i, R;
|
|
113
|
+
i = _(e), r === void 0 && (r = t, t = "all");
|
|
114
|
+
for (var m = 0; m < i.length; m++)
|
|
115
|
+
R = [], e = i[m].split("+"), e.length > 1 && (R = M(e), e = [e[e.length - 1]]), e = e[0], e = A(e), e in s || (s[e] = []), s[e].push({ shortcut: i[m], scope: t, method: r, key: i[m], mods: R });
|
|
116
|
+
}
|
|
117
|
+
function j(e, t) {
|
|
118
|
+
var r, i, R = [], m, E, L;
|
|
119
|
+
for (r = _(e), E = 0; E < r.length; E++) {
|
|
120
|
+
if (i = r[E].split("+"), i.length > 1 && (R = M(i), e = i[i.length - 1]), e = A(e), t === void 0 && (t = C()), !s[e])
|
|
121
|
+
return;
|
|
122
|
+
for (m = 0; m < s[e].length; m++)
|
|
123
|
+
L = s[e][m], L.scope === t && I(L.mods, R) && (s[e][m] = {});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function q(e) {
|
|
127
|
+
return typeof e == "string" && (e = A(e)), k(O, e) != -1;
|
|
128
|
+
}
|
|
129
|
+
function X() {
|
|
130
|
+
return O.slice(0);
|
|
131
|
+
}
|
|
132
|
+
function J(e) {
|
|
133
|
+
var t = (e.target || e.srcElement).tagName;
|
|
134
|
+
return !(t == "INPUT" || t == "SELECT" || t == "TEXTAREA");
|
|
135
|
+
}
|
|
136
|
+
for (o in K)
|
|
137
|
+
T[o] = !1;
|
|
138
|
+
function Q(e) {
|
|
139
|
+
S = e || "all";
|
|
140
|
+
}
|
|
141
|
+
function C() {
|
|
142
|
+
return S || "all";
|
|
143
|
+
}
|
|
144
|
+
function Z(e) {
|
|
145
|
+
var t, r, i;
|
|
146
|
+
for (t in s)
|
|
147
|
+
for (r = s[t], i = 0; i < r.length; )
|
|
148
|
+
r[i].scope === e ? r.splice(i, 1) : i++;
|
|
149
|
+
}
|
|
150
|
+
function _(e) {
|
|
151
|
+
var t;
|
|
152
|
+
return e = e.replace(/\s/g, ""), t = e.split(","), t[t.length - 1] == "" && (t[t.length - 2] += ","), t;
|
|
153
|
+
}
|
|
154
|
+
function M(e) {
|
|
155
|
+
for (var t = e.slice(0, e.length - 1), r = 0; r < t.length; r++)
|
|
156
|
+
t[r] = K[t[r]];
|
|
157
|
+
return t;
|
|
158
|
+
}
|
|
159
|
+
function b(e, t, r) {
|
|
160
|
+
e.addEventListener ? e.addEventListener(t, r, !1) : e.attachEvent && e.attachEvent("on" + t, function() {
|
|
161
|
+
r(window.event);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
b(document, "keydown", function(e) {
|
|
165
|
+
B(e);
|
|
166
|
+
}), b(document, "keyup", z), b(window, "focus", Y);
|
|
167
|
+
var V = c.key;
|
|
168
|
+
function ee() {
|
|
169
|
+
var e = c.key;
|
|
170
|
+
return c.key = V, e;
|
|
171
|
+
}
|
|
172
|
+
c.key = T, c.key.setScope = Q, c.key.getScope = C, c.key.deleteScope = Z, c.key.filter = J, c.key.isPressed = q, c.key.getPressedKeyCodes = X, c.key.noConflict = ee, c.key.unbind = j, a.exports = T;
|
|
173
|
+
})(re);
|
|
174
|
+
})(G);
|
|
175
|
+
var oe = G.exports;
|
|
176
|
+
const f = /* @__PURE__ */ ne(oe), d = () => te(), w = (a) => `${D.CTRL}+${a}`, v = (a) => `${D.SHIFT}+${a}`, l = {
|
|
177
|
+
[n.ARROW_UP]: w("up"),
|
|
178
|
+
[n.ARROW_RIGHT]: w("right"),
|
|
179
|
+
[n.ARROW_DOWN]: w("down"),
|
|
180
|
+
[n.ARROW_LEFT]: w("left"),
|
|
181
|
+
[n.COPY]: w("c"),
|
|
182
|
+
[n.CUT]: w("x"),
|
|
183
|
+
[n.PARSE]: w("v"),
|
|
184
|
+
[n.DELETE]: "delete",
|
|
185
|
+
[n.BACK]: w("z"),
|
|
186
|
+
[n.FORWORD]: w(v("z")),
|
|
187
|
+
[n.GROUP]: w("g"),
|
|
188
|
+
[n.UN_GROUP]: w(v("g")),
|
|
189
|
+
[n.LOCK]: w("l"),
|
|
190
|
+
[n.UNLOCK]: w(v("l")),
|
|
191
|
+
[n.HIDE]: w("h"),
|
|
192
|
+
[n.SHOW]: w(v("h"))
|
|
193
|
+
}, h = (a) => `${$.CTRL}+${a}`, y = (a) => `${$.SHIFT}+${a}`, u = {
|
|
194
|
+
[n.ARROW_UP]: h("arrowup"),
|
|
195
|
+
[n.ARROW_RIGHT]: h("arrowright"),
|
|
196
|
+
[n.ARROW_DOWN]: h("arrowdown"),
|
|
197
|
+
[n.ARROW_LEFT]: h("arrowleft"),
|
|
198
|
+
[n.COPY]: h("c"),
|
|
199
|
+
[n.CUT]: h("x"),
|
|
200
|
+
[n.PARSE]: h("v"),
|
|
201
|
+
[n.DELETE]: h("backspace"),
|
|
202
|
+
[n.BACK]: h("z"),
|
|
203
|
+
[n.FORWORD]: h(y("z")),
|
|
204
|
+
[n.GROUP]: h("g"),
|
|
205
|
+
[n.UN_GROUP]: h(y("g")),
|
|
206
|
+
[n.LOCK]: h("l"),
|
|
207
|
+
[n.UNLOCK]: h(y("l")),
|
|
208
|
+
[n.HIDE]: h("h"),
|
|
209
|
+
[n.SHOW]: h(y("h"))
|
|
210
|
+
}, H = [
|
|
211
|
+
l.up,
|
|
212
|
+
l.right,
|
|
213
|
+
l.down,
|
|
214
|
+
l.left,
|
|
215
|
+
l.delete,
|
|
216
|
+
l.copy,
|
|
217
|
+
l.cut,
|
|
218
|
+
l.parse,
|
|
219
|
+
l.back,
|
|
220
|
+
l.forward,
|
|
221
|
+
l.group,
|
|
222
|
+
l.unGroup,
|
|
223
|
+
l.lock,
|
|
224
|
+
l.unLock,
|
|
225
|
+
l.hide,
|
|
226
|
+
l.show
|
|
227
|
+
], F = [
|
|
228
|
+
u.up,
|
|
229
|
+
u.right,
|
|
230
|
+
u.down,
|
|
231
|
+
u.left,
|
|
232
|
+
u.delete,
|
|
233
|
+
u.copy,
|
|
234
|
+
u.cut,
|
|
235
|
+
u.parse,
|
|
236
|
+
u.back,
|
|
237
|
+
u.forward,
|
|
238
|
+
u.group,
|
|
239
|
+
u.unGroup,
|
|
240
|
+
u.lock,
|
|
241
|
+
u.unLock,
|
|
242
|
+
u.hide,
|
|
243
|
+
u.show
|
|
244
|
+
], se = () => {
|
|
245
|
+
window.$KeyboardActive = {
|
|
246
|
+
ctrl: !1,
|
|
247
|
+
space: !1
|
|
248
|
+
}, document.onkeydown = (a) => {
|
|
249
|
+
const { keyCode: c } = a;
|
|
250
|
+
if (c == 32 && a.target == document.body && a.preventDefault(), [17, 32].includes(c) && window.$KeyboardActive)
|
|
251
|
+
switch (U(a.keyCode), c) {
|
|
252
|
+
case 17:
|
|
253
|
+
window.$KeyboardActive.ctrl = !0;
|
|
254
|
+
break;
|
|
255
|
+
case 32:
|
|
256
|
+
window.$KeyboardActive.space = !0;
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
}, document.onkeyup = (a) => {
|
|
260
|
+
const { keyCode: c } = a;
|
|
261
|
+
if (c == 32 && a.target == document.body && a.preventDefault(), [17, 32].includes(c) && window.$KeyboardActive)
|
|
262
|
+
switch (U(), c) {
|
|
263
|
+
case 17:
|
|
264
|
+
window.$KeyboardActive.ctrl = !1;
|
|
265
|
+
break;
|
|
266
|
+
case 32:
|
|
267
|
+
window.$KeyboardActive.space = !1;
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
}, ue = () => {
|
|
272
|
+
const c = (o, s) => {
|
|
273
|
+
switch (s) {
|
|
274
|
+
case o.up:
|
|
275
|
+
f(s, g(() => (d().setMove(n.ARROW_UP), !1), 50));
|
|
276
|
+
break;
|
|
277
|
+
case o.right:
|
|
278
|
+
f(s, g(() => (d().setMove(n.ARROW_RIGHT), !1), 50));
|
|
279
|
+
break;
|
|
280
|
+
case o.down:
|
|
281
|
+
f(s, g(() => (d().setMove(n.ARROW_DOWN), !1), 50));
|
|
282
|
+
break;
|
|
283
|
+
case o.left:
|
|
284
|
+
f(s, g(() => (d().setMove(n.ARROW_LEFT), !1), 50));
|
|
285
|
+
break;
|
|
286
|
+
case o.delete:
|
|
287
|
+
f(s, P(() => (d().removeComponentList(), !1), 50));
|
|
288
|
+
break;
|
|
289
|
+
case o.copy:
|
|
290
|
+
f(s, P(() => (d().setCopy(), !1), 50));
|
|
291
|
+
break;
|
|
292
|
+
case o.cut:
|
|
293
|
+
f(s, P(() => (d().setCut(), !1), 50));
|
|
294
|
+
break;
|
|
295
|
+
case o.parse:
|
|
296
|
+
f(s, g(() => (d().setParse(), !1), 50));
|
|
297
|
+
break;
|
|
298
|
+
case o.back:
|
|
299
|
+
f(s, g(() => (d().setBack(), !1), 50));
|
|
300
|
+
break;
|
|
301
|
+
case o.forward:
|
|
302
|
+
f(s, g(() => (d().setForward(), !1), 50));
|
|
303
|
+
break;
|
|
304
|
+
case o.group:
|
|
305
|
+
f(s, g(() => (d().setGroup(), !1), 50));
|
|
306
|
+
break;
|
|
307
|
+
case o.unGroup:
|
|
308
|
+
f(s, g(() => (d().setUnGroup(), !1), 50));
|
|
309
|
+
break;
|
|
310
|
+
case o.lock:
|
|
311
|
+
f(s, g(() => (d().setLock(), !1), 50));
|
|
312
|
+
break;
|
|
313
|
+
case o.unLock:
|
|
314
|
+
f(s, g(() => (d().setUnLock(), !1), 50));
|
|
315
|
+
break;
|
|
316
|
+
case o.hide:
|
|
317
|
+
f(s, g(() => (d().setHide(), !1), 50));
|
|
318
|
+
break;
|
|
319
|
+
case o.show:
|
|
320
|
+
f(s, g(() => (d().setShow(), !1), 50));
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
H.forEach((o) => {
|
|
325
|
+
c(l, o);
|
|
326
|
+
}), F.forEach((o) => {
|
|
327
|
+
c(u, o);
|
|
328
|
+
}), se();
|
|
329
|
+
}, de = () => {
|
|
330
|
+
document.onkeydown = () => {
|
|
331
|
+
}, document.onkeyup = () => {
|
|
332
|
+
}, H.forEach((a) => {
|
|
333
|
+
f.unbind(a);
|
|
334
|
+
}), F.forEach((a) => {
|
|
335
|
+
f.unbind(a);
|
|
336
|
+
});
|
|
337
|
+
};
|
|
338
|
+
export {
|
|
339
|
+
ue as a,
|
|
340
|
+
de as u
|
|
341
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { watch as m } from "vue";
|
|
2
|
+
import { useRoute as E } from "vue-router";
|
|
3
|
+
import { L as e, ar as a, O as u } from "./designStore-fe92c2ba.js";
|
|
4
|
+
import { g as l, u as p, p as v } from "./chartEditStore-a725b558.js";
|
|
5
|
+
import { c as C } from "./index-097ae4b0.js";
|
|
6
|
+
import "naive-ui";
|
|
7
|
+
const n = () => p(), S = () => C(), y = () => {
|
|
8
|
+
const t = n();
|
|
9
|
+
l({
|
|
10
|
+
message: "是否覆盖源视图内容,此操作不可撤回?",
|
|
11
|
+
isMaskClosable: !0,
|
|
12
|
+
transformOrigin: "center",
|
|
13
|
+
onPositiveCallback: () => {
|
|
14
|
+
window.$message.success("正在同步编辑器..."), dispatchEvent(new CustomEvent(e.CHART, { detail: t.getStorageInfo() }));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}, o = () => {
|
|
18
|
+
const t = n();
|
|
19
|
+
dispatchEvent(new CustomEvent(e.CHART_TO_PREVIEW, { detail: t.getStorageInfo() }));
|
|
20
|
+
}, g = () => {
|
|
21
|
+
const t = (s) => {
|
|
22
|
+
window.$message.success("正在进行更新..."), S().updateComponent(s.detail, !0);
|
|
23
|
+
}, r = () => {
|
|
24
|
+
n().setEditCanvas(v.IS_CODE_EDIT, !1);
|
|
25
|
+
}, c = () => {
|
|
26
|
+
addEventListener("blur", o), addEventListener(e.JSON, t), addEventListener(e.CLOSE, u(r, 1e3));
|
|
27
|
+
}, i = () => {
|
|
28
|
+
removeEventListener("blur", o), removeEventListener(e.JSON, t);
|
|
29
|
+
};
|
|
30
|
+
return (s, d) => {
|
|
31
|
+
d == a.CHART_HOME_NAME && i(), s == a.CHART_HOME_NAME && c();
|
|
32
|
+
};
|
|
33
|
+
}, L = () => {
|
|
34
|
+
const t = E();
|
|
35
|
+
m(() => t.name, g(), { immediate: !0 });
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
y as s,
|
|
39
|
+
L as u
|
|
40
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { computed as a } from "vue";
|
|
2
|
+
import { u as o } from "./chartEditStore-a725b558.js";
|
|
3
|
+
const u = () => {
|
|
4
|
+
const t = o();
|
|
5
|
+
return { targetData: a(() => {
|
|
6
|
+
const e = t.getComponentList, r = t.fetchTargetIndex();
|
|
7
|
+
return e[r];
|
|
8
|
+
}), chartEditStore: t };
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
u
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as i, ref as s, openBlock as p, createBlock as c, unref as m } from "vue";
|
|
2
|
+
import "./chartEditStore-a725b558.js";
|
|
3
|
+
import { j as _, _ as f } from "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
|
|
4
|
+
import { L as t, F as d, S as l } from "./designStore-fe92c2ba.js";
|
|
5
|
+
import "naive-ui";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "pinia";
|
|
8
|
+
import "./router-106a6abc.js";
|
|
9
|
+
const y = /* @__PURE__ */ i({
|
|
10
|
+
__name: "wrapper",
|
|
11
|
+
setup(S) {
|
|
12
|
+
let r = s(Date.now());
|
|
13
|
+
try {
|
|
14
|
+
[t.JSON, t.CHART_TO_PREVIEW].forEach((o) => {
|
|
15
|
+
!window.opener || !window.opener.addEventListener || window.opener.addEventListener(o, async (n) => {
|
|
16
|
+
const a = await _();
|
|
17
|
+
d(l.GO_CHART_STORAGE_LIST, [{ ...n.detail, id: a.id }]), r.value = Date.now();
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
} catch (e) {
|
|
21
|
+
console.log(e);
|
|
22
|
+
}
|
|
23
|
+
return (e, o) => (p(), c(f, { key: m(r) }));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
y as default
|
|
28
|
+
};
|
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { d as n, f as g, e as f, g as S, h as d } from "./chunks/index-097ae4b0.js";
|
|
2
|
+
import { b, e as C, g as x, d as G, S as I, u as h } from "./chunks/index.vue_vue_type_script_setup_true_lang-c6159a17.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "naive-ui";
|
|
5
|
+
import "./chunks/designStore-fe92c2ba.js";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "./chunks/index-82d00e13.js";
|
|
8
|
+
import "./chunks/chartEditStore-a725b558.js";
|
|
9
|
+
import "pinia";
|
|
10
|
+
import "./chunks/router-106a6abc.js";
|
|
11
|
+
export {
|
|
12
|
+
b as CollapseItem,
|
|
13
|
+
n as Configurator,
|
|
14
|
+
g as Designer,
|
|
15
|
+
C as GlobalSetting,
|
|
16
|
+
x as GlobalSettingPosition,
|
|
17
|
+
f as Renderer,
|
|
18
|
+
G as SettingItem,
|
|
19
|
+
I as SettingItemBox,
|
|
20
|
+
S as default,
|
|
21
|
+
h as useGlobalConfigStore,
|
|
22
|
+
d as useResizeByClientWidth
|
|
23
|
+
};
|