-
Notifications
You must be signed in to change notification settings - Fork 455
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 some publish/create SR using dcmjs #1442
Fix some publish/create SR using dcmjs #1442
Conversation
@@ -124,12 +124,14 @@ export default class CobbAngleTool extends BaseAnnotationTool { | |||
return false; | |||
} | |||
|
|||
return ( | |||
const seg1Near = |
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.
This is just some tidying to make it easier to debug.
Codecov Report
@@ Coverage Diff @@
## master #1442 +/- ##
==========================================
+ Coverage 19.76% 20.15% +0.38%
==========================================
Files 286 286
Lines 10082 10097 +15
Branches 2052 2056 +4
==========================================
+ Hits 1993 2035 +42
+ Misses 6878 6851 -27
Partials 1211 1211
Continue to review full report at Codecov.
|
@@ -26,14 +28,27 @@ const moveHandleNearImagePoint = function( | |||
) { | |||
toolData.active = true; | |||
state.isToolLocked = true; | |||
const doneHandler = success => { |
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.
Fire a completed event when the user is done modifying a completed/existing handle, in order to allow updating anything listening. That allows saving the right values into a TID.300 object.
1833b36
to
1a5afd6
Compare
…th the TID.300 saving changes. Correct notification on tool completion, with values restored correctly when loaded from TID.300 is required for store/save functionality. This is implemented in dcmjs, but the changes are required here. The cobb angle needed to be udpated after restoring, the Rectangle ROI needed the perimeter, and changes needed to publish a completed measurement event.
1a5afd6
to
8f13fa9
Compare
The existing test only checked negative tests, adding tests for point is near 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.
LGTM
🎉 This PR is included in version 6.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This is a bug fix to add support for saving and recreating the cornerstone tools markups, in particular the cobb angle and rectangel roi tools.
This is not a breaking change.
Adding unit tests for cobb angle, and for the rectangeroi