mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-11 08:00:21 +00:00
Copy & Paste all items (#302)
* Add copy & paste of groups & reroutes Complete rewrite of copy & paste Fixes a bug where failure to clone a node would corrupt all subsequent nodes No longer mutates nodes when copying * Fix name collision * Fix cannot copy specified nodes to clipboard * Allow mapping of original IDs to pasted clones
This commit is contained in:
@@ -84,6 +84,14 @@ export interface ISerialisedGroup {
|
||||
|
||||
export type TClipboardLink = [targetRelativeIndex: number, originSlot: number, nodeRelativeIndex: number, targetSlot: number, targetNodeId: NodeId]
|
||||
|
||||
/** Items copied from the canvas */
|
||||
export interface ClipboardItems {
|
||||
nodes?: ISerialisedNode[]
|
||||
groups?: ISerialisedGroup[]
|
||||
reroutes?: SerialisableReroute[]
|
||||
links?: SerialisableLLink[]
|
||||
}
|
||||
|
||||
/** */
|
||||
export interface IClipboardContents {
|
||||
nodes?: ISerialisedNode[]
|
||||
|
||||
Reference in New Issue
Block a user