diff --git a/lib/forcegraph.js b/lib/forcegraph.js index 6208da7..9287122 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -167,6 +167,7 @@ define(["d3"], function (d3) { if (l) { highlightedLinks = [l] + highlightedNodes = [l.source, l.target] if (!nopanzoom) { var x = d3.extent([l.source, l.target], function (d) { return d.x }) @@ -280,7 +281,7 @@ define(["d3"], function (d3) { if (highlightedLinks.length) { ctx.save() - ctx.lineWidth = 16 + ctx.lineWidth = 10 ctx.strokeStyle = "#FFD486" highlightedLinks.forEach(function (d) {