jsbroks / coco-annotator

:pencil2: Web-based image segmentation tool for object detection, localization, and keypoints
MIT License
2.06k stars 452 forks source link

Keypoints undo #190

Open trinath503 opened 5 years ago

trinath503 commented 5 years ago

unable to undo keypoints

trinath503 commented 5 years ago

By when this enhancement is done? If you are unable to do it early, please suggest the approach to it, so that I can try and push the changes

trinath503 commented 5 years ago

It's fine I find some way to do it, you can share your thought's also.

jsbroks commented 5 years ago

You'll want to look at how undos are handled for annotations.

You'll want to create an undo action for when a user adds a keypoint which is append to the undo list. When the user undoes it calls the objects functions, pops the last object and overwrites the old keypoint object.

Undo's are complicated to implement. Currently if you click the key point and hit the backspace, it will delete the key point