remove unnecessary console logs

This commit is contained in:
kaj 2023-05-19 10:17:47 -08:00
parent c98e110f05
commit 3957170491
3 changed files with 0 additions and 15 deletions

View File

@ -51,8 +51,6 @@ export namespace Render {
(useOriginals ? image.original.element?.src : image.element?.src)
);
console.log(intersectingImages, images);
if (autoSize && intersectingImages.length > 0) {
// resize the box to fit the images
const bounds = getBoundsOfImages(intersectingImages);
@ -84,7 +82,6 @@ export namespace Render {
};
if (!image.element?.src) return;
console.log("drawing image", image.element.src);
if (useOriginals ? image.original.element : image.element) {
workingCtx.drawImage(
image.element,
@ -133,7 +130,6 @@ export namespace Render {
// if there's alpha, apply the alpha to the entire canvas at this point
if (opacity < 1) {
console.log("applying opacity", opacity);
workingCtx.globalAlpha = 1 - opacity;
workingCtx.fillStyle = "white";
workingCtx.globalCompositeOperation = "destination-out";
@ -194,9 +190,6 @@ export namespace Render {
true
);
console.log("workingCanvas", workingCanvas?.width, workingCanvas?.height);
console.log("initImgCanvas", initImgCanvas?.width, initImgCanvas?.height);
if (workingCanvas && initImgCanvas) {
// make a new canvas and draw the cutout into it
const maskCanvas = document.createElement("canvas");
@ -253,7 +246,6 @@ export namespace Render {
}
if (!allWhite) {
console.log("INPAINTING");
data.mode = "inpaint";
// blur the greyscale mask a little bit to soften the edges between white and black
@ -270,7 +262,6 @@ export namespace Render {
maskCanvas.height
);
} else {
console.log("IMG 2 IMG");
data.mode = "img2img";
if (opacity >= 1) {
@ -296,8 +287,6 @@ export namespace Render {
// a.href = data.init;
// a.download = "init.png";
// a.click();
} else {
console.log("TEXT 2 IMG");
}
return data;

View File

@ -21,10 +21,7 @@ export namespace Render {
1
);
console.log(data);
Generation.Image.Input.set(id, (input) => {
console.log(data);
input.init = data?.init
? {
base64: data.init,

View File

@ -89,7 +89,6 @@ function Open({
keys: "Escape",
action: () => {
onClose();
console.log("Close modal", modalName);
},
}),
[modalName, onClose]