docs: add dagre layout example

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 0bfb5f4046
commit 3220e20c0e
13 changed files with 192 additions and 40 deletions
+10
View File
@@ -0,0 +1,10 @@
# Layouting
A lot of the time, you'll want to layout your nodes automatically instead of assigning their positions manually.
Vue Flow does *not* have a built-in layouting system, but it's easy to use a third-party library to achieve this.
In this example we are going to use [dagre](https://github.com/dagrejs/dagre) to layout our nodes.
<div class="mt-6">
<Repl example="layout"></Repl>
</div>