Have you ever had trouble with modifying your DITA document while on the go? Well, DocHub comes with a great solution for that! Access this online editor from any internet-connected device. It enables users to Redo drawing in DITA files rapidly and anytime needed.
DocHub will surprise you with what it provides you with. It has robust functionality to make any updates you want to your paperwork. And its interface is so intuitive that the entire process from beginning to end will take you only a few clicks.
Once you complete modifying and sharing, you can save your updated DITA document on your device or to the cloud as it is or with an Audit Trail that includes all adjustments applied. Also, you can save your paperwork in its initial version or transform it into a multi-use template - accomplish any document management task from anywhere with DocHub. Subscribe today!
hey everyone hope youre doing well so today were going to be continuing on our excited draw app and were going to be implementing the undo slash redo functionality um if you enjoy this kind of content please consider subscribing and lets get right into it so were going to start off with looking at a bit of the theory of how undo slash redo functionality generally works theres two main patterns that we can have a look at if you want to skip directly to the coding ill leave timestamps in the description um but yeah well start off with the theory here so to explain these patterns lets just have a quick look at the uh how the app works just now and then we can go on to the the two so if you imagine this is our current canvas and we have two elements what the state looks like is this object up here which is an array with two elements two objects representing the elements so how we got there is if you imagine we have started off with an empty array and lets just go through a sequen