diff --git a/README.md b/README.md index 3f0b8af9d..bdf07f9f0 100644 --- a/README.md +++ b/README.md @@ -4,19 +4,19 @@ Panning and zooming are popular interaction techniques which let the user focus The zoom behavior implemented by d3-zoom is a convenient but flexible abstraction for enabling pan-and-zoom on [selections](https://github.com/d3/d3-selection). It handles a surprising variety of [input events](#api-reference ) and browser quirks. The zoom behavior is agnostic about the DOM, so you can use it with SVG, HTML or Canvas. -[Canvas Zooming](https://bl.ocks.org/mbostock/d1f7b58631e71fbf9c568345ee04a60e)[SVG Zooming](https://bl.ocks.org/mbostock/4e3925cdc804db257a86fdef3a032a45) +[Canvas Zooming](https://observablehq.com/@d3/zoom-canvas)[SVG Zooming](https://observablehq.com/@d3/zoom) The zoom behavior is also designed to work with [d3-scale](https://github.com/d3/d3-scale) and [d3-axis](https://github.com/d3/d3-axis); see [*transform*.rescaleX](#transform_rescaleX) and [*transform*.rescaleY](#transform_rescaleY). You can also restrict zooming using [*zoom*.scaleExtent](#zoom_scaleExtent) and panning using [*zoom*.translateExtent](#zoom_translateExtent). -[Axis Zooming](https://bl.ocks.org/mbostock/db6b4335bf1662b413e7968910104f0f) +[Axis Zooming](https://observablehq.com/@d3/zoomable-scatterplot) The zoom behavior can be combined with other behaviors, such as [d3-drag](https://github.com/d3/d3-drag) for dragging, and [d3-brush](https://github.com/d3/d3-brush) for focus + context. -[Drag & Zoom II](https://bl.ocks.org/mbostock/3127661b6f13f9316be745e77fdfb084)[Brush & Zoom](https://bl.ocks.org/mbostock/34f08d5e11952a80609169b7917d4172) +[Drag & Zoom II](https://observablehq.com/@d3/drag-zoom)[Brush & Zoom](https://observablehq.com/@d3/focus-context) The zoom behavior can be controlled programmatically using [*zoom*.transform](#zoom_transform), allowing you to implement user interface controls which drive the display or to stage animated tours through your data. Smooth zoom transitions are based on [“Smooth and efficient zooming and panning”](http://www.win.tue.nl/~vanwijk/zoompan.pdf) by Jarke J. van Wijk and Wim A.A. Nuij. -[Zoom Transitions](https://bl.ocks.org/mbostock/b783fbb2e673561d214e09c7fb5cedee) +[Zoom Transitions](https://observablehq.com/@d3/programmatic-zoom) See also [d3-tile](https://github.com/d3/d3-tile) for examples panning and zooming maps.