fix: Node weight filter function

This commit is contained in:
Keang 2021-12-11 01:13:41 +11:00
parent 2009a591d6
commit 2c8cff96f2

View File

@ -60,7 +60,7 @@
let weight =
3 *
Math.sqrt(
linksData.filter((l) => l.source === el.id || l.target === el.id)
linksData.filter((l) => l.source.id === el.id || l.target.id === el.id)
.length + 1
);
if (weight < MINIMAL_NODE_SIZE) {