hellfire 0.30.9 → 0.30.10
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/index.js +21 -16
- 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.30.10](http://10.16.100.57/diffusion/115/paladin/compare/v0.30.9...v0.30.10) (2025-08-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.30.9](http://10.16.100.57/diffusion/115/paladin/compare/v0.30.8...v0.30.9) (2025-08-14)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -75974,24 +75974,29 @@ var mergeProps$D = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
75974
75974
|
} // 清除dicom缓存
|
|
75975
75975
|
|
|
75976
75976
|
|
|
75977
|
-
purgeDicomCache(); //
|
|
75978
|
-
// 电脑端清除时做判断,超出60%的时候删除前30%
|
|
75977
|
+
purgeDicomCache(); // 清除所有imageCache
|
|
75979
75978
|
|
|
75980
|
-
var isMobile = ua.isDeviceTypeMobile();
|
|
75981
75979
|
var cacheInfo = cornerstone.imageCache.getCacheInfo();
|
|
75982
|
-
var maximumSizeInBytes = cacheInfo.maximumSizeInBytes
|
|
75983
|
-
|
|
75984
|
-
|
|
75985
|
-
|
|
75986
|
-
|
|
75987
|
-
|
|
75988
|
-
|
|
75989
|
-
|
|
75990
|
-
|
|
75991
|
-
|
|
75992
|
-
|
|
75993
|
-
|
|
75994
|
-
|
|
75980
|
+
var maximumSizeInBytes = cacheInfo.maximumSizeInBytes;
|
|
75981
|
+
cornerstone.imageCache.setMaximumSizeBytes(0);
|
|
75982
|
+
cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes);
|
|
75983
|
+
/**
|
|
75984
|
+
* T13247 之前的方案,目前暂时修改为全部清除
|
|
75985
|
+
* 手机端清除所有imageCache,电脑端清除时做判断,超出60%的时候删除前30%
|
|
75986
|
+
* const isMobile = ua.isDeviceTypeMobile();
|
|
75987
|
+
* const cacheInfo = cornerstone.imageCache.getCacheInfo();
|
|
75988
|
+
* const {maximumSizeInBytes, cacheSizeInBytes} = cacheInfo;
|
|
75989
|
+
* if (isMobile) {
|
|
75990
|
+
* cornerstone.imageCache.setMaximumSizeBytes(0);
|
|
75991
|
+
* cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes);
|
|
75992
|
+
* } else {
|
|
75993
|
+
* if (cacheSizeInBytes > maximumSizeInBytes * 0.6) {
|
|
75994
|
+
* // 暂未找到更合适的接口,setMaximumSizeBytes时会触发purgeCacheIfNecessary,可以达到效果
|
|
75995
|
+
* cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes * 0.3);
|
|
75996
|
+
* cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes);
|
|
75997
|
+
* }
|
|
75998
|
+
* }
|
|
75999
|
+
*/
|
|
75995
76000
|
},
|
|
75996
76001
|
// 匹配序列 切换到指定图像位置
|
|
75997
76002
|
scrollSeriesImageToIndex: function scrollSeriesImageToIndex(seriesUID, SOPInstanceUID) {
|