From 0caaa8f64e8d0f26cd47ab4f0f5ef1df4c06db65 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Mon, 20 Apr 2015 23:31:55 +0200 Subject: [PATCH] forcegraph: set miterLimit for text to 2 --- lib/forcegraph.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/forcegraph.js b/lib/forcegraph.js index 4a7132c..79442d8 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -584,6 +584,7 @@ define(["d3"], function (d3) { bctx.lineCap = "round" bctx.strokeStyle = "rgba(255, 255, 255, 0.8)" bctx.fillStyle = "rgba(0, 0, 0, 0.6)" + bctx.miterLimit = 2 bctx.strokeText(name, buffer.width / (2 * scale), buffer.height / (2 * scale)) bctx.fillText(name, buffer.width / (2 * scale), buffer.height / (2 * scale))