forcegraph: grayscale vpn links
This commit is contained in:
parent
d8c147a323
commit
9e51bd78fa
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue