hellfire 0.27.3 → 0.27.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 +8 -0
- package/dist/index.js +21 -13
- 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.27.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.4...v0.27.5) (2023-10-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.27.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.3...v0.27.4) (2023-09-18)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [0.27.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.2...v0.27.3) (2023-09-15)
|
|
6
14
|
|
|
7
15
|
|
package/dist/index.js
CHANGED
|
@@ -28187,7 +28187,7 @@ var AIAnalysisOverlayTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
|
|
|
28187
28187
|
var _renderToolData = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(evt) {
|
|
28188
28188
|
var _this2 = this;
|
|
28189
28189
|
|
|
28190
|
-
var eventData, element, toolData, stack, imagePlane, seriesInstanceUID, dicom, instanceNumber, aiData, drawData, context, lineWidth, i, data, xOffset;
|
|
28190
|
+
var eventData, element, toolData, stack, imagePlane, seriesInstanceUID, dicom, instanceNumber, aiData, SOPInstanceUIDs, currentImageIdIndex, drawData, context, lineWidth, i, data, xOffset;
|
|
28191
28191
|
return regenerator.wrap(function _callee$(_context) {
|
|
28192
28192
|
while (1) {
|
|
28193
28193
|
switch (_context.prev = _context.next) {
|
|
@@ -28238,7 +28238,8 @@ var AIAnalysisOverlayTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
|
|
|
28238
28238
|
|
|
28239
28239
|
return _objectSpread$d(_objectSpread$d({}, segmentation), {}, {
|
|
28240
28240
|
index: i + 1,
|
|
28241
|
-
info: info
|
|
28241
|
+
info: info,
|
|
28242
|
+
instanceUid: item.instanceUid
|
|
28242
28243
|
});
|
|
28243
28244
|
});
|
|
28244
28245
|
|
|
@@ -28247,8 +28248,16 @@ var AIAnalysisOverlayTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
|
|
|
28247
28248
|
});
|
|
28248
28249
|
|
|
28249
28250
|
if (aiData && aiData.length > 0) {
|
|
28251
|
+
SOPInstanceUIDs = stack.data[0].SOPInstanceUIDs;
|
|
28252
|
+
currentImageIdIndex = stack.data[0].currentImageIdIndex;
|
|
28250
28253
|
drawData = lodash$1.filter(aiData, function (item) {
|
|
28251
|
-
|
|
28254
|
+
if (item.sliceIndex || item.sliceIndex === 0) {
|
|
28255
|
+
return item.sliceIndex === instanceNumber;
|
|
28256
|
+
} else {
|
|
28257
|
+
if (item.instanceUid && SOPInstanceUIDs) {
|
|
28258
|
+
return item.instanceUid === SOPInstanceUIDs[currentImageIdIndex];
|
|
28259
|
+
}
|
|
28260
|
+
}
|
|
28252
28261
|
});
|
|
28253
28262
|
|
|
28254
28263
|
if (drawData && drawData.length > 0) {
|
|
@@ -55088,23 +55097,22 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55088
55097
|
} // 清除dicom缓存
|
|
55089
55098
|
|
|
55090
55099
|
|
|
55091
|
-
purgeDicomCache();
|
|
55100
|
+
purgeDicomCache(); // 手机端清除所有imageCache
|
|
55101
|
+
// 电脑端清除时做判断,超出60%的时候删除前30%
|
|
55102
|
+
|
|
55092
55103
|
var isMobile = ua.isDeviceTypeMobile();
|
|
55104
|
+
var cacheInfo = cornerstone.imageCache.getCacheInfo();
|
|
55105
|
+
var maximumSizeInBytes = cacheInfo.maximumSizeInBytes,
|
|
55106
|
+
cacheSizeInBytes = cacheInfo.cacheSizeInBytes;
|
|
55093
55107
|
|
|
55094
55108
|
if (isMobile) {
|
|
55095
|
-
// 手机端清除所有imageCache
|
|
55096
55109
|
cornerstone.imageCache.setMaximumSizeBytes(0);
|
|
55097
55110
|
cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes);
|
|
55098
55111
|
} else {
|
|
55099
|
-
|
|
55100
|
-
var cacheInfo = cornerstone.imageCache.getCacheInfo();
|
|
55101
|
-
var _maximumSizeInBytes = cacheInfo.maximumSizeInBytes,
|
|
55102
|
-
cacheSizeInBytes = cacheInfo.cacheSizeInBytes;
|
|
55103
|
-
|
|
55104
|
-
if (cacheSizeInBytes > _maximumSizeInBytes * 0.6) {
|
|
55112
|
+
if (cacheSizeInBytes > maximumSizeInBytes * 0.6) {
|
|
55105
55113
|
// 暂未找到更合适的接口,setMaximumSizeBytes时会触发purgeCacheIfNecessary,可以达到效果
|
|
55106
|
-
cornerstone.imageCache.setMaximumSizeBytes(
|
|
55107
|
-
cornerstone.imageCache.setMaximumSizeBytes(
|
|
55114
|
+
cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes * 0.3);
|
|
55115
|
+
cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes);
|
|
55108
55116
|
}
|
|
55109
55117
|
}
|
|
55110
55118
|
},
|