forcegraph: set miterLimit for text to 2

This commit is contained in:
Nils Schneider 2015-04-20 23:31:55 +02:00
parent db3d8fa795
commit 0caaa8f64e

View File

@ -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))