[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-tasks/master] Stop drawing relays that are not even 2 pixels wide (#6443)



commit d226a7d10d1447dfbf5805458d68e0aa3bac7762
Author: Lunar <lunar@xxxxxxxxxxxxxx>
Date:   Fri Jun 21 15:48:28 2013 +0200

    Stop drawing relays that are not even 2 pixels wide (#6443)
---
 task-6443/bubble-cw/bubble-cw.html |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/task-6443/bubble-cw/bubble-cw.html b/task-6443/bubble-cw/bubble-cw.html
index ef622d5..a47a2d9 100644
--- a/task-6443/bubble-cw/bubble-cw.html
+++ b/task-6443/bubble-cw/bubble-cw.html
@@ -52,7 +52,7 @@ d3.json("details.json", function(error, data) {
       .attr("class", "node")
       .attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });
 
-  node.filter(function(d) { return !d.children;})
+  node.filter(function(d) { return !d.children && d.r > 1;})
     .append("image")
       .attr("xlink:href", function(d) { return "tor-consensus-vis-node-" + (d.bandwidth > cutOff ? "onion" : "circle") + ".svg"; })
       .attr("transform", function(d) { return "translate(" + -d.r + "," + -d.r + ")"; })



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits