diff --git a/html/force.js b/html/force.js index db217dd..9d0c5e4 100644 --- a/html/force.js +++ b/html/force.js @@ -300,6 +300,14 @@ function update() { var linkEnter = link.enter().append("g") .attr("class", "link") + .on("mouseover", function(d) { + d.source.fixed |= 2 + d.target.fixed |= 2 + }) + .on("mouseout", function(d) { + d.source.fixed &= 1 + d.target.fixed &= 1 + }) linkEnter.append("line")