[TASK] Show rectangle gateway in forcegraph

This commit is contained in:
Xaver Maierhofer 2018-01-19 22:28:22 +01:00
parent 66127de355
commit 380b13d04b
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
1 changed files with 3 additions and 2 deletions

View File

@ -53,10 +53,11 @@ define(['helper'], function (helper) {
drawHighlightNode(d);
ctx.moveTo(d.x + 3, d.y);
if (d.o.is_online) {
ctx.arc(d.x, d.y, 8, 0, 2 * Math.PI);
if (d.o.is_gateway) {
ctx.rect(d.x - 9, d.y - 9, 18, 18);
}
ctx.fillStyle = config.forceGraph.nodeColor;
} else {
ctx.arc(d.x, d.y, 6, 0, 2 * Math.PI);