From 8e1e698849eda6f59a5f3a0ed9f5c590959c4dc7 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 30 Jul 2015 20:52:40 +0200 Subject: [PATCH] forcegraph: use setTransform instead of resetTransform --- lib/forcegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forcegraph.js b/lib/forcegraph.js index 0281084..cf794f0 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -403,7 +403,7 @@ define(["d3"], function (d3) { canvas.height = el.offsetHeight * r canvas.style.width = el.offsetWidth + "px" canvas.style.height = el.offsetHeight + "px" - ctx.resetTransform() + ctx.setTransform(1, 0, 0, 1, 0, 0) ctx.scale(r, r) requestAnimationFrame(redraw) }