tntvis / tnt

Visualization of trees and track based annotations
Apache License 2.0
6 stars 2 forks source link

pan / zoom limits #15

Closed emepyc closed 9 years ago

emepyc commented 10 years ago

Right now, panning and zooming limits are based on this pull request: https://github.com/mbostock/d3/pull/1299

This means that tnt doesn't use the official d3 lib. This pull request is a bit old now, it has diverged from the master branch and it looks it won't be merged into the latest d3 code. It is better to use the official d3 lib and use panning/zooming limits in the tnt lib directly. Examples:

http://bl.ocks.org/garrilla/11280861 http://bl.ocks.org/shawnbot/6518285

emepyc commented 9 years ago

This is now done. Tnt is using again the official version of d3. Restricting panning and zooming is done with the solution suggested in the pr mbostock/d3#1299