-
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
Inputs for sliders #166
Inputs for sliders #166
Conversation
Conflicting PR. Removed from build FIGURE-merge#224. See the console output for more details.
|
Conflicting with #160 LUTs changes to background styles of sliders. |
see also #168 for possible conflicts. |
ba2487b
to
0e777a3
Compare
Tested with http://web-dev-merge.openmicroscopy.org/figure/ user-3 Safari. Behaves as expected. |
self.listenTo(m, 'change:channels', self.render); | ||
}); | ||
|
||
// this.$el = $("#channel_sliders"); |
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.
could remove commented out code
|
||
events: { | ||
"keyup .ch_start": "handle_channel_input", | ||
// "blur .ch_start": "handle_channel_input", |
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.
same
"keyup .ch_start": "handle_channel_input", | ||
// "blur .ch_start": "handle_channel_input", | ||
"keyup .ch_end": "handle_channel_input", | ||
// "blur .ch_end": "handle_channel_input", |
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.
same
|
||
// Comare channels from each Panel Model to see if they are | ||
// compatible, and compile a summary json. | ||
var chData = this.models.map(function(m){ |
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.
space before {
not consistent with rest of file
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.
When declaring anonymous functions in-line, I am reasonably consistent with not having a space here. If I was going to fix this throughout the codebase, it would make sense to do that in a separate PR.
return m.get('channels'); | ||
}); | ||
// images are compatible if all images have same channel count | ||
var allSameCount = chData.reduce(function(prev, channels){ |
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.
space
Thanks for cleanup |
Repository: ome/omero-figure Already up-to-date. Merged PRs: # PR 190 will-moore 'Rois from omero2' # PR 193 bramalingam 'Xywh width height button' Conflicting PRs (not included): # PR 194 will-moore 'Missing channel_slider_template.html from PR ome#166' Generated by FIGURE-merge#361 (https://ci.openmicroscopy.org/job/FIGURE-merge/361/)
…plate.html from PR ome#166)
Repository: ome/omero-figure Already up-to-date. Merged PRs: # PR 190 will-moore 'Rois from omero2' # PR 193 bramalingam 'Xywh width height button' # PR 194 will-moore 'Missing channel_slider_template.html from PR ome#166' Generated by FIGURE-merge#362 (https://ci.openmicroscopy.org/job/FIGURE-merge/362/)
…plate.html from PR ome#166)
Repository: ome/omero-figure Already up-to-date. Merged PRs: # PR 190 will-moore 'Rois from omero2' # PR 193 bramalingam 'Xywh width height button' # PR 194 will-moore 'Missing channel_slider_template.html from PR ome#166' Generated by FIGURE-merge#363 (https://ci.openmicroscopy.org/job/FIGURE-merge/363/)
…plate.html from PR ome#166)
Repository: ome/omero-figure Already up-to-date. Merged PRs: # PR 190 will-moore 'Rois from omero2' # PR 193 bramalingam 'Xywh width height button' # PR 194 will-moore 'Missing channel_slider_template.html from PR ome#166' Generated by FIGURE-merge#364 (https://ci.openmicroscopy.org/job/FIGURE-merge/364/)
Missing channel_slider_template.html from PR #166
See https://trello.com/c/AozomHkL/125-sliders-allow-typing-in-values
For the channel sliders, we now allow users to type in the value they want (as in webclient & Insight).
This allows greater accuracy and you can also enter values outside of the slider range.
We now show the existing Average value (in light grey) if selected images have different values for start/end.
This allows user to edit existing value instead of '-' as before.
We use "number" fields, so you can't ender non-numeric characters. Most browsers also support mousewheel scrolling to edit the value.
To test:
Select a single image or multiple images: