From 6fc13d7a470b0a9d748f3b473b0498591c3b0674 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 17 Apr 2025 04:32:39 +0800 Subject: [PATCH] Update node size logic node expansion --- lightrag_webui/src/hooks/useLightragGraph.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lightrag_webui/src/hooks/useLightragGraph.tsx b/lightrag_webui/src/hooks/useLightragGraph.tsx index cb497d62..9fbc9208 100644 --- a/lightrag_webui/src/hooks/useLightragGraph.tsx +++ b/lightrag_webui/src/hooks/useLightragGraph.tsx @@ -782,11 +782,7 @@ const useLightrangeGraph = () => { Constants.minNodeSize + scale * Math.pow((limitedDegree - minDegree) / range, 0.5) ); - const currentSize = sigmaGraph.getNodeAttribute(nodeId, 'size'); - - if (newSize > currentSize) { - sigmaGraph.setNodeAttribute(nodeId, 'size', newSize); - } + sigmaGraph.setNodeAttribute(nodeId, 'size', newSize); } } };