forcegraph: grayscale vpn links

This commit is contained in:
Nils Schneider 2015-04-22 12:37:18 +02:00
parent d8c147a323
commit 9e51bd78fa

View File

@ -553,6 +553,10 @@ define(["d3"], function (d3) {
e.o = d e.o = d
e.source = newNodesDict[d.source.id] e.source = newNodesDict[d.source.id]
e.target = newNodesDict[d.target.id] e.target = newNodesDict[d.target.id]
if (d.vpn)
e.color = "rgba(0, 0, 0, " + (0.5 / d.tq) + ")"
else
e.color = linkScale(d.tq).hex() e.color = linkScale(d.tq).hex()
return e return e