Skip to content

Commit

Permalink
Merge pull request #858 from cornerstonejs/bidirectional-lnn
Browse files Browse the repository at this point in the history
fix(bidirectional): Support for lesion naming number in bidirectional
  • Loading branch information
dannyrb authored Feb 22, 2019
2 parents a8c797c + 386286b commit 0369c2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/annotation/bidirectionalTool/renderToolData.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,9 @@ const getTextBoxText = (data, rowPixelSpacing, colPixelSpacing) => {
const lengthText = ` L ${data.longestDiameter}${suffix}`;
const widthText = ` W ${data.shortestDiameter}${suffix}`;

if (data.lesionNamingNumber) {
return [`Target ${data.lesionNamingNumber}`, lengthText, widthText];
}

return [lengthText, widthText];
};

0 comments on commit 0369c2c

Please sign in to comment.