hellfire 0.23.5 → 0.24.0

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.24.0](http://10.16.100.57/diffusion/115/paladin/compare/v0.23.5...v0.24.0) (2022-08-23)
6
+
7
+
8
+
5
9
  ## [0.23.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.23.4...v0.23.5) (2022-08-17)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -60366,11 +60366,20 @@ var mergeProps$o = function mergeProps(propsFromState, propsFromDispatch, ownPro
60366
60366
 
60367
60367
  if (onePickMode) {
60368
60368
  propsFromDispatch.closeOnePickLayout();
60369
- } // 清除image缓存和dicom缓存
60369
+ } // 清除dicom缓存
60370
60370
 
60371
60371
 
60372
- cornerstone.imageCache.purgeCache();
60373
- purgeDicomCache();
60372
+ purgeDicomCache(); // 清除imageCache时做判断,超出60%的时候删除前30%
60373
+
60374
+ var cacheInfo = cornerstone.imageCache.getCacheInfo();
60375
+ var maximumSizeInBytes = cacheInfo.maximumSizeInBytes,
60376
+ cacheSizeInBytes = cacheInfo.cacheSizeInBytes;
60377
+
60378
+ if (cacheSizeInBytes > maximumSizeInBytes * 0.6) {
60379
+ // 暂未找到更合适的接口,setMaximumSizeBytes时会触发purgeCacheIfNecessary,可以达到效果
60380
+ cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes * 0.3);
60381
+ cornerstone.imageCache.setMaximumSizeBytes(maximumSizeInBytes);
60382
+ }
60374
60383
  },
60375
60384
  // 匹配序列 切换到指定图像位置
60376
60385
  scrollSeriesImageToIndex: function scrollSeriesImageToIndex(seriesUID, SOPInstanceUID) {