hellfire 0.17.3 → 0.17.4
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 +34 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.17.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.3...v0.17.4) (2021-12-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.17.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.2...v0.17.3) (2021-12-15)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -44473,7 +44473,8 @@ var DicomTool = /*#__PURE__*/function (_Component) {
|
|
|
44473
44473
|
VR = _this$props.VR,
|
|
44474
44474
|
VRCenterPointShow = _this$props.VRCenterPointShow,
|
|
44475
44475
|
VRModeText = _this$props.VRModeText,
|
|
44476
|
-
isMobile = _this$props.isMobile
|
|
44476
|
+
isMobile = _this$props.isMobile,
|
|
44477
|
+
windowLayoutType = _this$props.windowLayoutType;
|
|
44477
44478
|
|
|
44478
44479
|
if (VR) {
|
|
44479
44480
|
if (this.toolsMap) {
|
|
@@ -44502,9 +44503,12 @@ var DicomTool = /*#__PURE__*/function (_Component) {
|
|
|
44502
44503
|
|
|
44503
44504
|
var FlattenMode = DicomToolFlattenMode;
|
|
44504
44505
|
|
|
44505
|
-
if (
|
|
44506
|
+
if (windowLayoutType) {
|
|
44506
44507
|
// 竖屏
|
|
44507
|
-
FlattenMode = DicomToolFlattenMode$1;
|
|
44508
|
+
if (windowLayoutType === 'vertical') FlattenMode = DicomToolFlattenMode$1;
|
|
44509
|
+
} else {
|
|
44510
|
+
// 竖屏
|
|
44511
|
+
if (width < height) FlattenMode = DicomToolFlattenMode$1;
|
|
44508
44512
|
}
|
|
44509
44513
|
|
|
44510
44514
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -47693,6 +47697,7 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
47693
47697
|
return;
|
|
47694
47698
|
}
|
|
47695
47699
|
|
|
47700
|
+
_this.props.onResizeEmit && _this.props.onResizeEmit();
|
|
47696
47701
|
cornerstone.resize(_this.element, true);
|
|
47697
47702
|
});
|
|
47698
47703
|
|
|
@@ -49304,7 +49309,8 @@ var DicomLayout = /*#__PURE__*/function (_Component) {
|
|
|
49304
49309
|
onViewportMouseDown: _this2.onViewportMouseDown,
|
|
49305
49310
|
onCustomScroll: _this2.onCustomScroll,
|
|
49306
49311
|
onDrop: _this2.props.onDrop,
|
|
49307
|
-
showAIResult: _this2.props.showAIResult
|
|
49312
|
+
showAIResult: _this2.props.showAIResult,
|
|
49313
|
+
onResizeEmit: _this2.props.onResizeEmit
|
|
49308
49314
|
});
|
|
49309
49315
|
}));
|
|
49310
49316
|
})), showVerticalScroll && /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -52100,12 +52106,16 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
52100
52106
|
operateCentesisPath: this.props.operateCentesisPath,
|
|
52101
52107
|
helpLink: this.props.helpLink,
|
|
52102
52108
|
changeWindowSet: this.props.changeWindowSet,
|
|
52103
|
-
study: this.state.study
|
|
52109
|
+
study: this.state.study,
|
|
52110
|
+
windowLayoutType: this.props.windowLayoutType
|
|
52104
52111
|
}));
|
|
52105
52112
|
var DicomLayout = /*#__PURE__*/React__default.createElement(DicomLayoutContainerWrap, null, viewMode === '2D' && (this.props.mode === 'seriesMode' ? /*#__PURE__*/React__default.createElement(_default$14, {
|
|
52106
52113
|
series: this.props.series,
|
|
52107
|
-
showAIResult: this.props.showAIResult
|
|
52108
|
-
|
|
52114
|
+
showAIResult: this.props.showAIResult,
|
|
52115
|
+
onResizeEmit: this.props.onResizeEmit
|
|
52116
|
+
}) : /*#__PURE__*/React__default.createElement(_default$15, {
|
|
52117
|
+
onResizeEmit: this.props.onResizeEmit
|
|
52118
|
+
})), viewMode === 'MPR' && /*#__PURE__*/React__default.createElement(_default$17, null), viewMode === 'VR' && /*#__PURE__*/React__default.createElement(_default$18, null), viewMode === 'Surgery' && /*#__PURE__*/React__default.createElement(_default$16, null));
|
|
52109
52119
|
var DicomThumbnail = /*#__PURE__*/React__default.createElement("div", {
|
|
52110
52120
|
className: "paladin-dicomView-dicomThumbnailWrapper"
|
|
52111
52121
|
}, /*#__PURE__*/React__default.createElement(_default$10, {
|
|
@@ -52123,21 +52133,26 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
52123
52133
|
}, DicomTool, /*#__PURE__*/React__default.createElement("div", {
|
|
52124
52134
|
className: "paladin-dicomView-pcmobileWrapper"
|
|
52125
52135
|
}, DicomLayout, this.props.showDicomThumbnail && DicomThumbnail));
|
|
52136
|
+
var verticalLayout = /*#__PURE__*/React__default.createElement("div", {
|
|
52137
|
+
style: dcStyle
|
|
52138
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
52139
|
+
style: {
|
|
52140
|
+
display: 'flex',
|
|
52141
|
+
flexDirection: 'column',
|
|
52142
|
+
flex: 1,
|
|
52143
|
+
width: 0
|
|
52144
|
+
}
|
|
52145
|
+
}, DicomLayout, this.props.showDicomThumbnail && DicomThumbnail, DicomTool));
|
|
52126
52146
|
var width = window.innerWidth;
|
|
52127
52147
|
var height = window.innerHeight;
|
|
52128
52148
|
|
|
52129
|
-
if (
|
|
52130
|
-
|
|
52131
|
-
|
|
52132
|
-
|
|
52133
|
-
|
|
52134
|
-
|
|
52135
|
-
|
|
52136
|
-
flexDirection: 'column',
|
|
52137
|
-
flex: 1,
|
|
52138
|
-
width: 0
|
|
52139
|
-
}
|
|
52140
|
-
}, DicomLayout, this.props.showDicomThumbnail && DicomThumbnail, DicomTool));
|
|
52149
|
+
if (this.props.windowLayoutType) {
|
|
52150
|
+
if (this.props.windowLayoutType === 'vertical') pc = verticalLayout;
|
|
52151
|
+
} else {
|
|
52152
|
+
if (width < height && toolMode === 'flatten') {
|
|
52153
|
+
// 竖屏 + 展开
|
|
52154
|
+
pc = verticalLayout;
|
|
52155
|
+
}
|
|
52141
52156
|
}
|
|
52142
52157
|
|
|
52143
52158
|
return (
|