hellfire 0.28.0 → 0.28.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 +373 -111
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -966,6 +966,7 @@ var action = (function () {
|
|
|
966
966
|
* 1.换到非手术路径工具时要把路径的工具都关闭掉
|
|
967
967
|
* 2.换到非(测量工具 或 3d定位)的时候要缓存一份originActiveTool
|
|
968
968
|
* 3.换到非3d定位工具时,要把redux上的ReferencePosition关闭
|
|
969
|
+
* 4.如果是测量工具,需要按toggle的方式切换
|
|
969
970
|
*/
|
|
970
971
|
|
|
971
972
|
var newState = _objectSpread$1(_objectSpread$1({}, state), {}, {
|
|
@@ -985,6 +986,12 @@ var action = (function () {
|
|
|
985
986
|
newState['originActiveTool'] = nextTool;
|
|
986
987
|
}
|
|
987
988
|
|
|
989
|
+
if (lodash$1.includes(LengthToolsWithMeasure, nextTool) && lodash$1.includes(LengthToolsWithMeasure, state.activeTool)) {
|
|
990
|
+
if (nextTool === state.activeTool) {
|
|
991
|
+
newState['activeTool'] = state.originActiveTool;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
|
|
988
995
|
return newState;
|
|
989
996
|
}
|
|
990
997
|
|
|
@@ -9389,7 +9396,12 @@ var OrientationMarkersTool = /*#__PURE__*/function (_BaseTool) {
|
|
|
9389
9396
|
}, {
|
|
9390
9397
|
key: "customTextBoxWidth",
|
|
9391
9398
|
value: function customTextBoxWidth(context, text, padding) {
|
|
9392
|
-
var font =
|
|
9399
|
+
var font = textStyle$4.getFont();
|
|
9400
|
+
|
|
9401
|
+
if (this.initialConfiguration.fontSize) {
|
|
9402
|
+
font = "".concat(this.initialConfiguration.fontSize * devicePixelRatio, "px Arial");
|
|
9403
|
+
}
|
|
9404
|
+
|
|
9393
9405
|
var origFont = context.font;
|
|
9394
9406
|
|
|
9395
9407
|
if (font && font !== origFont) {
|
|
@@ -9427,8 +9439,15 @@ var OrientationMarkersTool = /*#__PURE__*/function (_BaseTool) {
|
|
|
9427
9439
|
height: this.customTextBoxWidth(context, 'M', 0) // Trick to get an approximation of the height of the text
|
|
9428
9440
|
|
|
9429
9441
|
};
|
|
9442
|
+
|
|
9443
|
+
var _fontSize = textStyle$4.getFontSize();
|
|
9444
|
+
|
|
9445
|
+
if (this.initialConfiguration.fontSize) {
|
|
9446
|
+
_fontSize = this.initialConfiguration.fontSize;
|
|
9447
|
+
}
|
|
9448
|
+
|
|
9430
9449
|
var textConfig = {
|
|
9431
|
-
fontSize:
|
|
9450
|
+
fontSize: _fontSize
|
|
9432
9451
|
};
|
|
9433
9452
|
drawTopLeftText(context, markers, coords, textWidths, color, textConfig);
|
|
9434
9453
|
|
|
@@ -10709,7 +10728,12 @@ var RulerOverlayTool = /*#__PURE__*/function (_BaseTool) {
|
|
|
10709
10728
|
mixins: ['enabledOrDisabledBinaryTool'],
|
|
10710
10729
|
fontSize: 12,
|
|
10711
10730
|
color: null,
|
|
10712
|
-
strokeColor: null
|
|
10731
|
+
strokeColor: null,
|
|
10732
|
+
marginX: 40,
|
|
10733
|
+
tickMajor: 10,
|
|
10734
|
+
tickMinor: 7,
|
|
10735
|
+
tickPatch: 5,
|
|
10736
|
+
lineWidth: 2
|
|
10713
10737
|
};
|
|
10714
10738
|
return _super.call(this, props, defaultProps);
|
|
10715
10739
|
}
|
|
@@ -10743,13 +10767,13 @@ var RulerOverlayTool = /*#__PURE__*/function (_BaseTool) {
|
|
|
10743
10767
|
context.beginPath();
|
|
10744
10768
|
context.strokeStyle = this.initialConfiguration.strokeColor || 'white';
|
|
10745
10769
|
context.fillStyle = this.initialConfiguration.color || 'white';
|
|
10746
|
-
context.lineWidth =
|
|
10770
|
+
context.lineWidth = this.initialConfiguration.lineWidth * devicePixelRatio$1;
|
|
10747
10771
|
var fontSize = this.initialConfiguration.fontSize;
|
|
10748
10772
|
context.font = fontSize * devicePixelRatio$1 + 'px Arial';
|
|
10749
|
-
var marginX =
|
|
10750
|
-
var tickMajor =
|
|
10751
|
-
var tickMinor =
|
|
10752
|
-
var tickPatch =
|
|
10773
|
+
var marginX = this.initialConfiguration.marginX * devicePixelRatio$1;
|
|
10774
|
+
var tickMajor = this.initialConfiguration.tickMajor * devicePixelRatio$1;
|
|
10775
|
+
var tickMinor = this.initialConfiguration.tickMinor * devicePixelRatio$1;
|
|
10776
|
+
var tickPatch = this.initialConfiguration.tickPatch * devicePixelRatio$1;
|
|
10753
10777
|
var anchor = {
|
|
10754
10778
|
x: canvasWidth - marginX,
|
|
10755
10779
|
y: canvasHeight / 2
|
|
@@ -26439,6 +26463,9 @@ function getActiveElement(mode, activeIndex, imageActiveIndex, MPR, mprActiveInd
|
|
|
26439
26463
|
function getElement(index) {
|
|
26440
26464
|
return document.getElementById("paladin-viewport-".concat(index));
|
|
26441
26465
|
}
|
|
26466
|
+
function getFilmElement(index) {
|
|
26467
|
+
return document.getElementById("paladin-film-viewport-".concat(index));
|
|
26468
|
+
}
|
|
26442
26469
|
function getRealActiveIndex(mode, activeIndex, imageActiveIndex, MPR, mprActiveIndex, Surgery, surgeryActiveIndex, CPR) {
|
|
26443
26470
|
// 1.序列模式
|
|
26444
26471
|
// 2.图像模式
|
|
@@ -41874,7 +41901,7 @@ var DicomToolLineMode = /*#__PURE__*/function (_Component) {
|
|
|
41874
41901
|
return DicomToolLineMode;
|
|
41875
41902
|
}(React.Component);
|
|
41876
41903
|
|
|
41877
|
-
var css_248z$g = ".paladin-tool-item-plus {\n width: 46px;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n border: 1px solid #252525;\n margin: 2px;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-label {\n display: flex;\n flex-direction: row;\n font-size: 12px;\n white-space: nowrap;\n color: #c0c0c0;\n margin-top: 5px;\n overflow: hidden;\n text-align: center;\n word-break: break-all;\n justify-content: center;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-icon {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-icon svg {\n width: 22px;\n height: 22px;\n color: #c0c0c0;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-text {\n color: #fff;\n text-align: center;\n font-size: 14px;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-more {\n padding: 0 4px 0 3px;\n height: 100%;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-more svg {\n width: 7px;\n color: #c0c0c0;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-more:hover {\n background: #0d5075;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-main {\n height: 100%;\n padding: 6px 0 4px 0;\n
|
|
41904
|
+
var css_248z$g = ".paladin-tool-item-plus {\n width: 46px;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n border: 1px solid #252525;\n margin: 2px;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-label {\n display: flex;\n flex-direction: row;\n font-size: 12px;\n white-space: nowrap;\n color: #c0c0c0;\n margin-top: 5px;\n overflow: hidden;\n text-align: center;\n word-break: break-all;\n justify-content: center;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-icon {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-icon svg {\n width: 22px;\n height: 22px;\n color: #c0c0c0;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-text {\n color: #fff;\n text-align: center;\n font-size: 14px;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-more {\n padding: 0 4px 0 3px;\n height: 100%;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-more svg {\n width: 7px;\n color: #c0c0c0;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-more:hover {\n background: #0d5075;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-main {\n height: 100%;\n padding: 6px 0 4px 0;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-main:hover {\n background: #0d5075;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-main:hover .paladin-tool-item-plus-label {\n color: #fff;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-main:hover .paladin-tool-item-plus-icon svg {\n color: #fff;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-main-active {\n background: #0d5075;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-main-active .paladin-tool-item-plus-label {\n color: #fff;\n}\n.paladin-tool-item-plus .paladin-tool-item-plus-main-active .paladin-tool-item-plus-icon svg {\n color: #fff;\n}\n";
|
|
41878
41905
|
styleInject$1(css_248z$g);
|
|
41879
41906
|
|
|
41880
41907
|
function _createSuper$16(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$16(); 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); }; }
|
|
@@ -48583,7 +48610,8 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48583
48610
|
|
|
48584
48611
|
_this = _super.call(this, props);
|
|
48585
48612
|
_this.state = {
|
|
48586
|
-
dicom: null
|
|
48613
|
+
dicom: null,
|
|
48614
|
+
fontSize: props.fontSize || 12
|
|
48587
48615
|
};
|
|
48588
48616
|
return _this;
|
|
48589
48617
|
}
|
|
@@ -48598,6 +48626,15 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48598
48626
|
|
|
48599
48627
|
this.loadDicom(this.props.imageId);
|
|
48600
48628
|
}
|
|
48629
|
+
}, {
|
|
48630
|
+
key: "componentDidUpdate",
|
|
48631
|
+
value: function componentDidUpdate(prevProps, prevState, snapshot) {
|
|
48632
|
+
if (prevProps.fontSize !== this.props.fontSize) {
|
|
48633
|
+
this.setState({
|
|
48634
|
+
fontSize: this.props.fontSize
|
|
48635
|
+
});
|
|
48636
|
+
}
|
|
48637
|
+
}
|
|
48601
48638
|
}, {
|
|
48602
48639
|
key: "componentWillReceiveProps",
|
|
48603
48640
|
value: function () {
|
|
@@ -48672,7 +48709,9 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48672
48709
|
return null;
|
|
48673
48710
|
}
|
|
48674
48711
|
|
|
48675
|
-
var
|
|
48712
|
+
var _this$state = this.state,
|
|
48713
|
+
dicom = _this$state.dicom,
|
|
48714
|
+
fontSize = _this$state.fontSize;
|
|
48676
48715
|
|
|
48677
48716
|
if (!dicom) {
|
|
48678
48717
|
return null;
|
|
@@ -48693,7 +48732,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48693
48732
|
bottom: 4,
|
|
48694
48733
|
left: 4,
|
|
48695
48734
|
textAlign: 'left',
|
|
48696
|
-
fontSize:
|
|
48735
|
+
fontSize: "".concat(fontSize, "px"),
|
|
48697
48736
|
display: "".concat(hide ? 'none' : 'block')
|
|
48698
48737
|
}
|
|
48699
48738
|
}, /*#__PURE__*/React__default.createElement("div", null, "T: ", spaceBetweenSlice, "mm", _sliceThickness && _sliceThickness !== 1 && 'X' + _sliceThickness, " L")), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -48702,7 +48741,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48702
48741
|
bottom: 4,
|
|
48703
48742
|
right: 4,
|
|
48704
48743
|
textAlign: 'right',
|
|
48705
|
-
fontSize:
|
|
48744
|
+
fontSize: "".concat(fontSize, "px"),
|
|
48706
48745
|
display: "".concat(hide ? 'none' : 'block')
|
|
48707
48746
|
}
|
|
48708
48747
|
}, /*#__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")));
|
|
@@ -48760,7 +48799,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48760
48799
|
top: 4,
|
|
48761
48800
|
left: 4,
|
|
48762
48801
|
textAlign: 'left',
|
|
48763
|
-
fontSize:
|
|
48802
|
+
fontSize: "".concat(fontSize, "px"),
|
|
48764
48803
|
display: "".concat(hide ? 'none' : 'block')
|
|
48765
48804
|
}
|
|
48766
48805
|
}, /*#__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", null, laterality)), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -48769,7 +48808,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48769
48808
|
bottom: 4,
|
|
48770
48809
|
left: 4,
|
|
48771
48810
|
textAlign: 'left',
|
|
48772
|
-
fontSize:
|
|
48811
|
+
fontSize: "".concat(fontSize, "px"),
|
|
48773
48812
|
display: "".concat(hide ? 'none' : 'block')
|
|
48774
48813
|
}
|
|
48775
48814
|
}, /*#__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)), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -48778,7 +48817,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48778
48817
|
top: 4,
|
|
48779
48818
|
right: 4,
|
|
48780
48819
|
textAlign: 'right',
|
|
48781
|
-
fontSize:
|
|
48820
|
+
fontSize: "".concat(fontSize, "px"),
|
|
48782
48821
|
display: "".concat(hide ? 'none' : 'block')
|
|
48783
48822
|
}
|
|
48784
48823
|
}, /*#__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, compression), /*#__PURE__*/React__default.createElement("div", null, formatInPlanePhaseEncodingDirection(inPlanePhaseEncodingDirection))), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -48787,7 +48826,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
48787
48826
|
bottom: 4,
|
|
48788
48827
|
right: 4,
|
|
48789
48828
|
textAlign: 'right',
|
|
48790
|
-
fontSize:
|
|
48829
|
+
fontSize: "".concat(fontSize, "px"),
|
|
48791
48830
|
display: "".concat(hide ? 'none' : 'block')
|
|
48792
48831
|
}
|
|
48793
48832
|
}, /*#__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(dicom, imageId)), /*#__PURE__*/React__default.createElement("div", null, getMat(acquisitionMatrix)), (sliceLocation || sliceLocation === 0) && /*#__PURE__*/React__default.createElement("div", null, "Location: ", sliceLocation)));
|
|
@@ -54955,7 +54994,7 @@ function studySeriesDataCheck (studies) {
|
|
|
54955
54994
|
});
|
|
54956
54995
|
}
|
|
54957
54996
|
|
|
54958
|
-
var css_248z$F = ".paladin-film-tool {\n width: 220px;\n color: #c0c0c0;\n padding: 10px;\n font-size: 15px;\n}\n.paladin-film-tool .film-full-line {\n width: 100%;\n height: 1px;\n background: #777676;\n margin: 10px 0;\n}\n.paladin-film-tool .film-half-button,\n.paladin-film-tool .film-full-button {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n height: 40px;\n border: 1px solid #1c1c1c;\n box-sizing: border-box;\n}\n.paladin-film-tool .film-half-button svg,\n.paladin-film-tool .film-full-button svg {\n width: 18px;\n height: 18px;\n margin-right: 6px;\n}\n.paladin-film-tool .film-half-button {\n width: 50%;\n}\n.paladin-film-tool .film-full-button {\n width: 100%;\n}\n.paladin-film-tool .film-template-box {\n display: flex;\n width: 100%;\n height: 40px;\n border: 1px solid #1c1c1c;\n box-sizing: border-box;\n}\n.paladin-film-tool .film-template-box div {\n display: flex;\n flex: 1;\n cursor: pointer;\n align-items: center;\n}\n.paladin-film-tool .film-template-box .template-add {\n flex: none;\n padding-left: 5px;\n padding-right: 7px;\n border-right: 1px solid #1c1c1c;\n height: 100%;\n}\n.paladin-film-tool .film-template-box .template-select {\n justify-content: center;\n}\n.paladin-film-tool .film-template-box .template-select svg {\n width: 18px;\n margin-left: 3px;\n}\n.paladin-film-tool .film-template-box .template-setting {\n height: 100%;\n width: 20px;\n flex: none;\n padding-left: 7px;\n padding-right: 5px;\n border-left: 1px solid #1c1c1c;\n}\n.paladin-film-tool .film-template-box .template-setting svg {\n width: 20px;\n}\n.paladin-film-tool .film-size-box {\n margin: 20px 0;\n display: flex;\n align-items: center;\n}\n.paladin-film-tool .film-size-box span {\n display: flex;\n flex: none;\n margin-right: 8px;\n}\n.paladin-film-tool .film-size-box .film-size-select {\n height: 40px;\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n border: 1px solid #1c1c1c;\n box-sizing: border-box;\n}\n.paladin-film-tool .film-size-box button {\n border: none;\n width: 100%;\n height: 100%;\n background: #353535;\n color: #c0c0c0;\n font-size: 15px;\n}\n.paladin-film-tool .film-size-box svg {\n width: 20px;\n}\n.paladin-film-tool .g-rgl-grid {\n padding: 12px;\n}\n.paladin-dropdown-custom {\n z-index: 99;\n left: 50px !important;\n}\n.paladin-menu-custom {\n width: 180px;\n background: #000000;\n color: #c0c0c0;\n padding: 0;\n}\n.paladin-menu-custom li {\n text-align: center;\n list-style: none;\n border-bottom: 1px solid #4D4D4D;\n padding: 6px 0;\n cursor: pointer;\n}\n.paladin-menu-custom li:last-child {\n border-bottom: none;\n}\n.rc-dropdown-hidden {\n display: none;\n}\n.paladin-film-print-modal-wrapper .paladin-modal-header {\n color: #fff;\n font-weight: normal;\n font-size: 16px;\n border-bottom: 1px solid #484849;\n}\n";
|
|
54997
|
+
var css_248z$F = ".paladin-film-tool {\n width: 220px;\n color: #c0c0c0;\n padding: 10px;\n font-size: 15px;\n}\n.paladin-film-tool .film-full-line {\n width: 100%;\n height: 1px;\n background: #777676;\n margin: 10px 0;\n}\n.paladin-film-tool .film-half-button,\n.paladin-film-tool .film-full-button {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n height: 40px;\n border: 1px solid #1c1c1c;\n box-sizing: border-box;\n}\n.paladin-film-tool .film-half-button svg,\n.paladin-film-tool .film-full-button svg {\n width: 18px;\n height: 18px;\n margin-right: 6px;\n}\n.paladin-film-tool .film-half-button {\n width: 50%;\n}\n.paladin-film-tool .film-full-button {\n width: 100%;\n}\n.paladin-film-tool .film-template-box {\n display: flex;\n width: 100%;\n height: 40px;\n border: 1px solid #1c1c1c;\n box-sizing: border-box;\n}\n.paladin-film-tool .film-template-box div {\n display: flex;\n flex: 1;\n cursor: pointer;\n align-items: center;\n}\n.paladin-film-tool .film-template-box .template-add {\n flex: none;\n padding-left: 5px;\n padding-right: 7px;\n border-right: 1px solid #1c1c1c;\n height: 100%;\n}\n.paladin-film-tool .film-template-box .template-select {\n justify-content: center;\n}\n.paladin-film-tool .film-template-box .template-select svg {\n width: 18px;\n margin-left: 3px;\n}\n.paladin-film-tool .film-template-box .template-setting {\n height: 100%;\n width: 20px;\n flex: none;\n padding-left: 7px;\n padding-right: 5px;\n border-left: 1px solid #1c1c1c;\n}\n.paladin-film-tool .film-template-box .template-setting svg {\n width: 20px;\n}\n.paladin-film-tool .film-size-box {\n margin: 20px 0;\n display: flex;\n align-items: center;\n}\n.paladin-film-tool .film-size-box span {\n display: flex;\n flex: none;\n margin-right: 8px;\n}\n.paladin-film-tool .film-size-box .film-size-select {\n height: 40px;\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n border: 1px solid #1c1c1c;\n box-sizing: border-box;\n}\n.paladin-film-tool .film-size-box button {\n border: none;\n width: 100%;\n height: 100%;\n background: #353535;\n color: #c0c0c0;\n font-size: 15px;\n}\n.paladin-film-tool .film-size-box svg {\n width: 20px;\n}\n.paladin-film-tool .g-rgl-grid {\n padding: 12px;\n}\n.paladin-dropdown-custom {\n z-index: 99;\n left: 50px !important;\n}\n.paladin-menu-custom {\n width: 180px;\n background: #000000;\n color: #c0c0c0;\n padding: 0;\n}\n.paladin-menu-custom li {\n text-align: center;\n list-style: none;\n border-bottom: 1px solid #4D4D4D;\n padding: 6px 0;\n cursor: pointer;\n}\n.paladin-menu-custom li:last-child {\n border-bottom: none;\n}\n.rc-dropdown-hidden {\n display: none;\n}\n.paladin-film-print-modal-wrapper {\n overflow: hidden;\n}\n.paladin-film-print-modal-wrapper .paladin-modal-header {\n color: #fff;\n font-weight: normal;\n font-size: 16px;\n border-bottom: 1px solid #484849;\n}\n.paladin-film-print-modal-wrapper .paladin-modal-footer {\n border: none;\n}\n";
|
|
54959
54998
|
styleInject$1(css_248z$F);
|
|
54960
54999
|
|
|
54961
55000
|
function _extends$1r() { _extends$1r = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1r.apply(this, arguments); }
|
|
@@ -55074,6 +55113,12 @@ var Layout$1 = /*#__PURE__*/function (_Component) {
|
|
|
55074
55113
|
return Layout;
|
|
55075
55114
|
}(React.Component);
|
|
55076
55115
|
|
|
55116
|
+
function _createForOfIteratorHelper$e(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$g(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; } } }; }
|
|
55117
|
+
|
|
55118
|
+
function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$g(o, minLen); }
|
|
55119
|
+
|
|
55120
|
+
function _arrayLikeToArray$g(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; }
|
|
55121
|
+
|
|
55077
55122
|
function ownKeys$W(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; }
|
|
55078
55123
|
|
|
55079
55124
|
function _objectSpread$X(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$W(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$W(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -55092,6 +55137,29 @@ var mergeProps$u = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55092
55137
|
return _objectSpread$X(_objectSpread$X(_objectSpread$X({}, ownProps), propsFromState), {}, {
|
|
55093
55138
|
onLayoutChange: function onLayoutChange(row, col) {
|
|
55094
55139
|
propsFromDispatch.setFilmLayout(row, col);
|
|
55140
|
+
setTimeout(function () {
|
|
55141
|
+
try {
|
|
55142
|
+
var layoutElements = lodash$1.map(Array(row * col), function (v, n) {
|
|
55143
|
+
return getFilmElement(n);
|
|
55144
|
+
});
|
|
55145
|
+
|
|
55146
|
+
var _iterator = _createForOfIteratorHelper$e(layoutElements),
|
|
55147
|
+
_step;
|
|
55148
|
+
|
|
55149
|
+
try {
|
|
55150
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
55151
|
+
var element = _step.value;
|
|
55152
|
+
cornerstone.resize(element, true);
|
|
55153
|
+
}
|
|
55154
|
+
} catch (err) {
|
|
55155
|
+
_iterator.e(err);
|
|
55156
|
+
} finally {
|
|
55157
|
+
_iterator.f();
|
|
55158
|
+
}
|
|
55159
|
+
} catch (e) {
|
|
55160
|
+
console.log('ignore element not enabled event');
|
|
55161
|
+
}
|
|
55162
|
+
});
|
|
55095
55163
|
}
|
|
55096
55164
|
});
|
|
55097
55165
|
};
|
|
@@ -65117,10 +65185,6 @@ var FILM_SIZE_TYPE_DIC = [{
|
|
|
65117
65185
|
value: '810'
|
|
65118
65186
|
}];
|
|
65119
65187
|
var FILM_SIZE_TYPE_MAP = {
|
|
65120
|
-
// '1417': {width: 14, height: 17, label: '14IN X 17IN', ID: '14INX17IN', dicomRow: 5000, dicomColumn: 4000},
|
|
65121
|
-
// '1114': {width: 11, height: 14, label: '11IN X 14IN', ID: '11INX14IN', dicomRow: 4000, dicomColumn: 3200},
|
|
65122
|
-
// '1012': {width: 10, height: 12, label: '10IN X 12IN', ID: '10INX12IN', dicomRow: 3400, dicomColumn: 2600},
|
|
65123
|
-
// '810': {width: 8, height: 10, label: '8IN X 10IN', ID: '8INX10IN', dicomRow: 2600, dicomColumn: 1900}
|
|
65124
65188
|
'1417': {
|
|
65125
65189
|
width: 14,
|
|
65126
65190
|
height: 17,
|
|
@@ -65383,9 +65447,22 @@ var FilmToolVerticalMode = /*#__PURE__*/function (_Component) {
|
|
|
65383
65447
|
return FilmToolVerticalMode;
|
|
65384
65448
|
}(React.Component);
|
|
65385
65449
|
|
|
65386
|
-
var css_248z$H = ".paladin-film-print-modal table {\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n border: 1px solid #525253;\n border-bottom: none;\n}\n.paladin-film-print-modal table tr {\n height: 54px;\n margin-left: 30px;\n border-bottom: 1px solid #525253;\n}\n.paladin-film-print-modal table tr .th-1 {\n width: 3%;\n}\n.paladin-film-print-modal table tr .th-2 {\n width: 18%;\n}\n.paladin-film-print-modal table tr .th-3 {\n width: 13%;\n}\n.paladin-film-print-modal table tr .th-4 {\n width: 19%;\n}\n.paladin-film-print-modal table tr .th-5 {\n width: 15%;\n}\n.paladin-film-print-modal table tr .th-6 {\n width: 12%;\n}\n.paladin-film-print-modal table tr .th-7 {\n width: 16%;\n}\n.paladin-film-print-modal table tr th {\n background: #404041;\n}\n.paladin-film-print-modal table tr th,\n.paladin-film-print-modal table tr td {\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n word-wrap: break-word;\n word-break: break-all;\n}\n.paladin-film-print-modal table tr th button,\n.paladin-film-print-modal table tr td button {\n border: none;\n background: transparent;\n color: #3C7EFF;\n}\n.paladin-film-print-modal .print-modal-top {\n margin-bottom: 24px;\n margin-top: 5px;\n}\n.paladin-film-print-modal .print-modal-top button {\n background: #3C7EFF;\n}\n.paladin-film-print-modal .printer-config-add-title {\n color: #3C7EFF;\n margin-left: 30px;\n}\n.paladin-film-print-modal .printer-config-form {\n margin-top: 20px;\n}\n.paladin-film-print-modal .printer-config-form .paladin-ipt {\n color: #ccc;\n border: 1px solid rgba(255, 255, 255, 0.2);\n}\n.paladin-film-print-modal .printer-config-form .paladin-row {\n margin-bottom: 18px;\n}\n.paladin-film-print-modal .printer-config-form .paladin-col {\n padding-right: 20px;\n}\n.paladin-film-print-modal .printer-config-form .paladin-col-xs-2 {\n justify-content: center;\n align-items: end;\n}\n.paladin-film-print-modal .printer-config-form .printer-config-form-radio .paladin-ipt {\n width: 20px;\n}\n.paladin-film-print-modal .film-box {\n display: flex;\n align-items: center;\n}\n.paladin-film-print-modal .film-box span {\n display: flex;\n flex: none;\n width: 100px;\n}\n.paladin-film-print-modal .film-box .film-select {\n cursor: pointer;\n width: 200px;\n height: 40px;\n display: flex;\n position: relative;\n align-items: center;\n justify-content: center;\n background: #1f1f1f;\n border: 1px solid rgba(255, 255, 255, 0.2);\n}\n.paladin-film-print-modal .film-box button {\n border: none;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n background: #1f1f1f;\n color: #c0c0c0;\n font-size: 15px;\n}\n.paladin-film-print-modal .film-box svg {\n width: 20px;\n position: absolute;\n right: 5px;\n top: 0;\n}\n.paladin-film-print-modal .film-printer-info {\n margin-left: 100px;\n color: #A4A4A4;\n}\n.paladin-film-print-modal .film-printer-info p {\n margin-top: 15px;\n}\n.paladin-film-print-modal .paladin-menu-custom {\n width: 200px;\n background: #000000;\n color: #c0c0c0;\n padding: 0;\n margin: 0;\n}\n.paladin-film-print-modal .paladin-menu-custom li {\n text-align: center;\n list-style: none;\n border-bottom: 1px solid #4D4D4D;\n padding: 6px 0;\n cursor: pointer;\n}\n.paladin-film-print-modal .paladin-menu-custom li:last-child {\n border-bottom: none;\n}\n.paladin-film-print-modal .film-button-select {\n height: 36px;\n}\n.paladin-film-print-modal .film-button-select .paladin-col {\n justify-content: center;\n}\n.paladin-film-print-modal .film-button-select-item {\n cursor: pointer;\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n height: 36px;\n border: 1px solid #555555;\n border-right: none;\n}\n.paladin-film-print-modal .film-button-select-item:last-child {\n border-right: 1px solid #555555;\n}\n.paladin-film-print-modal .film-button-select-item-active {\n background: #3C7EFF;\n color: #fff;\n}\n.paladin-film-print-modal .print-modal-bottom {\n margin-top: 30px;\n text-align: right;\n}\n.paladin-film-print-modal .print-modal-bottom .paladin-default {\n background: #454545;\n border: 1px solid #707070;\n color: rgba(255, 255, 255, 0.9);\n}\n.paladin-film-print-modal .print-modal-bottom .paladin-primary {\n background: #3C7EFF;\n}\n";
|
|
65450
|
+
var css_248z$H = ".paladin-film-print-modal table {\n width: 100%;\n border-collapse: collapse;\n border-spacing: 0;\n border: 1px solid #525253;\n border-bottom: none;\n}\n.paladin-film-print-modal table svg {\n width: 20px;\n}\n.paladin-film-print-modal table tr {\n height: 54px;\n margin-left: 30px;\n border-bottom: 1px solid #525253;\n}\n.paladin-film-print-modal table tr .th-1 {\n width: 3%;\n}\n.paladin-film-print-modal table tr .th-2 {\n width: 18%;\n}\n.paladin-film-print-modal table tr .th-3 {\n width: 13%;\n}\n.paladin-film-print-modal table tr .th-4 {\n width: 19%;\n}\n.paladin-film-print-modal table tr .th-5 {\n width: 15%;\n}\n.paladin-film-print-modal table tr .th-6 {\n width: 12%;\n}\n.paladin-film-print-modal table tr .th-7 {\n width: 16%;\n}\n.paladin-film-print-modal table tr th {\n background: #404041;\n}\n.paladin-film-print-modal table tr th,\n.paladin-film-print-modal table tr td {\n text-align: left;\n font-weight: normal;\n font-size: 14px;\n word-wrap: break-word;\n word-break: break-all;\n}\n.paladin-film-print-modal table tr th button,\n.paladin-film-print-modal table tr td button {\n border: none;\n background: transparent;\n color: #3C7EFF;\n}\n.paladin-film-print-modal .print-modal-top {\n margin-bottom: 24px;\n margin-top: 5px;\n}\n.paladin-film-print-modal .print-modal-top button {\n background: #3C7EFF;\n}\n.paladin-film-print-modal .printer-config-add-title {\n color: #3C7EFF;\n margin-left: 30px;\n}\n.paladin-film-print-modal .printer-config-form {\n margin-top: 20px;\n}\n.paladin-film-print-modal .printer-config-form .paladin-ipt {\n color: #ccc;\n border: 1px solid rgba(255, 255, 255, 0.2);\n}\n.paladin-film-print-modal .printer-config-form .paladin-row {\n margin-bottom: 18px;\n}\n.paladin-film-print-modal .printer-config-form .paladin-col {\n padding-right: 20px;\n}\n.paladin-film-print-modal .printer-config-form .paladin-col-xs-2 {\n justify-content: center;\n align-items: end;\n}\n.paladin-film-print-modal .printer-config-form .printer-config-form-radio .paladin-ipt {\n width: 20px;\n}\n.paladin-film-print-modal .film-box {\n display: flex;\n align-items: center;\n}\n.paladin-film-print-modal .film-box span {\n display: flex;\n flex: none;\n width: 100px;\n}\n.paladin-film-print-modal .film-box .film-select {\n cursor: pointer;\n width: 200px;\n height: 40px;\n display: flex;\n position: relative;\n align-items: center;\n justify-content: center;\n background: #1f1f1f;\n border: 1px solid rgba(255, 255, 255, 0.2);\n}\n.paladin-film-print-modal .film-box button {\n border: none;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n background: #1f1f1f;\n color: #c0c0c0;\n font-size: 15px;\n}\n.paladin-film-print-modal .film-box svg {\n width: 20px;\n position: absolute;\n right: 5px;\n top: 0;\n}\n.paladin-film-print-modal .film-printer-info {\n margin-left: 100px;\n color: #A4A4A4;\n}\n.paladin-film-print-modal .film-printer-info p {\n margin-top: 15px;\n}\n.paladin-film-print-modal .paladin-menu-custom {\n width: 200px;\n background: #000000;\n color: #c0c0c0;\n padding: 0;\n margin: 0;\n}\n.paladin-film-print-modal .paladin-menu-custom li {\n text-align: center;\n list-style: none;\n border-bottom: 1px solid #4D4D4D;\n padding: 6px 0;\n cursor: pointer;\n}\n.paladin-film-print-modal .paladin-menu-custom li:last-child {\n border-bottom: none;\n}\n.paladin-film-print-modal .film-button-select {\n height: 36px;\n}\n.paladin-film-print-modal .film-button-select .paladin-col {\n justify-content: center;\n}\n.paladin-film-print-modal .film-button-select-item {\n cursor: pointer;\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n height: 36px;\n border: 1px solid #555555;\n border-right: none;\n}\n.paladin-film-print-modal .film-button-select-item:last-child {\n border-right: 1px solid #555555;\n}\n.paladin-film-print-modal .film-button-select-item-active {\n background: #3C7EFF;\n color: #fff;\n}\n.paladin-film-print-modal .print-modal-bottom {\n margin-top: 30px;\n text-align: right;\n}\n.paladin-film-print-modal .print-modal-bottom .paladin-default {\n background: #454545;\n border: 1px solid #707070;\n color: rgba(255, 255, 255, 0.9);\n}\n.paladin-film-print-modal .print-modal-bottom .paladin-primary {\n background: #3C7EFF;\n}\n";
|
|
65387
65451
|
styleInject$1(css_248z$H);
|
|
65388
65452
|
|
|
65453
|
+
function _extends$1y() { _extends$1y = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1y.apply(this, arguments); }
|
|
65454
|
+
|
|
65455
|
+
var _ref$1u = /*#__PURE__*/React__default.createElement("path", {
|
|
65456
|
+
d: "M29.839 10.107q0 .714-.5 1.214L13.982 26.678q-.5.5-1.214.5t-1.214-.5l-8.893-8.893q-.5-.5-.5-1.214t.5-1.214l2.429-2.429q.5-.5 1.214-.5t1.214.5l5.25 5.268L24.482 6.464q.5-.5 1.214-.5t1.214.5l2.429 2.429q.5.5.5 1.214z"
|
|
65457
|
+
});
|
|
65458
|
+
|
|
65459
|
+
const SvgOk = props => /*#__PURE__*/React__default.createElement("svg", _extends$1y({
|
|
65460
|
+
width: 32,
|
|
65461
|
+
height: 32,
|
|
65462
|
+
viewBox: "0 0 32 32",
|
|
65463
|
+
fill: "currentColor"
|
|
65464
|
+
}, props), _ref$1u);
|
|
65465
|
+
|
|
65389
65466
|
function ownKeys$Y(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; }
|
|
65390
65467
|
|
|
65391
65468
|
function _objectSpread$Y(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$Y(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -65427,9 +65504,30 @@ var FilmPrintModal = /*#__PURE__*/function (_Component) {
|
|
|
65427
65504
|
});
|
|
65428
65505
|
|
|
65429
65506
|
defineProperty(assertThisInitialized(_this), "handleRemoveData", function (data) {
|
|
65430
|
-
|
|
65507
|
+
Modal.create( /*#__PURE__*/React__default.createElement("div", {
|
|
65508
|
+
style: {
|
|
65509
|
+
marginBottom: '10px',
|
|
65510
|
+
color: '#ccc'
|
|
65511
|
+
}
|
|
65512
|
+
}, "\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u6253\u5370\u673A\u8BBE\u7F6E\uFF1F"), {
|
|
65513
|
+
wrapperClassName: 'paladin-film-print-modal-wrapper',
|
|
65514
|
+
style: {
|
|
65515
|
+
width: '350px',
|
|
65516
|
+
background: '#2A2A2B',
|
|
65517
|
+
overflowY: 'hidden'
|
|
65518
|
+
},
|
|
65519
|
+
maskClosable: false,
|
|
65520
|
+
title: '提示',
|
|
65521
|
+
okButtonProps: {
|
|
65522
|
+
type: 'primary'
|
|
65523
|
+
},
|
|
65524
|
+
cancelText: '取消',
|
|
65525
|
+
onOk: function onOk() {
|
|
65526
|
+
_this.props.onRemove && _this.props.onRemove(data);
|
|
65431
65527
|
|
|
65432
|
-
|
|
65528
|
+
_this.handleAddPrinter();
|
|
65529
|
+
}
|
|
65530
|
+
});
|
|
65433
65531
|
});
|
|
65434
65532
|
|
|
65435
65533
|
defineProperty(assertThisInitialized(_this), "setFormData", function (key, value) {
|
|
@@ -65538,7 +65636,7 @@ var FilmPrintModal = /*#__PURE__*/function (_Component) {
|
|
|
65538
65636
|
style: {
|
|
65539
65637
|
backgroundColor: item._id === formData._id ? '#212121' : '#2A2A2B'
|
|
65540
65638
|
}
|
|
65541
|
-
}, /*#__PURE__*/React__default.createElement("td", null), /*#__PURE__*/React__default.createElement("td", null, item.name), /*#__PURE__*/React__default.createElement("td", null, item.serverAE), /*#__PURE__*/React__default.createElement("td", null, item.ip), /*#__PURE__*/React__default.createElement("td", null, item.port), /*#__PURE__*/React__default.createElement("td", null, item._id === defaultPrinterId ?
|
|
65639
|
+
}, /*#__PURE__*/React__default.createElement("td", null), /*#__PURE__*/React__default.createElement("td", null, item.name), /*#__PURE__*/React__default.createElement("td", null, item.serverAE), /*#__PURE__*/React__default.createElement("td", null, item.ip), /*#__PURE__*/React__default.createElement("td", null, item.port), /*#__PURE__*/React__default.createElement("td", null, item._id === defaultPrinterId ? /*#__PURE__*/React__default.createElement(SvgOk, null) : ''), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
65542
65640
|
type: "primary",
|
|
65543
65641
|
size: "xs",
|
|
65544
65642
|
style: {
|
|
@@ -65631,19 +65729,6 @@ var FilmPrintModal = /*#__PURE__*/function (_Component) {
|
|
|
65631
65729
|
return FilmPrintModal;
|
|
65632
65730
|
}(React.Component);
|
|
65633
65731
|
|
|
65634
|
-
function _extends$1y() { _extends$1y = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1y.apply(this, arguments); }
|
|
65635
|
-
|
|
65636
|
-
var _ref$1u = /*#__PURE__*/React__default.createElement("path", {
|
|
65637
|
-
d: "M20.232 18.625q.554.536.25 1.232-.304.714-1.054.714h-6.821l3.589 8.5q.179.446 0 .875t-.607.625l-3.161 1.339q-.446.179-.875 0t-.625-.607l-3.411-8.071-5.571 5.571q-.339.339-.804.339-.214 0-.429-.089-.714-.304-.714-1.054V1.142q0-.75.714-1.054.214-.089.429-.089.482 0 .804.339z"
|
|
65638
|
-
});
|
|
65639
|
-
|
|
65640
|
-
const Svg545 = props => /*#__PURE__*/React__default.createElement("svg", _extends$1y({
|
|
65641
|
-
width: 23,
|
|
65642
|
-
height: 32,
|
|
65643
|
-
viewBox: "0 0 23 32",
|
|
65644
|
-
fill: "currentColor"
|
|
65645
|
-
}, props), _ref$1u);
|
|
65646
|
-
|
|
65647
65732
|
function _createSuper$1I(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1I(); 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); }; }
|
|
65648
65733
|
|
|
65649
65734
|
function _isNativeReflectConstruct$1I() { 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; } }
|
|
@@ -65664,10 +65749,10 @@ var FilmTool = /*#__PURE__*/function (_Component) {
|
|
|
65664
65749
|
};
|
|
65665
65750
|
_this.toolsMap = {
|
|
65666
65751
|
Select: {
|
|
65667
|
-
label: "
|
|
65752
|
+
label: "拖拽",
|
|
65668
65753
|
name: "Select",
|
|
65669
|
-
tooltip: "
|
|
65670
|
-
component: /*#__PURE__*/React__default.createElement(
|
|
65754
|
+
tooltip: "拖拽",
|
|
65755
|
+
component: /*#__PURE__*/React__default.createElement(SvgMove, null),
|
|
65671
65756
|
activeInRedux: true
|
|
65672
65757
|
},
|
|
65673
65758
|
Wwwc: {
|
|
@@ -65903,21 +65988,72 @@ var formatDicomInfo$1 = function formatDicomInfo(label, value) {
|
|
|
65903
65988
|
return formated ? "".concat(label, ": ").concat(formated) : '';
|
|
65904
65989
|
};
|
|
65905
65990
|
|
|
65906
|
-
function _createForOfIteratorHelper$
|
|
65991
|
+
function _createForOfIteratorHelper$f(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$h(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; } } }; }
|
|
65907
65992
|
|
|
65908
|
-
function _unsupportedIterableToArray$
|
|
65993
|
+
function _unsupportedIterableToArray$h(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$h(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$h(o, minLen); }
|
|
65909
65994
|
|
|
65910
|
-
function _arrayLikeToArray$
|
|
65995
|
+
function _arrayLikeToArray$h(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; }
|
|
65911
65996
|
|
|
65912
65997
|
function ownKeys$Z(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; }
|
|
65913
65998
|
|
|
65914
65999
|
function _objectSpread$Z(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$Z(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
65915
66000
|
var domId = "paladinFilmOutputMock";
|
|
66001
|
+
var devicePixelRatio$4 = getDevicePixelRatio();
|
|
65916
66002
|
var currentImageLoad = null;
|
|
65917
66003
|
var currentFilms = null;
|
|
65918
|
-
var dicomInfoFontSize = 27;
|
|
65919
|
-
var dicomInfoSpacing = 34;
|
|
65920
|
-
var devicePixelRatio$4
|
|
66004
|
+
var dicomInfoFontSize = 27 * devicePixelRatio$4;
|
|
66005
|
+
var dicomInfoSpacing = 34 * devicePixelRatio$4;
|
|
66006
|
+
var orientationMarkersFontSize = 25 * devicePixelRatio$4;
|
|
66007
|
+
var orientationMarkersLeft = 15;
|
|
66008
|
+
var orientationMarkersRight = 20;
|
|
66009
|
+
var orientationMarkersTop = 15;
|
|
66010
|
+
var orientationMarkersBottom = 30;
|
|
66011
|
+
var rulerOverlayFontSize = 20;
|
|
66012
|
+
var rulerOverlayMarginX = 40;
|
|
66013
|
+
var rulerOverlayTickMajor = 10;
|
|
66014
|
+
var rulerOverlayTickMinor = 7;
|
|
66015
|
+
var rulerOverlayTickPatch = 5;
|
|
66016
|
+
var rulerOverlayLineWidth = 2;
|
|
66017
|
+
var dicomInfoPaddingX = 10 * devicePixelRatio$4;
|
|
66018
|
+
var dicomInfoPaddingY = 30 * devicePixelRatio$4;
|
|
66019
|
+
|
|
66020
|
+
function calculateFontSize(width, height) {
|
|
66021
|
+
// 基准1
|
|
66022
|
+
var baseWidth1 = 4200;
|
|
66023
|
+
var baseHeight1 = 2550;
|
|
66024
|
+
var baseFontSize1 = 50; // 基准2
|
|
66025
|
+
|
|
66026
|
+
var baseWidth2 = 1050;
|
|
66027
|
+
var baseHeight2 = 1020;
|
|
66028
|
+
var baseFontSize2 = 27; // 计算基准1的面积和基准2的面积
|
|
66029
|
+
|
|
66030
|
+
var baseArea1 = baseWidth1 * baseHeight1;
|
|
66031
|
+
var baseArea2 = baseWidth2 * baseHeight2;
|
|
66032
|
+
var area = width * height;
|
|
66033
|
+
var fontSize = baseFontSize1 + (baseFontSize2 - baseFontSize1) * ((area - baseArea1) / (baseArea2 - baseArea1));
|
|
66034
|
+
return lodash$1.round(fontSize);
|
|
66035
|
+
}
|
|
66036
|
+
|
|
66037
|
+
function calcImageFontSize(width, height) {
|
|
66038
|
+
var size = calculateFontSize(width, height);
|
|
66039
|
+
var ratioX = lodash$1.round(width / 800); // 四角信息
|
|
66040
|
+
|
|
66041
|
+
dicomInfoFontSize = size * devicePixelRatio$4;
|
|
66042
|
+
dicomInfoSpacing = (size + 7) * devicePixelRatio$4;
|
|
66043
|
+
dicomInfoPaddingY = (size + 3) * devicePixelRatio$4; // 方位
|
|
66044
|
+
|
|
66045
|
+
orientationMarkersFontSize = (size - 2) * devicePixelRatio$4;
|
|
66046
|
+
orientationMarkersRight = size;
|
|
66047
|
+
orientationMarkersBottom = size;
|
|
66048
|
+
orientationMarkersLeft = size; // 标尺
|
|
66049
|
+
|
|
66050
|
+
rulerOverlayFontSize = size - 7;
|
|
66051
|
+
rulerOverlayMarginX = size * 3;
|
|
66052
|
+
rulerOverlayTickMajor = 10 * ratioX;
|
|
66053
|
+
rulerOverlayTickMinor = 7 * ratioX;
|
|
66054
|
+
rulerOverlayTickPatch = 6 * ratioX;
|
|
66055
|
+
rulerOverlayLineWidth = 2 + ratioX * 0.5;
|
|
66056
|
+
}
|
|
65921
66057
|
/**
|
|
65922
66058
|
* 1.根据打印的真实宽高,确定尺寸
|
|
65923
66059
|
* 2.获得films的虚拟画布图像数据
|
|
@@ -65926,6 +66062,7 @@ var devicePixelRatio$4 = getDevicePixelRatio();
|
|
|
65926
66062
|
* viewFilmItemWidth是可视化的画布dom的真实大小,需要和最终生成的尺寸做缩放得到真实的Viewport缩放、移动
|
|
65927
66063
|
*/
|
|
65928
66064
|
|
|
66065
|
+
|
|
65929
66066
|
var getFilmPrintImageData = /*#__PURE__*/function () {
|
|
65930
66067
|
var _ref = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(films, options) {
|
|
65931
66068
|
var sizeType, row, col, viewFilmItemWidth, filmSize, filmWidth, filmHeight, filmItemWidth, filmItemHeight, filmPrintOriginImageData, id, element, canvas, firstLoad, _iterator, _step, film, bitmap, mockDom, mergedCanvas, mergedCtx, i, item, x, y, imageData, pixelData;
|
|
@@ -65972,6 +66109,9 @@ var getFilmPrintImageData = /*#__PURE__*/function () {
|
|
|
65972
66109
|
element = document.getElementById(id);
|
|
65973
66110
|
|
|
65974
66111
|
if (!element) {
|
|
66112
|
+
// 先计算当前尺寸、布局下字体大小
|
|
66113
|
+
calcImageFontSize(filmItemWidth, filmItemHeight); // 创建element
|
|
66114
|
+
|
|
65975
66115
|
element = document.createElement("div");
|
|
65976
66116
|
element.setAttribute("id", id);
|
|
65977
66117
|
document.body.appendChild(element);
|
|
@@ -65985,17 +66125,22 @@ var getFilmPrintImageData = /*#__PURE__*/function () {
|
|
|
65985
66125
|
cornerstone.enable(element, {}); // 工具注册
|
|
65986
66126
|
|
|
65987
66127
|
cornerstoneTools.addToolForElement(element, cornerstoneTools.OrientationMarkersTool, {
|
|
65988
|
-
color: "#
|
|
65989
|
-
fontSize:
|
|
65990
|
-
paddingTop:
|
|
65991
|
-
paddingLeft:
|
|
65992
|
-
paddingRight:
|
|
65993
|
-
paddingBottom:
|
|
66128
|
+
color: "#c0c0c0",
|
|
66129
|
+
fontSize: orientationMarkersFontSize,
|
|
66130
|
+
paddingTop: orientationMarkersTop * devicePixelRatio$4,
|
|
66131
|
+
paddingLeft: orientationMarkersLeft * devicePixelRatio$4,
|
|
66132
|
+
paddingRight: orientationMarkersRight * devicePixelRatio$4,
|
|
66133
|
+
paddingBottom: orientationMarkersBottom * devicePixelRatio$4
|
|
65994
66134
|
});
|
|
65995
66135
|
cornerstoneTools.addToolForElement(element, cornerstoneTools.RulerOverlayTool, {
|
|
65996
|
-
color: "#
|
|
65997
|
-
strokeColor: "#
|
|
65998
|
-
fontSize:
|
|
66136
|
+
color: "#c0c0c0",
|
|
66137
|
+
strokeColor: "#c0c0c0",
|
|
66138
|
+
fontSize: rulerOverlayFontSize,
|
|
66139
|
+
marginX: rulerOverlayMarginX,
|
|
66140
|
+
tickMajor: rulerOverlayTickMajor,
|
|
66141
|
+
tickMinor: rulerOverlayTickMinor,
|
|
66142
|
+
tickPatch: rulerOverlayTickPatch,
|
|
66143
|
+
lineWidth: rulerOverlayLineWidth
|
|
65999
66144
|
});
|
|
66000
66145
|
element.addEventListener(cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
|
|
66001
66146
|
} // 原始数据获取
|
|
@@ -66011,7 +66156,7 @@ var getFilmPrintImageData = /*#__PURE__*/function () {
|
|
|
66011
66156
|
widthInView: viewFilmItemWidth
|
|
66012
66157
|
});
|
|
66013
66158
|
});
|
|
66014
|
-
_iterator = _createForOfIteratorHelper$
|
|
66159
|
+
_iterator = _createForOfIteratorHelper$f(films);
|
|
66015
66160
|
_context.prev = 20;
|
|
66016
66161
|
|
|
66017
66162
|
_iterator.s();
|
|
@@ -66250,31 +66395,30 @@ var getEmptyImageBitmap = function getEmptyImageBitmap(width, height) {
|
|
|
66250
66395
|
|
|
66251
66396
|
var addDicomInfoOnCanvas = /*#__PURE__*/function () {
|
|
66252
66397
|
var _ref4 = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(enableElement) {
|
|
66253
|
-
var canvas, image, viewport,
|
|
66398
|
+
var canvas, image, viewport, ctx, dicom, width, height, stackImageInfo;
|
|
66254
66399
|
return regenerator.wrap(function _callee4$(_context4) {
|
|
66255
66400
|
while (1) {
|
|
66256
66401
|
switch (_context4.prev = _context4.next) {
|
|
66257
66402
|
case 0:
|
|
66258
66403
|
canvas = enableElement.canvas, image = enableElement.image, viewport = enableElement.viewport;
|
|
66259
|
-
devicePixelRatio = getDevicePixelRatio();
|
|
66260
66404
|
ctx = canvas.getContext('2d');
|
|
66261
|
-
ctx.fillStyle = '#
|
|
66405
|
+
ctx.fillStyle = '#c0c0c0';
|
|
66262
66406
|
ctx.strokeStyle = '#000';
|
|
66263
|
-
ctx.font = dicomInfoFontSize
|
|
66264
|
-
_context4.next =
|
|
66407
|
+
ctx.font = dicomInfoFontSize + 'px Arial';
|
|
66408
|
+
_context4.next = 7;
|
|
66265
66409
|
return loadAndCacheDicom(image.imageId);
|
|
66266
66410
|
|
|
66267
|
-
case
|
|
66411
|
+
case 7:
|
|
66268
66412
|
dicom = _context4.sent;
|
|
66269
66413
|
|
|
66270
66414
|
if (dicom) {
|
|
66271
|
-
_context4.next =
|
|
66415
|
+
_context4.next = 10;
|
|
66272
66416
|
break;
|
|
66273
66417
|
}
|
|
66274
66418
|
|
|
66275
66419
|
return _context4.abrupt("return");
|
|
66276
66420
|
|
|
66277
|
-
case
|
|
66421
|
+
case 10:
|
|
66278
66422
|
width = canvas.width;
|
|
66279
66423
|
height = canvas.height;
|
|
66280
66424
|
stackImageInfo = currentFilms[image.imageId] || {};
|
|
@@ -66286,7 +66430,7 @@ var addDicomInfoOnCanvas = /*#__PURE__*/function () {
|
|
|
66286
66430
|
drawRightBottom(dicom, ctx, width, height, viewport, image);
|
|
66287
66431
|
ctx.textAlign = 'left';
|
|
66288
66432
|
|
|
66289
|
-
case
|
|
66433
|
+
case 20:
|
|
66290
66434
|
case "end":
|
|
66291
66435
|
return _context4.stop();
|
|
66292
66436
|
}
|
|
@@ -66310,8 +66454,8 @@ var drawLeftTop = function drawLeftTop(dicom, ctx) {
|
|
|
66310
66454
|
var patientID = dicom.PatientID.toString();
|
|
66311
66455
|
var bodyPartExamined = dicom.BodyPartExamined.toString();
|
|
66312
66456
|
var laterality = dicom.Laterality.toString() || dicom.ImageLaterality.toString() || '';
|
|
66313
|
-
var contentX =
|
|
66314
|
-
var contentY =
|
|
66457
|
+
var contentX = dicomInfoPaddingX;
|
|
66458
|
+
var contentY = dicomInfoPaddingY;
|
|
66315
66459
|
var spacing = dicomInfoSpacing;
|
|
66316
66460
|
|
|
66317
66461
|
if (institutionName) {
|
|
@@ -66320,11 +66464,11 @@ var drawLeftTop = function drawLeftTop(dicom, ctx) {
|
|
|
66320
66464
|
}
|
|
66321
66465
|
|
|
66322
66466
|
if (manufacturer || manufacturerModelName) {
|
|
66323
|
-
ctx.fillText("".concat(manufacturer, " ").concat(manufacturerModelName), contentX, contentY);
|
|
66467
|
+
ctx.fillText("".concat(manufacturer || '', " ").concat(manufacturerModelName || ''), contentX, contentY);
|
|
66324
66468
|
contentY += spacing;
|
|
66325
66469
|
}
|
|
66326
66470
|
|
|
66327
|
-
ctx.fillText("".concat(patientName, "/").concat(patientSex, "/").concat(patientAge), contentX, contentY);
|
|
66471
|
+
ctx.fillText("".concat(patientName || '', "/").concat(patientSex || '', "/").concat(patientAge || ''), contentX, contentY);
|
|
66328
66472
|
contentY += spacing;
|
|
66329
66473
|
|
|
66330
66474
|
if (patientID) {
|
|
@@ -66362,8 +66506,8 @@ var drawLeftBottom = function drawLeftBottom(dicom, ctx, height) {
|
|
|
66362
66506
|
var actualSpacingBetweenSlices = getActualSpacingBetweenSlices$1(sliceThickness, spacingBetweenSlices);
|
|
66363
66507
|
var thk = actualSpacingBetweenSlices || sliceThickness ? "THK: ".concat(sliceThickness && parseFloat(sliceThickness).toFixed(1), "/").concat(actualSpacingBetweenSlices) : ''; // 从下往上画
|
|
66364
66508
|
|
|
66365
|
-
var contentX =
|
|
66366
|
-
var contentY = height -
|
|
66509
|
+
var contentX = dicomInfoPaddingX;
|
|
66510
|
+
var contentY = height - dicomInfoPaddingX;
|
|
66367
66511
|
var spacing = dicomInfoSpacing;
|
|
66368
66512
|
|
|
66369
66513
|
if (seriesDescription && seriesDescription !== protocolName) {
|
|
@@ -66430,13 +66574,13 @@ var drawLeftBottom = function drawLeftBottom(dicom, ctx, height) {
|
|
|
66430
66574
|
var drawRightTop = function drawRightTop(dicom, ctx, width, stack) {
|
|
66431
66575
|
var studyDateTime = getStudyDateTime$1(dicom);
|
|
66432
66576
|
var instanceCount = stack.instanceCount || '';
|
|
66433
|
-
var instanceNumber = stack.instanceNumber || '';
|
|
66577
|
+
var instanceNumber = stack.instanceNumber.toString() || '';
|
|
66434
66578
|
var seriesCount = stack.seriesCount || '';
|
|
66435
|
-
var seriesNumber = stack.seriesNumber || '';
|
|
66579
|
+
var seriesNumber = stack.seriesNumber.toString() || '';
|
|
66436
66580
|
var compression = getCompression$1(dicom);
|
|
66437
66581
|
var inPlanePhaseEncodingDirection = dicom.InPlanePhaseEncodingDirection.toString();
|
|
66438
|
-
var contentX = width -
|
|
66439
|
-
var contentY =
|
|
66582
|
+
var contentX = width - dicomInfoPaddingX;
|
|
66583
|
+
var contentY = dicomInfoPaddingY;
|
|
66440
66584
|
var spacing = dicomInfoSpacing;
|
|
66441
66585
|
|
|
66442
66586
|
if (studyDateTime) {
|
|
@@ -66470,8 +66614,8 @@ var drawRightBottom = function drawRightBottom(dicom, ctx, width, height, viewpo
|
|
|
66470
66614
|
var windowCenter = parseFloat(viewport.voi.windowCenter) || 0;
|
|
66471
66615
|
var acquisitionMatrix = dicom.AcquisitionMatrix.value;
|
|
66472
66616
|
var sliceLocation = dicom.SliceLocation.value && parseFloat(dicom.SliceLocation.value).toFixed(2);
|
|
66473
|
-
var contentX = width -
|
|
66474
|
-
var contentY = height -
|
|
66617
|
+
var contentX = width - dicomInfoPaddingX;
|
|
66618
|
+
var contentY = height - dicomInfoPaddingX;
|
|
66475
66619
|
var spacing = dicomInfoSpacing;
|
|
66476
66620
|
|
|
66477
66621
|
if (sliceLocation || sliceLocation === 0) {
|
|
@@ -66585,7 +66729,32 @@ var FilmPrintModal$1 = /*#__PURE__*/function (_Component) {
|
|
|
66585
66729
|
filmPageType: filmPageType
|
|
66586
66730
|
});
|
|
66587
66731
|
|
|
66588
|
-
|
|
66732
|
+
if (filmPageType === 'ALL_PAGE') {
|
|
66733
|
+
Modal.create( /*#__PURE__*/React__default.createElement("div", {
|
|
66734
|
+
style: {
|
|
66735
|
+
marginBottom: '10px',
|
|
66736
|
+
color: '#ccc'
|
|
66737
|
+
}
|
|
66738
|
+
}, "\u662F\u5426\u786E\u8BA4\u6253\u5370\u6240\u6709\u9875\uFF1F"), {
|
|
66739
|
+
wrapperClassName: 'paladin-film-print-modal-wrapper',
|
|
66740
|
+
style: {
|
|
66741
|
+
width: '350px',
|
|
66742
|
+
background: '#2A2A2B',
|
|
66743
|
+
overflowY: 'hidden'
|
|
66744
|
+
},
|
|
66745
|
+
maskClosable: false,
|
|
66746
|
+
title: '提示',
|
|
66747
|
+
okButtonProps: {
|
|
66748
|
+
type: 'primary'
|
|
66749
|
+
},
|
|
66750
|
+
cancelText: '取消',
|
|
66751
|
+
onOk: function onOk() {
|
|
66752
|
+
onFilmPrint(printOptions);
|
|
66753
|
+
}
|
|
66754
|
+
});
|
|
66755
|
+
} else {
|
|
66756
|
+
onFilmPrint(printOptions);
|
|
66757
|
+
}
|
|
66589
66758
|
});
|
|
66590
66759
|
|
|
66591
66760
|
var _currentPrinter;
|
|
@@ -66720,6 +66889,12 @@ var FilmPrintModal$1 = /*#__PURE__*/function (_Component) {
|
|
|
66720
66889
|
return FilmPrintModal;
|
|
66721
66890
|
}(React.Component);
|
|
66722
66891
|
|
|
66892
|
+
function _createForOfIteratorHelper$g(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$i(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; } } }; }
|
|
66893
|
+
|
|
66894
|
+
function _unsupportedIterableToArray$i(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$i(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen); }
|
|
66895
|
+
|
|
66896
|
+
function _arrayLikeToArray$i(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; }
|
|
66897
|
+
|
|
66723
66898
|
function ownKeys$$(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; }
|
|
66724
66899
|
|
|
66725
66900
|
function _objectSpread$$(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$$(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$$(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
@@ -66978,6 +67153,29 @@ var mergeProps$v = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
66978
67153
|
}(),
|
|
66979
67154
|
onSelectSize: function onSelectSize(value) {
|
|
66980
67155
|
propsFromDispatch.setFilmSizeType(value.key);
|
|
67156
|
+
setTimeout(function () {
|
|
67157
|
+
try {
|
|
67158
|
+
var layoutElements = lodash$1.map(Array(propsFromState.filmLayoutCol * propsFromState.filmLayoutRow), function (v, n) {
|
|
67159
|
+
return getFilmElement(n);
|
|
67160
|
+
});
|
|
67161
|
+
|
|
67162
|
+
var _iterator = _createForOfIteratorHelper$g(layoutElements),
|
|
67163
|
+
_step;
|
|
67164
|
+
|
|
67165
|
+
try {
|
|
67166
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
67167
|
+
var element = _step.value;
|
|
67168
|
+
cornerstone.resize(element, true);
|
|
67169
|
+
}
|
|
67170
|
+
} catch (err) {
|
|
67171
|
+
_iterator.e(err);
|
|
67172
|
+
} finally {
|
|
67173
|
+
_iterator.f();
|
|
67174
|
+
}
|
|
67175
|
+
} catch (e) {
|
|
67176
|
+
console.log('ignore element not enabled event');
|
|
67177
|
+
}
|
|
67178
|
+
});
|
|
66981
67179
|
},
|
|
66982
67180
|
reset: function reset() {
|
|
66983
67181
|
if (propsFromState.filmActiveIndex >= 0) {
|
|
@@ -66986,7 +67184,28 @@ var mergeProps$v = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
66986
67184
|
}
|
|
66987
67185
|
},
|
|
66988
67186
|
handleClearFilms: function handleClearFilms() {
|
|
66989
|
-
|
|
67187
|
+
Modal.create( /*#__PURE__*/React__default.createElement("div", {
|
|
67188
|
+
style: {
|
|
67189
|
+
marginBottom: '10px',
|
|
67190
|
+
color: '#ccc'
|
|
67191
|
+
}
|
|
67192
|
+
}, "\u662F\u5426\u786E\u8BA4\u5220\u9664\u5168\u90E8\u80F6\u7247\uFF1F"), {
|
|
67193
|
+
wrapperClassName: 'paladin-film-print-modal-wrapper',
|
|
67194
|
+
style: {
|
|
67195
|
+
width: '350px',
|
|
67196
|
+
background: '#2A2A2B',
|
|
67197
|
+
overflowY: 'hidden'
|
|
67198
|
+
},
|
|
67199
|
+
maskClosable: false,
|
|
67200
|
+
title: '提示',
|
|
67201
|
+
okButtonProps: {
|
|
67202
|
+
type: 'primary'
|
|
67203
|
+
},
|
|
67204
|
+
cancelText: '取消',
|
|
67205
|
+
onOk: function onOk() {
|
|
67206
|
+
propsFromDispatch.clearFilms();
|
|
67207
|
+
}
|
|
67208
|
+
});
|
|
66990
67209
|
}
|
|
66991
67210
|
});
|
|
66992
67211
|
};
|
|
@@ -67110,6 +67329,9 @@ var FilmViewport = /*#__PURE__*/function (_Component) {
|
|
|
67110
67329
|
cornerstone.displayImage(_this.element, image);
|
|
67111
67330
|
|
|
67112
67331
|
if (!nextStack) {
|
|
67332
|
+
cornerstoneTools.setToolActiveForElement(_this.element, 'OrientationMarkers');
|
|
67333
|
+
cornerstoneTools.setToolActiveForElement(_this.element, 'RulerOverlay');
|
|
67334
|
+
|
|
67113
67335
|
_this.setActiveTool();
|
|
67114
67336
|
}
|
|
67115
67337
|
}
|
|
@@ -67276,7 +67498,8 @@ var FilmViewport = /*#__PURE__*/function (_Component) {
|
|
|
67276
67498
|
loading = _this$state.loading;
|
|
67277
67499
|
var _this$props = this.props,
|
|
67278
67500
|
index = _this$props.index,
|
|
67279
|
-
onClick = _this$props.onClick
|
|
67501
|
+
onClick = _this$props.onClick,
|
|
67502
|
+
overlayFontSize = _this$props.overlayFontSize;
|
|
67280
67503
|
var imageId = stack && stack.imageIds[0];
|
|
67281
67504
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
67282
67505
|
className: "paladin-film-viewport-wrapper"
|
|
@@ -67300,7 +67523,8 @@ var FilmViewport = /*#__PURE__*/function (_Component) {
|
|
|
67300
67523
|
}, "1"), /*#__PURE__*/React__default.createElement(ViewportOverlay, {
|
|
67301
67524
|
viewport: viewport,
|
|
67302
67525
|
imageId: imageId,
|
|
67303
|
-
stack: stack
|
|
67526
|
+
stack: stack,
|
|
67527
|
+
fontSize: overlayFontSize
|
|
67304
67528
|
})));
|
|
67305
67529
|
}
|
|
67306
67530
|
}]);
|
|
@@ -67415,7 +67639,8 @@ var FilmView = /*#__PURE__*/function (_Component) {
|
|
|
67415
67639
|
|
|
67416
67640
|
_this.state = {
|
|
67417
67641
|
filmViewWidth: 0,
|
|
67418
|
-
filmViewHeight: 0
|
|
67642
|
+
filmViewHeight: 0,
|
|
67643
|
+
overlayFontSize: 12
|
|
67419
67644
|
};
|
|
67420
67645
|
_this.filmViewRef = null;
|
|
67421
67646
|
return _this;
|
|
@@ -67432,12 +67657,19 @@ var FilmView = /*#__PURE__*/function (_Component) {
|
|
|
67432
67657
|
if (prevProps.filmSizeType !== this.props.filmSizeType) {
|
|
67433
67658
|
this.calcViewSize();
|
|
67434
67659
|
}
|
|
67660
|
+
|
|
67661
|
+
if (prevProps.filmLayoutRow !== this.props.filmLayoutRow || prevProps.filmLayoutCol !== this.props.filmLayoutCol) {
|
|
67662
|
+
this.calcViewSize();
|
|
67663
|
+
}
|
|
67435
67664
|
} // 计算复合胶片尺寸的宽高
|
|
67436
67665
|
|
|
67437
67666
|
}, {
|
|
67438
67667
|
key: "calcViewSize",
|
|
67439
67668
|
value: function calcViewSize() {
|
|
67440
|
-
var
|
|
67669
|
+
var _this$props3 = this.props,
|
|
67670
|
+
filmSizeType = _this$props3.filmSizeType,
|
|
67671
|
+
row = _this$props3.filmLayoutRow,
|
|
67672
|
+
col = _this$props3.filmLayoutCol;
|
|
67441
67673
|
var headerHeight = 40;
|
|
67442
67674
|
var verticalPadding = 40;
|
|
67443
67675
|
var verticalHeight = headerHeight + verticalPadding;
|
|
@@ -67452,11 +67684,41 @@ var FilmView = /*#__PURE__*/function (_Component) {
|
|
|
67452
67684
|
} else {
|
|
67453
67685
|
filmViewWidth = clientWidth * 0.8;
|
|
67454
67686
|
filmViewHeight = lodash$1.round(filmViewWidth * _size.height / _size.width);
|
|
67687
|
+
} // 四角信息字体大小
|
|
67688
|
+
|
|
67689
|
+
|
|
67690
|
+
var _overlayFontSize = 12;
|
|
67691
|
+
|
|
67692
|
+
var filmViewWidthItem = lodash$1.round(filmViewWidth / col);
|
|
67693
|
+
|
|
67694
|
+
var filmViewHeightItem = lodash$1.round(filmViewHeight / row);
|
|
67695
|
+
|
|
67696
|
+
var baseLength = Math.min(filmViewWidthItem, filmViewHeightItem);
|
|
67697
|
+
|
|
67698
|
+
if (baseLength > 200) {
|
|
67699
|
+
_overlayFontSize = 14;
|
|
67700
|
+
}
|
|
67701
|
+
|
|
67702
|
+
if (baseLength > 300) {
|
|
67703
|
+
_overlayFontSize = 15;
|
|
67704
|
+
}
|
|
67705
|
+
|
|
67706
|
+
if (baseLength > 400) {
|
|
67707
|
+
_overlayFontSize = 17;
|
|
67708
|
+
}
|
|
67709
|
+
|
|
67710
|
+
if (baseLength > 500) {
|
|
67711
|
+
_overlayFontSize = 19;
|
|
67712
|
+
}
|
|
67713
|
+
|
|
67714
|
+
if (baseLength > 600) {
|
|
67715
|
+
_overlayFontSize = 21;
|
|
67455
67716
|
}
|
|
67456
67717
|
|
|
67457
67718
|
this.setState({
|
|
67458
67719
|
filmViewWidth: filmViewWidth,
|
|
67459
|
-
filmViewHeight: filmViewHeight
|
|
67720
|
+
filmViewHeight: filmViewHeight,
|
|
67721
|
+
overlayFontSize: _overlayFontSize
|
|
67460
67722
|
});
|
|
67461
67723
|
}
|
|
67462
67724
|
}, {
|
|
@@ -67464,18 +67726,19 @@ var FilmView = /*#__PURE__*/function (_Component) {
|
|
|
67464
67726
|
value: function render() {
|
|
67465
67727
|
var _this2 = this;
|
|
67466
67728
|
|
|
67467
|
-
var _this$
|
|
67468
|
-
films = _this$
|
|
67469
|
-
row = _this$
|
|
67470
|
-
col = _this$
|
|
67471
|
-
handleOnClickViewport = _this$
|
|
67472
|
-
filmActiveIndex = _this$
|
|
67473
|
-
_onViewportSave = _this$
|
|
67474
|
-
filmCurrentPage = _this$
|
|
67475
|
-
filmActiveTool = _this$
|
|
67729
|
+
var _this$props4 = this.props,
|
|
67730
|
+
films = _this$props4.films,
|
|
67731
|
+
row = _this$props4.filmLayoutRow,
|
|
67732
|
+
col = _this$props4.filmLayoutCol,
|
|
67733
|
+
handleOnClickViewport = _this$props4.handleOnClickViewport,
|
|
67734
|
+
filmActiveIndex = _this$props4.filmActiveIndex,
|
|
67735
|
+
_onViewportSave = _this$props4.onViewportSave,
|
|
67736
|
+
filmCurrentPage = _this$props4.filmCurrentPage,
|
|
67737
|
+
filmActiveTool = _this$props4.filmActiveTool;
|
|
67476
67738
|
var _this$state = this.state,
|
|
67477
67739
|
filmViewWidth = _this$state.filmViewWidth,
|
|
67478
|
-
filmViewHeight = _this$state.filmViewHeight
|
|
67740
|
+
filmViewHeight = _this$state.filmViewHeight,
|
|
67741
|
+
overlayFontSize = _this$state.overlayFontSize;
|
|
67479
67742
|
|
|
67480
67743
|
var totalPage = lodash$1.ceil(films.length / (row * col));
|
|
67481
67744
|
|
|
@@ -67553,7 +67816,8 @@ var FilmView = /*#__PURE__*/function (_Component) {
|
|
|
67553
67816
|
active: filmActiveIndex === index,
|
|
67554
67817
|
onViewportSave: function onViewportSave(vp) {
|
|
67555
67818
|
_onViewportSave && _onViewportSave(realIndex, vp);
|
|
67556
|
-
}
|
|
67819
|
+
},
|
|
67820
|
+
overlayFontSize: overlayFontSize
|
|
67557
67821
|
}));
|
|
67558
67822
|
}));
|
|
67559
67823
|
})));
|
|
@@ -67613,9 +67877,7 @@ var mergeProps$w = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
67613
67877
|
propsFromDispatch.removeFilm(filmRealIndex);
|
|
67614
67878
|
},
|
|
67615
67879
|
handleOnClickViewport: function handleOnClickViewport(index) {
|
|
67616
|
-
|
|
67617
|
-
propsFromDispatch.setFilmActiveIndex(index);
|
|
67618
|
-
}
|
|
67880
|
+
propsFromDispatch.setFilmActiveIndex(index);
|
|
67619
67881
|
},
|
|
67620
67882
|
onViewportSave: function onViewportSave(index, vp) {
|
|
67621
67883
|
propsFromDispatch.setFilmViewport(index, vp);
|
|
@@ -67632,11 +67894,11 @@ var ConnectedFilmView = reactRedux.connect(mapStateToProps$y, {
|
|
|
67632
67894
|
setFilmCurrentPage: setFilmCurrentPage
|
|
67633
67895
|
}, mergeProps$w)(FilmView);
|
|
67634
67896
|
|
|
67635
|
-
function _createForOfIteratorHelper$
|
|
67897
|
+
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; } } }; }
|
|
67636
67898
|
|
|
67637
|
-
function _unsupportedIterableToArray$
|
|
67899
|
+
function _unsupportedIterableToArray$j(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$j(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$j(o, minLen); }
|
|
67638
67900
|
|
|
67639
|
-
function _arrayLikeToArray$
|
|
67901
|
+
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; }
|
|
67640
67902
|
|
|
67641
67903
|
function _createSuper$1M(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1M(); 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); }; }
|
|
67642
67904
|
|
|
@@ -67869,7 +68131,7 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
67869
68131
|
return getElement(n);
|
|
67870
68132
|
});
|
|
67871
68133
|
|
|
67872
|
-
var _iterator = _createForOfIteratorHelper$
|
|
68134
|
+
var _iterator = _createForOfIteratorHelper$h(layoutElements),
|
|
67873
68135
|
_step;
|
|
67874
68136
|
|
|
67875
68137
|
try {
|
|
@@ -67973,7 +68235,7 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
67973
68235
|
cornerstoneTools.globalImageIdSpecificToolStateManager.restoreToolState(value.toolState);
|
|
67974
68236
|
}
|
|
67975
68237
|
|
|
67976
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
68238
|
+
var _iterator2 = _createForOfIteratorHelper$h(elements),
|
|
67977
68239
|
_step2;
|
|
67978
68240
|
|
|
67979
68241
|
try {
|
|
@@ -68054,7 +68316,7 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
68054
68316
|
return getElement(n);
|
|
68055
68317
|
});
|
|
68056
68318
|
|
|
68057
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
68319
|
+
var _iterator3 = _createForOfIteratorHelper$h(layoutElements),
|
|
68058
68320
|
_step3;
|
|
68059
68321
|
|
|
68060
68322
|
try {
|
|
@@ -68127,7 +68389,7 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
68127
68389
|
return getElement(n);
|
|
68128
68390
|
});
|
|
68129
68391
|
|
|
68130
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
68392
|
+
var _iterator4 = _createForOfIteratorHelper$h(elements),
|
|
68131
68393
|
_step4;
|
|
68132
68394
|
|
|
68133
68395
|
try {
|
|
@@ -68310,11 +68572,11 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
68310
68572
|
return DicomView;
|
|
68311
68573
|
}(React.Component);
|
|
68312
68574
|
|
|
68313
|
-
function _createForOfIteratorHelper$
|
|
68575
|
+
function _createForOfIteratorHelper$i(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$k(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; } } }; }
|
|
68314
68576
|
|
|
68315
|
-
function _unsupportedIterableToArray$
|
|
68577
|
+
function _unsupportedIterableToArray$k(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$k(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$k(o, minLen); }
|
|
68316
68578
|
|
|
68317
|
-
function _arrayLikeToArray$
|
|
68579
|
+
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; }
|
|
68318
68580
|
|
|
68319
68581
|
function ownKeys$11(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; }
|
|
68320
68582
|
|
|
@@ -68948,7 +69210,7 @@ var mergeProps$x = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
68948
69210
|
return getElement(n);
|
|
68949
69211
|
});
|
|
68950
69212
|
|
|
68951
|
-
var _iterator = _createForOfIteratorHelper$
|
|
69213
|
+
var _iterator = _createForOfIteratorHelper$i(layoutElements),
|
|
68952
69214
|
_step;
|
|
68953
69215
|
|
|
68954
69216
|
try {
|