jerosoler / Drawflow

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

Is there any way to automatically order or beauty the flow? #759

Open mushzak opened 10 months ago

mushzak commented 10 months ago

I have a case when importing flow from another db and there we have positions, but I'm getting something like this, and don't know how to make this beautiful, I don't know how to generate correct posX and posY;

image

It is like this when starting the flow:

image

is there any way to zoom automatically when nodes are located?

jerosoler commented 10 months ago

You will have to calculate the xy position of each node.

Maybe this issue that talks about the same thing can help you.

mushzak commented 10 months ago

is there any way to zoom/move automatically where nodes are located?

jerosoler commented 10 months ago

View: