Feature request: A way to group nodes

Forums 💬 NodeCanvas ⚙️ Support Feature request: A way to group nodes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17337
    timv
    Participant

      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.

      #17340
      Gavalakis
      Keymaster

        Hey,

        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.

        #17339
        timv
        Participant

          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

          #17338
          Gavalakis
          Keymaster

            Nice 🙂

            – 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!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.