yangdx
commited on
Commit
·
6f21f6c
1
Parent(s):
8467a67
Update node size logic node expansion
Browse files
lightrag_webui/src/hooks/useLightragGraph.tsx
CHANGED
@@ -782,11 +782,7 @@ const useLightrangeGraph = () => {
|
|
782 |
Constants.minNodeSize + scale * Math.pow((limitedDegree - minDegree) / range, 0.5)
|
783 |
);
|
784 |
|
785 |
-
|
786 |
-
|
787 |
-
if (newSize > currentSize) {
|
788 |
-
sigmaGraph.setNodeAttribute(nodeId, 'size', newSize);
|
789 |
-
}
|
790 |
}
|
791 |
}
|
792 |
};
|
|
|
782 |
Constants.minNodeSize + scale * Math.pow((limitedDegree - minDegree) / range, 0.5)
|
783 |
);
|
784 |
|
785 |
+
sigmaGraph.setNodeAttribute(nodeId, 'size', newSize);
|
|
|
|
|
|
|
|
|
786 |
}
|
787 |
}
|
788 |
};
|