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

Include a redo,undo and erase option #109

Closed
kesharwaniyanshi opened this issue May 13, 2024 · 2 comments
Closed

Include a redo,undo and erase option #109

kesharwaniyanshi opened this issue May 13, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request gssoc

Comments

@kesharwaniyanshi
Copy link

Feature Request: Undo, Redo, and Erase Options

Description

Currently, the application lacks the ability to undo or redo drawing actions, as well as an option to erase or clear the canvas. This feature would provide users with greater control and flexibility when creating drawings, allowing them to correct mistakes or experiment more freely.

Proposed Solution

Implement the following functionalities:

  1. Undo: Add a button that allows users to undo the last drawing action performed on the canvas.
  2. Redo: Add a button that allows users to redo the last undone action, effectively reversing the undo operation.
  3. Erase: Add a button or tool that allows users to erase or clear specific areas of the canvas by drawing over them.

Implementation Suggestions

  • Utilize React's state management to keep track of the drawing actions performed on the canvas.
  • Maintain a stack or array to store the canvas states after each drawing action, enabling the undo and redo functionalities.
  • For the erase tool, consider implementing a separate mode or tool that allows users to draw with a specific "erase" color or transparency.

Benefits

  • Improved user experience by providing more control and flexibility over the drawing process.
  • Reduced frustration by allowing users to correct mistakes or experiment without having to start from scratch.
  • Enhanced productivity by enabling users to iterate and refine their drawings more efficiently.

Additional Considerations

  • Ensure that the undo, redo, and erase functionalities work seamlessly with other existing tools and features.
  • Consider adding keyboard shortcuts or hotkeys for common actions to enhance accessibility and efficiency.
  • Provide clear visual feedback or indicators to users when undo, redo, or erase actions are performed.

Please assign me this issue.

@soumya-maheshwari
Copy link
Collaborator

Hello @kesharwaniyanshi
assigned the issue to you
Good Luck !!

@0xabdulkhaliq
Copy link
Collaborator

Oops! @kesharwaniyanshi, There's an existing issue about adding Undo / Redo functionality. (#43)

So this issue is a duplicate one, so we can't allow you to work on this issue.

I'm closing this for now, now you can a new issue for contributing. Thank you!

@0xabdulkhaliq 0xabdulkhaliq closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request gssoc
Projects
None yet
Development

No branches or pull requests

3 participants