Skip to content
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

Closed
sahil0414 opened this issue Jun 4, 2024 · 2 comments
Closed

Undo/Redo Functionality #297

sahil0414 opened this issue Jun 4, 2024 · 2 comments
Labels
enhancement New feature or request up for grabs

Comments

@sahil0414
Copy link

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

@sahil0414 sahil0414 added enhancement New feature or request up for grabs labels Jun 4, 2024
Copy link

github-actions bot commented Jun 4, 2024

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

@singodiyashubham87
Copy link
Owner

@sahil0414 Duplicate of #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up for grabs
Projects
None yet
Development

No branches or pull requests

2 participants