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 --
ctx.save()
ctx.beginPath()
if (scale > 0.9)
nodes.filter(visibleNodes).forEach(function (d) {
var clients = d.o.node.statistics.clients
if (clients === 0)