Skip to content
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

new Undo feature to be added to revert accidentally shown or hidden nodes #21

Open
AjitPS opened this issue Aug 1, 2020 · 0 comments
Open
Assignees
Labels
newfeature new feature request

Comments

@AjitPS
Copy link
Collaborator

AjitPS commented Aug 1, 2020

New feature request to add a new undo/redo feature to KnetMaps so users can undo their "last network interaction". For example, if the user uses the legend to add more nodes of a certain type to the network or does the same accidentally via the showAll button or the right-click context menu, there should be an easy way to revrt that, preferably with a new Undo button icon on the knetmaps top menubar.

FYI, we already we save last node and edge visibility state when user switches knetmaps from tab to full screen mode. Could extend that to retain that information at all times to undo accidental show/hide of nodes and edges.

Simple undo on shown or hidden nodes/edges should be simple as already when going full screen we check which nodes are last shown (denoted by a shown cyJS class shownEle/ hideEle https://github.com/Rothamsted/knetmaps.js/blob/master/javascript/knet-generator.js#L171 appended to node or edge attributes) ... these are called cyJS selector classes and help us toggling attributes like visibility https://github.com/Rothamsted/knetmaps.js/blob/master/javascript/knet-container.js#L192, blur effect etc.

@AjitPS AjitPS changed the title New undo feature to be added to knetmaps rendered networks new Undo feature to be added to revert accidentally shown or hidden nodes Aug 1, 2020
@AjitPS AjitPS added the newfeature new feature request label Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
newfeature new feature request
Projects
None yet
Development

No branches or pull requests

2 participants