mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-25 06:22:14 -03:00
Fix mask canvas sizing to use canvasInstance dimensions
Updated initMaskCanvas to set maskCanvas width and height based on canvasInstance instead of mainCanvas, ensuring correct sizing.
This commit is contained in:
@@ -23,8 +23,8 @@ export class MaskTool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initMaskCanvas() {
|
initMaskCanvas() {
|
||||||
this.maskCanvas.width = this.mainCanvas.width;
|
this.maskCanvas.width = this.canvasInstance.width;
|
||||||
this.maskCanvas.height = this.mainCanvas.height;
|
this.maskCanvas.height = this.canvasInstance.height;
|
||||||
this.maskCtx.clearRect(0, 0, this.maskCanvas.width, this.maskCanvas.height);
|
this.maskCtx.clearRect(0, 0, this.maskCanvas.width, this.maskCanvas.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user