diff --git a/src/demo/index-gaode.vue b/src/demo/index-gaode.vue index fe9b927..72ce568 100644 --- a/src/demo/index-gaode.vue +++ b/src/demo/index-gaode.vue @@ -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)=>{