From 55de66a12732ab091c649f7d157e6f591adae8a6 Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Tue, 6 Dec 2022 12:32:37 -0300 Subject: [PATCH] fix some console debug messages Signed-off-by: Victor Seiji Hariki --- js/lib/util.js | 1 - js/ui/tool/dream.js | 1 - js/ui/tool/maskbrush.js | 2 +- js/ui/tool/select.js | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/js/lib/util.js b/js/lib/util.js index 207ab2c..bdd0a63 100644 --- a/js/lib/util.js +++ b/js/lib/util.js @@ -255,7 +255,6 @@ function cropCanvas(sourceCanvas, options = {}) { * If null, opens image in new tab. */ function downloadCanvas(options = {}) { - console.debug(imageCollection); defaultOpt(options, { cropToContent: true, canvas: uil.getVisible({ diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index 2bf04d1..849889c 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -368,7 +368,6 @@ const dream_generate_callback = async (evn, state) => { // Get visible pixels const visibleCanvas = uil.getVisible(bb); - console.debug(visibleCanvas); // Use txt2img if canvas is blank if (isCanvasBlank(0, 0, bb.w, bb.h, visibleCanvas)) { diff --git a/js/ui/tool/maskbrush.js b/js/ui/tool/maskbrush.js index b87ed4a..d3993e4 100644 --- a/js/ui/tool/maskbrush.js +++ b/js/ui/tool/maskbrush.js @@ -17,7 +17,7 @@ const setMask = (state) => { canvas.classList.remove("display", "hold", "clear"); break; default: - console.debug(`Invalid mask type: ${state}`); + console.debug(`[maskbrush.setMask] Invalid mask type: ${state}`); break; } }; diff --git a/js/ui/tool/select.js b/js/ui/tool/select.js index 8a4edf6..1ad41fd 100644 --- a/js/ui/tool/select.js +++ b/js/ui/tool/select.js @@ -271,7 +271,6 @@ const selectTransformTool = () => // Draw selection box uiCtx.strokeStyle = "#FFF"; - console.debug(bbvp); uiCtx.setLineDash([4, 2]); uiCtx.strokeRect(bbvp.x, bbvp.y, bbvp.w, bbvp.h); uiCtx.setLineDash([]);