Explorar el Código

forcegraph: set miterLimit for text to 2

Nils Schneider hace 9 años
padre
commit
0caaa8f64e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      lib/forcegraph.js

+ 1 - 0
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))