Skip to content

Commit fa514dd

Browse files
committed
Fix projection.clipExtent edge case.
A slight correction to clipLine fixed the problem with points lying exactly on the clip edge, but in case clipLine(a, b) ever returns false (no intersections) even though v_=0 and v=1, we treat this as the start of a line anyway.
1 parent d8903ef commit fa514dd

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

d3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ d3 = function() {
27882788
}
27892789
}
27902790
function d3_geo_clipViewT(num, denominator, t) {
2791-
if (Math.abs(denominator) < ε) return num < 0;
2791+
if (Math.abs(denominator) < ε) return num <= 0;
27922792
var u = num / denominator;
27932793
if (denominator > 0) {
27942794
if (u > t[1]) return false;

0 commit comments

Comments
 (0)