@zhangqingcq/vgce 0.1.22 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -0
- package/dist/style.css +1 -1
- package/dist/vgce.js +3016 -3010
- package/dist/vgce.umd.cjs +18 -18
- package/package.json +1 -1
- package/src/components/svg-editor/center-panel.vue +13 -0
- package/src/components/svg-viewer.vue +1 -1
- package/src/utils/mqtt-net.ts +1 -1
package/package.json
CHANGED
@@ -964,6 +964,18 @@
|
|
964
964
|
}
|
965
965
|
}
|
966
966
|
|
967
|
+
const onHandleKeyUp = (e: KeyboardEvent) => {
|
968
|
+
const t = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight']
|
969
|
+
if (!e.ctrlKey && t.indexOf(e.key) > -1) {
|
970
|
+
//群组移动了,从新计算移动过的组件各种坐标信息
|
971
|
+
for (let e of globalStore.done_json) {
|
972
|
+
if (e.selected) {
|
973
|
+
setSvgActualInfo(e)
|
974
|
+
}
|
975
|
+
}
|
976
|
+
}
|
977
|
+
}
|
978
|
+
|
967
979
|
const resizeBox = () => {
|
968
980
|
setSvgActualInfo(globalStore.done_json[globalStore.handle_svg_info!.index], true)
|
969
981
|
}
|
@@ -998,6 +1010,7 @@
|
|
998
1010
|
@mouseup="onCanvasMouseUp"
|
999
1011
|
@contextmenu="onCanvasContextMenuEvent"
|
1000
1012
|
@keydown="onHandleKeyDown"
|
1013
|
+
@keyup="onHandleKeyUp"
|
1001
1014
|
@mousewheel="onMousewheel"
|
1002
1015
|
>
|
1003
1016
|
<slot name="background" />
|
@@ -131,7 +131,7 @@
|
|
131
131
|
if (e.wheelDelta > 0) {
|
132
132
|
preview_data.config.svg.scale = myFixed(preview_data.config.svg.scale + 0.1, 1)
|
133
133
|
getZoomPosition(e, preview_data.config.svg.scale, preview_data.layout_center, true)
|
134
|
-
} else {
|
134
|
+
} else if (preview_data.config.svg.scale > 0.1) {
|
135
135
|
preview_data.config.svg.scale = myFixed(preview_data.config.svg.scale - 0.1, 1)
|
136
136
|
getZoomPosition(e, preview_data.config.svg.scale, preview_data.layout_center, false)
|
137
137
|
}
|
package/src/utils/mqtt-net.ts
CHANGED