[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 --
|
// -- 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) {
|
||||||
@ -421,7 +422,7 @@ define(['d3', 'helper'], function (d3, helper) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
ctx.fillStyle = clientColor;
|
ctx.fillStyle = clientColor;
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
ctx.restore();
|
ctx.restore();
|
||||||
|
Loading…
Reference in New Issue
Block a user