I’m using streamlit-drawable-canvas to annotate images, successfully saving and loading shapes to/from disk.
Question: How do I delete a shape that has been created?
That is, suppose there are a dozen shapes on the image, and I want to delete one of the first shapes. The “Undo” arrow doesn’t cut it in this case, no pun intended.
I can’t seem to find a way to hook the ‘transform’ drawing mode, which seems to select a shape but doesn’t notify streamlit of the selection. I’m not sure that would help anyway, because then I’d need to hook for keystrokes or something.
So, is there a way to delete an arbitrary shape?
Thanks.
-Rob