Updated relationships label in locale files.

This commit is contained in:
yangdx
2025-03-22 15:07:46 +08:00
parent 79dc2cb62b
commit fe72b9d65d
5 changed files with 6 additions and 6 deletions

View File

@@ -686,11 +686,11 @@ const useLightrangeGraph = () => {
updateNodeSizes(sigmaGraph, nodesWithDiscardedEdges, minDegree, maxDegree);
if (sigmaGraph.hasNode(nodeId)) {
const finalDegree = sigmaGraph.degree(nodeId);
const finalDegree = sigmaGraph.degree(nodeId);
const limitedDegree = Math.min(finalDegree, maxDegree + 1);
const newSize = Math.round(
Constants.minNodeSize + scale * Math.pow((limitedDegree - minDegree) / range, 0.5)
);
);
sigmaGraph.setNodeAttribute(nodeId, 'size', newSize);
nodeToExpand.size = newSize;
nodeToExpand.degree = finalDegree;