Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 480bfb6c51 Refactor geo tests for minimal loading. 2013-03-14 09:41:29 -07:00
Mike Bostock 608902c907 Checkpoint test refactoring. 2013-03-13 23:21:23 -07:00
Jason Davies 5c9b90ce07 d3.geo.distance: accuracy for small distances. 2013-01-31 13:27:21 +00:00
Mike Bostock 6b06c4526b Deprecate d3.geo.greatArc; add d3.geo.distance.
Now that D3 supports great-arc interpolation automatically for projections,
there is no need for a great arc feature generator, as a simple LineString
geometry object is equivalent. For the same reason, d3.geo.graticule does not
need to use supersampling on meridians, since meridians are great arcs.

This commit also adds d3.geo.distance(a, b) for computing the length of the
great arc between points a and b in radians, as a replacement for the
deprecated d3.geo.greatArc method, and a faster alternative to constructing a
d3.geo.interpolate solely to measure distance.

Fixes #1021 #1024.
2013-01-23 15:46:34 -08:00