Pasting and duplicating nodes (#902)

* Pasting and duplicating nodes

* Rebind duplication

* Update selection on duplicate
This commit is contained in:
0HyperCube
2022-12-22 21:47:48 +00:00
committed by Keavon Chambers
parent 8f4f7b3cf1
commit af001f8db6
8 changed files with 119 additions and 2 deletions
+2
View File
@@ -262,6 +262,8 @@ export function createInputManager(editor: Editor, container: HTMLElement, dialo
item.getAsString((text) => {
if (text.startsWith("graphite/layer: ")) {
editor.instance.pasteSerializedData(text.substring(16, text.length));
} else if (text.startsWith("graphite/nodes: ")) {
editor.instance.pasteSerializedNodes(text.substring(16, text.length));
}
});
}