mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-25 06:22:14 -03:00
Revert "Refactor logging and formatting"
This reverts commit 83ce890ef4.
This commit is contained in:
@@ -7,7 +7,6 @@ import {CanvasRenderer} from "./CanvasRenderer.js";
|
||||
import {CanvasIO} from "./CanvasIO.js";
|
||||
import {ImageReferenceManager} from "./ImageReferenceManager.js";
|
||||
import {createModuleLogger} from "./utils/LoggerUtils.js";
|
||||
|
||||
const log = createModuleLogger('Canvas');
|
||||
|
||||
export class Canvas {
|
||||
@@ -46,7 +45,7 @@ export class Canvas {
|
||||
this.canvasIO = new CanvasIO(this);
|
||||
this.imageReferenceManager = new ImageReferenceManager(this);
|
||||
this.interaction = this.canvasInteractions.interaction;
|
||||
|
||||
|
||||
this.setupEventListeners();
|
||||
this.initNodeData();
|
||||
|
||||
@@ -138,7 +137,6 @@ export class Canvas {
|
||||
this.onSelectionChange();
|
||||
}
|
||||
}
|
||||
|
||||
async copySelectedLayers() {
|
||||
return this.canvasLayers.copySelectedLayers();
|
||||
}
|
||||
@@ -267,6 +265,8 @@ export class Canvas {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
async getFlattenedCanvasAsBlob() {
|
||||
return this.canvasLayers.getFlattenedCanvasAsBlob();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user