hellfire 0.20.4 → 0.20.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.20.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.20.4...v0.20.5) (2022-05-20)
6
+
7
+
8
+
5
9
  ## [0.20.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.20.3...v0.20.4) (2022-05-19)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -27742,14 +27742,19 @@ function _createTextBoxContent$2(context, isColorImage) {
27742
27742
  min = _ref.min,
27743
27743
  max = _ref.max,
27744
27744
  meanStdDevSUV = _ref.meanStdDevSUV;
27745
+
27746
+ var modality = arguments.length > 3 ? arguments[3] : undefined;
27745
27747
  var hasPixelSpacing = arguments.length > 4 ? arguments[4] : undefined;
27748
+ var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
27746
27749
  var textLines = [];
27747
27750
  textLines.push(formatArea(area, hasPixelSpacing));
27748
27751
 
27749
27752
  if (!isColorImage) {
27750
- var meanString = "Mean: ".concat(numbersWithCommas$2(mean.toFixed(1)));
27751
- var stdDevString = "StdDev: ".concat(numbersWithCommas$2(stdDev.toFixed(1)));
27752
- textLines.push("Min/Max: ".concat(min.toFixed(1), " / ").concat(max.toFixed(1)));
27753
+ var unit = _getUnit$2(modality, options.showHounsfieldUnits);
27754
+
27755
+ var meanString = "Mean: ".concat(numbersWithCommas$2(mean.toFixed(1)), " ").concat(unit);
27756
+ var stdDevString = "StdDev: ".concat(numbersWithCommas$2(stdDev.toFixed(1)), " ").concat(unit);
27757
+ textLines.push("Min/Max: ".concat(min.toFixed(1), " ").concat(unit, " / ").concat(max.toFixed(1), " ").concat(unit));
27753
27758
  textLines.push("".concat(meanString));
27754
27759
  textLines.push("".concat(stdDevString));
27755
27760
  }
@@ -27803,6 +27808,10 @@ function getEventButtons(event) {
27803
27808
  return 0;
27804
27809
  }
27805
27810
 
27811
+ function _getUnit$2(modality, showHounsfieldUnits) {
27812
+ return modality === 'CT' && showHounsfieldUnits !== false ? 'HU' : '';
27813
+ }
27814
+
27806
27815
  (function () {
27807
27816
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
27808
27817
 
@@ -27836,6 +27845,7 @@ function getEventButtons(event) {
27836
27845
  reactHotLoader.register(formatArea, "formatArea", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/PolygonTool.js");
27837
27846
  reactHotLoader.register(isInPolygon, "isInPolygon", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/PolygonTool.js");
27838
27847
  reactHotLoader.register(getEventButtons, "getEventButtons", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/PolygonTool.js");
27848
+ reactHotLoader.register(_getUnit$2, "_getUnit", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/PolygonTool.js");
27839
27849
  })();
27840
27850
 
27841
27851
  (function () {