forcegraph: partially revert 'draw unseen nodes orange'

This commit is contained in:
Milan Pässler 2016-03-05 11:49:10 +01:00
parent 4c8b2c03c6
commit 309878d607

View file

@ -21,7 +21,6 @@ define(["d3"], function (d3) {
var nonUplinkNodes = []
var unseenNodes = []
var unknownNodes = []
var graphNodes = []
var savedPanZoom
var draggedNode
@ -708,7 +707,6 @@ define(["d3"], function (d3) {
nonUplinkNodes = nodes.filter(function (d) { return !d.o.node.flags.uplink })
unseenNodes = intNodes.filter(function (d) { return d.o.unseen && d.o.node })
unknownNodes = intNodes.filter(function (d) { return !d.o.node })
graphNodes = nodes.concat(unseenNodes).concat(unknownNodes)
if (localStorageTest()) {
var save = JSON.parse(localStorage.getItem("graph/nodeposition"))
@ -728,9 +726,9 @@ define(["d3"], function (d3) {
}
}
var diameter = graphDiameter(graphNodes)
var diameter = graphDiameter(intNodes)
force.nodes(graphNodes)
force.nodes(intNodes)
.links(intLinks)
.size([diameter, diameter])