hellfire 0.27.2 → 0.27.3
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 +4 -0
- package/dist/.DS_Store +0 -0
- package/dist/index.js +16 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.27.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.2...v0.27.3) (2023-09-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.27.2](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.1...v0.27.2) (2023-08-16)
|
|
6
10
|
|
|
7
11
|
|
package/dist/.DS_Store
ADDED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -55088,16 +55088,24 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55088
55088
|
} // 清除dicom缓存
|
|
55089
55089
|
|
|
55090
55090
|
|
|
55091
|
-
purgeDicomCache();
|
|
55092
|
-
|
|
55093
|
-
var cacheInfo = cornerstone.imageCache.getCacheInfo();
|
|
55094
|
-
var maximumSizeInBytes = cacheInfo.maximumSizeInBytes,
|
|
55095
|
-
cacheSizeInBytes = cacheInfo.cacheSizeInBytes;
|
|
55091
|
+
purgeDicomCache();
|
|
55092
|
+
var isMobile = ua.isDeviceTypeMobile();
|
|
55096
55093
|
|
|
55097
|
-
if (
|
|
55098
|
-
//
|
|
55099
|
-
cornerstone.imageCache.setMaximumSizeBytes(
|
|
55094
|
+
if (isMobile) {
|
|
55095
|
+
// 手机端清除所有imageCache
|
|
55096
|
+
cornerstone.imageCache.setMaximumSizeBytes(0);
|
|
55100
55097
|
cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes);
|
|
55098
|
+
} else {
|
|
55099
|
+
// 清除imageCache时做判断,超出60%的时候删除前30%
|
|
55100
|
+
var cacheInfo = cornerstone.imageCache.getCacheInfo();
|
|
55101
|
+
var _maximumSizeInBytes = cacheInfo.maximumSizeInBytes,
|
|
55102
|
+
cacheSizeInBytes = cacheInfo.cacheSizeInBytes;
|
|
55103
|
+
|
|
55104
|
+
if (cacheSizeInBytes > _maximumSizeInBytes * 0.6) {
|
|
55105
|
+
// 暂未找到更合适的接口,setMaximumSizeBytes时会触发purgeCacheIfNecessary,可以达到效果
|
|
55106
|
+
cornerstone.imageCache.setMaximumSizeBytes(_maximumSizeInBytes * 0.3);
|
|
55107
|
+
cornerstone.imageCache.setMaximumSizeBytes(_maximumSizeInBytes);
|
|
55108
|
+
}
|
|
55101
55109
|
}
|
|
55102
55110
|
},
|
|
55103
55111
|
// 匹配序列 切换到指定图像位置
|