[BUGFIX] Call correct self.resetView

This commit is contained in:
Xaver Maierhofer 2018-01-01 21:16:08 +01:00
parent b48b4f41f0
commit bac2977b3d
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8

View File

@ -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();
}); });
}; };