From c71eb1fb065db36567fcb56886e12401eb25360d Mon Sep 17 00:00:00 2001 From: NaiboWang-Alienware Date: Wed, 19 Jul 2023 07:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E5=87=BB=E8=B0=83=E6=95=B4=E9=94=9A?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ElectronJS/src/taskGrid/FlowChart.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ElectronJS/src/taskGrid/FlowChart.js b/ElectronJS/src/taskGrid/FlowChart.js index 3c2a565..6e5d2a9 100644 --- a/ElectronJS/src/taskGrid/FlowChart.js +++ b/ElectronJS/src/taskGrid/FlowChart.js @@ -562,6 +562,13 @@ function elementDragEnd(e) { e.stopPropagation(); } +function arrowDblClick(e) { + option = 13; //调整锚点操作 + app._data.nowArrow = { "position": this.getAttribute('position'), "pId": this.getAttribute('pId'), "num": 0 }; + toolBoxKernel.call(this, e); + e.stopPropagation(); +} + function arrowDragEnd(e) { option = 13; //调整锚点操作 toolBoxKernel.call(this, e); @@ -592,6 +599,8 @@ function bindEvents() { rule.addEventListener('click', arrowClick); rule.removeEventListener('mousedown', arrowMouseDown); rule.addEventListener('mousedown', arrowMouseDown); + rule.removeEventListener('dblclick', arrowDblClick); + rule.addEventListener('dblclick', arrowDblClick); rule.removeEventListener('dragover', arrowDragOver); rule.addEventListener('dragover', arrowDragOver); rule.removeEventListener('dragend', arrowDragEnd);