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,7 +553,11 @@ 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]
e.color = linkScale(d.tq).hex()
if (d.vpn)
e.color = "rgba(0, 0, 0, " + (0.5 / d.tq) + ")"
else
e.color = linkScale(d.tq).hex()
return e return e
}) })