Update node size logic node expansion

This commit is contained in:
yangdx
2025-04-17 04:32:39 +08:00
parent a185e48b87
commit 6fc13d7a47

View File

@@ -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);
}
}
};