xyflow / xyflow

React Flow | Svelte Flow - Powerful open source libraries for building node-based UIs with React (https://reactflow.dev) or Svelte (https://svelteflow.dev). Ready out-of-the-box and infinitely customizable.
https://xyflow.com
MIT License
21.54k stars 1.43k forks source link

autoLayout #4235

Closed latifs closed 2 weeks ago

latifs commented 2 weeks ago

Describe the Bug

Hey guys,

I'm trying to use auto Layout to organize my graph on load. I might have the wrong idea of what it could do though. I want the "root" nodes (the white ones here), the ones that don't have any nodes pointing to them to be all aligned on the left side (at the start of the graph) but this is not what I get as you can see on this picture:

Screenshot 2024-05-01 at 3 39 21 PM

Not sure if I'm doing something wrong, I could also provide a codeSandbox at some point but given that this is a pro feature...

Thanks.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

.

Expected behavior

.

Screenshots or Videos

No response

Platform

Additional context

No response