@zhangqingcq/vgce 0.0.33 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +18 -6
- package/dist/style.css +1 -7
- package/dist/vgce.js +33817 -58817
- package/dist/vgce.umd.cjs +48 -1035
- package/package.json +1 -1
- package/src/components/ace-edit.ts +15 -16
- package/src/components/svg-editor/center-panel.vue +7 -5
- package/src/stores/system/index.ts +5 -5
package/package.json
CHANGED
@@ -1,27 +1,26 @@
|
|
1
1
|
import ace from 'ace-builds'
|
2
|
-
|
3
|
-
|
4
|
-
ace.config.setModuleUrl('ace/theme/github', themeUrl)
|
2
|
+
// import themeUrl from 'ace-builds/src-noconflict/theme-github?url'
|
3
|
+
// ace.config.setModuleUrl('ace/theme/github', themeUrl)
|
5
4
|
|
6
5
|
import themeUrl2 from 'ace-builds/src-noconflict/theme-kr_theme?url'
|
7
6
|
ace.config.setModuleUrl('ace/theme/kr_theme', themeUrl2)
|
8
7
|
|
9
|
-
import workerBaseUrl from 'ace-builds/src-noconflict/worker-base?url'
|
10
|
-
ace.config.setModuleUrl('ace/mode/base', workerBaseUrl)
|
8
|
+
// import workerBaseUrl from 'ace-builds/src-noconflict/worker-base?url'
|
9
|
+
// ace.config.setModuleUrl('ace/mode/base', workerBaseUrl)
|
11
10
|
|
12
11
|
import modeJsonUrl from 'ace-builds/src-noconflict/mode-json?url'
|
13
12
|
ace.config.setModuleUrl('ace/mode/json', modeJsonUrl)
|
14
13
|
import workerJsonUrl from 'ace-builds/src-noconflict/worker-json?url'
|
15
14
|
ace.config.setModuleUrl('ace/mode/json_worker', workerJsonUrl)
|
16
|
-
import snippetsJsonUrl from 'ace-builds/src-noconflict/snippets/json?url'
|
17
|
-
ace.config.setModuleUrl('ace/snippets/json', snippetsJsonUrl)
|
18
|
-
|
19
|
-
import modeJavascriptUrl from 'ace-builds/src-noconflict/mode-javascript?url'
|
20
|
-
ace.config.setModuleUrl('ace/mode/javascript', modeJavascriptUrl)
|
21
|
-
import workerJavascriptUrl from 'ace-builds/src-noconflict/worker-javascript?url'
|
22
|
-
ace.config.setModuleUrl('ace/mode/javascript_worker', workerJavascriptUrl)
|
23
|
-
import snippetsJavascriptUrl from 'ace-builds/src-noconflict/snippets/javascript?url'
|
24
|
-
ace.config.setModuleUrl('ace/snippets/javascript', snippetsJavascriptUrl)
|
15
|
+
// import snippetsJsonUrl from 'ace-builds/src-noconflict/snippets/json?url'
|
16
|
+
// ace.config.setModuleUrl('ace/snippets/json', snippetsJsonUrl)
|
17
|
+
//
|
18
|
+
// import modeJavascriptUrl from 'ace-builds/src-noconflict/mode-javascript?url'
|
19
|
+
// ace.config.setModuleUrl('ace/mode/javascript', modeJavascriptUrl)
|
20
|
+
// import workerJavascriptUrl from 'ace-builds/src-noconflict/worker-javascript?url'
|
21
|
+
// ace.config.setModuleUrl('ace/mode/javascript_worker', workerJavascriptUrl)
|
22
|
+
// import snippetsJavascriptUrl from 'ace-builds/src-noconflict/snippets/javascript?url'
|
23
|
+
// ace.config.setModuleUrl('ace/snippets/javascript', snippetsJavascriptUrl)
|
25
24
|
|
26
|
-
import 'ace-builds/src-noconflict/ext-language_tools'
|
27
|
-
ace.require('ace/ext/language_tools')
|
25
|
+
// import 'ace-builds/src-noconflict/ext-language_tools'
|
26
|
+
// ace.require('ace/ext/language_tools')
|
@@ -1175,12 +1175,12 @@
|
|
1175
1175
|
.contextMenu {
|
1176
1176
|
position: fixed;
|
1177
1177
|
z-index: 99999;
|
1178
|
-
background:
|
1178
|
+
background: rgba(255, 255, 255, 0.75);
|
1179
1179
|
padding: 5px 0;
|
1180
1180
|
margin: 0;
|
1181
1181
|
display: block;
|
1182
|
-
border-radius:
|
1183
|
-
box-shadow: 2px 5px
|
1182
|
+
border-radius: 3px;
|
1183
|
+
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
|
1184
1184
|
|
1185
1185
|
li {
|
1186
1186
|
list-style: none;
|
@@ -1197,16 +1197,18 @@
|
|
1197
1197
|
p {
|
1198
1198
|
text-decoration: none;
|
1199
1199
|
display: block;
|
1200
|
-
padding: 0 15px 1px
|
1200
|
+
padding: 0 15px 1px 15px;
|
1201
1201
|
margin: 0;
|
1202
1202
|
user-select: none;
|
1203
1203
|
-webkit-user-select: none;
|
1204
|
+
font-size: 14px;
|
1205
|
+
color: #09053d;
|
1204
1206
|
}
|
1205
1207
|
|
1206
1208
|
p:hover {
|
1207
1209
|
background-color: @listActiveColor;
|
1208
1210
|
color: #ffffff;
|
1209
|
-
cursor:
|
1211
|
+
cursor: pointer;
|
1210
1212
|
}
|
1211
1213
|
|
1212
1214
|
.disabled {
|
@@ -58,7 +58,7 @@ export const useContextMenuStore = defineStore('context-menu-store', {
|
|
58
58
|
info: {
|
59
59
|
[EContextMenuInfoType.Copy]: {
|
60
60
|
title: '复制',
|
61
|
-
hot_key: 'Ctrl+
|
61
|
+
hot_key: 'Ctrl + c',
|
62
62
|
enable: true
|
63
63
|
},
|
64
64
|
[EContextMenuInfoType.Delete]: {
|
@@ -68,22 +68,22 @@ export const useContextMenuStore = defineStore('context-menu-store', {
|
|
68
68
|
},
|
69
69
|
[EContextMenuInfoType.MoveUpTopLevel]: {
|
70
70
|
title: '置于顶层',
|
71
|
-
hot_key: 'Ctrl
|
71
|
+
hot_key: 'Ctrl + →',
|
72
72
|
enable: true
|
73
73
|
},
|
74
74
|
[EContextMenuInfoType.MoveDownTopLevel]: {
|
75
75
|
title: '置于底层',
|
76
|
-
hot_key: 'Ctrl
|
76
|
+
hot_key: 'Ctrl + ←',
|
77
77
|
enable: true
|
78
78
|
},
|
79
79
|
[EContextMenuInfoType.MoveUpOneLevel]: {
|
80
80
|
title: '置于上一层',
|
81
|
-
hot_key: 'Ctrl
|
81
|
+
hot_key: 'Ctrl + ↑',
|
82
82
|
enable: true
|
83
83
|
},
|
84
84
|
[EContextMenuInfoType.MoveDownOneLevel]: {
|
85
85
|
title: '置于下一层',
|
86
|
-
hot_key: 'Ctrl
|
86
|
+
hot_key: 'Ctrl + ↓',
|
87
87
|
enable: true
|
88
88
|
}
|
89
89
|
}
|