d3 / d3-zoom

Pan and zoom SVG, HTML or Canvas using mouse or touch input.
https://d3js.org/d3-zoom
ISC License
507 stars 143 forks source link

v3 to v4 conversion timeline #142

Closed CHGLongStone closed 6 years ago

CHGLongStone commented 6 years ago

I'm trying to port up this project https://github.com/commodityvectors/d3-timeline and cannot for the life of me get the zoom working correctly so the timeline nodes will resize with scaling not sure if it's a scope issue because I'm calling it a couple nodes deep in a service class

the issue is somewhere between attaching the zoom to the right selection object and the onVizChange call back. I've been bashing my head a couple days, any insight would be appreciated.

mbostock commented 6 years ago

The changes are documented here:

https://github.com/d3/d3/blob/master/CHANGES.md