block by Fil 94969bd407186d397ae74781759fceb7

Pan & Zoom III

Full Screen

This example demonstrates using d3-zoom to pan and zoom an SVG element by applying an SVG transform using transform.toString. The zoom behavior is applied to an invisible rect overlaying the SVG element; this ensures that it receives input, and that the pointer coordinates are not affected by the zoom behavior’s transform.

forked from mbostock‘s block: Pan & Zoom III

index.html