ndtv-d3 icon indicating copy to clipboard operation
ndtv-d3 copied to clipboard

support programmed pan and zoom using the xrange and yrange attributes

Open skyebend opened this issue 10 years ago • 2 comments

someday it would be cool for the user to be able to make the movie pan and zoom by defining how these change over time.

skyebend avatar Oct 16 '14 21:10 skyebend

do you mean expose a JS interface to control the panning and zooming, or include panning and zooming info in the data file on a per-slice basis? Or something else?

michalgm avatar Oct 16 '14 22:10 michalgm

on a perslice basis, using the the elements that included in the render object to define the range of the network coordinate space that should be mapped to the viewport

"xlim": [

-2.7796,
2.7796

], "ylim": [

-2.9963,
2.9963

]

skyebend avatar Oct 16 '14 23:10 skyebend