hellfire 0.26.3 → 0.26.5

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.26.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.26.4...v0.26.5) (2023-07-12)
6
+
7
+
8
+
9
+ ## [0.26.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.26.3...v0.26.4) (2023-06-01)
10
+
11
+
12
+
5
13
  ## [0.26.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.26.2...v0.26.3) (2023-06-01)
6
14
 
7
15
 
package/dist/index.js CHANGED
@@ -906,9 +906,10 @@ var SET_MIP_ACTIVE_TOOL = 'SET_MIP_ACTIVE_TOOL';
906
906
  var SET_ACTION_STATE_KEY = 'SET_ACTION_STATE_KEY'; // ---------- Reducers ----------
907
907
 
908
908
  var isMobile = ua.isDeviceTypeMobile();
909
+ var initActiveTool = isMobile ? 'StackScroll' : 'Wwwc';
909
910
  var initialState$1 = {
910
- activeTool: 'Wwwc',
911
- originActiveTool: 'Wwwc',
911
+ activeTool: initActiveTool,
912
+ originActiveTool: initActiveTool,
912
913
  mipActiveTool: 'MipWWWc',
913
914
  // seriesMode序列模式 imageMode图像模式 allImageMode全部模式
914
915
  mode: 'seriesMode',
@@ -46663,7 +46664,9 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
46663
46664
  });
46664
46665
 
46665
46666
  defineProperty(assertThisInitialized(_this), "handleSelectStudy", function (i) {
46666
- var thumbnailLoaded = _this.state.thumbnailLoaded;
46667
+ var _this$state = _this.state,
46668
+ thumbnailLoaded = _this$state.thumbnailLoaded,
46669
+ currentStudy = _this$state.currentStudy;
46667
46670
 
46668
46671
  if (thumbnailLoaded.indexOf(i) < 0) {
46669
46672
  thumbnailLoaded.push(i);
@@ -46673,6 +46676,21 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
46673
46676
  currentStudy: i,
46674
46677
  thumbnailLoaded: thumbnailLoaded
46675
46678
  });
46679
+
46680
+ if (currentStudy !== i) {
46681
+ // scrollbar切到选中的检查的位置 viewport选择框选择检查的第一个序列
46682
+ var nextSeriesRealIndex = 0;
46683
+
46684
+ if (i > 0) {
46685
+ lodash$1.forEach(_this.props.study, function (item, index) {
46686
+ if (i > index) {
46687
+ nextSeriesRealIndex += item.series.length;
46688
+ }
46689
+ });
46690
+ }
46691
+
46692
+ _this.props.scrollPan(nextSeriesRealIndex, i);
46693
+ }
46676
46694
  });
46677
46695
 
46678
46696
  _this.scrollRef = null;
@@ -46693,9 +46711,9 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
46693
46711
  currentSeriesUID = _this$props.currentSeriesUID,
46694
46712
  study = _this$props.study,
46695
46713
  loaded = _this$props.loaded;
46696
- var _this$state = this.state,
46697
- currentStudy = _this$state.currentStudy,
46698
- thumbnailLoaded = _this$state.thumbnailLoaded;
46714
+ var _this$state2 = this.state,
46715
+ currentStudy = _this$state2.currentStudy,
46716
+ thumbnailLoaded = _this$state2.thumbnailLoaded;
46699
46717
  return /*#__PURE__*/React__default.createElement("div", null, study && study.length > 1 && /*#__PURE__*/React__default.createElement("div", {
46700
46718
  className: "paladin-flex-row paladin-thumb-study-wrapper"
46701
46719
  }, study.map(function (item, i) {
@@ -46839,6 +46857,18 @@ var mergeProps$i = function mergeProps(propsFromState, propsFromDispatch, ownPro
46839
46857
  }
46840
46858
 
46841
46859
  propsFromDispatch.setCurrentSeries(selectSeries);
46860
+ },
46861
+ scrollPan: function scrollPan(value, currentStudyIndex) {
46862
+ var col = propsFromState.col;
46863
+
46864
+ var _line = lodash$1.ceil((value + 1) / col);
46865
+
46866
+ var line = _line === 0 ? 0 : _line - 1;
46867
+ propsFromDispatch.setScrollLine(line);
46868
+ var activeIndex = value % col;
46869
+ propsFromDispatch.setActiveIndex(activeIndex);
46870
+ var nextCurrentSeries = ownProps.study[currentStudyIndex].series[activeIndex];
46871
+ propsFromDispatch.setCurrentSeries(nextCurrentSeries);
46842
46872
  }
46843
46873
  });
46844
46874
  };
@@ -46848,7 +46878,9 @@ var ConnectedDicomThumbnail = reactRedux.connect(mapStateToProps$i, {
46848
46878
  setCurrentSeries: setCurrentSeries,
46849
46879
  setSeriesCurrentIndex: setSeriesCurrentIndex,
46850
46880
  setImageScrollLine: setImageScrollLine,
46851
- setImageActiveIndex: setImageActiveIndex
46881
+ setImageActiveIndex: setImageActiveIndex,
46882
+ setScrollLine: setScrollLine,
46883
+ setActiveIndex: setActiveIndex
46852
46884
  }, mergeProps$i)(DicomThumbnailLayout);
46853
46885
 
46854
46886
  var css_248z$r = ".paladin-dicom-layout {\n display: flex;\n flex-wrap: wrap;\n height: 100%;\n flex: 1;\n}\n.paladin-dicom-layout-warp {\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n";