Closed rastogi-bhavya closed 4 years ago
When the save button is clicked, save the SVG of the anatomy that is being edited. If the Back
button is clicked after making some edits, remove the original anatomy and re-add it using the SVG that was saved when the save button was clicked.
Make a cyclic copy of the anatomy SVG object that is being edited. If the Back
button is clicked then after making some changes, then use the original copy of the object (without the changes) to bring the anatomy to the original state.
when part of the SVG is erased, and the
back
button is clicked then, the part that was erases remains erased, i.e. it is not undone.Correct behavior: When the back button is clicked undo every change that was made.