Add New Node Programmatically
I tried to implement a node editor with the ability to drag and drop nodes from other components. Unfortunately, there is no option to add a new node programmatically. To add a new node, I need to completely refresh the editor, losing the zoom and pan position https://github.com/chrisjpatty/flume/issues/119)
Can we have a function addNode exposed directly to NodeEditor? It can behave like the addNode function from Stage - e.g. when you select the Add Node from right-click menu. For drag and drop functionality it would be nice if mouse coordinates could be passed over to place the new node in right place.
Whould this be possible?
Thank you
any news on this? really could use such a feature. right now I have to remove the editor from DOM and make a new editor with my nodes because I get the data about saved nodes from an API. So the Nodes in the Editor should rerender when my nodes-state changes.
This could be a potential solution: https://github.com/chrisjpatty/flume/issues/47
@canxerian the solution you provided here is for adding a new node type programmatically, but the opened issue is about adding a new node on the editor programmatically.
Any update ?