1. 24 Mar, 2014 1 commit
Mike Bostock authored
```Fixes #1766. Unlike d3.bisector(accessor), this allows you to define a bisector
that works in reverse order.

An awkward aspect of implementing bisection on top of a comparator is that it is
often the case that the sorted array contains objects (e.g., rows from a TSV),
while the search value is a primitive value (e.g., a number). Thus, you want to
apply an accessor to the array elements but not to the search value.

The solution here is to invoke the comparator deterministically: the first
argument is always an element from the array, and the second argument is always
the search value. This lets a comparator apply an accessor to array elements but
not to search values.```
2. 23 Mar, 2014 1 commit
3. 22 Mar, 2014 2 commits
4. 21 Mar, 2014 1 commit
5. 20 Mar, 2014 2 commits
6. 17 Mar, 2014 2 commits
7. 13 Mar, 2014 2 commits
8. 09 Mar, 2014 1 commit
9. 27 Feb, 2014 1 commit
10. 26 Feb, 2014 1 commit
• Workaround for lack of symmetry in Math.sin. · bef5de75
Jason Davies authored
```Chrome 33 included some sin/cos optimisations, which unfortunately broke
our assumption that sin(-x) + sin(x) = 0 for all x.  More details here:

This fix uses:

sin(x) = sgn(x) * sin(abs(x))

and:

cos(x) = cos(abs(x))

where it matters, which fixes area calculations for degenerate polygons
such as:

{"type":"Polygon",
"coordinates":[[[-0.0002,0.0001],[0.0002,0.0001],[-0.0002,0.0001]]]}

Fixes #1753.```
11. 18 Feb, 2014 4 commits
12. 11 Feb, 2014 2 commits
13. 03 Feb, 2014 1 commit
14. 21 Jan, 2014 1 commit
15. 20 Jan, 2014 1 commit
16. 16 Jan, 2014 1 commit
17. 15 Jan, 2014 2 commits
18. 14 Jan, 2014 2 commits
19. 13 Jan, 2014 1 commit
20. 10 Jan, 2014 3 commits
21. 09 Jan, 2014 8 commits