ZJUVAI/NetV.js

addLinks() function can only be used once

Closed this issue · 0 comments

When using addLinks() function for once, everything is OK.
But when using addLinks() or addLink() function for more than once, it looks like there are duplicated lines in the graph and it slow down the speed of browser.
B{99%@{L979G$WF 44QV7C1
By dragging the point, we can see the duplicated lines following behind the origin lines.
It seems to be a mistake in the addLinks() method:
this.$_renderer.addLinks([...this.$_ends2link.values()]) // NOTE: preserve link order, not elegant
The links has been duplicated added, but cannot solve this problem at present.