You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, that's correct, seems expensive but actually it's quick (not sure if you how would do with thousands nodes ^_^)
The alternative would try to revert a single action but that's complex and some node would need to implement themself to rollback.
I had tried an internal implementation that works that way, probably needs some refactoring and fixing but that's the concept, https://github.com/atlasan/litegraph.js/blob/2ebb3fde22e7e7e367eecab11a7a45b38c8f6f70/src/litegraph.js#L154
Yes, that's correct, seems expensive but actually it's quick (not sure if you how would do with thousands nodes ^_^) The alternative would try to revert a single action but that's complex and some node would need to implement themself to rollback. I had tried an internal implementation that works that way, probably needs some refactoring and fixing but that's the concept, https://github.com/atlasan/litegraph.js/blob/2ebb3fde22e7e7e367eecab11a7a45b38c8f6f70/src/litegraph.js#L154
i am really appreciate you !that is maybe what i want,i will try it,thanks again!
like title ,How to realize redo and undo?do we have to save schemas in every changing?
The text was updated successfully, but these errors were encountered: