Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ouwen
Copy link
Contributor

@Ouwen Ouwen commented Apr 2, 2023

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

  • My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • "Browser: Chrome Latest

@netlify
Copy link

netlify bot commented Apr 2, 2023

Deploy Preview for ohif-platform-docs canceled.

Name Link
🔨 Latest commit 219c090
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/64292474e5944400089f7595

@netlify
Copy link

netlify bot commented Apr 2, 2023

Deploy Preview for ohif-platform-viewer canceled.

Name Link
🔨 Latest commit 219c090
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-viewer/deploys/64292474d7f9360008ed586e

@codecov
Copy link

codecov bot commented Apr 2, 2023

Codecov Report

Merging #3298 (219c090) into v3-stable (9f1e813) will increase coverage by 12.21%.
The diff coverage is n/a.

Impacted file tree graph

@@              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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 226244a...219c090. Read the comment docs.

@@ -471,6 +473,29 @@ function commandsModule({ servicesManager, commandsManager }) {

viewport.render();
},
resetToolGroupVolumeViewports: ({ toolGroupId }) => {
Copy link
Member

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

@sedghi sedghi changed the base branch from v3-stable to master June 19, 2023 13:32
@sedghi
Copy link
Member

sedghi commented Jun 19, 2023

@Ouwen Also for this one, any one free you have to work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants