remove unnecessary stroke/fill calls

This commit is contained in:
inventivetalent
2018-10-19 17:20:10 +02:00
parent 88769e7f72
commit 1a9ee9fb0f

View File

@@ -5250,8 +5250,6 @@ LGraphCanvas.prototype.drawNode = function(node, ctx )
ctx.lineTo(pos[0] - 4, (pos[1] + 6) + 0.5);
ctx.lineTo(pos[0] - 4, (pos[1] - 6) + 0.5);
ctx.closePath();
ctx.fill();
} else {
ctx.arc(pos[0], pos[1], 4, 0, Math.PI * 2);
}
@@ -5299,9 +5297,6 @@ LGraphCanvas.prototype.drawNode = function(node, ctx )
ctx.lineTo(pos[0] - 4, (pos[1] + 6) + 0.5);
ctx.lineTo(pos[0] - 4, (pos[1] - 6) + 0.5);
ctx.closePath();
ctx.stroke();
ctx.fill();
} else {
ctx.arc(pos[0], pos[1], 4, 0, Math.PI * 2);
}