cleanup and fix things
This commit is contained in:
parent
f77aabd37d
commit
6ee0d02b7b
@ -213,7 +213,7 @@ define(["d3"], function (d3) {
|
|||||||
|
|
||||||
function drawLabel(d) {
|
function drawLabel(d) {
|
||||||
var neighbours = d.neighbours.filter(function (d) {
|
var neighbours = d.neighbours.filter(function (d) {
|
||||||
return !d.link.o.type === "VPN"
|
return d.link.o.type !== "VPN"
|
||||||
})
|
})
|
||||||
|
|
||||||
var sum = neighbours.reduce(function (a, b) {
|
var sum = neighbours.reduce(function (a, b) {
|
||||||
@ -516,7 +516,7 @@ define(["d3"], function (d3) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var links = intLinks.filter(function (d) {
|
var links = intLinks.filter(function (d) {
|
||||||
return !d.o.type === "VPN"
|
return d.o.type !== "VPN"
|
||||||
}).filter(function (d) {
|
}).filter(function (d) {
|
||||||
return distanceLink(e, d.source, d.target) < LINE_RADIUS
|
return distanceLink(e, d.source, d.target) < LINE_RADIUS
|
||||||
})
|
})
|
||||||
|
@ -129,7 +129,7 @@ define(["map/clientlayer", "map/labelslayer",
|
|||||||
|
|
||||||
function addLinksToMap(dict, linkScale, graph, router) {
|
function addLinksToMap(dict, linkScale, graph, router) {
|
||||||
graph = graph.filter( function (d) {
|
graph = graph.filter( function (d) {
|
||||||
return "distance" in d && !d.type === "VPN"
|
return "distance" in d && d.type !== "Kabel" && d.type !== "VPN"
|
||||||
})
|
})
|
||||||
|
|
||||||
var lines = graph.map( function (d) {
|
var lines = graph.map( function (d) {
|
||||||
|
Loading…
Reference in New Issue
Block a user