[BUGFIX] Call correct self.resetView
This commit is contained in:
parent
b48b4f41f0
commit
bac2977b3d
@ -247,7 +247,7 @@ define(['d3-selection', 'd3-force', 'd3-zoom', 'd3-drag', 'd3-timer', 'd3-ease',
|
|||||||
if (n) {
|
if (n) {
|
||||||
return [n.x, n.y, (ZOOM_MAX + 1) / 2];
|
return [n.x, n.y, (ZOOM_MAX + 1) / 2];
|
||||||
}
|
}
|
||||||
return resetView();
|
return self.resetView();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -260,7 +260,7 @@ define(['d3-selection', 'd3-force', 'd3-zoom', 'd3-drag', 'd3-timer', 'd3-ease',
|
|||||||
if (l) {
|
if (l) {
|
||||||
return [(l.source.x + l.target.x) / 2, (l.source.y + l.target.y) / 2, (ZOOM_MAX / 2) + ZOOM_MIN];
|
return [(l.source.x + l.target.x) / 2, (l.source.y + l.target.y) / 2, (ZOOM_MAX / 2) + ZOOM_MIN];
|
||||||
}
|
}
|
||||||
return resetView();
|
return self.resetView();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user