-
Notifications
You must be signed in to change notification settings - Fork 209
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
Added Position #1403
base: main
Are you sure you want to change the base?
Added Position #1403
Conversation
@publiclab/is-reviewers |
Codecov Report
@@ Coverage Diff @@
## main #1403 +/- ##
===========================================
+ Coverage 55.11% 65.29% +10.17%
===========================================
Files 117 132 +15
Lines 2344 2746 +402
Branches 360 438 +78
===========================================
+ Hits 1292 1793 +501
+ Misses 1052 953 -99
|
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.
Thanks for contributing. This looks great! I bet this feature could be useful to lots of people, but displaying it in a different way might be even better. Please take a look at the comment I made in the code. The purpose of the change I suggested is to show information on the page only when it's useful (there's no need to show position = NULL when the mouse is not on the photo). What do you think?
examples/lib/defaultHtmlStepUi.js
Outdated
@@ -45,7 +45,7 @@ function DefaultHtmlStepUi(_sequencer, options) { | |||
<div class="panel-body cal collapse in">\ | |||
<div class="row step">\ | |||
<div class="col-md-4 details container-fluid">\ | |||
<div class="cal collapse in"><p>' + | |||
<div class="cal collapse in"><p><p>POS_X= <span class="posx">NULL</span> POS_Y= <span class="posy">NULL</span></p>' + |
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.
Instead of POS_X and POS_Y, can it be more descriptive like
Cursor Position: (x-coord, y-coord)
Yes @anthony-zhou we shouldn't display NULL when cursor moves away. I have also put the text on top-right. Kindly Review |
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.
Looks good!
Hi all! What if we put the position with a "mouse" icon (
https://fontawesome.com/v4.7.0/icon/mouse-pointer) for compactness, and in
the card header, to the left of the trash button?
Very cool!
…On Wed, Jan 1, 2020 at 11:40 AM anthony-zhou ***@***.***> wrote:
***@***.**** approved this pull request.
Looks good!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1403?email_source=notifications&email_token=AAAF6J3KMPMGXKTVN5IXQBDQ3TBP5A5CNFSM4KBP4Y4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQO4PVA#pullrequestreview-337496020>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J7UIEXTF77MIVALEMLQ3TBP5ANCNFSM4KBP4Y4A>
.
|
How about a crosshairs icon in the card header which when clicked will trigger the function after which when hovered over the image it will give x,y cordinates in the same way it is currently showing rgb channels? |
Oh, that sounds cool! But, do we want it not to be on by default?
…On Sun, Jan 5, 2020 at 2:28 PM Rishabh Shukla ***@***.***> wrote:
How about a crosshairs icon
<https://fontawesome.com/v4.7.0/icon/crosshairs> in the card header which
when clicked will trigger the function after which when hovered over the
image it will give x,y cordinates in the same way it is currently showing
rgb channels?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1403?email_source=notifications&email_token=AAAF6J2WYTVL73O2T2MIGETQ4IXSLA5CNFSM4KBP4Y4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEID5RJI#issuecomment-570939557>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J2XXR4STEOBWROGWMTQ4IXSLANCNFSM4KBP4Y4A>
.
|
We don't need position data for all the modules this way we can keep both of the features (position and rgba channel on hover) and keep the UI clean and maybe we can also show the rgba data of image the same way by using a color-picker-icon...maybe? |
That's a cool idea! Yeah!
…On Mon, Jan 6, 2020 at 5:21 PM Rishabh Shukla ***@***.***> wrote:
We don't need position data for all the modules this way we can keep both
of the features (position and rgba channel on hover) and keep the UI clean
and maybe we can also show the rgba data of image the same way by using a
color-picker-icon...maybe?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1403?email_source=notifications&email_token=AAAF6J6QE6IMS77AQHYKBJTQ4OVFZA5CNFSM4KBP4Y4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIG7UWQ#issuecomment-571341402>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6JZL2IEV7POS2S4X3Z3Q4OVFZANCNFSM4KBP4Y4A>
.
|
I will do the necessary changes and will commit by tomorrow. |
@jywarren @blurry-x-face Added the crosshair icon. It looks really cool now, |
@ataata107 Could you please attach a working GIF? |
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.
It's awesome! It even works with GIFs!
Hi @ataata107 would you be interested in making this last change and then we can merge it? Thank you!!! |
Fixes #1402
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
npm test
@publiclab/is-reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!