Skip to content

Commit

Permalink
Fix d3#72 - add note re. character encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jul 30, 2013
1 parent be38866 commit 56b0c84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions interpolate-zoom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ An interpolator for zooming and panning between two views of a two-dimensional p

Demo: <http://bl.ocks.org/3828981>

To include this script in the page:

```html
<script charset="utf-8" src="http://d3js.org/d3.interpolate-zoom.v0.min.js"></script>
```

Note that since this script uses UTF-8 characters, the `charset` attribute is required if the page does not have a `<meta charset="utf-8">` in the head. There’s also a [d3.interpolate-zoom.v0.js](http://d3js.org/d3.interpolate-zoom.v0.js) for development, or you can clone this repository.

<a name="interpolateZoom" href="#interpolateZoom">#</a> d3.<b>interpolateZoom</b>(<i>start</i>, <i>end</i>)

Returns an [interpolator](https://github.com/mbostock/d3/wiki/Transitions#wiki-_interpolate) between the two points *start* and *end*. Each point should be defined as an array of three numbers in world coordinates: *ux*, *uy* and *w*. The first two coordinates *ux*, *uy* are the center of the viewport. The last coordinate *w* is the size of the viewport.
Expand Down

0 comments on commit 56b0c84

Please sign in to comment.