aboutsummaryrefslogtreecommitdiffstats
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/js/git-deps-graph.coffee7
1 files changed, 2 insertions, 5 deletions
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee
index 213ca2c..dd66b78 100644
--- a/html/js/git-deps-graph.coffee
+++ b/html/js/git-deps-graph.coffee
@@ -90,7 +90,7 @@ graph_bounds = ->
y = Math.min(y, d.y - d.height / 2)
X = Math.max(X, d.x + d.width / 2)
Y = Math.max(Y, d.y + d.height / 2)
- return \
+ return {} =
x: x
X: X
y: y
@@ -121,10 +121,7 @@ zoom_to_fit = ->
s = Math.min(cw / w, ch / h)
tx = -b.x * s + (cw / s - w) * s / 2
ty = -b.y * s + (ch / s - h) * s / 2
- zoom.translate([
- tx
- ty
- ]).scale s
+ zoom.translate([tx, ty]).scale s
redraw true
window.full_screen_click = full_screen_click