hellfire 0.19.7 → 0.20.0
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 +12 -0
- package/dist/index.js +322 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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.20.0](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.9...v0.20.0) (2022-05-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.19.9](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.8...v0.19.9) (2022-03-28)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.19.8](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.7...v0.19.8) (2022-03-07)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
5
17
|
## [0.19.7](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.6...v0.19.7) (2022-03-03)
|
|
6
18
|
|
|
7
19
|
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var phoneTools = ["Prev", "Next", "StackScroll", "Wwwc", "Zoom", "Pan", "Reset",
|
|
|
112
112
|
var mprTools = ["MprExit", "PrevNext", "MprSwitchPerspective", "CrosshairsMPR", "StackScroll", "Wwwc", "Zoom", "Pan", "Reset", "Rotate", "Tool", "Length", "Fullscreen", "MprRefresh"];
|
|
113
113
|
var mprPhoneTools = ["MprExit", "Prev", "Next", "MprSwitchPerspective", "CrosshairsMPR", "StackScroll", "Wwwc", "Zoom", "Pan", "Reset", "Rotate", "Tool", "Length", "MprRefresh"]; // VR 允许使用的工具, 及其排序
|
|
114
114
|
|
|
115
|
-
var vrTools = ["MprExit", "PrevNext", "VRMode", "VRPresentColor", "VRCenterPointShow", "VRDirection", "VRClip", "VRInfo", "MprSwitchPerspective", "CrosshairsMPR", "StackScroll", "Wwwc", "Zoom", "Pan", "Reset", "Rotate", "Tool", "Length", "Fullscreen", "MprRefresh"];
|
|
115
|
+
var vrTools = ["MprExit", "PrevNext", "VRMode", "VRPresentColor", "VRCenterPointShow", "VRDirection", "VRClip", "VRRefresh", "VRInfo", "MprSwitchPerspective", "CrosshairsMPR", "StackScroll", "Wwwc", "Zoom", "Pan", "Reset", "Rotate", "Tool", "Length", "Fullscreen", "MprRefresh"];
|
|
116
116
|
var vrPhoneTools = ["MprExit", "VRMode", "VRPresentColor", "VRCenterPointShow", "VRDirection", "VRClip", "VRInfo", "Prev", "Next", "MprSwitchPerspective", "CrosshairsMPR", "StackScroll", "Wwwc", "Zoom", "Pan", "Reset", "Rotate", "Tool", "Length", "MprRefresh"];
|
|
117
117
|
var surgeryTools = ["SurgeryExit", "CentesisStart", "CentesisEnd", "CentesisSave", "PrevNext", "StackScroll", "Wwwc", "Zoom", "Pan", "Reset", "Rotate", "Tool", "Length", "Fullscreen"];
|
|
118
118
|
var surgeryPhoneTools = ["SurgeryExit", "CentesisStart", "CentesisEnd", "CentesisSave", "Prev", "Next", "StackScroll", "Wwwc", "Zoom", "Pan", "Reset", "Rotate", "Tool", "Length"]; // 初始化时工具栏平铺or单列
|
|
@@ -11126,11 +11126,6 @@ function addTaskIntoPool(task) {
|
|
|
11126
11126
|
|
|
11127
11127
|
var priority = task.priority || task.priority === 0 || 1;
|
|
11128
11128
|
|
|
11129
|
-
if (cache && cache.executed) {
|
|
11130
|
-
delete cachedTask[task.key];
|
|
11131
|
-
cache = null;
|
|
11132
|
-
}
|
|
11133
|
-
|
|
11134
11129
|
if (cache) {
|
|
11135
11130
|
cache.priority = priority;
|
|
11136
11131
|
var callbacks = cache.callbacks || [];
|
|
@@ -11186,7 +11181,7 @@ function executeTask() {
|
|
|
11186
11181
|
res: res
|
|
11187
11182
|
});
|
|
11188
11183
|
});
|
|
11189
|
-
task.
|
|
11184
|
+
delete cachedTask[task.key];
|
|
11190
11185
|
executeTask();
|
|
11191
11186
|
}, function (err) {
|
|
11192
11187
|
// 请求失败 重试机制
|
|
@@ -17876,8 +17871,8 @@ var MprImageProcessorWorkerImpl = /*#__PURE__*/function (_ImageProcessorWorker)
|
|
|
17876
17871
|
key: "reset",
|
|
17877
17872
|
value: function reset() {
|
|
17878
17873
|
this.resetActionParameters();
|
|
17879
|
-
this.processInternal(this.ActionParameter);
|
|
17880
|
-
this.resetVR();
|
|
17874
|
+
this.processInternal(this.ActionParameter); // mpr重置时不重置vr
|
|
17875
|
+
// this.resetVR();
|
|
17881
17876
|
}
|
|
17882
17877
|
}, {
|
|
17883
17878
|
key: "resetVR",
|
|
@@ -34361,7 +34356,7 @@ var formatDicom = function formatDicom(dicom) {
|
|
|
34361
34356
|
leaveModule && leaveModule(module);
|
|
34362
34357
|
})();
|
|
34363
34358
|
|
|
34364
|
-
var css_248z$8 = ".paladin-table {\n margin-top: 10px;\n font-size: 14px;\n color: #727882;\n font-family: lucida console, monospace;\n word-break: break-all;\n}\n.paladin-table .paladin-table-th {\n background: #698b69;\n color: #fff;\n padding: 5px;\n}\n.paladin-table .paladin-tbody-row {\n border-bottom: 1px solid lightgrey;\n}\n.paladin-table .paladin-tbody-row:hover .td {\n background: #ddd;\n color: inherit;\n}\n.paladin-table .paladin-tbody-row:nth-child(even) {\n background: #eee;\n color: inherit;\n}\n.paladin-table .paladin-tbody-td {\n padding: 5px;\n}\n.paladin-table .paladin-key {\n background-color: #7ac5cd;\n color: white;\n}\n.paladin-table .paladin-childKey {\n background-color: #49898F;\n color: white;\n}\n.paladin-table .paladin-private {\n color: orange;\n}\n.paladin-table .paladin-row-parent-icon {\n display: inline-block;\n background: #fff;\n border-radius: 2px;\n margin-right: 3px;\n color: #00a4fe;\n width: 16px;\n height: 16px;\n position: relative;\n vertical-align: middle;\n}\n.paladin-table .paladin-row-parent-icon span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -51%);\n display: inline-block;\n width: 13px;\n height: 13px;\n line-height: 13px;\n font-size: 13px;\n text-align: center;\n}\n";
|
|
34359
|
+
var css_248z$8 = ".allow-select * {\n -webkit-user-select: text !important;\n -moz-user-select: text !important;\n -ms-user-select: text !important;\n user-select: text !important;\n}\n.paladin-table {\n margin-top: 10px;\n font-size: 14px;\n color: #727882;\n font-family: lucida console, monospace;\n word-break: break-all;\n}\n.paladin-table .paladin-table-th {\n background: #698b69;\n color: #fff;\n padding: 5px;\n}\n.paladin-table .paladin-tbody-row {\n border-bottom: 1px solid lightgrey;\n}\n.paladin-table .paladin-tbody-row:hover .td {\n background: #ddd;\n color: inherit;\n}\n.paladin-table .paladin-tbody-row:nth-child(even) {\n background: #eee;\n color: inherit;\n}\n.paladin-table .paladin-tbody-td {\n padding: 5px;\n}\n.paladin-table .paladin-key {\n background-color: #7ac5cd;\n color: white;\n}\n.paladin-table .paladin-childKey {\n background-color: #49898F;\n color: white;\n}\n.paladin-table .paladin-private {\n color: orange;\n}\n.paladin-table .paladin-row-parent-icon {\n display: inline-block;\n background: #fff;\n border-radius: 2px;\n margin-right: 3px;\n color: #00a4fe;\n width: 16px;\n height: 16px;\n position: relative;\n vertical-align: middle;\n}\n.paladin-table .paladin-row-parent-icon span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -51%);\n display: inline-block;\n width: 13px;\n height: 13px;\n line-height: 13px;\n font-size: 13px;\n text-align: center;\n}\n";
|
|
34365
34360
|
styleInject$1(css_248z$8);
|
|
34366
34361
|
|
|
34367
34362
|
(function () {
|
|
@@ -34636,7 +34631,9 @@ var DicomInfoModal = /*#__PURE__*/function (_Component) {
|
|
|
34636
34631
|
dataSource = _this$state.dataSource,
|
|
34637
34632
|
dataSourceScan = _this$state.dataSourceScan;
|
|
34638
34633
|
var columnTagKey = dicomModalTag === 'dicomInfo';
|
|
34639
|
-
return /*#__PURE__*/React__default.createElement("div",
|
|
34634
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
34635
|
+
className: 'allow-select'
|
|
34636
|
+
}, /*#__PURE__*/React__default.createElement(ButtonGroup, null, /*#__PURE__*/React__default.createElement(Button, {
|
|
34640
34637
|
active: dicomModalTag === 'dicomInfo',
|
|
34641
34638
|
onClick: function onClick() {
|
|
34642
34639
|
_this2.setDicomModalTag('dicomInfo');
|
|
@@ -41139,7 +41136,7 @@ var _default$X = ConnectedVRMode;
|
|
|
41139
41136
|
leaveModule && leaveModule(module);
|
|
41140
41137
|
})();
|
|
41141
41138
|
|
|
41142
|
-
var css_248z$d = ".paladin-tool-go-flatten {\n cursor: pointer;\n font-size: 12px;\n height: 32px;\n text-align: center;\n border-bottom: 1px solid #fff;\n background: #353535;\n position: relative;\n z-index: 999;\n color: #fff;\n}\n.paladin-tool-go-flatten svg {\n width: 7px !important;\n color: #fff;\n}\n.paladin-tool-go-flatten:hover {\n background: #d4d4d4;\n}\n.paladin-tool-go-flatten:hover svg {\n color: #333;\n}\n.paladin-tool-go-line {\n cursor: pointer;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n right: 0;\n margin-top: 6px;\n height: 34px;\n}\n.paladin-tool-go-line .paladin-full-content {\n width: 24px;\n}\n.paladin-tool-go-line svg {\n width: 8px !important;\n color: #fff;\n}\n.paladin-tool-go-line:hover {\n background: #d4d4d4;\n}\n.paladin-tool-go-line:hover svg {\n color: #333;\n}\n.paladin-tool-item {\n background: #fff;\n padding: 5px 0;\n min-width: 160px;\n max-width: 280px;\n}\n.paladin-tool-lg-content {\n border-bottom: 1px solid #5b5b5b;\n}\n.paladin-tool-lg-content .paladin-tool-lg-item {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n flex: 1;\n border-top: 1px solid #5b5b5b;\n color: #b0b0b0;\n font-size: 12px;\n text-align: center;\n padding: 8px 10px;\n cursor: pointer;\n}\n.paladin-tool-lg-content .paladin-tool-lg-item:last-child {\n border-left: 1px solid #5b5b5b;\n}\n.paladin-tool-lg-content .paladin-tool-lg-item:hover {\n color: #fff;\n}\n.paladin-tool-lg-content .paladin-tool-lg-item-active {\n background: #0d5075;\n color: #fff;\n}\n.paladin-tool-flatten-vertical-wrapper {\n width: 228px;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-nav-wrapper {\n margin: 6px 2px;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-nav {\n cursor: pointer;\n font-size: 13px;\n color: #e2e2e2;\n padding: 8px 10px;\n border-top: 1px solid #5b5b5b;\n border-bottom: 1px solid #5b5b5b;\n border-left: 1px solid #5b5b5b;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-qa {\n cursor: pointer;\n margin-left: 15px;\n color: #e2e2e2;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-qa svg {\n width: 22px;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-nav-active {\n color: #c8c8c8;\n background-color: #5b5b5b;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-space-line {\n border-top: 1px solid gray;\n margin-top: 6px;\n padding-top: 6px;\n}\n.paladin-tool-flatten-hor-wrapper {\n position: relative;\n z-index: 100;\n width: 100%;\n display: flex;\n flex-direction: row;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line {\n display: flex;\n flex-direction: column;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line .paladin-flatten-hor-go-line-content {\n width: 24px;\n height: 100%;\n text-align: center;\n line-height: 100%;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line .paladin-flatten-hor-go-line-content svg {\n width: 10px !important;\n color: #fff;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line .paladin-flatten-hor-go-line-content:hover {\n background: #d4d4d4;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line .paladin-flatten-hor-go-line-content:hover svg {\n color: #333;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-nav-wrapper {\n padding: 5px;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-nav {\n cursor: pointer;\n font-size: 13px;\n color: #e2e2e2;\n padding: 8px 10px;\n border: 1px solid #5b5b5b;\n margin-bottom: 5px;\n text-align: center;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-qa {\n cursor: pointer;\n margin: 5px auto;\n color: #e2e2e2;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-qa svg {\n width: 20px;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-nav-active {\n color: #c8c8c8;\n background-color: #5b5b5b;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-lg-item {\n border: 1px solid #5b5b5b;\n}\n";
|
|
41139
|
+
var css_248z$d = ".paladin-tool-go-flatten {\n cursor: pointer;\n font-size: 12px;\n height: 32px;\n text-align: center;\n border-bottom: 1px solid #fff;\n background: #353535;\n position: relative;\n z-index: 999;\n color: #fff;\n}\n.paladin-tool-go-flatten svg {\n width: 7px !important;\n color: #fff;\n}\n.paladin-tool-go-flatten:hover {\n background: #d4d4d4;\n}\n.paladin-tool-go-flatten:hover svg {\n color: #333;\n}\n.paladin-tool-go-line {\n cursor: pointer;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n right: 0;\n margin-top: 6px;\n height: 34px;\n}\n.paladin-tool-go-line .paladin-full-content {\n width: 24px;\n}\n.paladin-tool-go-line svg {\n width: 8px !important;\n color: #fff;\n}\n.paladin-tool-go-line:hover {\n background: #d4d4d4;\n}\n.paladin-tool-go-line:hover svg {\n color: #333;\n}\n.paladin-tool-item {\n background: #fff;\n padding: 5px 0;\n min-width: 160px;\n max-width: 280px;\n}\n.paladin-tool-lg-content {\n border-bottom: 1px solid #5b5b5b;\n}\n.paladin-tool-lg-content .paladin-tool-lg-item {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n flex: 1;\n border-top: 1px solid #5b5b5b;\n color: #b0b0b0;\n font-size: 12px;\n text-align: center;\n padding: 8px 10px;\n cursor: pointer;\n}\n.paladin-tool-lg-content .paladin-tool-lg-item:last-child {\n border-left: 1px solid #5b5b5b;\n}\n.paladin-tool-lg-content .paladin-tool-lg-item:hover {\n color: #fff;\n}\n.paladin-tool-lg-content .paladin-tool-lg-item-active {\n background: #0d5075;\n color: #fff;\n}\n.paladin-tool-flatten-vertical-wrapper {\n width: 228px;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-nav-wrapper {\n margin: 6px 2px;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-nav {\n cursor: pointer;\n font-size: 13px;\n color: #e2e2e2;\n padding: 8px 10px;\n border-top: 1px solid #5b5b5b;\n border-bottom: 1px solid #5b5b5b;\n border-left: 1px solid #5b5b5b;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-qa {\n cursor: pointer;\n margin-left: 15px;\n color: #e2e2e2;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-qa svg {\n width: 22px;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-nav-active {\n color: #c8c8c8;\n background-color: #5b5b5b;\n}\n.paladin-tool-flatten-vertical-wrapper .paladin-tool-space-line {\n border-top: 1px solid gray;\n margin-top: 6px;\n padding-top: 6px;\n}\n.paladin-tool-flatten-hor-wrapper {\n position: relative;\n z-index: 100;\n width: 100%;\n display: flex;\n flex-direction: row;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line {\n display: flex;\n flex-direction: column;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line .paladin-flatten-hor-go-line-content {\n width: 24px;\n height: 100%;\n text-align: center;\n line-height: 100%;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line .paladin-flatten-hor-go-line-content svg {\n width: 10px !important;\n color: #fff;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line .paladin-flatten-hor-go-line-content:hover {\n background: #d4d4d4;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-flatten-hor-go-line .paladin-flatten-hor-go-line-content:hover svg {\n color: #333;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-nav-wrapper {\n padding: 5px;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-nav {\n cursor: pointer;\n font-size: 13px;\n color: #e2e2e2;\n padding: 8px 10px;\n border: 1px solid #5b5b5b;\n margin-bottom: 5px;\n text-align: center;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-qa {\n cursor: pointer;\n margin: 5px auto;\n color: #e2e2e2;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-qa svg {\n width: 20px;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-nav-active {\n color: #c8c8c8;\n background-color: #5b5b5b;\n}\n.paladin-tool-flatten-hor-wrapper .paladin-tool-lg-item {\n border: 1px solid #5b5b5b;\n}\n.paladin-tool-space-line-3d {\n border-top: 1px solid gray;\n margin-top: 6px;\n}\n.paladin-tool-subtitle {\n font-size: 12px;\n color: gray;\n padding: 4px 2px 3px 2px;\n}\n.paladin-hor-border {\n border-right: 1px solid #666;\n margin-right: 6px;\n}\n.paladin-hor-three-content {\n position: relative;\n padding-left: 13px;\n}\n.paladin-hor-three-content .paladin-hor-three-title {\n position: absolute;\n left: 0;\n top: 2px;\n width: 12px;\n font-size: 12px;\n word-break: break-all;\n color: gray;\n}\n";
|
|
41143
41140
|
styleInject$1(css_248z$d);
|
|
41144
41141
|
|
|
41145
41142
|
(function () {
|
|
@@ -44183,13 +44180,11 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44183
44180
|
|
|
44184
44181
|
if (isThree) {
|
|
44185
44182
|
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44186
|
-
}
|
|
44183
|
+
} // 三维工具
|
|
44187
44184
|
|
|
44188
|
-
var vrTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
44189
44185
|
|
|
44190
|
-
|
|
44191
|
-
|
|
44192
|
-
}
|
|
44186
|
+
var mprTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
44187
|
+
var vrTools = ['VRMode', 'VRPresentColor', 'VRDirection', 'VRCenterPointShow', 'VRClip', 'VRInfo', 'VRRefresh']; // 测量工具
|
|
44193
44188
|
|
|
44194
44189
|
var lengthTools = ['LengthTool', 'Angle', 'ArrowAnnotate', 'RectangleRoi', 'EllipticalRoi', 'Probe', 'CobbAngle', 'CTR'];
|
|
44195
44190
|
|
|
@@ -44269,14 +44264,29 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44269
44264
|
key: "tool-common-".concat(i),
|
|
44270
44265
|
data: toolsMap[item]
|
|
44271
44266
|
}));
|
|
44272
|
-
})),
|
|
44273
|
-
className: "paladin-
|
|
44267
|
+
})), VR && /*#__PURE__*/React__default.createElement("div", {
|
|
44268
|
+
className: "paladin-tool-space-line-3d"
|
|
44269
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
44270
|
+
className: "paladin-tool-subtitle"
|
|
44271
|
+
}, "VR"), /*#__PURE__*/React__default.createElement("div", {
|
|
44272
|
+
className: "paladin-flex-row"
|
|
44274
44273
|
}, vrTools && vrTools.map(function (item, i) {
|
|
44275
44274
|
return /*#__PURE__*/React__default.createElement(DicomToolItemPlus, _extends_1({}, _this2.props, {
|
|
44276
44275
|
key: "tool-vr-".concat(i),
|
|
44277
44276
|
data: toolsMap[item]
|
|
44278
44277
|
}));
|
|
44279
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
44278
|
+
}))), (MPR || VR) && /*#__PURE__*/React__default.createElement("div", {
|
|
44279
|
+
className: VR ? 'paladin-tool-space-line-3d' : 'paladin-tool-space-line'
|
|
44280
|
+
}, VR && /*#__PURE__*/React__default.createElement("div", {
|
|
44281
|
+
className: "paladin-tool-subtitle"
|
|
44282
|
+
}, "MPR"), /*#__PURE__*/React__default.createElement("div", {
|
|
44283
|
+
className: "paladin-flex-row"
|
|
44284
|
+
}, mprTools && mprTools.map(function (item, i) {
|
|
44285
|
+
return /*#__PURE__*/React__default.createElement(DicomToolItemPlus, _extends_1({}, _this2.props, {
|
|
44286
|
+
key: "tool-mpr-".concat(i),
|
|
44287
|
+
data: toolsMap[item]
|
|
44288
|
+
}));
|
|
44289
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
44280
44290
|
className: "paladin-flex-row paladin-tool-space-line"
|
|
44281
44291
|
}, lengthTools && lengthTools.map(function (item, i) {
|
|
44282
44292
|
return /*#__PURE__*/React__default.createElement(DicomToolItemPlus, _extends_1({}, _this2.props, {
|
|
@@ -44478,14 +44488,11 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44478
44488
|
|
|
44479
44489
|
if (isThree) {
|
|
44480
44490
|
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44481
|
-
}
|
|
44491
|
+
} // 三维工具
|
|
44482
44492
|
|
|
44483
|
-
var vrTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
44484
|
-
|
|
44485
|
-
if (VR) {
|
|
44486
|
-
vrTools = ['VRMode', 'VRPresentColor', 'CrosshairsMPR', 'MprSwitchPerspective', 'VRDirection', 'VRCenterPointShow', 'VRClip', 'MprRefresh', 'VRInfo'];
|
|
44487
|
-
}
|
|
44488
44493
|
|
|
44494
|
+
var mprTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
44495
|
+
var vrTools = ['VRMode', 'VRPresentColor', 'VRDirection', 'VRCenterPointShow', 'VRClip', 'VRInfo', 'VRRefresh'];
|
|
44489
44496
|
var lengthTools = ['LengthTool', 'Angle', 'ArrowAnnotate', 'RectangleRoi', 'EllipticalRoi', 'Probe', 'CobbAngle', 'CTR'];
|
|
44490
44497
|
|
|
44491
44498
|
if (IODisconnect) {
|
|
@@ -44550,7 +44557,7 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44550
44557
|
tooltip: '使用帮助',
|
|
44551
44558
|
tooltipPlacement: "right"
|
|
44552
44559
|
}, /*#__PURE__*/React__default.createElement(SvgQuestionSign, null)))), /*#__PURE__*/React__default.createElement("div", {
|
|
44553
|
-
className: "paladin-flex-col paladin-flex-1",
|
|
44560
|
+
className: "paladin-flex-col paladin-flex-1 paladin-hor-border",
|
|
44554
44561
|
style: {
|
|
44555
44562
|
flex: MPR ? 3 : 2
|
|
44556
44563
|
}
|
|
@@ -44562,7 +44569,7 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44562
44569
|
data: toolsMap[item]
|
|
44563
44570
|
}));
|
|
44564
44571
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
44565
|
-
className:
|
|
44572
|
+
className: MPR || VR ? 'paladin-flex-col paladin-flex-1 paladin-hor-border' : 'paladin-flex-col paladin-flex-1',
|
|
44566
44573
|
style: {
|
|
44567
44574
|
flex: 2
|
|
44568
44575
|
}
|
|
@@ -44573,18 +44580,34 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44573
44580
|
key: "tool-measure-".concat(i),
|
|
44574
44581
|
data: toolsMap[item]
|
|
44575
44582
|
}));
|
|
44576
|
-
}))),
|
|
44577
|
-
className: "paladin-flex-col paladin-flex-1",
|
|
44583
|
+
}))), VR && /*#__PURE__*/React__default.createElement("div", {
|
|
44584
|
+
className: "paladin-flex-col paladin-flex-1 paladin-hor-border paladin-hor-three-content",
|
|
44578
44585
|
style: {
|
|
44579
44586
|
flex: 2
|
|
44580
44587
|
}
|
|
44581
44588
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
44589
|
+
className: "paladin-hor-three-title"
|
|
44590
|
+
}, "VR"), /*#__PURE__*/React__default.createElement("div", {
|
|
44582
44591
|
className: "paladin-flex-row"
|
|
44583
44592
|
}, vrTools && vrTools.map(function (item, i) {
|
|
44584
44593
|
return /*#__PURE__*/React__default.createElement(DicomToolItemPlus, _extends_1({}, _this2.props, {
|
|
44585
44594
|
key: "tool-vr-".concat(i),
|
|
44586
44595
|
data: toolsMap[item]
|
|
44587
44596
|
}));
|
|
44597
|
+
}))), MPR && /*#__PURE__*/React__default.createElement("div", {
|
|
44598
|
+
className: VR ? 'paladin-flex-col paladin-flex-1 paladin-hor-three-content' : 'paladin-flex-col paladin-flex-1',
|
|
44599
|
+
style: {
|
|
44600
|
+
flex: 1
|
|
44601
|
+
}
|
|
44602
|
+
}, VR && /*#__PURE__*/React__default.createElement("div", {
|
|
44603
|
+
className: "paladin-hor-three-title"
|
|
44604
|
+
}, "MPR"), /*#__PURE__*/React__default.createElement("div", {
|
|
44605
|
+
className: "paladin-flex-row"
|
|
44606
|
+
}, mprTools && mprTools.map(function (item, i) {
|
|
44607
|
+
return /*#__PURE__*/React__default.createElement(DicomToolItemPlus, _extends_1({}, _this2.props, {
|
|
44608
|
+
key: "tool-mpr-".concat(i),
|
|
44609
|
+
data: toolsMap[item]
|
|
44610
|
+
}));
|
|
44588
44611
|
}))), Surgery && /*#__PURE__*/React__default.createElement("div", {
|
|
44589
44612
|
className: "paladin-flex-col paladin-flex-1",
|
|
44590
44613
|
style: {
|
|
@@ -45174,7 +45197,7 @@ var DicomTool = /*#__PURE__*/function (_Component) {
|
|
|
45174
45197
|
MprRefresh: {
|
|
45175
45198
|
label: "复位",
|
|
45176
45199
|
name: "MprRefresh",
|
|
45177
|
-
tooltip: "复位",
|
|
45200
|
+
tooltip: "MPR复位",
|
|
45178
45201
|
component: /*#__PURE__*/React__default.createElement(Svg445, null),
|
|
45179
45202
|
inActive: true,
|
|
45180
45203
|
borderTop: true,
|
|
@@ -45182,6 +45205,16 @@ var DicomTool = /*#__PURE__*/function (_Component) {
|
|
|
45182
45205
|
_this.props.refreshMpr();
|
|
45183
45206
|
}
|
|
45184
45207
|
},
|
|
45208
|
+
VRRefresh: {
|
|
45209
|
+
label: "复位",
|
|
45210
|
+
name: "VRRefresh",
|
|
45211
|
+
tooltip: "VR复位",
|
|
45212
|
+
component: /*#__PURE__*/React__default.createElement(Svg445, null),
|
|
45213
|
+
inActive: true,
|
|
45214
|
+
onClick: function onClick() {
|
|
45215
|
+
_this.props.refreshVR();
|
|
45216
|
+
}
|
|
45217
|
+
},
|
|
45185
45218
|
MprExit: {
|
|
45186
45219
|
name: "MprExit",
|
|
45187
45220
|
tooltip: "返回二维影像区",
|
|
@@ -46370,11 +46403,8 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46370
46403
|
|
|
46371
46404
|
return refreshMpr;
|
|
46372
46405
|
}(),
|
|
46373
|
-
|
|
46374
|
-
|
|
46375
|
-
},
|
|
46376
|
-
toggleVRCenterPoint: function () {
|
|
46377
|
-
var _toggleVRCenterPoint = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3() {
|
|
46406
|
+
refreshVR: function () {
|
|
46407
|
+
var _refreshVR = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3() {
|
|
46378
46408
|
var vrWorker;
|
|
46379
46409
|
return regenerator.wrap(function _callee3$(_context3) {
|
|
46380
46410
|
while (1) {
|
|
@@ -46393,6 +46423,46 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46393
46423
|
|
|
46394
46424
|
return _context3.abrupt("return");
|
|
46395
46425
|
|
|
46426
|
+
case 5:
|
|
46427
|
+
vrWorker.reset();
|
|
46428
|
+
|
|
46429
|
+
case 6:
|
|
46430
|
+
case "end":
|
|
46431
|
+
return _context3.stop();
|
|
46432
|
+
}
|
|
46433
|
+
}
|
|
46434
|
+
}, _callee3);
|
|
46435
|
+
}));
|
|
46436
|
+
|
|
46437
|
+
function refreshVR() {
|
|
46438
|
+
return _refreshVR.apply(this, arguments);
|
|
46439
|
+
}
|
|
46440
|
+
|
|
46441
|
+
return refreshVR;
|
|
46442
|
+
}(),
|
|
46443
|
+
switchPerspective: function switchPerspective() {
|
|
46444
|
+
propsFromDispatch.switchMprPerspective();
|
|
46445
|
+
},
|
|
46446
|
+
toggleVRCenterPoint: function () {
|
|
46447
|
+
var _toggleVRCenterPoint = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4() {
|
|
46448
|
+
var vrWorker;
|
|
46449
|
+
return regenerator.wrap(function _callee4$(_context4) {
|
|
46450
|
+
while (1) {
|
|
46451
|
+
switch (_context4.prev = _context4.next) {
|
|
46452
|
+
case 0:
|
|
46453
|
+
_context4.next = 2;
|
|
46454
|
+
return _default$r.getWorkerFromCache(currentSeries.seriesInstanceUID, ImageProcessType.MIP);
|
|
46455
|
+
|
|
46456
|
+
case 2:
|
|
46457
|
+
vrWorker = _context4.sent;
|
|
46458
|
+
|
|
46459
|
+
if (vrWorker) {
|
|
46460
|
+
_context4.next = 5;
|
|
46461
|
+
break;
|
|
46462
|
+
}
|
|
46463
|
+
|
|
46464
|
+
return _context4.abrupt("return");
|
|
46465
|
+
|
|
46396
46466
|
case 5:
|
|
46397
46467
|
if (propsFromState.VRCenterPointShow) {
|
|
46398
46468
|
// 隐藏
|
|
@@ -46404,10 +46474,10 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46404
46474
|
|
|
46405
46475
|
case 6:
|
|
46406
46476
|
case "end":
|
|
46407
|
-
return
|
|
46477
|
+
return _context4.stop();
|
|
46408
46478
|
}
|
|
46409
46479
|
}
|
|
46410
|
-
},
|
|
46480
|
+
}, _callee4);
|
|
46411
46481
|
}));
|
|
46412
46482
|
|
|
46413
46483
|
function toggleVRCenterPoint() {
|
|
@@ -46417,24 +46487,24 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46417
46487
|
return toggleVRCenterPoint;
|
|
46418
46488
|
}(),
|
|
46419
46489
|
toggleVRClip: function () {
|
|
46420
|
-
var _toggleVRClip = asyncToGenerator( /*#__PURE__*/regenerator.mark(function
|
|
46490
|
+
var _toggleVRClip = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee5() {
|
|
46421
46491
|
var vrWorker;
|
|
46422
|
-
return regenerator.wrap(function
|
|
46492
|
+
return regenerator.wrap(function _callee5$(_context5) {
|
|
46423
46493
|
while (1) {
|
|
46424
|
-
switch (
|
|
46494
|
+
switch (_context5.prev = _context5.next) {
|
|
46425
46495
|
case 0:
|
|
46426
|
-
|
|
46496
|
+
_context5.next = 2;
|
|
46427
46497
|
return _default$r.getWorkerFromCache(currentSeries.seriesInstanceUID, ImageProcessType.MIP);
|
|
46428
46498
|
|
|
46429
46499
|
case 2:
|
|
46430
|
-
vrWorker =
|
|
46500
|
+
vrWorker = _context5.sent;
|
|
46431
46501
|
|
|
46432
46502
|
if (vrWorker) {
|
|
46433
|
-
|
|
46503
|
+
_context5.next = 5;
|
|
46434
46504
|
break;
|
|
46435
46505
|
}
|
|
46436
46506
|
|
|
46437
|
-
return
|
|
46507
|
+
return _context5.abrupt("return");
|
|
46438
46508
|
|
|
46439
46509
|
case 5:
|
|
46440
46510
|
if (propsFromState.VRClip) {
|
|
@@ -46447,10 +46517,10 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46447
46517
|
|
|
46448
46518
|
case 6:
|
|
46449
46519
|
case "end":
|
|
46450
|
-
return
|
|
46520
|
+
return _context5.stop();
|
|
46451
46521
|
}
|
|
46452
46522
|
}
|
|
46453
|
-
},
|
|
46523
|
+
}, _callee5);
|
|
46454
46524
|
}));
|
|
46455
46525
|
|
|
46456
46526
|
function toggleVRClip() {
|
|
@@ -47664,6 +47734,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47664
47734
|
|
|
47665
47735
|
var patientOrientation = dicom.PatientOrientation.toString();
|
|
47666
47736
|
var protocolName = dicom.ProtocolName.toString();
|
|
47737
|
+
var sequenceName = dicom.SequenceName.toString();
|
|
47667
47738
|
var repetitionTime = dicom.RepetitionTime.toString();
|
|
47668
47739
|
var echoTime = dicom.EchoTime.toString();
|
|
47669
47740
|
var inversionTime = dicom.InversionTime.toString();
|
|
@@ -47711,7 +47782,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47711
47782
|
fontSize: '12px',
|
|
47712
47783
|
display: "".concat(hide ? 'none' : 'block')
|
|
47713
47784
|
}
|
|
47714
|
-
}, /*#__PURE__*/React__default.createElement("div", null, patientOrientation), /*#__PURE__*/React__default.createElement("div", null, protocolName), /*#__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)), /*#__PURE__*/React__default.createElement("div", null, seriesDescription)), /*#__PURE__*/React__default.createElement("div", {
|
|
47785
|
+
}, /*#__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", {
|
|
47715
47786
|
style: {
|
|
47716
47787
|
position: 'absolute',
|
|
47717
47788
|
top: 4,
|
|
@@ -49178,12 +49249,16 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49178
49249
|
_this.initReferencePosition(); // 处理sync的初始化
|
|
49179
49250
|
|
|
49180
49251
|
|
|
49181
|
-
_this.initSync(); //
|
|
49252
|
+
_this.initSync(); // 开启方位
|
|
49182
49253
|
|
|
49183
49254
|
|
|
49184
49255
|
_default$E.setToolActiveForElement(_this.element, 'OrientationMarkers');
|
|
49185
|
-
_default$E.setToolActiveForElement(_this.element, '
|
|
49186
|
-
|
|
49256
|
+
_default$E.setToolActiveForElement(_this.element, 'Overlay'); // 除去mpr情况 默认开启标尺
|
|
49257
|
+
|
|
49258
|
+
if (!_this.props.mpr) {
|
|
49259
|
+
_default$E.setToolActiveForElement(_this.element, 'RulerOverlay');
|
|
49260
|
+
} // 对一些工具的特殊处理
|
|
49261
|
+
|
|
49187
49262
|
|
|
49188
49263
|
if (_this.props.mpr && !_this.props.Surgery) {
|
|
49189
49264
|
// 只在mpr中触发的
|
|
@@ -54421,6 +54496,200 @@ var _default$1a = ConnectedDicomView;
|
|
|
54421
54496
|
var __signature__$3k = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
54422
54497
|
return a;
|
|
54423
54498
|
};
|
|
54499
|
+
var domId = "paladinOutputMock";
|
|
54500
|
+
|
|
54501
|
+
function getImageDataFromWodo(_ref) {
|
|
54502
|
+
var wodo = _ref.wodo,
|
|
54503
|
+
_ref$width = _ref.width,
|
|
54504
|
+
width = _ref$width === void 0 ? 100 : _ref$width,
|
|
54505
|
+
_ref$height = _ref.height,
|
|
54506
|
+
height = _ref$height === void 0 ? 100 : _ref$height;
|
|
54507
|
+
return new Promise( /*#__PURE__*/function () {
|
|
54508
|
+
var _ref2 = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(resolve, reject) {
|
|
54509
|
+
var img;
|
|
54510
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
54511
|
+
while (1) {
|
|
54512
|
+
switch (_context.prev = _context.next) {
|
|
54513
|
+
case 0:
|
|
54514
|
+
if (!wodo) {
|
|
54515
|
+
reject('wodo必填');
|
|
54516
|
+
}
|
|
54517
|
+
|
|
54518
|
+
if (!lodash$1.isNumber(width) || !lodash$1.isNumber(height)) {
|
|
54519
|
+
reject('width、height应为number类型');
|
|
54520
|
+
}
|
|
54521
|
+
|
|
54522
|
+
_context.prev = 2;
|
|
54523
|
+
_context.next = 5;
|
|
54524
|
+
return getImage(wodo, width, height);
|
|
54525
|
+
|
|
54526
|
+
case 5:
|
|
54527
|
+
img = _context.sent;
|
|
54528
|
+
removeDom();
|
|
54529
|
+
resolve(img);
|
|
54530
|
+
_context.next = 14;
|
|
54531
|
+
break;
|
|
54532
|
+
|
|
54533
|
+
case 10:
|
|
54534
|
+
_context.prev = 10;
|
|
54535
|
+
_context.t0 = _context["catch"](2);
|
|
54536
|
+
removeDom();
|
|
54537
|
+
reject();
|
|
54538
|
+
|
|
54539
|
+
case 14:
|
|
54540
|
+
case "end":
|
|
54541
|
+
return _context.stop();
|
|
54542
|
+
}
|
|
54543
|
+
}
|
|
54544
|
+
}, _callee, null, [[2, 10]]);
|
|
54545
|
+
}));
|
|
54546
|
+
|
|
54547
|
+
return function (_x, _x2) {
|
|
54548
|
+
return _ref2.apply(this, arguments);
|
|
54549
|
+
};
|
|
54550
|
+
}());
|
|
54551
|
+
}
|
|
54552
|
+
|
|
54553
|
+
function getMultiImageDataFromWodo(_ref3) {
|
|
54554
|
+
var wodoList = _ref3.wodoList,
|
|
54555
|
+
_ref3$width = _ref3.width,
|
|
54556
|
+
width = _ref3$width === void 0 ? 100 : _ref3$width,
|
|
54557
|
+
_ref3$height = _ref3.height,
|
|
54558
|
+
height = _ref3$height === void 0 ? 100 : _ref3$height;
|
|
54559
|
+
return new Promise( /*#__PURE__*/function () {
|
|
54560
|
+
var _ref4 = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(resolve, reject) {
|
|
54561
|
+
var result, i, img;
|
|
54562
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
54563
|
+
while (1) {
|
|
54564
|
+
switch (_context2.prev = _context2.next) {
|
|
54565
|
+
case 0:
|
|
54566
|
+
if (!wodoList || wodoList.length === 0) {
|
|
54567
|
+
reject('wodoList必填');
|
|
54568
|
+
}
|
|
54569
|
+
|
|
54570
|
+
if (!lodash$1.isNumber(width) || !lodash$1.isNumber(height)) {
|
|
54571
|
+
reject('width、height应为number类型');
|
|
54572
|
+
}
|
|
54573
|
+
|
|
54574
|
+
result = [];
|
|
54575
|
+
_context2.prev = 3;
|
|
54576
|
+
i = 0;
|
|
54577
|
+
|
|
54578
|
+
case 5:
|
|
54579
|
+
if (!(i < wodoList.length)) {
|
|
54580
|
+
_context2.next = 13;
|
|
54581
|
+
break;
|
|
54582
|
+
}
|
|
54583
|
+
|
|
54584
|
+
_context2.next = 8;
|
|
54585
|
+
return getImage(wodoList[i], width, height);
|
|
54586
|
+
|
|
54587
|
+
case 8:
|
|
54588
|
+
img = _context2.sent;
|
|
54589
|
+
result.push(img);
|
|
54590
|
+
|
|
54591
|
+
case 10:
|
|
54592
|
+
i++;
|
|
54593
|
+
_context2.next = 5;
|
|
54594
|
+
break;
|
|
54595
|
+
|
|
54596
|
+
case 13:
|
|
54597
|
+
removeDom();
|
|
54598
|
+
resolve(result);
|
|
54599
|
+
_context2.next = 21;
|
|
54600
|
+
break;
|
|
54601
|
+
|
|
54602
|
+
case 17:
|
|
54603
|
+
_context2.prev = 17;
|
|
54604
|
+
_context2.t0 = _context2["catch"](3);
|
|
54605
|
+
removeDom();
|
|
54606
|
+
reject();
|
|
54607
|
+
|
|
54608
|
+
case 21:
|
|
54609
|
+
case "end":
|
|
54610
|
+
return _context2.stop();
|
|
54611
|
+
}
|
|
54612
|
+
}
|
|
54613
|
+
}, _callee2, null, [[3, 17]]);
|
|
54614
|
+
}));
|
|
54615
|
+
|
|
54616
|
+
return function (_x3, _x4) {
|
|
54617
|
+
return _ref4.apply(this, arguments);
|
|
54618
|
+
};
|
|
54619
|
+
}());
|
|
54620
|
+
}
|
|
54621
|
+
|
|
54622
|
+
function getImage(wodo, width, height) {
|
|
54623
|
+
return new Promise(function (resolve, reject) {
|
|
54624
|
+
cornerstone.loadAndCacheImage(wodo).then(function (image) {
|
|
54625
|
+
var element = document.getElementById(domId);
|
|
54626
|
+
var canvas;
|
|
54627
|
+
|
|
54628
|
+
if (!element) {
|
|
54629
|
+
element = document.createElement("div");
|
|
54630
|
+
element.setAttribute("id", domId);
|
|
54631
|
+
document.body.appendChild(element);
|
|
54632
|
+
element.style.width = width + 'px';
|
|
54633
|
+
element.style.height = height + 'px';
|
|
54634
|
+
element.style.display = 'block';
|
|
54635
|
+
element.style.visibility = 'hidden';
|
|
54636
|
+
canvas = document.createElement("canvas");
|
|
54637
|
+
element.appendChild(canvas);
|
|
54638
|
+
canvas.setAttribute('class', 'cornerstone-canvas');
|
|
54639
|
+
cornerstone.enable(element, {});
|
|
54640
|
+
} else {
|
|
54641
|
+
canvas = element.querySelector('canvas.cornerstone-canvas');
|
|
54642
|
+
}
|
|
54643
|
+
|
|
54644
|
+
cornerstone.displayImage(element, image);
|
|
54645
|
+
cornerstone.reset(element);
|
|
54646
|
+
var img = canvas.toDataURL("image/jpeg", 1);
|
|
54647
|
+
resolve(img);
|
|
54648
|
+
}).catch(function (err) {
|
|
54649
|
+
reject(err);
|
|
54650
|
+
});
|
|
54651
|
+
});
|
|
54652
|
+
}
|
|
54653
|
+
|
|
54654
|
+
function removeDom() {
|
|
54655
|
+
var dom = document.getElementById(domId);
|
|
54656
|
+
|
|
54657
|
+
if (dom) {
|
|
54658
|
+
document.body.removeChild(dom);
|
|
54659
|
+
}
|
|
54660
|
+
}
|
|
54661
|
+
|
|
54662
|
+
(function () {
|
|
54663
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
54664
|
+
|
|
54665
|
+
if (!reactHotLoader) {
|
|
54666
|
+
return;
|
|
54667
|
+
}
|
|
54668
|
+
|
|
54669
|
+
reactHotLoader.register(domId, "domId", "/Users/huyeqing/workspace/chainz/paladin/src/utils/getImageDataFromWodo.js");
|
|
54670
|
+
reactHotLoader.register(getImageDataFromWodo, "getImageDataFromWodo", "/Users/huyeqing/workspace/chainz/paladin/src/utils/getImageDataFromWodo.js");
|
|
54671
|
+
reactHotLoader.register(getMultiImageDataFromWodo, "getMultiImageDataFromWodo", "/Users/huyeqing/workspace/chainz/paladin/src/utils/getImageDataFromWodo.js");
|
|
54672
|
+
reactHotLoader.register(getImage, "getImage", "/Users/huyeqing/workspace/chainz/paladin/src/utils/getImageDataFromWodo.js");
|
|
54673
|
+
reactHotLoader.register(removeDom, "removeDom", "/Users/huyeqing/workspace/chainz/paladin/src/utils/getImageDataFromWodo.js");
|
|
54674
|
+
})();
|
|
54675
|
+
|
|
54676
|
+
(function () {
|
|
54677
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
54678
|
+
leaveModule && leaveModule(module);
|
|
54679
|
+
})();
|
|
54680
|
+
|
|
54681
|
+
(function () {
|
|
54682
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
54683
|
+
enterModule && enterModule(module);
|
|
54684
|
+
})();
|
|
54685
|
+
|
|
54686
|
+
var __signature__$3l = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
54687
|
+
return a;
|
|
54688
|
+
};
|
|
54689
|
+
var paladinUtils = {
|
|
54690
|
+
getImageDataFromWodo: getImageDataFromWodo,
|
|
54691
|
+
getMultiImageDataFromWodo: getMultiImageDataFromWodo
|
|
54692
|
+
};
|
|
54424
54693
|
var _default$1b = _default$1a;
|
|
54425
54694
|
|
|
54426
54695
|
(function () {
|
|
@@ -54430,6 +54699,7 @@ var _default$1b = _default$1a;
|
|
|
54430
54699
|
return;
|
|
54431
54700
|
}
|
|
54432
54701
|
|
|
54702
|
+
reactHotLoader.register(paladinUtils, "paladinUtils", "/Users/huyeqing/workspace/chainz/paladin/src/index.js");
|
|
54433
54703
|
reactHotLoader.register(_default$1b, "default", "/Users/huyeqing/workspace/chainz/paladin/src/index.js");
|
|
54434
54704
|
})();
|
|
54435
54705
|
|
|
@@ -54440,5 +54710,6 @@ var _default$1b = _default$1a;
|
|
|
54440
54710
|
|
|
54441
54711
|
exports.cornerstoneUtils = index;
|
|
54442
54712
|
exports.default = _default$1b;
|
|
54713
|
+
exports.paladinUtils = paladinUtils;
|
|
54443
54714
|
exports.reducers = _default$I;
|
|
54444
54715
|
//# sourceMappingURL=index.js.map
|