scaleflex / filerobot-image-editor

Edit, resize, and filter any image! Any questions or issues, please report to https://github.com/scaleflex/filerobot-image-editor/issues
MIT License
1.35k stars 343 forks source link

updateStateFnRef doesn't let me delete via annotations update #396

Closed KDDeveloper closed 11 months ago

KDDeveloper commented 11 months ago

updateStateFnRef merges updated state with previous one which means I can't delete from annotations. Is there a work around for this?

AhmeeedMostafa commented 11 months ago

not an intent to delete using this function, but maybe u could try a workaround which is setting the shape's value to null to override the shape's value, and check if all is good or not (make sure there is no bugs/issues once doing that)

KDDeveloper commented 10 months ago

@AhmeeedMostafa thanks a lot! that helped! but it make it really easy if we could do it within the context of just updating the state of the annotation. I have shared a few ideas in #412 which would make the editor further more customizable.