From 3abf431da728beae888fde15287378c787e14050 Mon Sep 17 00:00:00 2001 From: wangzijun Date: Wed, 3 Aug 2022 10:30:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=87=BA=E7=8E=B0=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E6=A1=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/demo/index-gaode.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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)=>{