Use kNode's internal ID as manual ID for finds

This commit is contained in:
Tanish Manku committed 2025-02-20 03:19:33 -08:00
1 parent 810b431e9b
commit 3fc87b666a
1 file changed
+4
@@ -58,6 +58,10 @@ export class CommandManager {
renderEngineRef: this.renderEngineRef,
});
this.undoStackManagerRef.executeCommand(command);
// Set the kNode's manual id to same as kNode's internal _id
// This helps identify the kNode in the Konva layer with find
node.kNode.id(node.kNode._id.toString());
}
deleteNodes() {
const nodes = this.selectionManagerRef.getSelectedNodes();