d3 / d3-zoom

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

Add rotate? #218

Open Fil opened 4 years ago

Fil commented 4 years ago

In multitouch, by following the angle between fingers it's possible to rotate objects, as demonstrated in "Attitude zooming" https://observablehq.com/d/7a912fba32fbe641?collection=@d3/d3-zoom

This part of the gesture could be included in d3-zoom to help to rotate objects on the plane (e.g. photos on a table).

However it's not clear to me how we would rotate without multitouch (grabbing by a corner, or using a modifier key?).