-
Notifications
You must be signed in to change notification settings - Fork 26
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
Saving collapsed/hidden map content #49
Comments
Yes, this is a problem we have since SBGNML doesn't address the concept of "collapsed" nodes. What do you recommend we do? I don't think this is an urgent issue though. |
it's not just the collapsed status, the problem is we lose information, as the children of the collapsed node are not written in the file. I will correct this. For the collapsed status itself, yes, I don't see what we can do. |
But how do you propose to restore collapsed children? Do you mean to persist the map as if the collapsed node is expanded? |
Yes, that's what I had in mind. Are you ok with that ? |
Let s please discuss first |
In fact, if this is to be supported, we should also consider persisting hidden nodes/edges |
As discussed in our regular meeting, we should persist both collapsed and hidden content in our SBGNML files using extension support (at map level). If the hidden, collapsed status is difficult to restore, we should leave this for later releases. In any case, this should be done after submaps are implemented (we have a 3rd compound node type). |
Now if an element is hidden it can be saved properly with a Both those tags are part of a <extension>
<newt>
<hidden/>
<collapsed/>
</newt>
</extension> I didn't want to immediately change the behavior of Newt, because the loading part isn't implemented yet. But when everything works, we'll need to remove These extension additions were quite simple so I didn't change libsbgn.js for this newt-specific thing. |
Excellent |
Saving a file with collapsed nodes deletes its children and breaks the links.
The text was updated successfully, but these errors were encountered: