hellfire 0.31.5 → 0.31.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 +4 -0
- package/dist/index.js +492 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52258,6 +52258,15 @@ var mergeProps$q = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
52258
52258
|
if (imageActiveIndex + 1 > imageCounts) {
|
|
52259
52259
|
propsFromDispatch.setImageActiveIndex(imageCounts - 1);
|
|
52260
52260
|
}
|
|
52261
|
+
} else {
|
|
52262
|
+
// 序列模式下需要把新序列自动加入预加载池中,initImageLoadManual和手动模式导致这边需要做这个逻辑
|
|
52263
|
+
var loaded = propsFromState.loaded;
|
|
52264
|
+
var loadedCount = loaded && loaded[selectSeries.seriesInstanceUID];
|
|
52265
|
+
var totalCount = selectSeries && selectSeries.numberOfSeriesRelatedInstances;
|
|
52266
|
+
|
|
52267
|
+
if (!loadedCount || loadedCount <= totalCount) {
|
|
52268
|
+
addTaskPool([selectSeries]);
|
|
52269
|
+
}
|
|
52261
52270
|
}
|
|
52262
52271
|
|
|
52263
52272
|
propsFromDispatch.setCurrentSeries(selectSeries);
|
|
@@ -72505,6 +72514,428 @@ styleInject$1(css_248z$M);
|
|
|
72505
72514
|
function _createSuper$1T(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1T(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
72506
72515
|
|
|
72507
72516
|
function _isNativeReflectConstruct$1T() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
72517
|
+
|
|
72518
|
+
var getStudyDateTime$2 = function getStudyDateTime(dicom) {
|
|
72519
|
+
// 因为检查时间部分数据可能未传, 根据以下顺序进行获取
|
|
72520
|
+
var fetchTagList = ['Acquisition', 'Content', 'Series', 'Study'];
|
|
72521
|
+
|
|
72522
|
+
for (var _i = 0, _fetchTagList = fetchTagList; _i < _fetchTagList.length; _i++) {
|
|
72523
|
+
var tag = _fetchTagList[_i];
|
|
72524
|
+
var dateTime = combineDateAndTimeToMoment(dicom, tag);
|
|
72525
|
+
|
|
72526
|
+
if (dateTime) {
|
|
72527
|
+
return dateTime;
|
|
72528
|
+
}
|
|
72529
|
+
}
|
|
72530
|
+
};
|
|
72531
|
+
|
|
72532
|
+
var formatInPlanePhaseEncodingDirection$2 = function formatInPlanePhaseEncodingDirection(inPlanePhaseEncodingDirection) {
|
|
72533
|
+
switch (inPlanePhaseEncodingDirection) {
|
|
72534
|
+
case 'ROW':
|
|
72535
|
+
return '→';
|
|
72536
|
+
|
|
72537
|
+
case 'COL':
|
|
72538
|
+
return '↓';
|
|
72539
|
+
|
|
72540
|
+
default:
|
|
72541
|
+
return '';
|
|
72542
|
+
}
|
|
72543
|
+
};
|
|
72544
|
+
|
|
72545
|
+
var checkFloatFixed$1 = function checkFloatFixed(num) {
|
|
72546
|
+
var decimalPart = num.toString().split('.')[1];
|
|
72547
|
+
|
|
72548
|
+
if (decimalPart && decimalPart.length > 2) {
|
|
72549
|
+
return num.toFixed(2);
|
|
72550
|
+
} else {
|
|
72551
|
+
return num.toFixed(1);
|
|
72552
|
+
}
|
|
72553
|
+
};
|
|
72554
|
+
|
|
72555
|
+
var getActualSpacingBetweenSlices$2 = function getActualSpacingBetweenSlices(spacingBetweenSlices, sliceThickness) {
|
|
72556
|
+
if (spacingBetweenSlices && sliceThickness) {
|
|
72557
|
+
// 获取实际的层间距 减去上下层各 1/2的层厚
|
|
72558
|
+
var actualSpacingBetweenSlices = parseFloat(spacingBetweenSlices) - parseFloat(sliceThickness);
|
|
72559
|
+
return actualSpacingBetweenSlices && checkFloatFixed$1(actualSpacingBetweenSlices);
|
|
72560
|
+
} else {
|
|
72561
|
+
return '';
|
|
72562
|
+
}
|
|
72563
|
+
};
|
|
72564
|
+
|
|
72565
|
+
var formatThkText$1 = function formatThkText(sliceThickness, spacingBetweenSlices) {
|
|
72566
|
+
var actualSpacingBetweenSlices = getActualSpacingBetweenSlices$2(sliceThickness, spacingBetweenSlices);
|
|
72567
|
+
return actualSpacingBetweenSlices || sliceThickness ? "THK: ".concat(sliceThickness && checkFloatFixed$1(parseFloat(sliceThickness)), "/").concat(actualSpacingBetweenSlices) : '';
|
|
72568
|
+
};
|
|
72569
|
+
|
|
72570
|
+
var getFov$1 = function getFov(dicom, imageId) {
|
|
72571
|
+
var rows = dicom.Rows.value;
|
|
72572
|
+
var columns = dicom.Columns.value;
|
|
72573
|
+
|
|
72574
|
+
var _getPixelSpacing = getPixelSpacing$9(imageId),
|
|
72575
|
+
rowPixelSpacing = _getPixelSpacing.rowPixelSpacing,
|
|
72576
|
+
colPixelSpacing = _getPixelSpacing.colPixelSpacing;
|
|
72577
|
+
|
|
72578
|
+
if (rowPixelSpacing && colPixelSpacing) {
|
|
72579
|
+
var fovHeight = Math.round(rows[0] * rowPixelSpacing);
|
|
72580
|
+
var fovWidth = Math.round(columns[0] * colPixelSpacing);
|
|
72581
|
+
return "FOV: ".concat(fovHeight, "X").concat(fovWidth);
|
|
72582
|
+
}
|
|
72583
|
+
|
|
72584
|
+
return '';
|
|
72585
|
+
};
|
|
72586
|
+
|
|
72587
|
+
var getMat$2 = function getMat(acquisitionMatrix) {
|
|
72588
|
+
if (acquisitionMatrix && acquisitionMatrix.length === 4) {
|
|
72589
|
+
var acquisitionX = parseInt(Math.abs(acquisitionMatrix[3] - acquisitionMatrix[1]));
|
|
72590
|
+
var acquisitionY = parseInt(Math.abs(acquisitionMatrix[2] - acquisitionMatrix[0]));
|
|
72591
|
+
|
|
72592
|
+
if (acquisitionX && acquisitionY) {
|
|
72593
|
+
return "MAT: ".concat(acquisitionX, "X").concat(acquisitionY);
|
|
72594
|
+
}
|
|
72595
|
+
}
|
|
72596
|
+
|
|
72597
|
+
return '';
|
|
72598
|
+
};
|
|
72599
|
+
|
|
72600
|
+
var getTRAndTE$2 = function getTRAndTE(repetitionTime, echoTime) {
|
|
72601
|
+
if (repetitionTime && echoTime) {
|
|
72602
|
+
return "TR/TE: ".concat(formatNumberPrecision(repetitionTime, 1), "/").concat(formatNumberPrecision(echoTime, 1));
|
|
72603
|
+
} else if (repetitionTime) {
|
|
72604
|
+
return "TR: ".concat(formatNumberPrecision(repetitionTime, 1));
|
|
72605
|
+
} else if (echoTime) {
|
|
72606
|
+
return "TE: ".concat(formatNumberPrecision(repetitionTime, 1));
|
|
72607
|
+
} else {
|
|
72608
|
+
return '';
|
|
72609
|
+
}
|
|
72610
|
+
};
|
|
72611
|
+
|
|
72612
|
+
var formatDicomInfo$2 = function formatDicomInfo(label, value) {
|
|
72613
|
+
var isNumber = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
72614
|
+
var formated = value;
|
|
72615
|
+
|
|
72616
|
+
if (isNumber) {
|
|
72617
|
+
formated = formatNumberPrecision(value, 1);
|
|
72618
|
+
}
|
|
72619
|
+
|
|
72620
|
+
return formated ? "".concat(label, ": ").concat(formated) : '';
|
|
72621
|
+
};
|
|
72622
|
+
|
|
72623
|
+
var formatDRDXInfo$1 = function formatDRDXInfo(label, value) {
|
|
72624
|
+
var text = '';
|
|
72625
|
+
|
|
72626
|
+
if (!value) {
|
|
72627
|
+
return text;
|
|
72628
|
+
}
|
|
72629
|
+
|
|
72630
|
+
var _v = Number(value);
|
|
72631
|
+
|
|
72632
|
+
if (!_v) {
|
|
72633
|
+
return text;
|
|
72634
|
+
}
|
|
72635
|
+
|
|
72636
|
+
text = formatNumberPrecision(value, 1);
|
|
72637
|
+
return "".concat(label, ": ").concat(text);
|
|
72638
|
+
};
|
|
72639
|
+
|
|
72640
|
+
var ViewportOverlay$1 = /*#__PURE__*/function (_PureComponent) {
|
|
72641
|
+
inherits(ViewportOverlay, _PureComponent);
|
|
72642
|
+
|
|
72643
|
+
var _super = _createSuper$1T(ViewportOverlay);
|
|
72644
|
+
|
|
72645
|
+
function ViewportOverlay(props) {
|
|
72646
|
+
var _this;
|
|
72647
|
+
|
|
72648
|
+
classCallCheck(this, ViewportOverlay);
|
|
72649
|
+
|
|
72650
|
+
_this = _super.call(this, props);
|
|
72651
|
+
|
|
72652
|
+
defineProperty(assertThisInitialized(_this), "getPatientNameData", function () {
|
|
72653
|
+
var _this$state = _this.state,
|
|
72654
|
+
dicom = _this$state.dicom,
|
|
72655
|
+
basicInfoFrom = _this$state.basicInfoFrom;
|
|
72656
|
+
var _this$props = _this.props,
|
|
72657
|
+
basicInfoFromStudy = _this$props.basicInfoFromStudy,
|
|
72658
|
+
originDicomInfo = _this$props.originDicomInfo;
|
|
72659
|
+
|
|
72660
|
+
if (basicInfoFrom && basicInfoFrom === 'study' && basicInfoFromStudy && basicInfoFromStudy.name) {
|
|
72661
|
+
return basicInfoFromStudy.name;
|
|
72662
|
+
} else {
|
|
72663
|
+
if (originDicomInfo) {
|
|
72664
|
+
return originDicomInfo.PatientName.toString();
|
|
72665
|
+
}
|
|
72666
|
+
|
|
72667
|
+
return dicom.PatientName.toString();
|
|
72668
|
+
}
|
|
72669
|
+
});
|
|
72670
|
+
|
|
72671
|
+
defineProperty(assertThisInitialized(_this), "getPatientSexData", function () {
|
|
72672
|
+
var _this$state2 = _this.state,
|
|
72673
|
+
dicom = _this$state2.dicom,
|
|
72674
|
+
basicInfoFrom = _this$state2.basicInfoFrom;
|
|
72675
|
+
var _this$props2 = _this.props,
|
|
72676
|
+
basicInfoFromStudy = _this$props2.basicInfoFromStudy,
|
|
72677
|
+
originDicomInfo = _this$props2.originDicomInfo;
|
|
72678
|
+
|
|
72679
|
+
if (basicInfoFrom && basicInfoFrom === 'study' && basicInfoFromStudy && basicInfoFromStudy.patientSex) {
|
|
72680
|
+
return basicInfoFromStudy.patientSex;
|
|
72681
|
+
} else {
|
|
72682
|
+
if (originDicomInfo) {
|
|
72683
|
+
return originDicomInfo.PatientSex.toString();
|
|
72684
|
+
}
|
|
72685
|
+
|
|
72686
|
+
return dicom.PatientSex.toString();
|
|
72687
|
+
}
|
|
72688
|
+
});
|
|
72689
|
+
|
|
72690
|
+
defineProperty(assertThisInitialized(_this), "getPatientAgeData", function () {
|
|
72691
|
+
var _this$state3 = _this.state,
|
|
72692
|
+
dicom = _this$state3.dicom,
|
|
72693
|
+
basicInfoFrom = _this$state3.basicInfoFrom;
|
|
72694
|
+
var _this$props3 = _this.props,
|
|
72695
|
+
basicInfoFromStudy = _this$props3.basicInfoFromStudy,
|
|
72696
|
+
originDicomInfo = _this$props3.originDicomInfo;
|
|
72697
|
+
|
|
72698
|
+
if (basicInfoFrom && basicInfoFrom === 'study' && basicInfoFromStudy && basicInfoFromStudy.patientAge) {
|
|
72699
|
+
return basicInfoFromStudy.patientAge;
|
|
72700
|
+
} else {
|
|
72701
|
+
if (originDicomInfo) {
|
|
72702
|
+
return originDicomInfo.PatientAge.toString();
|
|
72703
|
+
}
|
|
72704
|
+
|
|
72705
|
+
return dicom.PatientAge.toString();
|
|
72706
|
+
}
|
|
72707
|
+
});
|
|
72708
|
+
|
|
72709
|
+
defineProperty(assertThisInitialized(_this), "getPatientIDData", function () {
|
|
72710
|
+
var _this$state4 = _this.state,
|
|
72711
|
+
dicom = _this$state4.dicom,
|
|
72712
|
+
basicInfoFrom = _this$state4.basicInfoFrom;
|
|
72713
|
+
var _this$props4 = _this.props,
|
|
72714
|
+
basicInfoFromStudy = _this$props4.basicInfoFromStudy,
|
|
72715
|
+
originDicomInfo = _this$props4.originDicomInfo;
|
|
72716
|
+
|
|
72717
|
+
if (basicInfoFrom && basicInfoFrom === 'study' && basicInfoFromStudy && basicInfoFromStudy.patientID) {
|
|
72718
|
+
return basicInfoFromStudy.patientID;
|
|
72719
|
+
} else {
|
|
72720
|
+
if (originDicomInfo) {
|
|
72721
|
+
return originDicomInfo.PatientID.toString();
|
|
72722
|
+
}
|
|
72723
|
+
|
|
72724
|
+
return dicom.PatientID.toString();
|
|
72725
|
+
}
|
|
72726
|
+
});
|
|
72727
|
+
|
|
72728
|
+
var _basicInfoFrom = window.localStorage.getItem('hellfire-dicom-basic-info-from') || 'dicom';
|
|
72729
|
+
|
|
72730
|
+
_this.state = {
|
|
72731
|
+
dicom: null,
|
|
72732
|
+
fontSize: props.fontSize || 12,
|
|
72733
|
+
basicInfoFrom: _basicInfoFrom
|
|
72734
|
+
};
|
|
72735
|
+
return _this;
|
|
72736
|
+
}
|
|
72737
|
+
|
|
72738
|
+
createClass(ViewportOverlay, [{
|
|
72739
|
+
key: "componentDidMount",
|
|
72740
|
+
value: function componentDidMount() {
|
|
72741
|
+
// hack:cpr生成的图像初始的时候没有内容
|
|
72742
|
+
if (this.props.cpr && !this.props.stack.ready) {
|
|
72743
|
+
return;
|
|
72744
|
+
}
|
|
72745
|
+
|
|
72746
|
+
this.loadDicom(this.props.imageId);
|
|
72747
|
+
}
|
|
72748
|
+
}, {
|
|
72749
|
+
key: "componentDidUpdate",
|
|
72750
|
+
value: function componentDidUpdate(prevProps, prevState, snapshot) {
|
|
72751
|
+
if (prevProps.fontSize !== this.props.fontSize) {
|
|
72752
|
+
this.setState({
|
|
72753
|
+
fontSize: this.props.fontSize
|
|
72754
|
+
});
|
|
72755
|
+
}
|
|
72756
|
+
}
|
|
72757
|
+
}, {
|
|
72758
|
+
key: "componentWillReceiveProps",
|
|
72759
|
+
value: function () {
|
|
72760
|
+
var _componentWillReceiveProps = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nextProps, nextContext) {
|
|
72761
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
72762
|
+
while (1) {
|
|
72763
|
+
switch (_context.prev = _context.next) {
|
|
72764
|
+
case 0:
|
|
72765
|
+
this.loadDicom(nextProps.imageId);
|
|
72766
|
+
|
|
72767
|
+
case 1:
|
|
72768
|
+
case "end":
|
|
72769
|
+
return _context.stop();
|
|
72770
|
+
}
|
|
72771
|
+
}
|
|
72772
|
+
}, _callee, this);
|
|
72773
|
+
}));
|
|
72774
|
+
|
|
72775
|
+
function componentWillReceiveProps(_x, _x2) {
|
|
72776
|
+
return _componentWillReceiveProps.apply(this, arguments);
|
|
72777
|
+
}
|
|
72778
|
+
|
|
72779
|
+
return componentWillReceiveProps;
|
|
72780
|
+
}()
|
|
72781
|
+
}, {
|
|
72782
|
+
key: "loadDicom",
|
|
72783
|
+
value: function () {
|
|
72784
|
+
var _loadDicom = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(imageId) {
|
|
72785
|
+
var _dicom;
|
|
72786
|
+
|
|
72787
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
72788
|
+
while (1) {
|
|
72789
|
+
switch (_context2.prev = _context2.next) {
|
|
72790
|
+
case 0:
|
|
72791
|
+
_context2.next = 2;
|
|
72792
|
+
return loadAndCacheDicom(imageId);
|
|
72793
|
+
|
|
72794
|
+
case 2:
|
|
72795
|
+
_dicom = _context2.sent;
|
|
72796
|
+
|
|
72797
|
+
if (_dicom) {
|
|
72798
|
+
this.setState({
|
|
72799
|
+
dicom: _dicom
|
|
72800
|
+
});
|
|
72801
|
+
}
|
|
72802
|
+
|
|
72803
|
+
case 4:
|
|
72804
|
+
case "end":
|
|
72805
|
+
return _context2.stop();
|
|
72806
|
+
}
|
|
72807
|
+
}
|
|
72808
|
+
}, _callee2, this);
|
|
72809
|
+
}));
|
|
72810
|
+
|
|
72811
|
+
function loadDicom(_x3) {
|
|
72812
|
+
return _loadDicom.apply(this, arguments);
|
|
72813
|
+
}
|
|
72814
|
+
|
|
72815
|
+
return loadDicom;
|
|
72816
|
+
}() // originDicomInfo是mpr模式下的
|
|
72817
|
+
|
|
72818
|
+
}, {
|
|
72819
|
+
key: "render",
|
|
72820
|
+
value: function render() {
|
|
72821
|
+
var _this$props5 = this.props,
|
|
72822
|
+
imageId = _this$props5.imageId,
|
|
72823
|
+
stack = _this$props5.stack,
|
|
72824
|
+
viewport = _this$props5.viewport,
|
|
72825
|
+
hide = _this$props5.hide;
|
|
72826
|
+
|
|
72827
|
+
if (!imageId || !stack) {
|
|
72828
|
+
return null;
|
|
72829
|
+
}
|
|
72830
|
+
|
|
72831
|
+
var _this$state5 = this.state,
|
|
72832
|
+
dicom = _this$state5.dicom,
|
|
72833
|
+
fontSize = _this$state5.fontSize;
|
|
72834
|
+
|
|
72835
|
+
if (!dicom) {
|
|
72836
|
+
return null;
|
|
72837
|
+
} // 获取四角信息
|
|
72838
|
+
// 左上
|
|
72839
|
+
|
|
72840
|
+
|
|
72841
|
+
var institutionName = dicom.InstitutionName.toString();
|
|
72842
|
+
var patientName = this.getPatientNameData();
|
|
72843
|
+
var patientSex = this.getPatientSexData();
|
|
72844
|
+
var patientAge = this.getPatientAgeData();
|
|
72845
|
+
var patientID = this.getPatientIDData();
|
|
72846
|
+
var bodyPartExamined = dicom.BodyPartExamined.toString();
|
|
72847
|
+
var laterality = dicom.Laterality.toString() || dicom.ImageLaterality.toString() || '';
|
|
72848
|
+
var viewPosition = dicom.ViewPosition.toString() || ''; //左下
|
|
72849
|
+
|
|
72850
|
+
var patientOrientation = dicom.PatientOrientation.toString();
|
|
72851
|
+
var protocolName = dicom.ProtocolName.toString();
|
|
72852
|
+
var repetitionTime = dicom.RepetitionTime.toString();
|
|
72853
|
+
var echoTime = dicom.EchoTime.toString();
|
|
72854
|
+
var inversionTime = dicom.InversionTime.toString();
|
|
72855
|
+
var flipAngle = dicom.FlipAngle.toString();
|
|
72856
|
+
var sliceThickness = dicom.SliceThickness.value; // 层厚
|
|
72857
|
+
|
|
72858
|
+
var spacingBetweenSlices = dicom.SpacingBetweenSlices.value; // 两层中心点的层间距
|
|
72859
|
+
|
|
72860
|
+
var diffusionBValue = dicom.DiffusionBValue.toString();
|
|
72861
|
+
var seriesDescription = dicom.SeriesDescription.toString();
|
|
72862
|
+
var thk = formatThkText$1(sliceThickness, spacingBetweenSlices); // DX DR CR专属属性
|
|
72863
|
+
|
|
72864
|
+
var modality = dicom.Modality.toString();
|
|
72865
|
+
var showDXDRCR = modality === 'DX' || modality === 'DR' || modality === 'CR';
|
|
72866
|
+
var kvp = dicom.KVP.toString();
|
|
72867
|
+
var exposureTime = dicom.ExposureTime.toString();
|
|
72868
|
+
var xRayTubeCurrent = dicom.XRayTubeCurrent.toString();
|
|
72869
|
+
var exposure = dicom.Exposure.toString(); // 右上
|
|
72870
|
+
|
|
72871
|
+
var studyDateTime = getStudyDateTime$2(dicom);
|
|
72872
|
+
var seriesNumber = dicom.SeriesNumber.toString();
|
|
72873
|
+
var instanceCount = stack.instanceCount || stack.imageIds.length; // 图像模式的数据才有stack.instanceCount
|
|
72874
|
+
// 当前层数 多帧dicom的情况下取currentImageIdIndex
|
|
72875
|
+
|
|
72876
|
+
var instanceNumber = stack && stack.isMultiFrame ? stack.currentImageIdIndex + 1 : dicom.InstanceNumber.toString();
|
|
72877
|
+
var seriesCount = stack.seriesCount ? stack.seriesCount : '';
|
|
72878
|
+
var inPlanePhaseEncodingDirection = dicom.InPlanePhaseEncodingDirection.toString(); // 右下
|
|
72879
|
+
// 从viewport里面动态获取
|
|
72880
|
+
|
|
72881
|
+
var zoom = viewport.scale.toFixed(2);
|
|
72882
|
+
var windowWidth = parseFloat(viewport.voi.windowWidth) || 0;
|
|
72883
|
+
var windowCenter = parseFloat(viewport.voi.windowCenter) || 0;
|
|
72884
|
+
var acquisitionMatrix = dicom.AcquisitionMatrix.value;
|
|
72885
|
+
var sliceLocation = dicom.SliceLocation.value && parseFloat(dicom.SliceLocation.value).toFixed(2);
|
|
72886
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
72887
|
+
style: {
|
|
72888
|
+
position: 'absolute',
|
|
72889
|
+
top: 4,
|
|
72890
|
+
left: 4,
|
|
72891
|
+
textAlign: 'left',
|
|
72892
|
+
fontSize: "".concat(fontSize, "px"),
|
|
72893
|
+
display: "".concat(hide ? 'none' : 'block')
|
|
72894
|
+
}
|
|
72895
|
+
}, /*#__PURE__*/React__default.createElement("div", null, institutionName), /*#__PURE__*/React__default.createElement("div", null, patientName), /*#__PURE__*/React__default.createElement("div", null, patientSex, "/", patientAge), /*#__PURE__*/React__default.createElement("div", null, patientID), /*#__PURE__*/React__default.createElement("div", null, bodyPartExamined), /*#__PURE__*/React__default.createElement("div", null, laterality, " ", viewPosition)), /*#__PURE__*/React__default.createElement("div", {
|
|
72896
|
+
style: {
|
|
72897
|
+
position: 'absolute',
|
|
72898
|
+
bottom: 4,
|
|
72899
|
+
left: 4,
|
|
72900
|
+
textAlign: 'left',
|
|
72901
|
+
fontSize: "".concat(fontSize, "px"),
|
|
72902
|
+
display: "".concat(hide ? 'none' : 'block')
|
|
72903
|
+
}
|
|
72904
|
+
}, showDXDRCR && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null, formatDRDXInfo$1('kV', kvp)), /*#__PURE__*/React__default.createElement("div", null, formatDRDXInfo$1('mA', xRayTubeCurrent)), /*#__PURE__*/React__default.createElement("div", null, formatDRDXInfo$1('Time', exposureTime)), /*#__PURE__*/React__default.createElement("div", null, formatDRDXInfo$1('mAs', exposure))), /*#__PURE__*/React__default.createElement("div", null, patientOrientation), /*#__PURE__*/React__default.createElement("div", null, getTRAndTE$2(repetitionTime, echoTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$2('TI', inversionTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$2('FA', flipAngle)), /*#__PURE__*/React__default.createElement("div", null, thk), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$2('B', diffusionBValue, false)), seriesDescription && seriesDescription !== protocolName && /*#__PURE__*/React__default.createElement("div", null, seriesDescription)), /*#__PURE__*/React__default.createElement("div", {
|
|
72905
|
+
style: {
|
|
72906
|
+
position: 'absolute',
|
|
72907
|
+
top: 4,
|
|
72908
|
+
right: 4,
|
|
72909
|
+
textAlign: 'right',
|
|
72910
|
+
fontSize: "".concat(fontSize, "px"),
|
|
72911
|
+
display: "".concat(hide ? 'none' : 'block')
|
|
72912
|
+
}
|
|
72913
|
+
}, /*#__PURE__*/React__default.createElement("div", null, studyDateTime && studyDateTime.format('YYYY-MM-DD HH:mm:ss')), /*#__PURE__*/React__default.createElement("div", null, "Se: ", seriesNumber, "/", seriesCount), /*#__PURE__*/React__default.createElement("div", null, "Im: ", instanceNumber, "/", instanceCount), /*#__PURE__*/React__default.createElement("div", null, formatInPlanePhaseEncodingDirection$2(inPlanePhaseEncodingDirection))), /*#__PURE__*/React__default.createElement("div", {
|
|
72914
|
+
style: {
|
|
72915
|
+
position: 'absolute',
|
|
72916
|
+
bottom: 4,
|
|
72917
|
+
right: 4,
|
|
72918
|
+
textAlign: 'right',
|
|
72919
|
+
fontSize: "".concat(fontSize, "px"),
|
|
72920
|
+
display: "".concat(hide ? 'none' : 'block')
|
|
72921
|
+
}
|
|
72922
|
+
}, /*#__PURE__*/React__default.createElement("div", null, "W: ", windowWidth.toFixed(0)), /*#__PURE__*/React__default.createElement("div", null, "C: ", windowCenter.toFixed(0)), /*#__PURE__*/React__default.createElement("div", null, zoom, "X"), /*#__PURE__*/React__default.createElement("div", null, getFov$1(dicom, imageId)), /*#__PURE__*/React__default.createElement("div", null, getMat$2(acquisitionMatrix)), (sliceLocation || sliceLocation === 0) && /*#__PURE__*/React__default.createElement("div", null, "Location: ", sliceLocation)));
|
|
72923
|
+
}
|
|
72924
|
+
}]);
|
|
72925
|
+
|
|
72926
|
+
return ViewportOverlay;
|
|
72927
|
+
}(React.PureComponent);
|
|
72928
|
+
|
|
72929
|
+
defineProperty(ViewportOverlay$1, "propTypes", {
|
|
72930
|
+
viewport: PropTypes$1.object.isRequired,
|
|
72931
|
+
imageId: PropTypes$1.string.isRequired,
|
|
72932
|
+
stack: PropTypes$1.object.isRequired,
|
|
72933
|
+
hide: PropTypes$1.bool
|
|
72934
|
+
});
|
|
72935
|
+
|
|
72936
|
+
function _createSuper$1U(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1U(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
72937
|
+
|
|
72938
|
+
function _isNativeReflectConstruct$1U() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
72508
72939
|
var loadIndicatorDelay$2 = 300;
|
|
72509
72940
|
|
|
72510
72941
|
function capitalizeFirstLetter$1(string) {
|
|
@@ -72536,7 +72967,7 @@ function initializeTools$1(cornerstoneTools, tools, element) {
|
|
|
72536
72967
|
var FilmViewport = /*#__PURE__*/function (_Component) {
|
|
72537
72968
|
inherits(FilmViewport, _Component);
|
|
72538
72969
|
|
|
72539
|
-
var _super = _createSuper$
|
|
72970
|
+
var _super = _createSuper$1U(FilmViewport);
|
|
72540
72971
|
|
|
72541
72972
|
function FilmViewport(props) {
|
|
72542
72973
|
var _this;
|
|
@@ -72852,7 +73283,7 @@ var FilmViewport = /*#__PURE__*/function (_Component) {
|
|
|
72852
73283
|
position: 'absolute',
|
|
72853
73284
|
color: 'transparent'
|
|
72854
73285
|
}
|
|
72855
|
-
}, "1"), /*#__PURE__*/React__default.createElement(ViewportOverlay, {
|
|
73286
|
+
}, "1"), /*#__PURE__*/React__default.createElement(ViewportOverlay$1, {
|
|
72856
73287
|
viewport: viewport,
|
|
72857
73288
|
imageId: imageId,
|
|
72858
73289
|
stack: stack,
|
|
@@ -72908,14 +73339,14 @@ var ConnectedFilmViewport = reactRedux.connect(mapStateToProps$C, {
|
|
|
72908
73339
|
setSeriesCurrentIndex: setSeriesCurrentIndex
|
|
72909
73340
|
})(FilmViewport);
|
|
72910
73341
|
|
|
72911
|
-
function _createSuper$
|
|
73342
|
+
function _createSuper$1V(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1V(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
72912
73343
|
|
|
72913
|
-
function _isNativeReflectConstruct$
|
|
73344
|
+
function _isNativeReflectConstruct$1V() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
72914
73345
|
|
|
72915
73346
|
var FilmView = /*#__PURE__*/function (_Component) {
|
|
72916
73347
|
inherits(FilmView, _Component);
|
|
72917
73348
|
|
|
72918
|
-
var _super = _createSuper$
|
|
73349
|
+
var _super = _createSuper$1V(FilmView);
|
|
72919
73350
|
|
|
72920
73351
|
function FilmView(props) {
|
|
72921
73352
|
var _this;
|
|
@@ -73531,11 +73962,11 @@ function getCustomAvailableTools$1(data) {
|
|
|
73531
73962
|
}];
|
|
73532
73963
|
}
|
|
73533
73964
|
|
|
73534
|
-
function _createSuper$
|
|
73965
|
+
function _createSuper$1W(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1W(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
73535
73966
|
|
|
73536
|
-
function _isNativeReflectConstruct$
|
|
73967
|
+
function _isNativeReflectConstruct$1W() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
73537
73968
|
|
|
73538
|
-
var getStudyDateTime$
|
|
73969
|
+
var getStudyDateTime$3 = function getStudyDateTime(dicom) {
|
|
73539
73970
|
// 因为检查时间部分数据可能未传, 根据以下顺序进行获取
|
|
73540
73971
|
var fetchTagList = ['Content', 'Acquisition', 'Series', 'Study'];
|
|
73541
73972
|
|
|
@@ -73549,7 +73980,7 @@ var getStudyDateTime$2 = function getStudyDateTime(dicom) {
|
|
|
73549
73980
|
}
|
|
73550
73981
|
};
|
|
73551
73982
|
|
|
73552
|
-
var formatInPlanePhaseEncodingDirection$
|
|
73983
|
+
var formatInPlanePhaseEncodingDirection$3 = function formatInPlanePhaseEncodingDirection(inPlanePhaseEncodingDirection) {
|
|
73553
73984
|
switch (inPlanePhaseEncodingDirection) {
|
|
73554
73985
|
case 'ROW':
|
|
73555
73986
|
return '→';
|
|
@@ -73562,7 +73993,7 @@ var formatInPlanePhaseEncodingDirection$2 = function formatInPlanePhaseEncodingD
|
|
|
73562
73993
|
}
|
|
73563
73994
|
};
|
|
73564
73995
|
|
|
73565
|
-
var getActualSpacingBetweenSlices$
|
|
73996
|
+
var getActualSpacingBetweenSlices$3 = function getActualSpacingBetweenSlices(spacingBetweenSlices, sliceThickness) {
|
|
73566
73997
|
if (spacingBetweenSlices && sliceThickness) {
|
|
73567
73998
|
// 获取实际的层间距 减去上下层各 1/2的层厚
|
|
73568
73999
|
var actualSpacingBetweenSlices = parseFloat(spacingBetweenSlices) - parseFloat(sliceThickness);
|
|
@@ -73572,7 +74003,7 @@ var getActualSpacingBetweenSlices$2 = function getActualSpacingBetweenSlices(spa
|
|
|
73572
74003
|
}
|
|
73573
74004
|
};
|
|
73574
74005
|
|
|
73575
|
-
var getTRAndTE$
|
|
74006
|
+
var getTRAndTE$3 = function getTRAndTE(repetitionTime, echoTime) {
|
|
73576
74007
|
if (repetitionTime && echoTime) {
|
|
73577
74008
|
return "TR/TE: ".concat(formatNumberPrecision(repetitionTime, 1), "/").concat(formatNumberPrecision(echoTime, 1));
|
|
73578
74009
|
} else if (repetitionTime) {
|
|
@@ -73598,7 +74029,7 @@ var getADAndNEX$2 = function getADAndNEX(acquisitionDuration, numberOfAverages)
|
|
|
73598
74029
|
}
|
|
73599
74030
|
};
|
|
73600
74031
|
|
|
73601
|
-
var formatDicomInfo$
|
|
74032
|
+
var formatDicomInfo$3 = function formatDicomInfo(label, value) {
|
|
73602
74033
|
var isNumber = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
73603
74034
|
var formated = value;
|
|
73604
74035
|
|
|
@@ -73609,10 +74040,10 @@ var formatDicomInfo$2 = function formatDicomInfo(label, value) {
|
|
|
73609
74040
|
return formated ? "".concat(label, ": ").concat(formated) : '';
|
|
73610
74041
|
};
|
|
73611
74042
|
|
|
73612
|
-
var ViewportOverlay$
|
|
74043
|
+
var ViewportOverlay$2 = /*#__PURE__*/function (_PureComponent) {
|
|
73613
74044
|
inherits(ViewportOverlay, _PureComponent);
|
|
73614
74045
|
|
|
73615
|
-
var _super = _createSuper$
|
|
74046
|
+
var _super = _createSuper$1W(ViewportOverlay);
|
|
73616
74047
|
|
|
73617
74048
|
function ViewportOverlay(props) {
|
|
73618
74049
|
var _this;
|
|
@@ -73839,12 +74270,12 @@ var ViewportOverlay$1 = /*#__PURE__*/function (_PureComponent) {
|
|
|
73839
74270
|
|
|
73840
74271
|
var diffusionBValue = dicom.DiffusionBValue.toString();
|
|
73841
74272
|
var seriesDescription = dicom.SeriesDescription.toString();
|
|
73842
|
-
var actualSpacingBetweenSlices = getActualSpacingBetweenSlices$
|
|
74273
|
+
var actualSpacingBetweenSlices = getActualSpacingBetweenSlices$3(sliceThickness, spacingBetweenSlices);
|
|
73843
74274
|
var thk = actualSpacingBetweenSlices || sliceThickness ? "THK: ".concat(sliceThickness && parseFloat(sliceThickness).toFixed(1), "/").concat(actualSpacingBetweenSlices) : ''; // 当长度大于20时,不显示
|
|
73844
74275
|
|
|
73845
74276
|
var imageComments = dicom.ImageComments.toString(); // 右上
|
|
73846
74277
|
|
|
73847
|
-
var studyDateTime = getStudyDateTime$
|
|
74278
|
+
var studyDateTime = getStudyDateTime$3(dicom);
|
|
73848
74279
|
var seriesNumber = dicom.SeriesNumber.toString();
|
|
73849
74280
|
var instanceCount = stack.instanceCount || stack.imageIds.length; // 图像模式的数据才有stack.instanceCount
|
|
73850
74281
|
// 当前层数 多帧dicom的情况下取currentImageIdIndex
|
|
@@ -73870,7 +74301,7 @@ var ViewportOverlay$1 = /*#__PURE__*/function (_PureComponent) {
|
|
|
73870
74301
|
fontSize: "".concat(fontSize, "px"),
|
|
73871
74302
|
display: "".concat(hide ? 'none' : 'block')
|
|
73872
74303
|
}
|
|
73873
|
-
}, /*#__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$
|
|
74304
|
+
}, /*#__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$3(repetitionTime, echoTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$3('TI', inversionTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$3('FA', flipAngle)), /*#__PURE__*/React__default.createElement("div", null, getADAndNEX$2(acquisitionDuration, numberOfAverages)), /*#__PURE__*/React__default.createElement("div", null, thk), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$3('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", {
|
|
73874
74305
|
style: {
|
|
73875
74306
|
position: 'absolute',
|
|
73876
74307
|
top: 4,
|
|
@@ -73879,7 +74310,7 @@ var ViewportOverlay$1 = /*#__PURE__*/function (_PureComponent) {
|
|
|
73879
74310
|
fontSize: "".concat(fontSize, "px"),
|
|
73880
74311
|
display: "".concat(hide ? 'none' : 'block')
|
|
73881
74312
|
}
|
|
73882
|
-
}, /*#__PURE__*/React__default.createElement("div", null, studyDateTime && studyDateTime.format('YYYY-MM-DD HH:mm:ss')), /*#__PURE__*/React__default.createElement("div", null, "Se: ", seriesNumber, "/", seriesCount), /*#__PURE__*/React__default.createElement("div", null, "Im: ", instanceNumber, "/", instanceCount), /*#__PURE__*/React__default.createElement("div", null, formatInPlanePhaseEncodingDirection$
|
|
74313
|
+
}, /*#__PURE__*/React__default.createElement("div", null, studyDateTime && studyDateTime.format('YYYY-MM-DD HH:mm:ss')), /*#__PURE__*/React__default.createElement("div", null, "Se: ", seriesNumber, "/", seriesCount), /*#__PURE__*/React__default.createElement("div", null, "Im: ", instanceNumber, "/", instanceCount), /*#__PURE__*/React__default.createElement("div", null, formatInPlanePhaseEncodingDirection$3(inPlanePhaseEncodingDirection))), /*#__PURE__*/React__default.createElement("div", {
|
|
73883
74314
|
style: {
|
|
73884
74315
|
position: 'absolute',
|
|
73885
74316
|
bottom: 4,
|
|
@@ -73895,7 +74326,7 @@ var ViewportOverlay$1 = /*#__PURE__*/function (_PureComponent) {
|
|
|
73895
74326
|
return ViewportOverlay;
|
|
73896
74327
|
}(React.PureComponent);
|
|
73897
74328
|
|
|
73898
|
-
defineProperty(ViewportOverlay$
|
|
74329
|
+
defineProperty(ViewportOverlay$2, "propTypes", {
|
|
73899
74330
|
viewport: PropTypes$1.object.isRequired,
|
|
73900
74331
|
imageId: PropTypes$1.string.isRequired,
|
|
73901
74332
|
stack: PropTypes$1.object.isRequired,
|
|
@@ -73905,9 +74336,9 @@ defineProperty(ViewportOverlay$1, "propTypes", {
|
|
|
73905
74336
|
var css_248z$O = ".paladin-mpr-direaction-tip {\n position: absolute;\n top: 10px;\n left: 10px;\n z-index: 2;\n width: 10px;\n height: 10px;\n}\n.paladin-mpr-direaction-toggle-box {\n position: absolute;\n top: 10px;\n left: 10px;\n z-index: 2;\n cursor: pointer;\n}\n.paladin-mpr-direaction-toggle-box span {\n display: inline-block;\n padding: 3px;\n font-size: 12px;\n}\n.paladin-mpr-direaction-toggle-box .paladin-mpr-direaction-toggle {\n border: 1px solid #999;\n background: #000;\n}\n.paladin-mpr-direaction-toggle-box .paladin-mpr-direaction-toggle:last-child {\n border-left: none;\n}\n.paladin-mpr-direaction-toggle-box .paladin-mpr-direaction-toggle-active {\n background: #0d5075;\n}\n.rc-slider {\n background-color: transparent !important;\n}\n.paladin-viewport-wrapper {\n overflow: hidden;\n color: white;\n height: 100%;\n position: relative;\n}\n.cornerstone-canvas-container {\n box-sizing: border-box;\n width: 100%;\n position: relative;\n}\n.paladin-viewport-scroll-wrappper {\n width: 100%;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n z-index: 1;\n height: 30px;\n}\n.paladin-viewport-scroll-inner {\n width: 40%;\n margin: 5px auto auto;\n}\n.paladin-viewport-scroll-mpr-wrappper {\n width: 100%;\n position: relative;\n z-index: 1;\n}\n.paladin-key-image-tip {\n position: absolute;\n top: 9px;\n left: 50%;\n font-size: 12px;\n transform: translateX(20px);\n}\n.paladin-key-image-tip svg {\n display: inline-block;\n width: 12px !important;\n height: 12px !important;\n margin-right: 3px;\n}\n";
|
|
73906
74337
|
styleInject$1(css_248z$O);
|
|
73907
74338
|
|
|
73908
|
-
function _createSuper$
|
|
74339
|
+
function _createSuper$1X(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1X(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
73909
74340
|
|
|
73910
|
-
function _isNativeReflectConstruct$
|
|
74341
|
+
function _isNativeReflectConstruct$1X() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
73911
74342
|
var calculateSUV$3 = cornerstoneTools.importInternal('util/calculateSUV');
|
|
73912
74343
|
var EVENT_RESIZE$1 = 'resize';
|
|
73913
74344
|
var loadIndicatorDelay$3 = 300;
|
|
@@ -73942,7 +74373,7 @@ function initializeTools$2(cornerstoneTools, tools, element) {
|
|
|
73942
74373
|
var FusionViewport = /*#__PURE__*/function (_Component) {
|
|
73943
74374
|
inherits(FusionViewport, _Component);
|
|
73944
74375
|
|
|
73945
|
-
var _super = _createSuper$
|
|
74376
|
+
var _super = _createSuper$1X(FusionViewport);
|
|
73946
74377
|
|
|
73947
74378
|
function FusionViewport(props) {
|
|
73948
74379
|
var _this;
|
|
@@ -74443,7 +74874,7 @@ var FusionViewport = /*#__PURE__*/function (_Component) {
|
|
|
74443
74874
|
stack: stack,
|
|
74444
74875
|
basicInfoFromStudy: basicInfoFromStudy,
|
|
74445
74876
|
sliceThickness: sliceThickness
|
|
74446
|
-
}), showOverlayText && isFusionPet && /*#__PURE__*/React__default.createElement(ViewportOverlay$
|
|
74877
|
+
}), showOverlayText && isFusionPet && /*#__PURE__*/React__default.createElement(ViewportOverlay$2, {
|
|
74447
74878
|
viewport: viewport,
|
|
74448
74879
|
imageId: imageId,
|
|
74449
74880
|
stack: stack,
|
|
@@ -74691,6 +75122,10 @@ var FusionViewport = /*#__PURE__*/function (_Component) {
|
|
|
74691
75122
|
|
|
74692
75123
|
defineProperty(FusionViewport, "defaultProps", dicomToolDefaultProps$1);
|
|
74693
75124
|
|
|
75125
|
+
function ownKeys$1a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
75126
|
+
|
|
75127
|
+
function _objectSpread$1a(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1a(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
75128
|
+
|
|
74694
75129
|
var mapStateToProps$E = function mapStateToProps(state) {
|
|
74695
75130
|
var _state$paladin$tools$ = state.paladin.tools.action,
|
|
74696
75131
|
activeTool = _state$paladin$tools$.activeTool,
|
|
@@ -74722,20 +75157,32 @@ var mapStateToProps$E = function mapStateToProps(state) {
|
|
|
74722
75157
|
};
|
|
74723
75158
|
};
|
|
74724
75159
|
|
|
75160
|
+
var mergeProps$C = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
75161
|
+
var _showOverlayText = propsFromState.showOverlayText;
|
|
75162
|
+
|
|
75163
|
+
if (ownProps.hasOwnProperty('showOverlayText') && !ownProps.showOverlayText) {
|
|
75164
|
+
_showOverlayText = false;
|
|
75165
|
+
}
|
|
75166
|
+
|
|
75167
|
+
return _objectSpread$1a(_objectSpread$1a(_objectSpread$1a({}, ownProps), propsFromState), {}, {
|
|
75168
|
+
showOverlayText: _showOverlayText
|
|
75169
|
+
});
|
|
75170
|
+
};
|
|
75171
|
+
|
|
74725
75172
|
var ConnectedFusionViewport = reactRedux.connect(mapStateToProps$E, {
|
|
74726
75173
|
setActiveTool: setActiveTool,
|
|
74727
75174
|
setSeriesCurrentIndex: setSeriesCurrentIndex,
|
|
74728
75175
|
setFusionReduxValue: setFusionReduxValue
|
|
74729
|
-
})(FusionViewport);
|
|
75176
|
+
}, mergeProps$C)(FusionViewport);
|
|
74730
75177
|
|
|
74731
|
-
function _createSuper$
|
|
75178
|
+
function _createSuper$1Y(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1Y(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
74732
75179
|
|
|
74733
|
-
function _isNativeReflectConstruct$
|
|
75180
|
+
function _isNativeReflectConstruct$1Y() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
74734
75181
|
|
|
74735
75182
|
var PETLayout = /*#__PURE__*/function (_Component) {
|
|
74736
75183
|
inherits(PETLayout, _Component);
|
|
74737
75184
|
|
|
74738
|
-
var _super = _createSuper$
|
|
75185
|
+
var _super = _createSuper$1Y(PETLayout);
|
|
74739
75186
|
|
|
74740
75187
|
function PETLayout(props) {
|
|
74741
75188
|
var _this;
|
|
@@ -74804,7 +75251,8 @@ var PETLayout = /*#__PURE__*/function (_Component) {
|
|
|
74804
75251
|
scrollWidth: scrollWidth,
|
|
74805
75252
|
showCustomScroll: true,
|
|
74806
75253
|
onImageFirstRender: handleSyncAdd,
|
|
74807
|
-
availableTools: this.availableTools
|
|
75254
|
+
availableTools: this.availableTools,
|
|
75255
|
+
showOverlayText: false
|
|
74808
75256
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
74809
75257
|
className: "paladin-fusion-pet"
|
|
74810
75258
|
}, /*#__PURE__*/React__default.createElement(ConnectedFusionViewport, {
|
|
@@ -74866,20 +75314,20 @@ var PETLayout = /*#__PURE__*/function (_Component) {
|
|
|
74866
75314
|
|
|
74867
75315
|
defineProperty(PETLayout, "propTypes", {});
|
|
74868
75316
|
|
|
74869
|
-
function ownKeys$
|
|
75317
|
+
function ownKeys$1b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
74870
75318
|
|
|
74871
|
-
function _objectSpread$
|
|
75319
|
+
function _objectSpread$1b(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1b(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
74872
75320
|
|
|
74873
75321
|
var mapStateToProps$F = function mapStateToProps(state) {
|
|
74874
|
-
return _objectSpread$
|
|
75322
|
+
return _objectSpread$1b({}, state.paladin.tools.fusion);
|
|
74875
75323
|
};
|
|
74876
75324
|
|
|
74877
|
-
var mergeProps$
|
|
75325
|
+
var mergeProps$D = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
74878
75326
|
var fusionScrollSynchronizer = propsFromState.fusionScrollSynchronizer,
|
|
74879
75327
|
fusionSynchronizer = propsFromState.fusionSynchronizer,
|
|
74880
75328
|
fusionCTWWWCSynchronizer = propsFromState.fusionCTWWWCSynchronizer,
|
|
74881
75329
|
fusionPETWWWCSynchronizer = propsFromState.fusionPETWWWCSynchronizer;
|
|
74882
|
-
return _objectSpread$
|
|
75330
|
+
return _objectSpread$1b(_objectSpread$1b(_objectSpread$1b({}, propsFromState), ownProps), {}, {
|
|
74883
75331
|
onViewPortCellClick: function onViewPortCellClick(value) {
|
|
74884
75332
|
propsFromDispatch.setFusionActiveIndex(value);
|
|
74885
75333
|
},
|
|
@@ -74915,7 +75363,7 @@ var mergeProps$C = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
74915
75363
|
|
|
74916
75364
|
var ConnectedPETLayout = reactRedux.connect(mapStateToProps$F, {
|
|
74917
75365
|
setFusionActiveIndex: setFusionActiveIndex
|
|
74918
|
-
}, mergeProps$
|
|
75366
|
+
}, mergeProps$D)(PETLayout);
|
|
74919
75367
|
|
|
74920
75368
|
function _createForOfIteratorHelper$h(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$j(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
74921
75369
|
|
|
@@ -74923,9 +75371,9 @@ function _unsupportedIterableToArray$j(o, minLen) { if (!o) return; if (typeof o
|
|
|
74923
75371
|
|
|
74924
75372
|
function _arrayLikeToArray$j(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
74925
75373
|
|
|
74926
|
-
function _createSuper$
|
|
75374
|
+
function _createSuper$1Z(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1Z(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
74927
75375
|
|
|
74928
|
-
function _isNativeReflectConstruct$
|
|
75376
|
+
function _isNativeReflectConstruct$1Z() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
74929
75377
|
|
|
74930
75378
|
var DicomLayoutContainerWrap = function DicomLayoutContainerWrap(props) {
|
|
74931
75379
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -74949,7 +75397,7 @@ index$3.configure({
|
|
|
74949
75397
|
var DicomView = /*#__PURE__*/function (_Component) {
|
|
74950
75398
|
inherits(DicomView, _Component);
|
|
74951
75399
|
|
|
74952
|
-
var _super = _createSuper$
|
|
75400
|
+
var _super = _createSuper$1Z(DicomView);
|
|
74953
75401
|
|
|
74954
75402
|
function DicomView(props) {
|
|
74955
75403
|
var _this;
|
|
@@ -75577,9 +76025,9 @@ function _unsupportedIterableToArray$k(o, minLen) { if (!o) return; if (typeof o
|
|
|
75577
76025
|
|
|
75578
76026
|
function _arrayLikeToArray$k(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
75579
76027
|
|
|
75580
|
-
function ownKeys$
|
|
76028
|
+
function ownKeys$1c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
75581
76029
|
|
|
75582
|
-
function _objectSpread$
|
|
76030
|
+
function _objectSpread$1c(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1c(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
75583
76031
|
var throttle$9 = cornerstoneTools.importInternal('util/throttle');
|
|
75584
76032
|
var NO_CHECK_MULTI_FRAME_MODALITIES = ['DR', 'CR', 'DX', 'MG'];
|
|
75585
76033
|
|
|
@@ -75667,7 +76115,7 @@ var mapStateToProps$G = function mapStateToProps(state) {
|
|
|
75667
76115
|
};
|
|
75668
76116
|
};
|
|
75669
76117
|
|
|
75670
|
-
var mergeProps$
|
|
76118
|
+
var mergeProps$E = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
75671
76119
|
var activeIndex = propsFromState.activeIndex,
|
|
75672
76120
|
imageActiveIndex = propsFromState.imageActiveIndex,
|
|
75673
76121
|
MPR = propsFromState.MPR,
|
|
@@ -75765,7 +76213,7 @@ var mergeProps$D = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
75765
76213
|
* https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
|
|
75766
76214
|
*/
|
|
75767
76215
|
|
|
75768
|
-
return _objectSpread$
|
|
76216
|
+
return _objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, ownProps), propsFromState), {}, {
|
|
75769
76217
|
showDicomThumbnail: showDicomThumbnail,
|
|
75770
76218
|
viewMode: viewMode,
|
|
75771
76219
|
keyMap: {
|
|
@@ -76538,7 +76986,7 @@ var mergeProps$D = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
76538
76986
|
imageIds.push(imageId);
|
|
76539
76987
|
}
|
|
76540
76988
|
|
|
76541
|
-
series[i] = _objectSpread$
|
|
76989
|
+
series[i] = _objectSpread$1c(_objectSpread$1c({}, item), {}, {
|
|
76542
76990
|
imageIds: imageIds,
|
|
76543
76991
|
numberOfSeriesRelatedInstances: numFrames,
|
|
76544
76992
|
isMultiFrame: true
|
|
@@ -76615,7 +77063,7 @@ var mergeProps$D = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
76615
77063
|
|
|
76616
77064
|
callback && callback({
|
|
76617
77065
|
hasChange: hasMultiFrame,
|
|
76618
|
-
study: [_objectSpread$
|
|
77066
|
+
study: [_objectSpread$1c(_objectSpread$1c({}, _study[0]), {}, {
|
|
76619
77067
|
series: series
|
|
76620
77068
|
})]
|
|
76621
77069
|
}); // 如果有frameTime的话设置fps
|
|
@@ -76842,7 +77290,7 @@ var ConnectedDicomView = reactRedux.connect(mapStateToProps$G, {
|
|
|
76842
77290
|
setReduxLanguage: setReduxLanguage,
|
|
76843
77291
|
setActionStateByKey: setActionStateByKey,
|
|
76844
77292
|
setMprLayout: setMprLayout
|
|
76845
|
-
}, mergeProps$
|
|
77293
|
+
}, mergeProps$E, withRef())(DicomView);
|
|
76846
77294
|
|
|
76847
77295
|
function withRef() {
|
|
76848
77296
|
var reactReduxVersion = package_json.version.split('.')[0];
|