block by mbostock 4987520

Constrained Zoom

Full Screen

This example demonstrates using the zoom event to constrain the zoom behavior’s translation. This implementation is a bit heavy-handed, as the translate constraint is zoom-dependent.

index.html