-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix(hydration): Maintain the same slice that the user was on pre hydration in post hydration for SR and SEG. #4200
Conversation
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ohif-platform-docs canceled.
|
Passing run #4033 ↗︎Details:
Review all test suite changes for PR #4200 ↗︎ |
}, | ||
// { | ||
// name: hpScale.id, | ||
// protocol: hpScale, | ||
// }, | ||
{ | ||
name: hpScale.id, | ||
protocol: hpScale, | ||
}, |
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.
revert this for now since when you go to segmenttaion mode this gets matched for some reason
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.
Sure
if (viewportId === targetViewportId) { | ||
viewport.viewportOptions.initialImageOptions = { | ||
index: initialSliceIndex, | ||
useOnce: true, |
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.
Why do we need useOnce
? I don't prefer this approach.
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 when the seg is hydrated, the initial image index is set, but lets say the user switches to another series, then drops the referenced series for the seg again, we should not use the initial index again, we should default to first/middle or last.
@@ -81,6 +86,29 @@ function TrackedMeasurementsContextProvider( | |||
}, | |||
}); | |||
}, | |||
|
|||
jumpToSameImageInActiveViewport: (ctx, evt) => { |
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.
Will this be the same logic if there is only one measurement? What I'm asking is, is jumpToSameImage = jumpToFirstMeasurement
if there is only one measurement?
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 doesn’t matter how many measurements there are, it will still be the same slice the user was on
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.
see my comments
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
Context
Maintain the same slice that the user was on pre hydration in post hydration for SR and SEG.
Fixes #3884