-
Notifications
You must be signed in to change notification settings - Fork 31
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
Small ROIs lost behind bigger ROIs #500
Comments
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/rois-deletion-on-omero-figure/78831/2 |
Hello @will-moore , I tried to figured out more clearly the behavior.
It seems that there is a re-organization of the shapes internally by putting the last selected shape on the top layer. Do you know where this re-organisation is done in the code ? I try to find it but I didn't get any relevant result. |
@will-moore any news on that ? |
Hi @Rdornier - That code is all hosted at https://github.com/ome/shape-editor. The idea was originally to create a library that we might use elsewhere, although that never happened. It uses It uses https://dmitrybaranovskiy.github.io/raphael/ If you clone the shape-editor repo,
When you click on a Shape, it calls There is logic there to move the shape to the front if it's selected: I guess we need to figure out at what point a smaller shape should be compared to a bigger shape and be brought up to the front? Apologies that we are having to handle all this low level logic - I would have liked to find an existing drawing library that could have done all this, but at the time I never did find one, so I wrote my own! |
Hello, Thank you for your advice. I didn't remember this repo ! Rémy. |
See https://forum.image.sc/t/rois-deletion-on-omero-figure/78831
Adding a list of Shapes (as in iviewer) is one solution.
An alternative is to re-order Shapes so that smaller ones are always on top.
The text was updated successfully, but these errors were encountered: