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

How to implement undo redo functionality while editing image? #54

Open
Abhi-Radadiya opened this issue Jan 5, 2024 · 1 comment
Open

Comments

@Abhi-Radadiya
Copy link

I am developing platform where user need to upload image and edit which has simple functionality rotate, crop and flip.

Now I have implemented undo-redo functionality for rotation and flipping an image but how to deal with crop?

3f81877c-da07-40de-b341-07ea71898f45.mp4
@Norserium
Copy link
Collaborator

@Abhi-Radadiya, you can remember the state on its change (onChange callback) and then set the corresponding state by setState method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants