-
Notifications
You must be signed in to change notification settings - Fork 38
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
Preserve rotation angle under dragging for ellipse and rectangle selection tools #396
Preserve rotation angle under dragging for ellipse and rectangle selection tools #396
Conversation
and rectangle selection tools without touching JS
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #396 +/- ##
==========================================
- Coverage 87.33% 86.84% -0.50%
==========================================
Files 89 89
Lines 5013 5076 +63
==========================================
+ Hits 4378 4408 +30
- Misses 635 668 +33
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too bad again that moving cannot be tested currently, but otherwise this looks good – as mentioned, I am unable to check if this works for Rectangle, but for Ellipse it does as expected, so I'll trust that the former is solved for you as well.
Try test it over in Imviz. Install this branch, and then install Jdaviz, and test it there. |
That's what I did, or do you mean installing in different order makes any difference? |
I think as long as you can prove to yourself using ellipse, it is good enough? The logic is the same in both. If you want to, we can meet at some point and I can screenshare, but not today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I could confirm it in the standalone app, and then after relaunching everything, moving worked in the notebook as well!
I created an issue upstream for the confusing "shadow." FYI. glue-viz/bqplot-image-gl#106 |
In Jdaviz, you can rotate ellipse and rectangle ROIs using Subset Tools plugin. After that is done, and user wants to click and drag the shape, without this patch, the rotation resets. This patch preserves any existing rotation. Since I really don't want to implement theta support in JS (e.g., https://github.com/glue-viz/bqplot-image-gl/blob/main/js/lib/BrushEllipseSelector.js), during the dragging phase, the gray shape has no rotation, but the rotation comes back when you finalize the drag.
cc @astrofrog and @dhomeier
🐱