forcegraph: only draw clients when zoomed in

This commit is contained in:
PetaByteBoy // Milan Pässler 2017-02-08 09:35:26 +01:00 committed by GitHub
parent ccc5f0f526
commit 1a6a4329b5

View file

@ -380,6 +380,7 @@ define(["d3"], function (d3) {
// -- draw clients -- // -- draw clients --
ctx.save() ctx.save()
ctx.beginPath() ctx.beginPath()
if (scale > 0.9)
nodes.filter(visibleNodes).forEach(function (d) { nodes.filter(visibleNodes).forEach(function (d) {
var clients = d.o.node.statistics.clients var clients = d.o.node.statistics.clients
if (clients === 0) if (clients === 0)