iVis-at-Bilkent / cytoscape.js-undo-redo

A Cytoscape.js extension to provide an undo-redo framework
MIT License
46 stars 9 forks source link

Undo/Redo Stack Limit #4

Closed shean42 closed 7 years ago

shean42 commented 8 years ago

hi guys,

one feature which imho would be useful is an additional init option to limit the size of the undo/redo stack. during long edit sessions in complex graphs this would help to limit memory usage and thus minimize the risk of browser crashes!

anyway great extension, thanks for providing! :-)

metincansiper commented 7 years ago

@shean42 thanks for this suggestion. I added 'stackSizeLimit' option, which is undefined by default and there is no limit for stack size if this option is undefined. I am closing the issue for now, please let me knwo if you see any problem with this.