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