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

Ensure AngleTool and ArrowAnnotateTool fire MEASUREMENT_COMPLETED event #1204

Merged

Conversation

ladeirarodolfo
Copy link
Contributor

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    ArrowAnnotate and Angle to fire MEASUREMENT_COMPLETED event

  • What is the current behavior? (You can also link to an open issue here)
    ArrowAnnotate and Angle not firing MEASUREMENT_COMPLETED event

  • What is the new behavior (if this is a feature change)?
    ArrowAnnotate and Angle do fire MEASUREMENT_COMPLETED event

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    no breaking change

  • Other information:

@codecov
Copy link

codecov bot commented Mar 26, 2020

Codecov Report

Merging #1204 into master will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1204      +/-   ##
==========================================
- Coverage   18.73%   18.72%   -0.02%     
==========================================
  Files         286      286              
  Lines        8571     8576       +5     
  Branches     1457     1457              
==========================================
  Hits         1606     1606              
- Misses       5774     5779       +5     
  Partials     1191     1191              
Impacted Files Coverage Δ
src/tools/annotation/AngleTool.js 0.00% <0.00%> (ø)
src/tools/annotation/ArrowAnnotateTool.js 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

@dannyrb
Copy link
Member

dannyrb commented Apr 1, 2020

@ladeirarodolfo, you can @mention me or assign me as the reviewer to expedite.

@@ -336,6 +336,18 @@ export default class AngleTool extends BaseAnnotationTool {
}

this.preventNewMeasurement = false;
external.cornerstone.updateImage(element);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the addition of updateImage? Were you noticing a stale render?

Copy link
Member

@dannyrb dannyrb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@dannyrb dannyrb linked an issue Apr 1, 2020 that may be closed by this pull request
3 tasks
@dannyrb dannyrb merged commit 24bca45 into cornerstonejs:master Apr 1, 2020
@dannyrb
Copy link
Member

dannyrb commented Apr 1, 2020

🎉 This PR is included in version 4.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

ArrowAnnotate and Angle do not fire MEASUREMENT_COMPLETED
2 participants