hellfire 0.27.8 → 0.27.9
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 +4 -0
- package/dist/index.js +115 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.9](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.8...v0.27.9) (2024-01-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.27.8](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.7...v0.27.8) (2023-12-29)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -28734,7 +28734,8 @@ var SWITCH_MPR_PERSPECTIVE = 'SWITCH_MPR_PERSPECTIVE';
|
|
|
28734
28734
|
var SET_SERIES_CURRENT_INDEX = 'SET_SERIES_CURRENT_INDEX';
|
|
28735
28735
|
var INIT_SERIES_CURRENT_INDEX = 'INIT_SERIES_CURRENT_INDEX';
|
|
28736
28736
|
var SET_LAST_ACTIVE_INDEX = 'SET_LAST_ACTIVE_INDEX';
|
|
28737
|
-
var SET_SURGERY_ACTIVE_INDEX = 'SET_SURGERY_ACTIVE_INDEX';
|
|
28737
|
+
var SET_SURGERY_ACTIVE_INDEX = 'SET_SURGERY_ACTIVE_INDEX';
|
|
28738
|
+
var SET_ORIGIN_STUDY = 'SET_ORIGIN_STUDY'; // ---------- Reducers ----------
|
|
28738
28739
|
|
|
28739
28740
|
var initialState$4 = {
|
|
28740
28741
|
// 当前选择的series及其id
|
|
@@ -28762,6 +28763,8 @@ var initialState$4 = {
|
|
|
28762
28763
|
imageActiveIndex: 0,
|
|
28763
28764
|
linkImageIndex: [],
|
|
28764
28765
|
// 绝对同步的image集合
|
|
28766
|
+
originStudy: [],
|
|
28767
|
+
// 传入的study集合(包含关联检查)
|
|
28765
28768
|
// synchronizer集合
|
|
28766
28769
|
synchronizer: synchronizer,
|
|
28767
28770
|
// 定位线
|
|
@@ -28781,6 +28784,15 @@ var viewport = (function () {
|
|
|
28781
28784
|
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
28782
28785
|
|
|
28783
28786
|
switch (action.type) {
|
|
28787
|
+
case SET_ORIGIN_STUDY:
|
|
28788
|
+
{
|
|
28789
|
+
var nextStudy = lodash$1.clone(action.payload);
|
|
28790
|
+
|
|
28791
|
+
return _objectSpread$e(_objectSpread$e({}, state), {}, {
|
|
28792
|
+
originStudy: nextStudy
|
|
28793
|
+
});
|
|
28794
|
+
}
|
|
28795
|
+
|
|
28784
28796
|
case SET_ACTIVE_INDEX:
|
|
28785
28797
|
{
|
|
28786
28798
|
return _objectSpread$e(_objectSpread$e({}, state), {}, {
|
|
@@ -29026,6 +29038,12 @@ function switchMprPerspective(reset) {
|
|
|
29026
29038
|
reset: reset
|
|
29027
29039
|
};
|
|
29028
29040
|
}
|
|
29041
|
+
function setOriginStudyData(data) {
|
|
29042
|
+
return {
|
|
29043
|
+
type: SET_ORIGIN_STUDY,
|
|
29044
|
+
payload: data
|
|
29045
|
+
};
|
|
29046
|
+
}
|
|
29029
29047
|
|
|
29030
29048
|
var createReducer = function createReducer() {
|
|
29031
29049
|
return function (state, action) {
|
|
@@ -53947,7 +53965,6 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
53947
53965
|
});
|
|
53948
53966
|
|
|
53949
53967
|
_this.state = {
|
|
53950
|
-
study: studySeriesDataCheck(_this.props.study),
|
|
53951
53968
|
resize: 0,
|
|
53952
53969
|
windowLayoutType: _this.props.windowLayoutType
|
|
53953
53970
|
}; // 窗口变化要重新渲染滚动条的距离
|
|
@@ -53980,9 +53997,11 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
53980
53997
|
|
|
53981
53998
|
this.props.initSeries(null, function (result) {
|
|
53982
53999
|
if (result && result.hasChange) {
|
|
53983
|
-
_this2.
|
|
53984
|
-
|
|
53985
|
-
|
|
54000
|
+
_this2.props.setReduxOnStudyChange(result.study);
|
|
54001
|
+
} else {
|
|
54002
|
+
var nextStudy = studySeriesDataCheck(_this2.props.study);
|
|
54003
|
+
|
|
54004
|
+
_this2.props.setReduxOnStudyChange(nextStudy);
|
|
53986
54005
|
}
|
|
53987
54006
|
}); // 自定义窗值设置
|
|
53988
54007
|
|
|
@@ -53997,10 +54016,13 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
53997
54016
|
* study切换
|
|
53998
54017
|
*/
|
|
53999
54018
|
if (JSON.stringify(nextProps.study) !== JSON.stringify(this.props.study)) {
|
|
54000
|
-
|
|
54001
|
-
|
|
54002
|
-
|
|
54003
|
-
|
|
54019
|
+
var nextStudy = studySeriesDataCheck(nextProps.study);
|
|
54020
|
+
this.props.initSeries(nextStudy, function (result) {
|
|
54021
|
+
if (result && result.hasChange) {
|
|
54022
|
+
_this3.props.setReduxOnStudyChange(result.study);
|
|
54023
|
+
} else {
|
|
54024
|
+
_this3.props.setReduxOnStudyChange(nextStudy);
|
|
54025
|
+
}
|
|
54004
54026
|
});
|
|
54005
54027
|
}
|
|
54006
54028
|
|
|
@@ -54072,11 +54094,9 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
54072
54094
|
}, {
|
|
54073
54095
|
key: "addStudy",
|
|
54074
54096
|
value: function addStudy(study) {
|
|
54075
|
-
var _study = lodash$1.concat(this.
|
|
54097
|
+
var _study = lodash$1.concat(this.props.originStudy, study);
|
|
54076
54098
|
|
|
54077
|
-
this.
|
|
54078
|
-
study: _study
|
|
54079
|
-
});
|
|
54099
|
+
this.props.setReduxOnStudyChange(_study);
|
|
54080
54100
|
this.props.addStudy(study);
|
|
54081
54101
|
}
|
|
54082
54102
|
/**
|
|
@@ -54363,7 +54383,8 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
54363
54383
|
var _this$props5 = this.props,
|
|
54364
54384
|
viewMode = _this$props5.viewMode,
|
|
54365
54385
|
toolMode = _this$props5.toolMode,
|
|
54366
|
-
onRefresh = _this$props5.onRefresh
|
|
54386
|
+
onRefresh = _this$props5.onRefresh,
|
|
54387
|
+
originStudy = _this$props5.originStudy;
|
|
54367
54388
|
var dcStyle = {
|
|
54368
54389
|
display: 'flex',
|
|
54369
54390
|
position: 'absolute',
|
|
@@ -54382,7 +54403,7 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
54382
54403
|
operateCentesisPath: this.props.operateCentesisPath,
|
|
54383
54404
|
helpLink: this.props.helpLink,
|
|
54384
54405
|
changeWindowSet: this.props.changeWindowSet,
|
|
54385
|
-
study:
|
|
54406
|
+
study: originStudy,
|
|
54386
54407
|
windowLayoutType: this.state.windowLayoutType,
|
|
54387
54408
|
setCustomWindowLayoutType: this.setCustomWindowLayoutType,
|
|
54388
54409
|
operateKeyImages: this.props.operateKeyImages
|
|
@@ -54396,34 +54417,20 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
54396
54417
|
}), viewMode === '2D' && this.props.mode === 'imageMode' && /*#__PURE__*/React__default.createElement(ConnectedDicomImageModeLayout, {
|
|
54397
54418
|
onResizeEmit: this.props.onResizeEmit
|
|
54398
54419
|
}), viewMode === '2D' && this.props.mode === 'allImageMode' && /*#__PURE__*/React__default.createElement(ConnectedDicomAllImageModeLayout, {
|
|
54399
|
-
study:
|
|
54420
|
+
study: originStudy,
|
|
54400
54421
|
onResizeEmit: this.props.onResizeEmit
|
|
54401
54422
|
}), viewMode === 'MPR' && /*#__PURE__*/React__default.createElement(ConnectedMPRLayout, null), viewMode === 'VR' && /*#__PURE__*/React__default.createElement(ConnectedVR, null), viewMode === 'Surgery' && /*#__PURE__*/React__default.createElement(ConnectedSurgeryLayout, null), viewMode === 'MIP' && /*#__PURE__*/React__default.createElement(ConnectedMIP, null), viewMode === 'CPR' && /*#__PURE__*/React__default.createElement(ConnectedCPRLayout, null));
|
|
54402
54423
|
var DicomThumbnail = /*#__PURE__*/React__default.createElement("div", {
|
|
54403
54424
|
className: "paladin-dicomView-dicomThumbnailWrapper"
|
|
54404
54425
|
}, /*#__PURE__*/React__default.createElement(ConnectedDicomThumbnail, {
|
|
54405
|
-
study:
|
|
54426
|
+
study: originStudy,
|
|
54406
54427
|
onRefresh: onRefresh
|
|
54407
54428
|
}));
|
|
54408
54429
|
var GlobalLoading = /*#__PURE__*/React__default.createElement("div", {
|
|
54409
54430
|
className: "paladin-global-loading"
|
|
54410
54431
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
54411
54432
|
className: "paladin-global-loading-text"
|
|
54412
|
-
}, this.props.globalLoading || '加载中...'));
|
|
54413
|
-
// <div className='paladin-dicomView-dicomToolWrapper'>
|
|
54414
|
-
// <ConnectedDicomTool
|
|
54415
|
-
// isMobile={isMobile}
|
|
54416
|
-
// toolSortChange={this.props.toolSortChange}
|
|
54417
|
-
// operateServerToolState={this.props.operateServerToolState}
|
|
54418
|
-
// operateCentesisPath={this.props.operateCentesisPath}
|
|
54419
|
-
// helpLink={this.props.helpLink}
|
|
54420
|
-
// changeWindowSet={this.props.changeWindowSet}
|
|
54421
|
-
// study={this.state.study}
|
|
54422
|
-
// windowLayoutType={this.props.windowLayoutType}
|
|
54423
|
-
// />
|
|
54424
|
-
// </div>
|
|
54425
|
-
// )
|
|
54426
|
-
|
|
54433
|
+
}, this.props.globalLoading || '加载中...'));
|
|
54427
54434
|
var mobile = /*#__PURE__*/React__default.createElement("div", {
|
|
54428
54435
|
style: dcStyle
|
|
54429
54436
|
}, this.props.globalLoading && GlobalLoading, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -54432,7 +54439,7 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
54432
54439
|
className: "paladin-dicomView-dicomToolWrapper"
|
|
54433
54440
|
}, /*#__PURE__*/React__default.createElement(ConnectedDicomTool, {
|
|
54434
54441
|
isMobileThree: true,
|
|
54435
|
-
study:
|
|
54442
|
+
study: originStudy
|
|
54436
54443
|
})), DicomLayout, DicomTool)); // pc分横屏和竖屏
|
|
54437
54444
|
|
|
54438
54445
|
var pc = /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -54502,6 +54509,7 @@ var mapStateToProps$u = function mapStateToProps(state) {
|
|
|
54502
54509
|
currentSeriesUID = _state$paladin$viewpo.currentSeriesUID,
|
|
54503
54510
|
currentSeries = _state$paladin$viewpo.currentSeries,
|
|
54504
54511
|
seriesCurrentIndex = _state$paladin$viewpo.seriesCurrentIndex,
|
|
54512
|
+
originStudy = _state$paladin$viewpo.originStudy,
|
|
54505
54513
|
synchronizer = _state$paladin$viewpo.synchronizer,
|
|
54506
54514
|
linkSynchronizer = _state$paladin$viewpo.linkSynchronizer,
|
|
54507
54515
|
linkImageModeSynchronizer = _state$paladin$viewpo.linkImageModeSynchronizer,
|
|
@@ -54555,7 +54563,8 @@ var mapStateToProps$u = function mapStateToProps(state) {
|
|
|
54555
54563
|
continuousMeasure: continuousMeasure,
|
|
54556
54564
|
originActiveTool: originActiveTool,
|
|
54557
54565
|
CPR: CPR,
|
|
54558
|
-
globalLoading: globalLoading
|
|
54566
|
+
globalLoading: globalLoading,
|
|
54567
|
+
originStudy: originStudy
|
|
54559
54568
|
};
|
|
54560
54569
|
};
|
|
54561
54570
|
|
|
@@ -54579,7 +54588,9 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
54579
54588
|
surgeryActiveIndex = propsFromState.surgeryActiveIndex;
|
|
54580
54589
|
var setCurrentSeries = propsFromDispatch.setCurrentSeries,
|
|
54581
54590
|
_initSeries = propsFromDispatch.initSeries,
|
|
54582
|
-
addSeries = propsFromDispatch.addSeries
|
|
54591
|
+
addSeries = propsFromDispatch.addSeries,
|
|
54592
|
+
setSeriesCurrentIndex = propsFromDispatch.setSeriesCurrentIndex,
|
|
54593
|
+
setSeries = propsFromDispatch.setSeries;
|
|
54583
54594
|
var viewMode;
|
|
54584
54595
|
|
|
54585
54596
|
if (Surgery) {
|
|
@@ -54699,7 +54710,35 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
54699
54710
|
propsFromDispatch.setImageScrollLine(resultScrollLine);
|
|
54700
54711
|
}
|
|
54701
54712
|
} else {
|
|
54702
|
-
if (onePickMode) {
|
|
54713
|
+
if (onePickMode || col === 1 && row === 1) {
|
|
54714
|
+
var originStudy = propsFromState.originStudy;
|
|
54715
|
+
var matchSeries = null;
|
|
54716
|
+
var matchSeriesIndex = 0;
|
|
54717
|
+
lodash$1.forEach(originStudy, function (item) {
|
|
54718
|
+
if (item.studyInstanceUID === propsFromState.currentSeries.studyInstanceUID) {
|
|
54719
|
+
matchSeries = item.series;
|
|
54720
|
+
matchSeriesIndex = lodash$1.findIndex(matchSeries, function (v) {
|
|
54721
|
+
return v.seriesInstanceUID === propsFromState.currentSeriesUID;
|
|
54722
|
+
});
|
|
54723
|
+
}
|
|
54724
|
+
});
|
|
54725
|
+
|
|
54726
|
+
if (!matchSeries || matchSeries.length === 0) {
|
|
54727
|
+
return;
|
|
54728
|
+
}
|
|
54729
|
+
|
|
54730
|
+
var nextSeriesIndex = matchSeriesIndex - 1;
|
|
54731
|
+
|
|
54732
|
+
if (nextSeriesIndex < 0) {
|
|
54733
|
+
nextSeriesIndex = matchSeries.length - 1;
|
|
54734
|
+
}
|
|
54735
|
+
|
|
54736
|
+
var selectSeries = matchSeries[nextSeriesIndex];
|
|
54737
|
+
var realIndex = col * currentScrollLine + activeIndex;
|
|
54738
|
+
reset$2('series')(realIndex, selectSeries);
|
|
54739
|
+
setSeriesCurrentIndex(realIndex, selectSeries.currentImageIdIndex);
|
|
54740
|
+
setSeries(realIndex, selectSeries);
|
|
54741
|
+
setCurrentSeries(selectSeries);
|
|
54703
54742
|
return;
|
|
54704
54743
|
}
|
|
54705
54744
|
|
|
@@ -54745,7 +54784,35 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
54745
54784
|
}
|
|
54746
54785
|
}
|
|
54747
54786
|
} else {
|
|
54748
|
-
if (onePickMode) {
|
|
54787
|
+
if (onePickMode || col === 1 && row === 1) {
|
|
54788
|
+
var originStudy = propsFromState.originStudy;
|
|
54789
|
+
var matchSeries = null;
|
|
54790
|
+
var matchSeriesIndex = 0;
|
|
54791
|
+
lodash$1.forEach(originStudy, function (item) {
|
|
54792
|
+
if (item.studyInstanceUID === propsFromState.currentSeries.studyInstanceUID) {
|
|
54793
|
+
matchSeries = item.series;
|
|
54794
|
+
matchSeriesIndex = lodash$1.findIndex(matchSeries, function (v) {
|
|
54795
|
+
return v.seriesInstanceUID === propsFromState.currentSeriesUID;
|
|
54796
|
+
});
|
|
54797
|
+
}
|
|
54798
|
+
});
|
|
54799
|
+
|
|
54800
|
+
if (!matchSeries || matchSeries.length === 0) {
|
|
54801
|
+
return;
|
|
54802
|
+
}
|
|
54803
|
+
|
|
54804
|
+
var nextSeriesIndex = matchSeriesIndex + 1;
|
|
54805
|
+
|
|
54806
|
+
if (nextSeriesIndex === matchSeries.length) {
|
|
54807
|
+
nextSeriesIndex = 0;
|
|
54808
|
+
}
|
|
54809
|
+
|
|
54810
|
+
var selectSeries = matchSeries[nextSeriesIndex];
|
|
54811
|
+
var realIndex = col * currentScrollLine + activeIndex;
|
|
54812
|
+
reset$2('series')(realIndex, selectSeries);
|
|
54813
|
+
setSeriesCurrentIndex(realIndex, selectSeries.currentImageIdIndex);
|
|
54814
|
+
setSeries(realIndex, selectSeries);
|
|
54815
|
+
setCurrentSeries(selectSeries);
|
|
54749
54816
|
return;
|
|
54750
54817
|
} // 序列模式
|
|
54751
54818
|
|
|
@@ -55221,6 +55288,13 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55221
55288
|
},
|
|
55222
55289
|
resetKeyImages: function resetKeyImages(data) {
|
|
55223
55290
|
propsFromDispatch.setKeyImage(data);
|
|
55291
|
+
},
|
|
55292
|
+
setReduxOnStudyChange: function setReduxOnStudyChange(nextStudyData) {
|
|
55293
|
+
if (!nextStudyData) {
|
|
55294
|
+
return;
|
|
55295
|
+
}
|
|
55296
|
+
|
|
55297
|
+
propsFromDispatch.setOriginStudyData(nextStudyData);
|
|
55224
55298
|
}
|
|
55225
55299
|
});
|
|
55226
55300
|
};
|
|
@@ -55247,7 +55321,10 @@ var ConnectedDicomView = reactRedux.connect(mapStateToProps$u, {
|
|
|
55247
55321
|
setActiveTool: setActiveTool,
|
|
55248
55322
|
setCineFps: setCineFps,
|
|
55249
55323
|
closeGlobalLoading: closeGlobalLoading,
|
|
55250
|
-
setKeyImage: setKeyImage
|
|
55324
|
+
setKeyImage: setKeyImage,
|
|
55325
|
+
setOriginStudyData: setOriginStudyData,
|
|
55326
|
+
setSeriesCurrentIndex: setSeriesCurrentIndex,
|
|
55327
|
+
setSeries: setSeries
|
|
55251
55328
|
}, mergeProps$t, withRef())(DicomView);
|
|
55252
55329
|
|
|
55253
55330
|
function withRef() {
|