Fix interpolation.
This commit is contained in:
Родитель
d789645231
Коммит
772c2f07ef
|
@ -6247,8 +6247,8 @@ d3 = function() {
|
|||
return (b[0] - a[0]) * (c[1] - a[1]) - (c[0] - a[0]) * (b[1] - a[1]);
|
||||
}
|
||||
function interpolate(from, to, direction, listener) {
|
||||
if (Math.abs(from[0] - to[0]) > ε && Math.abs(from[1] - to[1]) > ε) {
|
||||
var a = corner(from, direction), a1 = corner(to, direction);
|
||||
if (a !== a1) {
|
||||
do {
|
||||
listener.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);
|
||||
} while ((a = (a + direction + 4) % 4) !== a1);
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -56,9 +56,9 @@ function d3_geo_clipView(x0, y0, x1, y1) {
|
|||
}
|
||||
|
||||
function interpolate(from, to, direction, listener) {
|
||||
if (Math.abs(from[0] - to[0]) > ε && Math.abs(from[1] - to[1]) > ε) {
|
||||
var a = corner(from, direction),
|
||||
a1 = corner(to, direction);
|
||||
if (a !== a1) {
|
||||
do {
|
||||
listener.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);
|
||||
} while ((a = (a + direction + 4) % 4) !== a1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче