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