-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat: added reviewport set for toolgroup such as MPR #3298
base: master
Are you sure you want to change the base?
feat: added reviewport set for toolgroup such as MPR #3298
Conversation
✅ Deploy Preview for ohif-platform-docs canceled.
|
✅ Deploy Preview for ohif-platform-viewer canceled.
|
Codecov Report
@@ Coverage Diff @@
## v3-stable #3298 +/- ##
==============================================
+ Coverage 25.15% 37.37% +12.21%
==============================================
Files 119 85 -34
Lines 2862 1402 -1460
Branches 555 309 -246
==============================================
- Hits 720 524 -196
+ Misses 1856 707 -1149
+ Partials 286 171 -115 see 76 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@@ -471,6 +473,29 @@ function commandsModule({ servicesManager, commandsManager }) { | |||
|
|||
viewport.render(); | |||
}, | |||
resetToolGroupVolumeViewports: ({ toolGroupId }) => { |
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.
so where is this being used? I don't see it anywhere
@Ouwen Also for this one, any one free you have to work on this? |
Context
This adds the ability to reset viewports at the toolgroup level. One common use case is MPR.
Changes & Results
Adds a new command called
resetToolGroupVolumeViewports
Testing
run this in the window after playing with MPR
commandsManager.runCommand('resetToolGroupVolumeViewports', { toolGroupId: 'mpr' })
this depends on this CS3D PR
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment