mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
remove unnecessary stroke/fill calls
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user