diff options
| author | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-08-07 15:22:31 +0300 |
|---|---|---|
| committer | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-08-07 15:22:41 +0300 |
| commit | 038e4ed146e5a29933cc8dc34004f0962d1c9987 (patch) | |
| tree | 586a516cd52897f8fe239f699796af81c40a2430 /scripts/rhizicore.js | |
| parent | bf2f0bf85ff9cc287b69fa8a2a67e735ffee130b (diff) | |
Issue #26
nodes didn't appear because the type selection index was undefined in
the 0 to N_1 loop
Diffstat (limited to 'scripts/rhizicore.js')
| -rw-r--r-- | scripts/rhizicore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 481a8ed7..6937201c 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -347,13 +347,15 @@ function myGraph(el) { } function dragged(d) { + + d3.select(this).classed("fixed", true); d3.select(this).attr("cx", d.x = d3.event.x).attr("cy", d.y = d3.event.y); } function dragended(d) { d3.select(this).classed("dragging", false); d3.select(this).classed("fixed", true); - d3.select(this).attr("dx", d3.event.x).attr("dy", d3.event.y); + //d3.select(this).attr("cx", d.x = d3.event.x).attr("cy", d.y = d3.event.y); } var force = d3.layout.force() |
