All examples By author By category About

mbostock

Constrained Zoom

This example demonstrates how to constrain d3-zoom such that a rectangular area of interest is not allowed to go outside the viewport.