Closed naugtur closed 9 years ago
Looks good, remove the console.log, and I'll merge it in, thanks a bunch man!
Hi, you never responded to my justification for the console.log in there. If that's a strong no I can remove it and let's merge.
Sorry, I'm currently traveling Asia. I'd prefer if we keep console.logs out of the code, and find an better way to "dump" the data, if needed.
Ok, there you go. I'll see if I have time to make something nicer to dump the data.
LGTM :+1:
Thanks a bunch for the contribution!
Added persisting node positions to localStorage based on a hash of graph data source path and configuration. Nodes get saved a second after last mouse event in a row. When saved, the data gets logged in the console too, so one can copy-paste it to the html file to store it cross-browser.
btw. removed underscore from html file as it's no longer needed. I'd remove jQuery dependency too, but I'm lazy.