hellfire 0.25.4 → 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 +8 -0
- package/dist/index.js +21 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
|
|
9
|
+
## [0.25.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.25.4...v0.25.5) (2023-01-30)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [0.25.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.25.3...v0.25.4) (2023-01-18)
|
|
6
14
|
|
|
7
15
|
|
package/dist/index.js
CHANGED
|
@@ -32298,12 +32298,12 @@ var OverlayTool = /*#__PURE__*/function (_BaseTool) {
|
|
|
32298
32298
|
layerCanvas.width = imageWidth;
|
|
32299
32299
|
layerCanvas.height = imageHeight;
|
|
32300
32300
|
var layerContext = layerCanvas.getContext('2d');
|
|
32301
|
-
layerContext.fillStyle = overlay.fillStyle || 'white';
|
|
32302
|
-
|
|
32303
|
-
if (overlay.type === 'R') {
|
|
32304
|
-
|
|
32305
|
-
|
|
32306
|
-
}
|
|
32301
|
+
layerContext.fillStyle = overlay.fillStyle || 'white'; // 目前为了解决T11262
|
|
32302
|
+
// 不清楚这块代码原来的逻辑,overlay type有R和G两种,xor可以产生重叠部分透明的效果,但是目前没发现为什么要加这一层,所以先注释
|
|
32303
|
+
// if (overlay.type === 'R') {
|
|
32304
|
+
// layerContext.fillRect(0, 0, layerCanvas.width, layerCanvas.height);
|
|
32305
|
+
// layerContext.globalCompositeOperation = 'xor';
|
|
32306
|
+
// }
|
|
32307
32307
|
|
|
32308
32308
|
var i = 0;
|
|
32309
32309
|
|
|
@@ -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
|
|
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
|
-
|
|
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
|