hellfire 0.25.5 → 0.25.6

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.25.6](http://10.16.100.57/diffusion/115/paladin/compare/v0.25.5...v0.25.6) (2023-03-01)
6
+
7
+
8
+
5
9
  ## [0.25.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.25.4...v0.25.5) (2023-01-30)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -32784,7 +32784,7 @@ function getAIText(data) {
32784
32784
  type = _data$info.type,
32785
32785
  risk = _data$info.risk,
32786
32786
  index = data.index;
32787
- var title = "#".concat(index, " ").concat(inspectionTypeDic(type), " ").concat(risk === 'M' ? '中风险' : risk === 'H' ? '高风险' : '');
32787
+ var title = "#".concat(index, " ").concat(inspectionTypeDic(type), " ").concat(riskTypeDic[risk]);
32788
32788
  var text = [title];
32789
32789
 
32790
32790
  if (type === 'nodule') {
@@ -32812,7 +32812,10 @@ function getAIText(data) {
32812
32812
  }
32813
32813
 
32814
32814
  text.push("\u7ED3\u8282\u5BC6\u5EA6\u5C5E\u6027: ".concat(characteristic && characteristic.texture && textureDic(characteristic.texture) || '无'));
32815
- text.push("\u9499\u5316: ".concat(characteristic && characteristic.isCalcification ? '是' : '否'));
32815
+
32816
+ if (characteristic && lodash$1.has(characteristic, ['isCalcification'])) {
32817
+ text.push("\u9499\u5316: ".concat(characteristic && characteristic.isCalcification ? '是' : '否'));
32818
+ }
32816
32819
  }
32817
32820
 
32818
32821
  return text;
@@ -32826,6 +32829,13 @@ function textBoxAnchorPoints(handles) {
32826
32829
  return [handles.start, midpoint, handles.end];
32827
32830
  }
32828
32831
 
32832
+ var riskTypeDic = {
32833
+ 'L': '低风险',
32834
+ 'ML': '中低风险',
32835
+ 'M': '中风险',
32836
+ 'H': '高风险'
32837
+ };
32838
+
32829
32839
  function inspectionTypeDic(value) {
32830
32840
  switch (value) {
32831
32841
  case 'nodule':
@@ -32864,7 +32874,7 @@ var textureDic = function textureDic(value) {
32864
32874
  return '磨玻璃';
32865
32875
 
32866
32876
  default:
32867
- return '未知';
32877
+ return value;
32868
32878
  }
32869
32879
  };
32870
32880
 
@@ -32884,6 +32894,7 @@ var textureDic = function textureDic(value) {
32884
32894
  reactHotLoader.register(AIAnalysisOverlayTool, "AIAnalysisOverlayTool", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/AIAnalysisOverlayTool.js");
32885
32895
  reactHotLoader.register(getAIText, "getAIText", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/AIAnalysisOverlayTool.js");
32886
32896
  reactHotLoader.register(textBoxAnchorPoints, "textBoxAnchorPoints", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/AIAnalysisOverlayTool.js");
32897
+ reactHotLoader.register(riskTypeDic, "riskTypeDic", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/AIAnalysisOverlayTool.js");
32887
32898
  reactHotLoader.register(inspectionTypeDic, "inspectionTypeDic", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/AIAnalysisOverlayTool.js");
32888
32899
  reactHotLoader.register(textureDic, "textureDic", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/AIAnalysisOverlayTool.js");
32889
32900
  })();
@@ -53975,8 +53986,7 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
53975
53986
 
53976
53987
  lodash$1.forEach(aiResult, function (item) {
53977
53988
  if (item.seriesUid === seriesInstanceUID) {
53978
- var centerIndex = lodash$1.toNumber(item.center_Zyx.z);
53979
-
53989
+ var centerIndex = lodash$1.has(item, ['maxSliceIndex']) ? lodash$1.toNumber(item.maxSliceIndex) : lodash$1.toNumber(item.center_Zyx.z);
53980
53990
  aiCenter.push({
53981
53991
  center: centerIndex,
53982
53992
  risk: item.risk