strathausen / dracula

JavaScript layout and representation of connected graphs.
https://www.graphdracula.net
MIT License
834 stars 132 forks source link

changes to satisfy JSHint and major improvement to fix redraw #32

Closed kingkero closed 9 years ago

kingkero commented 9 years ago

One error is still thrown ("Don't make functions within a loop") which probably cannot be resolved that easily. The comment /* jshint loopfunc:true */ might be helpful

kingkero commented 9 years ago

I have added another major improvement (sorry if this wasn't the right way, new to GitHub, forking and pull requests). The draw method has been broken for redrawing - this can be seen in the Spring example when you hit the redraw button. It will effectively kick some nodes off the screen. Why? Because the translation has been applied twice. I removed the unnecessary code (which should also improve performance)