https://github.com/d3/d3
Revision 32e73ca18ad01d9d6e92930a478f5e254f5d23b9 authored by Mike Bostock on 17 November 2013, 17:11:37 UTC, committed by Mike Bostock on 19 November 2013, 17:16:05 UTC
When computing the midpoint between two points both at longitude -π, there was a
chance that atan2 would return +π rather than -π. Now, we check whether the
points to interpolate lie (approximately) on a meridian; if they do, we can
approximate by using linear interpolation of longitude rather than atan2. This
fixes #1635 which was caused by new trig implementations in Chrome Canary.
1 parent 70a16b5
History
Tip revision: 32e73ca18ad01d9d6e92930a478f5e254f5d23b9 authored by Mike Bostock on 17 November 2013, 17:11:37 UTC
Avoid flipping longitude near ±π.
Tip revision: 32e73ca
File Mode Size
bin
lib
src
test
.gitignore -rw-r--r-- 29 bytes
.npmignore -rw-r--r-- 31 bytes
.travis.yml -rw-r--r-- 36 bytes
CONTRIBUTING.md -rw-r--r-- 2.4 KB
LICENSE -rw-r--r-- 1.4 KB
Makefile -rw-r--r-- 990 bytes
README.md -rw-r--r-- 598 bytes
bower.json -rw-r--r-- 360 bytes
component.json -rw-r--r-- 421 bytes
d3.js -rw-r--r-- 317.6 KB
d3.min.js -rw-r--r-- 143.0 KB
index-browserify.js -rw-r--r-- 91 bytes
index.js -rw-r--r-- 755 bytes
package.json -rw-r--r-- 1.1 KB

README.md

back to top