解决出现拖拽框问题
This commit is contained in:
parent
417dc199ed
commit
3abf431da7
|
@ -222,8 +222,6 @@ export default {
|
|||
center:[105.602725,37.076636],//初始化地图中心位置
|
||||
})
|
||||
|
||||
|
||||
|
||||
//var x6Dom = document.createElement('container');
|
||||
var x6Dom = this.$refs.container
|
||||
var x6 = document.getElementsByClassName("x6-graph-svg")[1];
|
||||
|
@ -273,7 +271,7 @@ export default {
|
|||
snapline: true,//对齐线
|
||||
selecting: {//点选/框选
|
||||
enabled: true,//开启点选/框选
|
||||
rubberband: true,//启用框选
|
||||
//rubberband: true,//启用框选
|
||||
showNodeSelectionBox: true,//是否显示节点的选择框
|
||||
},
|
||||
resizing:true,//缩放节点
|
||||
|
@ -386,7 +384,7 @@ export default {
|
|||
this.showPorts(ports, true)
|
||||
this.showNodeTool(e.node,true)
|
||||
//当鼠标移动到节点上,关闭地图的拖拽
|
||||
this.changeMapDrag(false)
|
||||
//this.changeMapDrag(false)
|
||||
})
|
||||
//鼠标移出节点,隐藏桩、删除当前节点删除按钮
|
||||
this.graph.on('node:mouseleave', ( e) => {
|
||||
|
@ -397,7 +395,7 @@ export default {
|
|||
this.showPorts(ports, false)
|
||||
this.showNodeTool(e.node,false)
|
||||
//当鼠标移动到节点上,开启地图的拖拽
|
||||
this.changeMapDrag(true)
|
||||
//this.changeMapDrag(true)
|
||||
})
|
||||
//鼠标移动到线上,给当前线添加删除按钮
|
||||
this.graph.on('edge:mouseenter',(e)=>{
|
||||
|
|
Loading…
Reference in New Issue