-
Notifications
You must be signed in to change notification settings - Fork 160
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
Undo/Redo Functionality #297
Labels
Comments
Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible. In the meantime you can star the repo and read the contributing.md |
@sahil0414 Duplicate of #32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Add undo and redo buttons to allow users to revert or reapply their last actions. This functionality is essential for correcting mistakes and experimenting with different drawing techniques.
Describe the solution you'd like
Feature Details:
Undo Button: Adds a button to the toolbar that allows users to undo their last action. When clicked, the most recent change to the drawing will be reverted.
Redo Button: Adds a button to the toolbar that allows users to redo an action that was undone. When clicked, the last undone action will be reapplied.
Action Stack: Implement a stack data structure to keep track of user actions. Each drawing action (e.g., strokes, shape additions, text insertions) will be pushed onto the stack. Undoing an action will pop it from the stack and move it to a redo stack. Redoing an action will push it back to the action stack.
Acceptance Criteria:
Undo and redo buttons are added to the toolbar.
Users can undo their last actions.
Users can redo actions that were undone.
A stack data structure is implemented to manage the history of actions for undo and redo functionality.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Please assign me for this task
The text was updated successfully, but these errors were encountered: