-
-
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
fix(general): enhancements and bug fixes #4018
Conversation
✅ Deploy Preview for ohif-dev canceled.
|
✅ Deploy Preview for ohif-platform-docs canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4018 +/- ##
=======================================
Coverage 44.37% 44.37%
=======================================
Files 80 80
Lines 1334 1334
Branches 327 327
=======================================
Hits 592 592
Misses 589 589
Partials 153 153
Continue to review full report in Codecov by Sentry.
|
Passing run #3801 ↗︎Details:
Review all test suite changes for PR #4018 ↗︎ |
extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/promptBeginTracking.js
Outdated
Show resolved
Hide resolved
extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/promptTrackNewStudy.js
Outdated
Show resolved
Hide resolved
@@ -80,7 +81,9 @@ const PlanarFreehandROI = { | |||
* @param {object} annotation | |||
* @returns {object} Report's content from this tool | |||
*/ | |||
function getColumnValueReport(annotation) { | |||
function getColumnValueReport(annotation, customizationService) { | |||
const { PlanarFreehandROI } = customizationService.get('cornerstone.measurements'); |
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.
Custom report
values.push(max, mean, stdDev, unit, area, areaUnit, perimeter); | ||
const stats = data.cachedStats[`imageId:${metadata.referencedImageId}`]; | ||
|
||
report.forEach(({ name, value }) => { |
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.
report
@@ -122,19 +122,19 @@ function getColumnValueReport(annotation) { | |||
* @param {Object} displaySet - The display set object. | |||
* @returns {string[]} - An array of display text. | |||
*/ | |||
function getDisplayText(annotation, displaySet) { | |||
function getDisplayText(annotation, displaySet, customizationService) { | |||
const { PlanarFreehandROI } = customizationService.get('cornerstone.measurements'); |
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.
custom display text
displayText.push(`Perimeter: ${perimeterValues.join(', ')} ${modalityUnit}`); | ||
} else { | ||
displayText.push(`Perimeter: ${utils.roundNumber(perimeter)} ${modalityUnit}`); | ||
displayText.forEach(({ displayName, value, type }) => { |
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.
display text
@@ -64,6 +64,136 @@ function getCustomizationModule() { | |||
step: 1, | |||
}, | |||
}, | |||
{ | |||
id: 'cornerstone.measurements', | |||
Angle: { |
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.
please refactor in another file, we should call this something like cornerstone.measurementStatsDisplay or something
Context
This PR has general bug fixes and enhancements
Changes & Results