forcegraph: set miterLimit for text to 2
This commit is contained in:
parent
db3d8fa795
commit
0caaa8f64e
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue