NLeSC / case-law-app

Apache License 2.0
9 stars 9 forks source link

Improve changing force layout #11

Open dafnevk opened 7 years ago

dafnevk commented 7 years ago

Upon selecting 'adjust layout for slider', the force layout should be updated when the slider is moved. At the moment, the ForceLayout component is completely detached and attached again in order for it to restart. This results in artifacts, the animation does not look smooth and the algorithm pushes everything in the corner.

Maybe a better result could be achieved by only restarting the algorithm and animation.