The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix box shape Match card to litegraph selection
pythongosssssf31e31ee0a3d
diff --git a/web/scripts/app.js b/web/scripts/app.jsindex ada1708dc..68eeb6329 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -703,7 +703,7 @@ export class ComfyApp {ctx.globalAlpha = 0.8;ctx.beginPath();if (shape == LiteGraph.BOX_SHAPE)- ctx.rect(-6, -6 + LiteGraph.NODE_TITLE_HEIGHT, 12 + size[0] + 1, 12 + size[1] + LiteGraph.NODE_TITLE_HEIGHT);+ ctx.rect(-6, -6 - LiteGraph.NODE_TITLE_HEIGHT, 12 + size[0] + 1, 12 + size[1] + LiteGraph.NODE_TITLE_HEIGHT);else if (shape == LiteGraph.ROUND_SHAPE || (shape == LiteGraph.CARD_SHAPE && node.flags.collapsed))ctx.roundRect(-6,@@ -715,12 +715,11 @@ export class ComfyApp {else if (shape == LiteGraph.CARD_SHAPE)ctx.roundRect(-6,- -6 + LiteGraph.NODE_TITLE_HEIGHT,+ -6 - LiteGraph.NODE_TITLE_HEIGHT,12 + size[0] + 1,12 + size[1] + LiteGraph.NODE_TITLE_HEIGHT,- this.round_radius * 2,- 2- );+ [this.round_radius * 2,2,this.round_radius * 2,2]+ );else if (shape == LiteGraph.CIRCLE_SHAPE)ctx.arc(size[0] * 0.5, size[1] * 0.5, size[0] * 0.5 + 6, 0, Math.PI * 2);ctx.strokeStyle = color;