hellfire 0.19.5 → 0.19.6

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.19.6](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.5...v0.19.6) (2022-03-02)
6
+
7
+
8
+
5
9
  ## [0.19.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.4...v0.19.5) (2022-03-02)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -29940,7 +29940,7 @@ var __signature__$1Z = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoa
29940
29940
  var isMobileTablet = _default$D.isDeviceTypeMobileOrTablet();
29941
29941
 
29942
29942
  if (!isMobileTablet) {
29943
- cornerstone.imageCache.setMaximumSizeBytes(1024 * 1024 * 1024 * 0.1);
29943
+ cornerstone.imageCache.setMaximumSizeBytes(1024 * 1024 * 1024 * 1);
29944
29944
  }
29945
29945
 
29946
29946
  _default$E.external.cornerstone = cornerstone;
@@ -46029,7 +46029,38 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
46029
46029
  }
46030
46030
 
46031
46031
  propsFromDispatch.setImageScrollLine(0);
46032
- var nextMode;
46032
+ var nextMode; // 全部模式 需要检查图像总是是否超过200 超过200则不可进入全部模式
46033
+
46034
+ if (key === 'AllImageMode') {
46035
+ var study = ownProps.study;
46036
+ var imageCount = 0;
46037
+ lodash$1.map(study, function (studyItem) {
46038
+ lodash$1.map(studyItem.series, function (seriesItem) {
46039
+ imageCount += seriesItem.numberOfSeriesRelatedInstances;
46040
+ });
46041
+ });
46042
+
46043
+ if (imageCount > 200) {
46044
+ _default$K.create( /*#__PURE__*/React__default.createElement("div", {
46045
+ style: {
46046
+ marginBottom: '10px'
46047
+ }
46048
+ }, "\u603B\u56FE\u50CF\u6570\u91CF\u5927\u4E8E200\uFF0C\u4E0D\u63D0\u4F9B\u5168\u90E8\u67E5\u770B\u529F\u80FD"), {
46049
+ style: {
46050
+ width: '350px',
46051
+ background: '#333',
46052
+ color: '#ccc',
46053
+ fontSize: '15px'
46054
+ },
46055
+ maskClosable: false,
46056
+ title: '提示',
46057
+ footer: null
46058
+ });
46059
+ return;
46060
+ }
46061
+
46062
+ nextMode = 'allImageMode';
46063
+ }
46033
46064
 
46034
46065
  if (key === 'SeriesMode') {
46035
46066
  // 回到序列模式
@@ -46064,10 +46095,6 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
46064
46095
  nextMode = 'imageMode';
46065
46096
  }
46066
46097
 
46067
- if (key === 'AllImageMode') {
46068
- nextMode = 'allImageMode';
46069
- }
46070
-
46071
46098
  propsFromDispatch.setViewMode(nextMode);
46072
46099
  },
46073
46100
  autoLink: function () {