From 8157c20d37ca78679e3cdbb5b9a0f8d47094a2ce Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 19 Jun 2024 16:09:37 +0800 Subject: [PATCH] =?UTF-8?q?CN-1548=20fix:=20=E8=B0=83=E6=95=B4=E5=88=9D?= =?UTF-8?q?=E5=A7=8Bzoom=E3=80=81=E4=BF=AE=E5=A4=8Drightbox-detail?= =?UTF-8?q?=E7=9A=84=E5=90=8D=E7=A7=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/EntityGraph.vue | 6 +++--- src/views/entityExplorer/entityGraph/GraphEntityDetail.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 713ce1e3..eab765d4 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -305,7 +305,7 @@ export default { } }) .centerAt(0, 30)// 设置中心节点位置 - .zoom(1) + .zoom(0.9999) .onNodeClick(async (node, e) => { this.isClicking = true this.clickNode = node || null @@ -457,9 +457,9 @@ export default { .d3Force('link', d3.forceLink().id(link => link.id) .distance(link => { if (link.source.type === nodeType.rootNode) { - return 160 + return 180 } - return 80 + return 90 }) .strength(link => { return link.strength diff --git a/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue b/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue index ae3dae70..95481430 100644 --- a/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue +++ b/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue @@ -8,7 +8,7 @@