neo4j-contrib / graphgist

Easy publishing with graph data included
http://gist.neo4j.org/
208 stars 68 forks source link

Graph zooming with Alt Key #20

Closed trengrj closed 10 years ago

trengrj commented 10 years ago

As promised, I've enabled graph zooming and panning when the alt key is held down.

Zooming is working well but the panning still needs some work. It is getting disabled after zooming or normal repositioning of the nodes.

I had to bump up the d3 version to get the zoomstart event.

nawroth commented 10 years ago

John, thanks a lot for getting back to us right away!

I assume it was time to upgrade d3 anyhow.

Could you please send in a CLA, we need that from contributors: http://docs.neo4j.org/chunked/2.0.3/cla.html

trengrj commented 10 years ago

Sure, I've just sent in the CLA.

nawroth commented 10 years ago

@trengrj @jexp Does this make sense? https://github.com/nawroth/graphgist/commit/f7c9037a2794f10a13e62a241c42d0c1d4a0a7dd This gets rid of the Uncaught TypeError: Cannot read property 'on' of undefined when clicking on the SVG.