hellfire 0.27.2 → 0.27.4

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