forcegraph: grayscale vpn links
This commit is contained in:
parent
d8c147a323
commit
9e51bd78fa
|
@ -553,6 +553,10 @@ define(["d3"], function (d3) {
|
|||
e.o = d
|
||||
e.source = newNodesDict[d.source.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()
|
||||
|
||||
return e
|
||||
|
|
Loading…
Reference in a new issue