-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Colormap wasn't being applied #3464
Conversation
✅ Deploy Preview for ohif-platform-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov Report
@@ Coverage Diff @@
## master #3464 +/- ##
=======================================
Coverage 42.81% 42.81%
=======================================
Files 82 82
Lines 1448 1448
Branches 338 338
=======================================
Hits 620 620
Misses 665 665
Partials 163 163
Continue to review full report in Codecov by Sentry.
|
@@ -36,13 +35,6 @@ function _createColormap(label, colormap) { | |||
colormap, | |||
}, | |||
}, | |||
{ |
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.
Duplicated unnecessarily redundant.
@@ -345,7 +338,6 @@ const toolbarButtons = [ | |||
tooltip: 'PET Image Colormap', | |||
}, | |||
isAction: true, // ? | |||
renderer: WindowLevelMenuItem, |
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.
This was causing the menu to have numbers beside it, causing it to look like it was appliable from the keyboard.
Passing run #3343 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
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. Just a couple of comments. Thanks.
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 great thanks
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. Thanks. Looks like the branch needs to be updated before merge is possible.
Context
Fixed the calls to set the PET colormaps to use the new format/correct set of values to be looked up.
Changes & Results
Colormaps can now be applied by selecting the menu item. Test changing the colormaps.
Removed the number from the colormap menu, using the default renderer so it shows correctly
Removed keyboard shortcuts 6-9 as they were causing exceptions due to invalid values
OpacityMapping is renamed to opacity since the API has changed in cornerstone3D
Testing
Run tmtv mode, change the colormap.
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment