Open juanmrtnz opened 3 days ago
Hi @juanmrtnz!
@flow-init.window="$nextTick(() => { setViewportToCenter() });"
Do let me know any other thoughts you have as the project is still early and trying to determine the events to let you hook into and API is of interest.
Thank you!
Hey, thanks for the quick answer!
@flow-init.window
as you suggested but the editor is centered to the first node, instead of the whole chart. I think it is because of the way I'm loading the nodes, but I'm not entirely sure. I think adding an auto-center config option so that it triggers on chart load would be a nice feature.Apart from that, I have no complaints. The project is very nice and easy to use. Keep it up!
Hi @copyfactory , I've been using Alpine Flow recently and I have a couple of questions:
rankdir: 'lr'
in dagre).editor.setViewportToCenter()
that runs when the corresponding toolbar button is clicked, but I'm having trouble running it myself. It'd be nice if this was the default behaviour when the chart is loaded.Thanks in advance!