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

Fix #48 - CSS Matrix Transformations for Independent Axis Zooming #171

Closed jaredvacanti closed 3 years ago

jaredvacanti commented 5 years ago

First steps towards implementing v2 fix of #48. Currently passes all matrix math tests, but I need to work on the gestures further. The orginal wheel and mousedown are a difficult to reason about - any help would be appreciated.

I've also noticed https://github.com/d3/d3-selection/pull/210 Selection v2 is in development, I believe primarily the event global would be changed. Should we take the new event structure into consideration for this update?

jaredvacanti commented 5 years ago

Any opinion if this WIP should wait for d3-selection to move away from the event global? I'm available to wrap up this feature for d3-zoom.

mbostock commented 5 years ago

Yeah, I’m deep in trying to get d3@6 released (d3/d3#3333) and that includes d3-selection@2’s removal of d3.event. I think this will likely have to wait for d3@7. But it’d be great if you wanted to continue working on this in parallel.