[TASK] Add zoom limit for drawing clients in forcegraph
This commit is contained in:
parent
cd0e59ffa9
commit
d2090225c5
@ -395,6 +395,7 @@ define(['d3', 'helper'], function (d3, helper) {
|
||||
// -- 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) {
|
||||
@ -421,7 +422,7 @@ define(['d3', 'helper'], function (d3, helper) {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
ctx.fillStyle = clientColor;
|
||||
ctx.fill();
|
||||
ctx.restore();
|
||||
|
Loading…
Reference in New Issue
Block a user