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

fix(getOrientationString): Add additional logic to handle equal vector component edge case #1100

Merged
merged 2 commits into from
Oct 10, 2019
Merged

fix(getOrientationString): Add additional logic to handle equal vector component edge case #1100

merged 2 commits into from
Oct 10, 2019

Conversation

mix3d
Copy link
Contributor

@mix3d mix3d commented Oct 10, 2019

  • 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, ...)
    Bug Fix

  • What is the current behavior? (You can also link to an open issue here)
    If two of the vector components are the largest, but equal, nothing is returned in the getOrientationString function

  • What is the new behavior (if this is a feature change)?
    Now returns the expected values, taking the order priority of X,Y,Z
    example: input vector [0.5, -.777, -.777] will be AFL

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

  • Other information:

mix3d added 2 commits October 10, 2019 12:41
…r component edge case

Fixes view angle vectors at 45 degrees
@codecov
Copy link

codecov bot commented Oct 10, 2019

Codecov Report

Merging #1100 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1100      +/-   ##
==========================================
- Coverage   19.01%   18.98%   -0.03%     
==========================================
  Files         282      282              
  Lines        8390     8403      +13     
  Branches     1419     1422       +3     
==========================================
  Hits         1595     1595              
- Misses       5642     5652      +10     
- Partials     1153     1156       +3
Impacted Files Coverage Δ
src/orientation/getOrientationString.js 0% <0%> (ø) ⬆️

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 76d7a66...1b76a53. Read the comment docs.

@dannyrb dannyrb merged commit af903bb into cornerstonejs:master Oct 10, 2019
@mix3d mix3d deleted the bugfix/getOrientationString branch October 10, 2019 20:17
@dannyrb
Copy link
Member

dannyrb commented Oct 10, 2019

🎉 This PR is included in version 4.6.1 🎉

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.

2 participants