-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto arrange and auto centering support #846
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I didn't do the exact implementation but maybe you can learn something from Godot Engine's auto arrange code godotengine/godot-proposals#1253 and https://github.com/theoway/godot/blob/master/scene/gui/graph_edit.cpp#L1961C17-L2112 |
cool ill check it out. right now just doing what works with rete fastest |
What Changed:
Auto arrange with support for multiple independent graphs.
Auto center graphs as well.
How to test:
Ctrl + / triggers an auto arrange.
Ctrl + . centers all nodes and comments to the origin.
Additional information:
Looking into supporting comments for at least auto center before pr.Comments are supported with centering
but not with auto arrange. Going to need a deeper dive for that, but don't want to sink too much time into it in anticipation of rete 2.0 changes.Comments are semi supported with auto arrange but is not pretty.
We can maybe trigger the auto centering before an export so that the user is no longer lost when importing a project/spell that is far away from the origin