Increase logging level to DEBUG and enhance MaskTool callbacks

Set logging level to DEBUG in both Python and JavaScript loggers for improved debugging. Updated MaskTool to accept an onStateChange callback and trigger it after mask state changes, allowing Canvas to respond to mask updates.
This commit is contained in:
Dariusz L
2025-06-28 07:28:58 +02:00
parent a7208cb504
commit 940f027b40
4 changed files with 8 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ export class Canvas {
this.dataInitialized = false;
this.pendingDataCheck = null;
this.maskTool = new MaskTool(this);
this.maskTool = new MaskTool(this, {onStateChange: this.onStateChange});
this.initCanvas();
this.canvasState = new CanvasState(this);
this.canvasInteractions = new CanvasInteractions(this);