cleanup and fix things

This commit is contained in:
Milan Pässler 2016-02-18 19:42:46 +00:00
parent f77aabd37d
commit 6ee0d02b7b
2 changed files with 3 additions and 3 deletions

View file

@ -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
}) })

View file

@ -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) {