hellfire 0.29.0 → 0.29.2
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 +8 -0
- package/dist/index.js +136 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.29.2](http://10.16.100.57/diffusion/115/paladin/compare/v0.29.1...v0.29.2) (2025-03-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.29.1](http://10.16.100.57/diffusion/115/paladin/compare/v0.29.0...v0.29.1) (2025-03-13)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
# [0.29.0](http://10.16.100.57/diffusion/115/paladin/compare/v0.28.20...v0.29.0) (2025-03-10)
|
|
6
14
|
|
|
7
15
|
|
package/dist/index.js
CHANGED
|
@@ -44595,11 +44595,13 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44595
44595
|
|
|
44596
44596
|
var isThree = MPR || VR || Surgery || MIP || CPR || Fusion; // 非同屏互通模式下
|
|
44597
44597
|
|
|
44598
|
-
var IODisconnect = !IO;
|
|
44599
|
-
|
|
44598
|
+
var IODisconnect = !IO; // let commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'Reset', 'Fusion'];
|
|
44599
|
+
|
|
44600
|
+
var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'Reset']; // 只有传入了关键图像操作的方法 才显示这个按钮
|
|
44600
44601
|
|
|
44601
44602
|
if (operateKeyImages) {
|
|
44602
|
-
commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'KeyImages', 'Reset', 'Fusion'];
|
|
44603
|
+
// commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'KeyImages', 'Reset', 'Fusion'];
|
|
44604
|
+
commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'KeyImages', 'Reset'];
|
|
44603
44605
|
}
|
|
44604
44606
|
|
|
44605
44607
|
if (mode !== 'seriesMode') {
|
|
@@ -44964,11 +44966,13 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44964
44966
|
fusionPetColorMap = _this$props4.fusionPetColorMap,
|
|
44965
44967
|
fusionPetSUV = _this$props4.fusionPetSUV;
|
|
44966
44968
|
var isThree = MPR || VR || Surgery || MIP || Fusion;
|
|
44967
|
-
var IODisconnect = !IO;
|
|
44968
|
-
|
|
44969
|
+
var IODisconnect = !IO; // let commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'Reset', 'Fusion'];
|
|
44970
|
+
|
|
44971
|
+
var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'Reset']; // 只有传入了关键图像操作的方法 才显示这个按钮
|
|
44969
44972
|
|
|
44970
44973
|
if (operateKeyImages) {
|
|
44971
|
-
commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'KeyImages', 'Reset', 'Fusion'];
|
|
44974
|
+
// commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'KeyImages', 'Reset', 'Fusion'];
|
|
44975
|
+
commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'KeyImages', 'Reset'];
|
|
44972
44976
|
}
|
|
44973
44977
|
|
|
44974
44978
|
if (mode !== 'seriesMode') {
|
|
@@ -50157,6 +50161,23 @@ var formatDicomInfo = function formatDicomInfo(label, value) {
|
|
|
50157
50161
|
return formated ? "".concat(label, ": ").concat(formated) : '';
|
|
50158
50162
|
};
|
|
50159
50163
|
|
|
50164
|
+
var formatDRDXInfo = function formatDRDXInfo(label, value) {
|
|
50165
|
+
var text = '';
|
|
50166
|
+
|
|
50167
|
+
if (!value) {
|
|
50168
|
+
return text;
|
|
50169
|
+
}
|
|
50170
|
+
|
|
50171
|
+
var _v = Number(value);
|
|
50172
|
+
|
|
50173
|
+
if (!_v) {
|
|
50174
|
+
return text;
|
|
50175
|
+
}
|
|
50176
|
+
|
|
50177
|
+
text = formatNumberPrecision(value, 1);
|
|
50178
|
+
return "".concat(label, ": ").concat(text);
|
|
50179
|
+
};
|
|
50180
|
+
|
|
50160
50181
|
var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
50161
50182
|
inherits(ViewportOverlay, _PureComponent);
|
|
50162
50183
|
|
|
@@ -50173,11 +50194,17 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50173
50194
|
var _this$state = _this.state,
|
|
50174
50195
|
dicom = _this$state.dicom,
|
|
50175
50196
|
basicInfoFrom = _this$state.basicInfoFrom;
|
|
50176
|
-
var
|
|
50197
|
+
var _this$props = _this.props,
|
|
50198
|
+
basicInfoFromStudy = _this$props.basicInfoFromStudy,
|
|
50199
|
+
originDicomInfo = _this$props.originDicomInfo;
|
|
50177
50200
|
|
|
50178
50201
|
if (basicInfoFrom && basicInfoFrom === 'study' && basicInfoFromStudy && basicInfoFromStudy.name) {
|
|
50179
50202
|
return basicInfoFromStudy.name;
|
|
50180
50203
|
} else {
|
|
50204
|
+
if (originDicomInfo) {
|
|
50205
|
+
return originDicomInfo.PatientName.toString();
|
|
50206
|
+
}
|
|
50207
|
+
|
|
50181
50208
|
return dicom.PatientName.toString();
|
|
50182
50209
|
}
|
|
50183
50210
|
});
|
|
@@ -50186,11 +50213,17 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50186
50213
|
var _this$state2 = _this.state,
|
|
50187
50214
|
dicom = _this$state2.dicom,
|
|
50188
50215
|
basicInfoFrom = _this$state2.basicInfoFrom;
|
|
50189
|
-
var
|
|
50216
|
+
var _this$props2 = _this.props,
|
|
50217
|
+
basicInfoFromStudy = _this$props2.basicInfoFromStudy,
|
|
50218
|
+
originDicomInfo = _this$props2.originDicomInfo;
|
|
50190
50219
|
|
|
50191
50220
|
if (basicInfoFrom && basicInfoFrom === 'study' && basicInfoFromStudy && basicInfoFromStudy.patientSex) {
|
|
50192
50221
|
return basicInfoFromStudy.patientSex;
|
|
50193
50222
|
} else {
|
|
50223
|
+
if (originDicomInfo) {
|
|
50224
|
+
return originDicomInfo.PatientSex.toString();
|
|
50225
|
+
}
|
|
50226
|
+
|
|
50194
50227
|
return dicom.PatientSex.toString();
|
|
50195
50228
|
}
|
|
50196
50229
|
});
|
|
@@ -50199,11 +50232,17 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50199
50232
|
var _this$state3 = _this.state,
|
|
50200
50233
|
dicom = _this$state3.dicom,
|
|
50201
50234
|
basicInfoFrom = _this$state3.basicInfoFrom;
|
|
50202
|
-
var
|
|
50235
|
+
var _this$props3 = _this.props,
|
|
50236
|
+
basicInfoFromStudy = _this$props3.basicInfoFromStudy,
|
|
50237
|
+
originDicomInfo = _this$props3.originDicomInfo;
|
|
50203
50238
|
|
|
50204
50239
|
if (basicInfoFrom && basicInfoFrom === 'study' && basicInfoFromStudy && basicInfoFromStudy.patientAge) {
|
|
50205
50240
|
return basicInfoFromStudy.patientAge;
|
|
50206
50241
|
} else {
|
|
50242
|
+
if (originDicomInfo) {
|
|
50243
|
+
return originDicomInfo.PatientAge.toString();
|
|
50244
|
+
}
|
|
50245
|
+
|
|
50207
50246
|
return dicom.PatientAge.toString();
|
|
50208
50247
|
}
|
|
50209
50248
|
});
|
|
@@ -50212,11 +50251,17 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50212
50251
|
var _this$state4 = _this.state,
|
|
50213
50252
|
dicom = _this$state4.dicom,
|
|
50214
50253
|
basicInfoFrom = _this$state4.basicInfoFrom;
|
|
50215
|
-
var
|
|
50254
|
+
var _this$props4 = _this.props,
|
|
50255
|
+
basicInfoFromStudy = _this$props4.basicInfoFromStudy,
|
|
50256
|
+
originDicomInfo = _this$props4.originDicomInfo;
|
|
50216
50257
|
|
|
50217
50258
|
if (basicInfoFrom && basicInfoFrom === 'study' && basicInfoFromStudy && basicInfoFromStudy.patientID) {
|
|
50218
50259
|
return basicInfoFromStudy.patientID;
|
|
50219
50260
|
} else {
|
|
50261
|
+
if (originDicomInfo) {
|
|
50262
|
+
return originDicomInfo.PatientID.toString();
|
|
50263
|
+
}
|
|
50264
|
+
|
|
50220
50265
|
return dicom.PatientID.toString();
|
|
50221
50266
|
}
|
|
50222
50267
|
});
|
|
@@ -50309,16 +50354,18 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50309
50354
|
}
|
|
50310
50355
|
|
|
50311
50356
|
return loadDicom;
|
|
50312
|
-
}()
|
|
50357
|
+
}() // originDicomInfo是mpr模式下的
|
|
50358
|
+
|
|
50313
50359
|
}, {
|
|
50314
50360
|
key: "render",
|
|
50315
50361
|
value: function render() {
|
|
50316
|
-
var _this$
|
|
50317
|
-
imageId = _this$
|
|
50318
|
-
stack = _this$
|
|
50319
|
-
viewport = _this$
|
|
50320
|
-
hide = _this$
|
|
50321
|
-
mpr = _this$
|
|
50362
|
+
var _this$props5 = this.props,
|
|
50363
|
+
imageId = _this$props5.imageId,
|
|
50364
|
+
stack = _this$props5.stack,
|
|
50365
|
+
viewport = _this$props5.viewport,
|
|
50366
|
+
hide = _this$props5.hide,
|
|
50367
|
+
mpr = _this$props5.mpr,
|
|
50368
|
+
originDicomInfo = _this$props5.originDicomInfo;
|
|
50322
50369
|
|
|
50323
50370
|
if (!imageId || !stack) {
|
|
50324
50371
|
return null;
|
|
@@ -50333,6 +50380,22 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50333
50380
|
}
|
|
50334
50381
|
|
|
50335
50382
|
if (mpr) {
|
|
50383
|
+
var _institutionName = originDicomInfo && originDicomInfo.InstitutionName.toString();
|
|
50384
|
+
|
|
50385
|
+
var _manufacturer = originDicomInfo && originDicomInfo.Manufacturer.toString();
|
|
50386
|
+
|
|
50387
|
+
var _manufacturerModelName = originDicomInfo && originDicomInfo.ManufacturerModelName.toString();
|
|
50388
|
+
|
|
50389
|
+
var _patientName = originDicomInfo && this.getPatientNameData();
|
|
50390
|
+
|
|
50391
|
+
var _patientSex = originDicomInfo && this.getPatientSexData();
|
|
50392
|
+
|
|
50393
|
+
var _patientAge = originDicomInfo && this.getPatientAgeData();
|
|
50394
|
+
|
|
50395
|
+
var _patientID = originDicomInfo && this.getPatientIDData();
|
|
50396
|
+
|
|
50397
|
+
var _bodyPartExamined = originDicomInfo && originDicomInfo.BodyPartExamined.toString();
|
|
50398
|
+
|
|
50336
50399
|
var _zoom = viewport.scale.toFixed(2);
|
|
50337
50400
|
|
|
50338
50401
|
var _windowWidth = parseFloat(viewport.voi.windowWidth) || 0;
|
|
@@ -50341,7 +50404,19 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50341
50404
|
|
|
50342
50405
|
var spaceBetweenSlice = stack.spaceBetweenSlice && stack.spaceBetweenSlice.toFixed(1);
|
|
50343
50406
|
var _sliceThickness = this.props.sliceThickness;
|
|
50344
|
-
|
|
50407
|
+
|
|
50408
|
+
var _studyDateTime = originDicomInfo && getStudyDateTime(originDicomInfo);
|
|
50409
|
+
|
|
50410
|
+
return /*#__PURE__*/React__default.createElement("div", null, originDicomInfo && /*#__PURE__*/React__default.createElement("div", {
|
|
50411
|
+
style: {
|
|
50412
|
+
position: 'absolute',
|
|
50413
|
+
top: 4,
|
|
50414
|
+
left: 4,
|
|
50415
|
+
textAlign: 'left',
|
|
50416
|
+
fontSize: "".concat(fontSize, "px"),
|
|
50417
|
+
display: "".concat(hide ? 'none' : 'block')
|
|
50418
|
+
}
|
|
50419
|
+
}, /*#__PURE__*/React__default.createElement("div", null, _institutionName), /*#__PURE__*/React__default.createElement("div", null, _manufacturer, " ", _manufacturerModelName), /*#__PURE__*/React__default.createElement("div", null, _patientName, "/", _patientSex, "/", _patientAge), /*#__PURE__*/React__default.createElement("div", null, _patientID), /*#__PURE__*/React__default.createElement("div", null, _bodyPartExamined)), /*#__PURE__*/React__default.createElement("div", {
|
|
50345
50420
|
style: {
|
|
50346
50421
|
position: 'absolute',
|
|
50347
50422
|
bottom: 4,
|
|
@@ -50350,7 +50425,16 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50350
50425
|
fontSize: "".concat(fontSize, "px"),
|
|
50351
50426
|
display: "".concat(hide ? 'none' : 'block')
|
|
50352
50427
|
}
|
|
50353
|
-
}, /*#__PURE__*/React__default.createElement("div", null, "T: ", spaceBetweenSlice, "mm", _sliceThickness && _sliceThickness !== 1 && 'X' + _sliceThickness, " L")), /*#__PURE__*/React__default.createElement("div", {
|
|
50428
|
+
}, /*#__PURE__*/React__default.createElement("div", null, "T: ", spaceBetweenSlice, "mm", _sliceThickness && _sliceThickness !== 1 && 'X' + _sliceThickness, " L")), originDicomInfo && /*#__PURE__*/React__default.createElement("div", {
|
|
50429
|
+
style: {
|
|
50430
|
+
position: 'absolute',
|
|
50431
|
+
top: 4,
|
|
50432
|
+
right: 4,
|
|
50433
|
+
textAlign: 'right',
|
|
50434
|
+
fontSize: "".concat(fontSize, "px"),
|
|
50435
|
+
display: "".concat(hide ? 'none' : 'block')
|
|
50436
|
+
}
|
|
50437
|
+
}, /*#__PURE__*/React__default.createElement("div", null, _studyDateTime && _studyDateTime.format('YYYY-MM-DD HH:mm:ss'))), /*#__PURE__*/React__default.createElement("div", {
|
|
50354
50438
|
style: {
|
|
50355
50439
|
position: 'absolute',
|
|
50356
50440
|
bottom: 4,
|
|
@@ -50435,7 +50519,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
50435
50519
|
fontSize: "".concat(fontSize, "px"),
|
|
50436
50520
|
display: "".concat(hide ? 'none' : 'block')
|
|
50437
50521
|
}
|
|
50438
|
-
}, showDXDRCR && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null,
|
|
50522
|
+
}, showDXDRCR && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null, formatDRDXInfo('kV', kvp)), /*#__PURE__*/React__default.createElement("div", null, formatDRDXInfo('mA', xRayTubeCurrent)), /*#__PURE__*/React__default.createElement("div", null, formatDRDXInfo('Time', exposureTime)), /*#__PURE__*/React__default.createElement("div", null, formatDRDXInfo('mAs', exposure))), /*#__PURE__*/React__default.createElement("div", null, patientOrientation), /*#__PURE__*/React__default.createElement("div", null, protocolName), /*#__PURE__*/React__default.createElement("div", null, sequenceName), /*#__PURE__*/React__default.createElement("div", null, getTRAndTE(repetitionTime, echoTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo('TI', inversionTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo('FA', flipAngle)), /*#__PURE__*/React__default.createElement("div", null, getADAndNEX(acquisitionDuration, numberOfAverages)), /*#__PURE__*/React__default.createElement("div", null, thk), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo('B', diffusionBValue, false)), seriesDescription && seriesDescription !== protocolName && /*#__PURE__*/React__default.createElement("div", null, seriesDescription), imageComments && imageComments.length < 20 && /*#__PURE__*/React__default.createElement("div", null, imageComments)), /*#__PURE__*/React__default.createElement("div", {
|
|
50439
50523
|
style: {
|
|
50440
50524
|
position: 'absolute',
|
|
50441
50525
|
top: 4,
|
|
@@ -52635,6 +52719,7 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
52635
52719
|
basicInfoFromStudy: basicInfoFromStudy,
|
|
52636
52720
|
sliceThickness: sliceThickness,
|
|
52637
52721
|
cpr: CPR,
|
|
52722
|
+
originDicomInfo: !this.props.VR && mpr && mpr === this.props.mprPerspective && !this.props.VR && this.props.originDicomInfo,
|
|
52638
52723
|
mpr: mpr
|
|
52639
52724
|
}), isKey && /*#__PURE__*/React__default.createElement("div", {
|
|
52640
52725
|
className: 'paladin-key-image-tip'
|
|
@@ -52685,12 +52770,7 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
52685
52770
|
imageId: imageId,
|
|
52686
52771
|
imageProcessType: _imageProcessType,
|
|
52687
52772
|
mpr: mpr
|
|
52688
|
-
})),
|
|
52689
|
-
className: "paladin-mpr-direaction-tip",
|
|
52690
|
-
style: {
|
|
52691
|
-
background: MPR_DIRECTION_COLOR[mpr]
|
|
52692
|
-
}
|
|
52693
|
-
}), directionToggle && direction && index !== 3 && /*#__PURE__*/React__default.createElement("div", {
|
|
52773
|
+
})), directionToggle && direction && index !== 3 && /*#__PURE__*/React__default.createElement("div", {
|
|
52694
52774
|
className: "paladin-mpr-direaction-toggle-box",
|
|
52695
52775
|
onClick: this.props.directionToggle
|
|
52696
52776
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -53412,7 +53492,8 @@ var mapStateToProps$o = function mapStateToProps(state) {
|
|
|
53412
53492
|
CPR = _state$paladin$tools$.CPR,
|
|
53413
53493
|
referenceLineType = _state$paladin$tools$.referenceLineType,
|
|
53414
53494
|
keyImages = _state$paladin$tools$.keyImages,
|
|
53415
|
-
displayShutter = _state$paladin$tools$.displayShutter
|
|
53495
|
+
displayShutter = _state$paladin$tools$.displayShutter,
|
|
53496
|
+
VR = _state$paladin$tools$.VR;
|
|
53416
53497
|
var _state$paladin$tools$2 = state.paladin.tools.layout,
|
|
53417
53498
|
col = _state$paladin$tools$2.col,
|
|
53418
53499
|
currentScrollLine = _state$paladin$tools$2.currentScrollLine,
|
|
@@ -53424,7 +53505,8 @@ var mapStateToProps$o = function mapStateToProps(state) {
|
|
|
53424
53505
|
linkImageModeSynchronizer = _state$paladin$viewpo.linkImageModeSynchronizer,
|
|
53425
53506
|
seriesCurrentIndex = _state$paladin$viewpo.seriesCurrentIndex,
|
|
53426
53507
|
positionSynchronizer = _state$paladin$viewpo.positionSynchronizer,
|
|
53427
|
-
originStudy = _state$paladin$viewpo.originStudy
|
|
53508
|
+
originStudy = _state$paladin$viewpo.originStudy,
|
|
53509
|
+
mprPerspective = _state$paladin$viewpo.mprPerspective;
|
|
53428
53510
|
return {
|
|
53429
53511
|
activeTool: activeTool,
|
|
53430
53512
|
originActiveTool: originActiveTool,
|
|
@@ -53449,7 +53531,9 @@ var mapStateToProps$o = function mapStateToProps(state) {
|
|
|
53449
53531
|
referenceLineType: referenceLineType,
|
|
53450
53532
|
keyImages: keyImages,
|
|
53451
53533
|
originStudy: originStudy,
|
|
53452
|
-
displayShutter: displayShutter
|
|
53534
|
+
displayShutter: displayShutter,
|
|
53535
|
+
mprPerspective: mprPerspective,
|
|
53536
|
+
VR: VR
|
|
53453
53537
|
};
|
|
53454
53538
|
};
|
|
53455
53539
|
|
|
@@ -55501,7 +55585,8 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
55501
55585
|
|
|
55502
55586
|
_this.state = {
|
|
55503
55587
|
processing: props.showProcessing !== false,
|
|
55504
|
-
error: null
|
|
55588
|
+
error: null,
|
|
55589
|
+
originDicomInfo: null
|
|
55505
55590
|
};
|
|
55506
55591
|
_this.mpr = null;
|
|
55507
55592
|
|
|
@@ -55663,11 +55748,14 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
55663
55748
|
break;
|
|
55664
55749
|
|
|
55665
55750
|
case 12:
|
|
55666
|
-
|
|
55751
|
+
this.setState({
|
|
55752
|
+
originDicomInfo: instanceImages[0]
|
|
55753
|
+
});
|
|
55754
|
+
_context2.next = 19;
|
|
55667
55755
|
break;
|
|
55668
55756
|
|
|
55669
|
-
case
|
|
55670
|
-
_context2.prev =
|
|
55757
|
+
case 15:
|
|
55758
|
+
_context2.prev = 15;
|
|
55671
55759
|
_context2.t0 = _context2["catch"](3);
|
|
55672
55760
|
processing && this.setState({
|
|
55673
55761
|
processingMessage: "\u56FE\u50CF\u52A0\u8F7D\u5931\u8D25: ".concat(_context2.t0.message || '未知错误', "\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u8F6F\u4EF6"),
|
|
@@ -55675,22 +55763,22 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
55675
55763
|
});
|
|
55676
55764
|
return _context2.abrupt("return");
|
|
55677
55765
|
|
|
55678
|
-
case
|
|
55766
|
+
case 19:
|
|
55679
55767
|
// 能进入到这个组件中的已经默认是符合前期条件+选择了继续重建的,所以做一遍filter
|
|
55680
55768
|
instanceImages = filterRebuildImages(instanceImages);
|
|
55681
55769
|
|
|
55682
55770
|
if (processing) {
|
|
55683
|
-
_context2.next =
|
|
55771
|
+
_context2.next = 24;
|
|
55684
55772
|
break;
|
|
55685
55773
|
}
|
|
55686
55774
|
|
|
55687
|
-
_context2.next =
|
|
55775
|
+
_context2.next = 23;
|
|
55688
55776
|
return this.initMPR(currentSeries, instanceImages);
|
|
55689
55777
|
|
|
55690
|
-
case
|
|
55778
|
+
case 23:
|
|
55691
55779
|
return _context2.abrupt("return");
|
|
55692
55780
|
|
|
55693
|
-
case
|
|
55781
|
+
case 24:
|
|
55694
55782
|
this.setState({
|
|
55695
55783
|
processingMessage: "\u6B63\u5728\u5904\u7406\u56FE\u50CF...",
|
|
55696
55784
|
error: null
|
|
@@ -55700,12 +55788,12 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
55700
55788
|
}, 50);
|
|
55701
55789
|
});
|
|
55702
55790
|
|
|
55703
|
-
case
|
|
55791
|
+
case 25:
|
|
55704
55792
|
case "end":
|
|
55705
55793
|
return _context2.stop();
|
|
55706
55794
|
}
|
|
55707
55795
|
}
|
|
55708
|
-
}, _callee2, this, [[3,
|
|
55796
|
+
}, _callee2, this, [[3, 15]]);
|
|
55709
55797
|
}));
|
|
55710
55798
|
|
|
55711
55799
|
function componentDidMount() {
|
|
@@ -55736,7 +55824,8 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
55736
55824
|
transverseStack = _this$state.transverseStack,
|
|
55737
55825
|
coronalStack = _this$state.coronalStack,
|
|
55738
55826
|
screenDirection = _this$state.screenDirection,
|
|
55739
|
-
error = _this$state.error
|
|
55827
|
+
error = _this$state.error,
|
|
55828
|
+
originDicomInfo = _this$state.originDicomInfo;
|
|
55740
55829
|
var _this$props = this.props,
|
|
55741
55830
|
mprActiveIndex = _this$props.mprActiveIndex,
|
|
55742
55831
|
showOverlayText = _this$props.showOverlayText,
|
|
@@ -55768,7 +55857,8 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
55768
55857
|
setViewportState: handleViewportState,
|
|
55769
55858
|
getCacheViewport: getCacheViewport,
|
|
55770
55859
|
onSyncOpen: onSyncOpen,
|
|
55771
|
-
availableToolsConfig: this.availableToolsConfig
|
|
55860
|
+
availableToolsConfig: this.availableToolsConfig,
|
|
55861
|
+
originDicomInfo: originDicomInfo
|
|
55772
55862
|
}); // 矢状面
|
|
55773
55863
|
|
|
55774
55864
|
var sagittalEle = /*#__PURE__*/React__default.createElement(ConnectedDicomViewport, {
|
|
@@ -55788,7 +55878,8 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
55788
55878
|
setViewportState: handleViewportState,
|
|
55789
55879
|
getCacheViewport: getCacheViewport,
|
|
55790
55880
|
onSyncOpen: onSyncOpen,
|
|
55791
|
-
availableToolsConfig: this.availableToolsConfig
|
|
55881
|
+
availableToolsConfig: this.availableToolsConfig,
|
|
55882
|
+
originDicomInfo: originDicomInfo
|
|
55792
55883
|
}); // 冠状面
|
|
55793
55884
|
|
|
55794
55885
|
var coronalEle = /*#__PURE__*/React__default.createElement(ConnectedDicomViewport, {
|
|
@@ -55808,7 +55899,8 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
55808
55899
|
setViewportState: handleViewportState,
|
|
55809
55900
|
getCacheViewport: getCacheViewport,
|
|
55810
55901
|
onSyncOpen: onSyncOpen,
|
|
55811
|
-
availableToolsConfig: this.availableToolsConfig
|
|
55902
|
+
availableToolsConfig: this.availableToolsConfig,
|
|
55903
|
+
originDicomInfo: originDicomInfo
|
|
55812
55904
|
}); // 视角
|
|
55813
55905
|
|
|
55814
55906
|
var perspective1 = mprPerspective === ImagePlanDirection.Transverse ? transverseEle : mprPerspective === ImagePlanDirection.Sagittal ? sagittalEle : coronalEle;
|