hellfire 0.26.4 → 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,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.26.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.26.4...v0.26.5) (2023-07-12)
6
+
7
+
8
+
5
9
  ## [0.26.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.26.3...v0.26.4) (2023-06-01)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -46664,7 +46664,9 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
46664
46664
  });
46665
46665
 
46666
46666
  defineProperty(assertThisInitialized(_this), "handleSelectStudy", function (i) {
46667
- var thumbnailLoaded = _this.state.thumbnailLoaded;
46667
+ var _this$state = _this.state,
46668
+ thumbnailLoaded = _this$state.thumbnailLoaded,
46669
+ currentStudy = _this$state.currentStudy;
46668
46670
 
46669
46671
  if (thumbnailLoaded.indexOf(i) < 0) {
46670
46672
  thumbnailLoaded.push(i);
@@ -46674,6 +46676,21 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
46674
46676
  currentStudy: i,
46675
46677
  thumbnailLoaded: thumbnailLoaded
46676
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
+ }
46677
46694
  });
46678
46695
 
46679
46696
  _this.scrollRef = null;
@@ -46694,9 +46711,9 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
46694
46711
  currentSeriesUID = _this$props.currentSeriesUID,
46695
46712
  study = _this$props.study,
46696
46713
  loaded = _this$props.loaded;
46697
- var _this$state = this.state,
46698
- currentStudy = _this$state.currentStudy,
46699
- thumbnailLoaded = _this$state.thumbnailLoaded;
46714
+ var _this$state2 = this.state,
46715
+ currentStudy = _this$state2.currentStudy,
46716
+ thumbnailLoaded = _this$state2.thumbnailLoaded;
46700
46717
  return /*#__PURE__*/React__default.createElement("div", null, study && study.length > 1 && /*#__PURE__*/React__default.createElement("div", {
46701
46718
  className: "paladin-flex-row paladin-thumb-study-wrapper"
46702
46719
  }, study.map(function (item, i) {
@@ -46840,6 +46857,18 @@ var mergeProps$i = function mergeProps(propsFromState, propsFromDispatch, ownPro
46840
46857
  }
46841
46858
 
46842
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);
46843
46872
  }
46844
46873
  });
46845
46874
  };
@@ -46849,7 +46878,9 @@ var ConnectedDicomThumbnail = reactRedux.connect(mapStateToProps$i, {
46849
46878
  setCurrentSeries: setCurrentSeries,
46850
46879
  setSeriesCurrentIndex: setSeriesCurrentIndex,
46851
46880
  setImageScrollLine: setImageScrollLine,
46852
- setImageActiveIndex: setImageActiveIndex
46881
+ setImageActiveIndex: setImageActiveIndex,
46882
+ setScrollLine: setScrollLine,
46883
+ setActiveIndex: setActiveIndex
46853
46884
  }, mergeProps$i)(DicomThumbnailLayout);
46854
46885
 
46855
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";