flume icon indicating copy to clipboard operation
flume copied to clipboard

Add New Node Programmatically

Open psvoboda76 opened this issue 3 years ago • 4 comments

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

psvoboda76 avatar May 29 '22 12:05 psvoboda76

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.

manuelgerhardt avatar Aug 31 '22 09:08 manuelgerhardt

This could be a potential solution: https://github.com/chrisjpatty/flume/issues/47

canxerian avatar Sep 13 '22 09:09 canxerian

@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.

Abhishek-Kumbhani avatar Aug 03 '23 07:08 Abhishek-Kumbhani

Any update ?

HerveZu avatar Oct 22 '23 22:10 HerveZu