From 71c27f183819df10bb321709ed3e62bed641cf05 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 27 Jun 2024 14:50:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E9=AB=98=E4=BA=AElink?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=9C=BC=E7=A8=8B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/EntityGraph.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 56a9df56..f8ecdd61 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -230,7 +230,7 @@ export default { .linkCanvasObject((link, ctx) => { const start = link.source const end = link.target - const width = 1 // 线宽 + let width = 1 // 线宽 const arrowSize = 3 // 箭头大小 const shortenedLength = 20 // link 末端缩短长度 @@ -252,7 +252,8 @@ export default { } else { ctx.setLineDash([]) if (this.clickNode.id === link.source.id || this.clickNode.id === link.target.id) { - color = 'rgba(119,131,145,0.8)' // 高亮线颜色 + color = 'rgba(119,131,145,0.9)' // 高亮线颜色 + width = 1.2 } else { color = 'rgba(119,131,145,0.3)' // 普通线颜色 }