Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -129,7 +129,7 @@ | ... | @@ -129,7 +129,7 @@ |
129 | } | 129 | } |
130 | 130 | ||
131 | function dragstart(d) { | 131 | function dragstart(d) { |
132 | - d3.select(this).classed("fixed", d.fixed = true); | 132 | + // d3.select(this).classed("fixed", d.fixed = true); |
133 | } | 133 | } |
134 | 134 | ||
135 | 135 | ||
... | @@ -239,6 +239,8 @@ | ... | @@ -239,6 +239,8 @@ |
239 | targetNode = aux; | 239 | targetNode = aux; |
240 | } else if (d3.event.keyCode == 70) { | 240 | } else if (d3.event.keyCode == 70) { |
241 | nextPath(); | 241 | nextPath(); |
242 | + } else if (d3.event.keyCode == 67 && selectedNode) { | ||
243 | + selectedNode.fixed = !selectedNode.fixed; | ||
242 | } | 244 | } |
243 | 245 | ||
244 | d3.selectAll(".nodeStrokeClass").attr("fill", fillColor); | 246 | d3.selectAll(".nodeStrokeClass").attr("fill", fillColor); | ... | ... |
-
Please register or login to post a comment