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 indent
Dr.Lt.Data4d5e057bb2e3
diff --git a/web/scripts/app.js b/web/scripts/app.jsindex 84090764a..f0bb8640c 100644--- a/web/scripts/app.js+++ b/web/scripts/app.js@@ -533,14 +533,14 @@ export class ComfyApp {}this.imageRects.push([x, y, cellWidth, cellHeight]);- let wratio = cellWidth/img.width;- let hratio = cellHeight/img.height;- var ratio = Math.min(wratio, hratio);-- let imgHeight = ratio * img.height;- let imgY = row * cellHeight + shiftY + (cellHeight - imgHeight)/2;- let imgWidth = ratio * img.width;- let imgX = col * cellWidth + shiftX + (cellWidth - imgWidth)/2;+ let wratio = cellWidth/img.width;+ let hratio = cellHeight/img.height;+ var ratio = Math.min(wratio, hratio);++ let imgHeight = ratio * img.height;+ let imgY = row * cellHeight + shiftY + (cellHeight - imgHeight)/2;+ let imgWidth = ratio * img.width;+ let imgX = col * cellWidth + shiftX + (cellWidth - imgWidth)/2;ctx.drawImage(img, imgX, imgY, imgWidth, imgHeight);ctx.filter = "none";