Browse Source

feat: 修改版本

Gaokun Wang 6 days ago
parent
commit
648891f14c
2 changed files with 3 additions and 6 deletions
  1. 1 1
      package.json
  2. 2 5
      src/views/graph/index.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "case-app",
-  "version": "1.0.0",
+  "version": "1.0.1",
   "description": "An Electron application with Vue and TypeScript",
   "main": "./out/main/index.js",
   "author": "example.com",

+ 2 - 5
src/views/graph/index.ts

@@ -62,7 +62,6 @@ export default class FlowGraph {
       // 开启画布缩放
       mousewheel: {
         enabled: true,
-        modifiers: ['ctrl', 'meta'],
         minScale: 0.5,
         maxScale: 2
       },
@@ -130,8 +129,7 @@ export default class FlowGraph {
       },
       // 开启拖拽平移(防止冲突,按下修饰键并点击鼠标才能触发画布拖拽)
       panning: {
-        enabled: true,
-        modifiers: 'shift'
+        enabled: true
       },
       resizing: true,
       rotating: true,
@@ -139,8 +137,7 @@ export default class FlowGraph {
         enabled: true,
         multiple: true,
         rubberband: true,
-        movable: true,
-        showNodeSelectionBox: true
+        modifiers: 'ctrl'
       },
       snapline: true,
       history: true,