hellfire 0.19.6 → 0.19.9
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 +84 -25
- 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.19.9](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.8...v0.19.9) (2022-03-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.19.8](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.7...v0.19.8) (2022-03-07)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.19.7](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.6...v0.19.7) (2022-03-03)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
5
17
|
## [0.19.6](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.5...v0.19.6) (2022-03-02)
|
|
6
18
|
|
|
7
19
|
|
package/dist/index.js
CHANGED
|
@@ -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
|
// 请求失败 重试机制
|
|
@@ -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');
|
|
@@ -44178,11 +44175,11 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44178
44175
|
var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Reset', 'Cine', 'FalseColor', 'Link', 'ReferencePosition'];
|
|
44179
44176
|
|
|
44180
44177
|
if (mode !== 'seriesMode') {
|
|
44181
|
-
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44178
|
+
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44182
44179
|
}
|
|
44183
44180
|
|
|
44184
44181
|
if (isThree) {
|
|
44185
|
-
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44182
|
+
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44186
44183
|
}
|
|
44187
44184
|
|
|
44188
44185
|
var vrTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
@@ -44344,7 +44341,7 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44344
44341
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem, {
|
|
44345
44342
|
active: Fullscreen,
|
|
44346
44343
|
onClick: handleFullscreen
|
|
44347
|
-
}, "\u5168\u5C4F")), !MPR && IODisconnect && /*#__PURE__*/React__default.createElement("div", {
|
|
44344
|
+
}, "\u5168\u5C4F")), !MPR && IODisconnect && mode && mode !== 'allImageMode' && /*#__PURE__*/React__default.createElement("div", {
|
|
44348
44345
|
className: "paladin-flex-row"
|
|
44349
44346
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem, {
|
|
44350
44347
|
active: Surgery,
|
|
@@ -44473,11 +44470,11 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44473
44470
|
var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Reset', 'Cine', 'FalseColor', 'Link', 'ReferencePosition'];
|
|
44474
44471
|
|
|
44475
44472
|
if (mode !== 'seriesMode') {
|
|
44476
|
-
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44473
|
+
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44477
44474
|
}
|
|
44478
44475
|
|
|
44479
44476
|
if (isThree) {
|
|
44480
|
-
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44477
|
+
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44481
44478
|
}
|
|
44482
44479
|
|
|
44483
44480
|
var vrTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
@@ -44657,7 +44654,7 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44657
44654
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem$1, {
|
|
44658
44655
|
active: Fullscreen,
|
|
44659
44656
|
onClick: handleFullscreen
|
|
44660
|
-
}, "\u5168\u5C4F")), !MPR && IODisconnect && /*#__PURE__*/React__default.createElement("div", {
|
|
44657
|
+
}, "\u5168\u5C4F")), !MPR && IODisconnect && mode && mode !== 'allImageMode' && /*#__PURE__*/React__default.createElement("div", {
|
|
44661
44658
|
className: "paladin-flex-row"
|
|
44662
44659
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem$1, {
|
|
44663
44660
|
active: Surgery,
|
|
@@ -47537,20 +47534,49 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47537
47534
|
}
|
|
47538
47535
|
|
|
47539
47536
|
createClass(ViewportOverlay, [{
|
|
47537
|
+
key: "componentDidMount",
|
|
47538
|
+
value: function componentDidMount() {
|
|
47539
|
+
this.loadDicom(this.props.imageId);
|
|
47540
|
+
}
|
|
47541
|
+
}, {
|
|
47540
47542
|
key: "componentWillReceiveProps",
|
|
47541
47543
|
value: function () {
|
|
47542
47544
|
var _componentWillReceiveProps = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nextProps, nextContext) {
|
|
47543
|
-
var _dicom;
|
|
47544
|
-
|
|
47545
47545
|
return regenerator.wrap(function _callee$(_context) {
|
|
47546
47546
|
while (1) {
|
|
47547
47547
|
switch (_context.prev = _context.next) {
|
|
47548
47548
|
case 0:
|
|
47549
|
-
|
|
47550
|
-
|
|
47549
|
+
this.loadDicom(nextProps.imageId);
|
|
47550
|
+
|
|
47551
|
+
case 1:
|
|
47552
|
+
case "end":
|
|
47553
|
+
return _context.stop();
|
|
47554
|
+
}
|
|
47555
|
+
}
|
|
47556
|
+
}, _callee, this);
|
|
47557
|
+
}));
|
|
47558
|
+
|
|
47559
|
+
function componentWillReceiveProps(_x, _x2) {
|
|
47560
|
+
return _componentWillReceiveProps.apply(this, arguments);
|
|
47561
|
+
}
|
|
47562
|
+
|
|
47563
|
+
return componentWillReceiveProps;
|
|
47564
|
+
}()
|
|
47565
|
+
}, {
|
|
47566
|
+
key: "loadDicom",
|
|
47567
|
+
value: function () {
|
|
47568
|
+
var _loadDicom = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(imageId) {
|
|
47569
|
+
var _dicom;
|
|
47570
|
+
|
|
47571
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
47572
|
+
while (1) {
|
|
47573
|
+
switch (_context2.prev = _context2.next) {
|
|
47574
|
+
case 0:
|
|
47575
|
+
_context2.next = 2;
|
|
47576
|
+
return loadAndCacheDicom(imageId);
|
|
47551
47577
|
|
|
47552
47578
|
case 2:
|
|
47553
|
-
_dicom =
|
|
47579
|
+
_dicom = _context2.sent;
|
|
47554
47580
|
|
|
47555
47581
|
if (_dicom) {
|
|
47556
47582
|
this.setState({
|
|
@@ -47560,17 +47586,17 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47560
47586
|
|
|
47561
47587
|
case 4:
|
|
47562
47588
|
case "end":
|
|
47563
|
-
return
|
|
47589
|
+
return _context2.stop();
|
|
47564
47590
|
}
|
|
47565
47591
|
}
|
|
47566
|
-
},
|
|
47592
|
+
}, _callee2, this);
|
|
47567
47593
|
}));
|
|
47568
47594
|
|
|
47569
|
-
function
|
|
47570
|
-
return
|
|
47595
|
+
function loadDicom(_x3) {
|
|
47596
|
+
return _loadDicom.apply(this, arguments);
|
|
47571
47597
|
}
|
|
47572
47598
|
|
|
47573
|
-
return
|
|
47599
|
+
return loadDicom;
|
|
47574
47600
|
}()
|
|
47575
47601
|
}, {
|
|
47576
47602
|
key: "render",
|
|
@@ -47635,6 +47661,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47635
47661
|
|
|
47636
47662
|
var patientOrientation = dicom.PatientOrientation.toString();
|
|
47637
47663
|
var protocolName = dicom.ProtocolName.toString();
|
|
47664
|
+
var sequenceName = dicom.SequenceName.toString();
|
|
47638
47665
|
var repetitionTime = dicom.RepetitionTime.toString();
|
|
47639
47666
|
var echoTime = dicom.EchoTime.toString();
|
|
47640
47667
|
var inversionTime = dicom.InversionTime.toString();
|
|
@@ -47682,7 +47709,7 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47682
47709
|
fontSize: '12px',
|
|
47683
47710
|
display: "".concat(hide ? 'none' : 'block')
|
|
47684
47711
|
}
|
|
47685
|
-
}, /*#__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", {
|
|
47712
|
+
}, /*#__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", {
|
|
47686
47713
|
style: {
|
|
47687
47714
|
position: 'absolute',
|
|
47688
47715
|
top: 4,
|
|
@@ -49093,6 +49120,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49093
49120
|
});
|
|
49094
49121
|
});
|
|
49095
49122
|
|
|
49123
|
+
defineProperty(assertThisInitialized(_this), "checkImageBeforeDisplay", function (imageId) {
|
|
49124
|
+
var stack = _this.state.stack;
|
|
49125
|
+
var currentImageId = stack && stack.imageIds[stack.currentImageIdIndex];
|
|
49126
|
+
return currentImageId === imageId;
|
|
49127
|
+
});
|
|
49128
|
+
|
|
49096
49129
|
defineProperty(assertThisInitialized(_this), "loadImage", function () {
|
|
49097
49130
|
var _this2;
|
|
49098
49131
|
|
|
@@ -49127,6 +49160,13 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49127
49160
|
|
|
49128
49161
|
imagePromise.then(function (image) {
|
|
49129
49162
|
_this.firstLoaded = true; // Display the first image
|
|
49163
|
+
// 注:display image之前校验image的正确性 避免快速滚动图像加载堆积 导致显示的图像并非当前图像
|
|
49164
|
+
|
|
49165
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49166
|
+
|
|
49167
|
+
if (!checkResult) {
|
|
49168
|
+
return;
|
|
49169
|
+
}
|
|
49130
49170
|
|
|
49131
49171
|
cornerstone.displayImage(_this.element, image); // 扫描定位线处理 May be we can remove it, 防丢失
|
|
49132
49172
|
|
|
@@ -49215,6 +49255,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49215
49255
|
error: null
|
|
49216
49256
|
});
|
|
49217
49257
|
}, function (error) {
|
|
49258
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49259
|
+
|
|
49260
|
+
if (!checkResult) {
|
|
49261
|
+
return;
|
|
49262
|
+
}
|
|
49263
|
+
|
|
49218
49264
|
console.error('viewport-loadImage-error', error);
|
|
49219
49265
|
|
|
49220
49266
|
_this.clearFirstLoadingHandler();
|
|
@@ -49275,6 +49321,13 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49275
49321
|
}
|
|
49276
49322
|
|
|
49277
49323
|
imagePromise.then(function (image) {
|
|
49324
|
+
// 注:display image之前校验image的正确性 避免快速滚动图像加载堆积 导致显示的图像并非当前图像
|
|
49325
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49326
|
+
|
|
49327
|
+
if (!checkResult) {
|
|
49328
|
+
return;
|
|
49329
|
+
}
|
|
49330
|
+
|
|
49278
49331
|
cornerstone.displayImage(_this.element, image); // 伪彩单独重置
|
|
49279
49332
|
|
|
49280
49333
|
var viewport = cornerstone.getViewport(_this.element);
|
|
@@ -49302,6 +49355,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49302
49355
|
_default$E.setToolDisabledForElement(_this.element, 'StackScrollMouseWheel', {});
|
|
49303
49356
|
}
|
|
49304
49357
|
}, function (error) {
|
|
49358
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49359
|
+
|
|
49360
|
+
if (!checkResult) {
|
|
49361
|
+
return;
|
|
49362
|
+
}
|
|
49363
|
+
|
|
49305
49364
|
console.error('viewport-update-loadImage-error', error);
|
|
49306
49365
|
|
|
49307
49366
|
_this.setState({
|