Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add New Node Programmatically #175

Open
psvoboda76 opened this issue May 29, 2022 · 4 comments
Open

Add New Node Programmatically #175

psvoboda76 opened this issue May 29, 2022 · 4 comments

Comments

@psvoboda76
Copy link

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

@manuelgerhardt
Copy link

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.

@canxerian
Copy link
Contributor

This could be a potential solution: #47

@Abhishek-Kumbhani
Copy link

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

@HerveZu
Copy link

HerveZu commented Oct 22, 2023

Any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants