The rectangle can be resized by click-dragging the circle handles in the corners around but minimal size lengths are maintained (therefore the corner handles also cannot switch sides).
The rectangle can be dragged around by click-dragging anywhere else on the rectangle.
Updated missing url https://cdn.rawgit.com/Herst/d3-zoom/ac2cab0ce1f1515312ec68b4e5594d19dd473dd2/build/d3.js to https://cdn.jsdelivr.net/gh/herst/d3-zoom/ac2cab0ce1f1515312ec68b4e5594d19dd473dd2/build/d3.js
https://cdn.rawgit.com/Herst/d3-zoom/ac2cab0ce1f1515312ec68b4e5594d19dd473dd2/build/d3.js