-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
34 - Image Pan and Zoom #4736
34 - Image Pan and Zoom #4736
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4736 +/- ##
==========================================
- Coverage 50.42% 50.17% -0.26%
==========================================
Files 511 513 +2
Lines 18665 18820 +155
Branches 1644 1664 +20
==========================================
+ Hits 9411 9442 +31
- Misses 8837 8960 +123
- Partials 417 418 +1
Continue to review full report at Codecov.
|
@charlesh88 - In this image you can see the temporary mocked up UI for interacting with the zoom level. There is a zoom in, zoom out, and reset button. The current zoom scale is called out if the zoom is greater than 1; in the photo that is visible as x2.00. Happy to make adjustments to its positioning and structure to integrate better with the existing UI. There is currently some overlap between how the mouse click (zoom in) and alt/option + mouseclick (zoom out) behaves with the way pan is handled on the plots. In plots, panning is initiated with alt/option keypress. We might consider moving the zoom reverse to another keybinding to avoid any confusion there. Another concern is the current mocked up UI is visible when imagery is included in a layout. This might not be a concern if the UI is activated on hover like the contrast/brightness sliders. |
* Get child of flex layout as mutable if possible * Fix bug when no default notebook defined
* Track if domain object changes when independent time conductor is in use.
* Request data when switching between real time and fixed. Also add some null checks * Address review comments - add more conditional logic to optimize time conductor.
@michaelrogers Looking at this now. |
- Moved controls into local controls holder; - `<a>` tags converted to `button`; - WIP! Have not linted or made sure I didn't break tests yet;
@michaelrogers Have pushed to the branch:
|
@charlesh88 - Thanks for pushing the updates. The new UI layout looks sharp.
|
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.
The code logic looks solid! 💯
There needs to be some code reorganization so that it's more readable. Added comments to that effect.
Thank you for doing this!
* Zoom pan controls moved to component * Implement adjustments to encapsulate state into ImageryControls * Track modifier key pressed for layouts * Removed trailing space * toggleLock -> toggleZoomLock * Required zoomFactor, remove default * Added back in click listener for pan zoom click Co-authored-by: Joshi <[email protected]>
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.
Small suggestions/changes, Almost ready to merge 👍
@nikhilmandlik - Thanks, I've updated a few of the items but had a question about the best way to proceed for: |
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.
LGTM
Fixes #34
TODO:
Describe your changes:
All Submissions:
Author Checklist
Reviewer Checklist