forcegraph: only draw clients when zoomed in
This commit is contained in:
parent
ccc5f0f526
commit
1a6a4329b5
1 changed files with 21 additions and 20 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue