Commit 4d5e057b authored by Dr.Lt.Data's avatar Dr.Lt.Data
Browse files

fix indent

parent 69680fed
...@@ -533,14 +533,14 @@ export class ComfyApp { ...@@ -533,14 +533,14 @@ export class ComfyApp {
} }
this.imageRects.push([x, y, cellWidth, cellHeight]); this.imageRects.push([x, y, cellWidth, cellHeight]);
let wratio = cellWidth/img.width; let wratio = cellWidth/img.width;
let hratio = cellHeight/img.height; let hratio = cellHeight/img.height;
var ratio = Math.min(wratio, hratio); var ratio = Math.min(wratio, hratio);
let imgHeight = ratio * img.height; let imgHeight = ratio * img.height;
let imgY = row * cellHeight + shiftY + (cellHeight - imgHeight)/2; let imgY = row * cellHeight + shiftY + (cellHeight - imgHeight)/2;
let imgWidth = ratio * img.width; let imgWidth = ratio * img.width;
let imgX = col * cellWidth + shiftX + (cellWidth - imgWidth)/2; let imgX = col * cellWidth + shiftX + (cellWidth - imgWidth)/2;
ctx.drawImage(img, imgX, imgY, imgWidth, imgHeight); ctx.drawImage(img, imgX, imgY, imgWidth, imgHeight);
ctx.filter = "none"; ctx.filter = "none";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment