forcegraph: partially revert 'draw unseen nodes orange'
This commit is contained in:
parent
4c8b2c03c6
commit
309878d607
@ -21,7 +21,6 @@ define(["d3"], function (d3) {
|
|||||||
var nonUplinkNodes = []
|
var nonUplinkNodes = []
|
||||||
var unseenNodes = []
|
var unseenNodes = []
|
||||||
var unknownNodes = []
|
var unknownNodes = []
|
||||||
var graphNodes = []
|
|
||||||
var savedPanZoom
|
var savedPanZoom
|
||||||
|
|
||||||
var draggedNode
|
var draggedNode
|
||||||
@ -708,7 +707,6 @@ define(["d3"], function (d3) {
|
|||||||
nonUplinkNodes = nodes.filter(function (d) { return !d.o.node.flags.uplink })
|
nonUplinkNodes = nodes.filter(function (d) { return !d.o.node.flags.uplink })
|
||||||
unseenNodes = intNodes.filter(function (d) { return d.o.unseen && d.o.node })
|
unseenNodes = intNodes.filter(function (d) { return d.o.unseen && d.o.node })
|
||||||
unknownNodes = intNodes.filter(function (d) { return !d.o.node })
|
unknownNodes = intNodes.filter(function (d) { return !d.o.node })
|
||||||
graphNodes = nodes.concat(unseenNodes).concat(unknownNodes)
|
|
||||||
|
|
||||||
if (localStorageTest()) {
|
if (localStorageTest()) {
|
||||||
var save = JSON.parse(localStorage.getItem("graph/nodeposition"))
|
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)
|
.links(intLinks)
|
||||||
.size([diameter, diameter])
|
.size([diameter, diameter])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user