[TASK] Show rectangle gateway in forcegraph
This commit is contained in:
parent
66127de355
commit
380b13d04b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user