Layout Utility #61
Replies: 2 comments 8 replies
-
XState Vizualizer is using |
Beta Was this translation helpful? Give feedback.
-
Hey there! I'm exploring Vue Flow as a replacement for mermaidjs for a package I'm developing that shows a flowchart of an event-driven application. I wanted to make it more interactive and landed on this package for now as it looks very sleek 👌🏻 The only issue so far is the fact that I currently let mermaidjs do the layout and calculating it myself is a bit complex. My question is: do you think auto-layout would support something along the lines of the attached example, and if you think it's feasible, are you still planning a layout utility any time soon? Either way, thanks for the package, I'm for sure keeping this one in the back of my mind for non-pet-projects as well! |
Beta Was this translation helpful? Give feedback.
-
I'm thinking of creating a built-in utility to provide a layout to the nodes, basically like the current example does using dagre.
Dagre is not being maintained afaik and I haven't found any viable alternatives, so if any of you know one, I'd be happy to hear about it.
The layouting would receive a collection of nodes that have no specific positions set (or we can just overweite their positions) and group them by levels which are then aligned either verically or horizontally.
I will update the post with an example when I got one ready but I don't expect this feature to be available before 0.4.1.
If you are interested in this feature let me know by reacting to the post or commenting ☺
0.4.0 has priority over any new features currently, for obvious reasons.
Beta Was this translation helpful? Give feedback.
All reactions