mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-12-29 15:52:30 +00:00
Update node size logic node expansion
This commit is contained in:
parent
a185e48b87
commit
6fc13d7a47
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user