From 309878d6075d6c7b5bc4a2f85aad5f57abd073d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Sat, 5 Mar 2016 11:49:10 +0100 Subject: [PATCH] forcegraph: partially revert 'draw unseen nodes orange' --- lib/forcegraph.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/forcegraph.js b/lib/forcegraph.js index fac79bd..a3d6e3a 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -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])