jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.64k stars 722 forks source link

Is there any possibility to get sequence of connected nodes. #265

Closed amikum1997 closed 2 years ago

amikum1997 commented 2 years ago

Is there any way to get drawFlowId of all nodes before the selected_node Id? I tried but with some conditions, it was going in the infinite loop please suggest any solution, if you have any idea about this let me know.

jerosoler commented 2 years ago

Hi @amikum1997

You can get the nodes connected to the node with the function: getNodeFromId(id) and so on until the end of the flow.

I have seen that someone has already converted to react https://github.com/ImuruKevol/react-Drawflow or https://github.com/valerii15298/Drawflow-react

amikum1997 commented 2 years ago

thanks a lot.