-
Notifications
You must be signed in to change notification settings - Fork 336
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: segmentSelect issue + segmentation modified event #1065
Conversation
✅ Deploy Preview for cornerstone-3d-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
224b3a3
to
90a5925
Compare
* @param annotation - Annotation to find the viewports that it could display in | ||
* @returns All viewports to display in | ||
*/ | ||
export default function getViewportsForAnnotation(annotation: Annotation) { |
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.
we have this already
packages/tools/src/utilities/getViewportForAnnotation.ts
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.
ViewportS (plural)
Later it looks for the viewport that is in a toolGroup with freehand tool
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.
Pushed a change to make getViewportForAnnotation
call getViewportsForAnnotation
removing duplicated code
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 comment thanks
Context
segmentSelect
example was not working as intendedSEGMENTATION_DATA_MODIFIED
was not being triggered forPlanarFreehandContourSegmentationTool
Changes & Results
contourSegmentationCompletedListener
finds a viewport with PlanarFreehandContourSegmentationTool tool enabled