I think this could apply to both NodeCanvas and FlowCanvas. I would like to see a feature that allows the user to group nodes together like in the attached screenshot. It would also provide a good place to put some additional comments for anyone reading your code.
This feature would allow people to construct graphs that are more readable and easier to understand.
Creating such groups is already possible in both NodeCanvas and FlowCanvas (alas without comments, but rather only a title though).
To create such a group, simply make a rect selection as normal, and before releasing the mouse, hold down the Control keyboard key.
Here is the relevant link to the documentation about this 🙂 : [DOCUMENTATION LINK]
Please let me know if that is what you meant.
Thanks.
Thanks, I didn’t know it was already possible. I was looking for it in the wrong places and should have checked the documentation. I tried it and it does appear to do what I want. 🙂
However… I did find two issues with it:
* The title of the group does not scale as you zoom out. Is this intended? – Edit: Nevermind, it seems to be intended based on https://nodecanvas.paradoxnotion.com/wp-content/uploads/sites/4/2015/12/canvasgroup.gif
* The position of the nodes within the group does not appear to be stable. I’m not sure, but I think things go wrong only when the nodes themselves are selected while moving the group.
See this for a stress test example: https://gfycat.com/HardtofindWeightyGharial
– Yes, the title of the groups stays the same size by design, so that when zoomed out you still get an overview of what group is where 🙂
– Indeed. I’ve just checked this out and when the nodes are selected only and you move the group around, they are indeed not stable. Nice catch 🙂 I will see in to fixing this!
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.