From 83b78298906c21ccd23e9ec6dc5cfe5ff36302eb Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 26 Jun 2024 16:35:40 +0800 Subject: [PATCH] =?UTF-8?q?CN-1548=20fix:=20=E4=BC=98=E5=8C=96=E7=82=B9?= =?UTF-8?q?=E5=87=BBtempNode=E5=90=8E=EF=BC=8ClistNode=E5=B1=95=E5=BC=80en?= =?UTF-8?q?tityNode=E6=97=B6=E6=96=B0=E7=94=9F=E6=88=90=E7=9A=84entityNode?= =?UTF-8?q?=E9=97=AA=E5=8A=A8=E5=B9=85=E5=BA=A6=E5=A4=A7=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/EntityGraph.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 48d87770..a665d5f9 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -69,7 +69,7 @@ export default { nodes: [], links: [], graph: shallowRef(null), - defaultChargeStrength: -60, // 之前的设置-20 + defaultChargeStrength: -50, // 之前的设置-20 defaultLinkDistance: 80, defaultMargin: 2, // 图像与箭头的距离 rootNode: null, @@ -428,8 +428,8 @@ export default { const entityNode = new Node(nodeType.entityNode, entity.vertex, { entityType: listNode.data.entityType, entityName: entity.vertex, - x: listNode.x, - y: listNode.y + x: listNode.x + Math.random() * 10 - 5, + y: listNode.y + Math.random() * 10 - 5 }, listNode, this.getIconUrl(listNode.data.entityType, false, false)) nodes.push(entityNode) let link = new Link(listNode, entityNode) @@ -556,7 +556,7 @@ export default { node.preDragX = node.x + translate.x node.preDragY = node.y + translate.y }) - .cooldownTime(3000)//到时间后,才执行onEngineStop + .cooldownTime(2000)//到时间后,才执行onEngineStop .onNodeDragEnd((node, translate) => { // 修复拖动节点 node.fx = node.x node.fy = node.y