mlexchange / mlex_highres_segmentation

A Dash interface for ML-based segmentation of user-annotated large multi-dimensional image data
Other
5 stars 4 forks source link

Toggling visibility of a class changes the ordering of the shapes #145

Closed Wiebke closed 3 months ago

Wiebke commented 1 year ago

As a user I am currently assuming that whatever I am drawing will be on top of everything that has been draw so far. This doesn't quite work together with toggling the visibility of classes as it seems the z-order isn't always retained.

For example, if I start by creating a background class, cover the entire image, then hide the background class to be able to see the data, then annotate the slice with the "actual" data classes, then -un-hide the background class, I can only see the background class covering all other annotations, even though I have in principe "drawn on top" of them.

Similarly, when having multiple classes and shapes, toggling visibility of a class can cause changes in the ordering.

Wiebke commented 3 months ago

Fixed by #147