mbostock/d3 — pull request #822 by jasondavies (2012-09-25 21:21:32+00:00)
Title: Add antemeridian cutting for all projections.

Note: this also fixes d3.geo.graticule; I assume it only generates two-point lines in preparation for adaptive resampling. :) However, I think it's conventional to assume the shortest distance given two points on a sphere (otherwise it’s ambiguous), so we should include at least as many points such that the distance is less than 180° between any two points.

I went for the simplest solution and simply inserted points for each crossing point. I can see that it might be nice to only generate 4 points so that there is less overhead when drawing the poles, but this works for now.