mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-21 20:52:12 -03:00
Add paste mode to handlePaste for image positioning
The handlePaste method now accepts a pasteMode parameter to control image placement, allowing images to be pasted either at the mouse position or centered on the canvas. This improves user control when pasting images via keyboard shortcuts or UI buttons.
This commit is contained in:
@@ -157,8 +157,8 @@ export class Canvas {
|
||||
return this.canvasLayers.pasteLayers();
|
||||
}
|
||||
|
||||
async handlePaste() {
|
||||
return this.canvasLayers.handlePaste();
|
||||
async handlePaste(pasteMode) {
|
||||
return this.canvasLayers.handlePaste(pasteMode);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user