hellfire 0.19.5 → 0.19.8
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 +111 -28
- 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.8](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.7...v0.19.8) (2022-03-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.19.7](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.6...v0.19.7) (2022-03-03)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.19.6](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.5...v0.19.6) (2022-03-02)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
5
17
|
## [0.19.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.4...v0.19.5) (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
|
// 请求失败 重试机制
|
|
@@ -29940,7 +29935,7 @@ var __signature__$1Z = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoa
|
|
|
29940
29935
|
var isMobileTablet = _default$D.isDeviceTypeMobileOrTablet();
|
|
29941
29936
|
|
|
29942
29937
|
if (!isMobileTablet) {
|
|
29943
|
-
cornerstone.imageCache.setMaximumSizeBytes(1024 * 1024 * 1024 *
|
|
29938
|
+
cornerstone.imageCache.setMaximumSizeBytes(1024 * 1024 * 1024 * 1);
|
|
29944
29939
|
}
|
|
29945
29940
|
|
|
29946
29941
|
_default$E.external.cornerstone = cornerstone;
|
|
@@ -44178,11 +44173,11 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44178
44173
|
var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Reset', 'Cine', 'FalseColor', 'Link', 'ReferencePosition'];
|
|
44179
44174
|
|
|
44180
44175
|
if (mode !== 'seriesMode') {
|
|
44181
|
-
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44176
|
+
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44182
44177
|
}
|
|
44183
44178
|
|
|
44184
44179
|
if (isThree) {
|
|
44185
|
-
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44180
|
+
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44186
44181
|
}
|
|
44187
44182
|
|
|
44188
44183
|
var vrTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
@@ -44344,7 +44339,7 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44344
44339
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem, {
|
|
44345
44340
|
active: Fullscreen,
|
|
44346
44341
|
onClick: handleFullscreen
|
|
44347
|
-
}, "\u5168\u5C4F")), !MPR && IODisconnect && /*#__PURE__*/React__default.createElement("div", {
|
|
44342
|
+
}, "\u5168\u5C4F")), !MPR && IODisconnect && mode && mode !== 'allImageMode' && /*#__PURE__*/React__default.createElement("div", {
|
|
44348
44343
|
className: "paladin-flex-row"
|
|
44349
44344
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem, {
|
|
44350
44345
|
active: Surgery,
|
|
@@ -44473,11 +44468,11 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44473
44468
|
var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Reset', 'Cine', 'FalseColor', 'Link', 'ReferencePosition'];
|
|
44474
44469
|
|
|
44475
44470
|
if (mode !== 'seriesMode') {
|
|
44476
|
-
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44471
|
+
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44477
44472
|
}
|
|
44478
44473
|
|
|
44479
44474
|
if (isThree) {
|
|
44480
|
-
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44475
|
+
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44481
44476
|
}
|
|
44482
44477
|
|
|
44483
44478
|
var vrTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
@@ -44657,7 +44652,7 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44657
44652
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem$1, {
|
|
44658
44653
|
active: Fullscreen,
|
|
44659
44654
|
onClick: handleFullscreen
|
|
44660
|
-
}, "\u5168\u5C4F")), !MPR && IODisconnect && /*#__PURE__*/React__default.createElement("div", {
|
|
44655
|
+
}, "\u5168\u5C4F")), !MPR && IODisconnect && mode && mode !== 'allImageMode' && /*#__PURE__*/React__default.createElement("div", {
|
|
44661
44656
|
className: "paladin-flex-row"
|
|
44662
44657
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem$1, {
|
|
44663
44658
|
active: Surgery,
|
|
@@ -46029,7 +46024,38 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46029
46024
|
}
|
|
46030
46025
|
|
|
46031
46026
|
propsFromDispatch.setImageScrollLine(0);
|
|
46032
|
-
var nextMode;
|
|
46027
|
+
var nextMode; // 全部模式 需要检查图像总是是否超过200 超过200则不可进入全部模式
|
|
46028
|
+
|
|
46029
|
+
if (key === 'AllImageMode') {
|
|
46030
|
+
var study = ownProps.study;
|
|
46031
|
+
var imageCount = 0;
|
|
46032
|
+
lodash$1.map(study, function (studyItem) {
|
|
46033
|
+
lodash$1.map(studyItem.series, function (seriesItem) {
|
|
46034
|
+
imageCount += seriesItem.numberOfSeriesRelatedInstances;
|
|
46035
|
+
});
|
|
46036
|
+
});
|
|
46037
|
+
|
|
46038
|
+
if (imageCount > 200) {
|
|
46039
|
+
_default$K.create( /*#__PURE__*/React__default.createElement("div", {
|
|
46040
|
+
style: {
|
|
46041
|
+
marginBottom: '10px'
|
|
46042
|
+
}
|
|
46043
|
+
}, "\u603B\u56FE\u50CF\u6570\u91CF\u5927\u4E8E200\uFF0C\u4E0D\u63D0\u4F9B\u5168\u90E8\u67E5\u770B\u529F\u80FD"), {
|
|
46044
|
+
style: {
|
|
46045
|
+
width: '350px',
|
|
46046
|
+
background: '#333',
|
|
46047
|
+
color: '#ccc',
|
|
46048
|
+
fontSize: '15px'
|
|
46049
|
+
},
|
|
46050
|
+
maskClosable: false,
|
|
46051
|
+
title: '提示',
|
|
46052
|
+
footer: null
|
|
46053
|
+
});
|
|
46054
|
+
return;
|
|
46055
|
+
}
|
|
46056
|
+
|
|
46057
|
+
nextMode = 'allImageMode';
|
|
46058
|
+
}
|
|
46033
46059
|
|
|
46034
46060
|
if (key === 'SeriesMode') {
|
|
46035
46061
|
// 回到序列模式
|
|
@@ -46064,10 +46090,6 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46064
46090
|
nextMode = 'imageMode';
|
|
46065
46091
|
}
|
|
46066
46092
|
|
|
46067
|
-
if (key === 'AllImageMode') {
|
|
46068
|
-
nextMode = 'allImageMode';
|
|
46069
|
-
}
|
|
46070
|
-
|
|
46071
46093
|
propsFromDispatch.setViewMode(nextMode);
|
|
46072
46094
|
},
|
|
46073
46095
|
autoLink: function () {
|
|
@@ -47510,20 +47532,49 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47510
47532
|
}
|
|
47511
47533
|
|
|
47512
47534
|
createClass(ViewportOverlay, [{
|
|
47535
|
+
key: "componentDidMount",
|
|
47536
|
+
value: function componentDidMount() {
|
|
47537
|
+
this.loadDicom(this.props.imageId);
|
|
47538
|
+
}
|
|
47539
|
+
}, {
|
|
47513
47540
|
key: "componentWillReceiveProps",
|
|
47514
47541
|
value: function () {
|
|
47515
47542
|
var _componentWillReceiveProps = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nextProps, nextContext) {
|
|
47516
|
-
var _dicom;
|
|
47517
|
-
|
|
47518
47543
|
return regenerator.wrap(function _callee$(_context) {
|
|
47519
47544
|
while (1) {
|
|
47520
47545
|
switch (_context.prev = _context.next) {
|
|
47521
47546
|
case 0:
|
|
47522
|
-
|
|
47523
|
-
|
|
47547
|
+
this.loadDicom(nextProps.imageId);
|
|
47548
|
+
|
|
47549
|
+
case 1:
|
|
47550
|
+
case "end":
|
|
47551
|
+
return _context.stop();
|
|
47552
|
+
}
|
|
47553
|
+
}
|
|
47554
|
+
}, _callee, this);
|
|
47555
|
+
}));
|
|
47556
|
+
|
|
47557
|
+
function componentWillReceiveProps(_x, _x2) {
|
|
47558
|
+
return _componentWillReceiveProps.apply(this, arguments);
|
|
47559
|
+
}
|
|
47560
|
+
|
|
47561
|
+
return componentWillReceiveProps;
|
|
47562
|
+
}()
|
|
47563
|
+
}, {
|
|
47564
|
+
key: "loadDicom",
|
|
47565
|
+
value: function () {
|
|
47566
|
+
var _loadDicom = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(imageId) {
|
|
47567
|
+
var _dicom;
|
|
47568
|
+
|
|
47569
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
47570
|
+
while (1) {
|
|
47571
|
+
switch (_context2.prev = _context2.next) {
|
|
47572
|
+
case 0:
|
|
47573
|
+
_context2.next = 2;
|
|
47574
|
+
return loadAndCacheDicom(imageId);
|
|
47524
47575
|
|
|
47525
47576
|
case 2:
|
|
47526
|
-
_dicom =
|
|
47577
|
+
_dicom = _context2.sent;
|
|
47527
47578
|
|
|
47528
47579
|
if (_dicom) {
|
|
47529
47580
|
this.setState({
|
|
@@ -47533,17 +47584,17 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47533
47584
|
|
|
47534
47585
|
case 4:
|
|
47535
47586
|
case "end":
|
|
47536
|
-
return
|
|
47587
|
+
return _context2.stop();
|
|
47537
47588
|
}
|
|
47538
47589
|
}
|
|
47539
|
-
},
|
|
47590
|
+
}, _callee2, this);
|
|
47540
47591
|
}));
|
|
47541
47592
|
|
|
47542
|
-
function
|
|
47543
|
-
return
|
|
47593
|
+
function loadDicom(_x3) {
|
|
47594
|
+
return _loadDicom.apply(this, arguments);
|
|
47544
47595
|
}
|
|
47545
47596
|
|
|
47546
|
-
return
|
|
47597
|
+
return loadDicom;
|
|
47547
47598
|
}()
|
|
47548
47599
|
}, {
|
|
47549
47600
|
key: "render",
|
|
@@ -49066,6 +49117,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49066
49117
|
});
|
|
49067
49118
|
});
|
|
49068
49119
|
|
|
49120
|
+
defineProperty(assertThisInitialized(_this), "checkImageBeforeDisplay", function (imageId) {
|
|
49121
|
+
var stack = _this.state.stack;
|
|
49122
|
+
var currentImageId = stack && stack.imageIds[stack.currentImageIdIndex];
|
|
49123
|
+
return currentImageId === imageId;
|
|
49124
|
+
});
|
|
49125
|
+
|
|
49069
49126
|
defineProperty(assertThisInitialized(_this), "loadImage", function () {
|
|
49070
49127
|
var _this2;
|
|
49071
49128
|
|
|
@@ -49100,6 +49157,13 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49100
49157
|
|
|
49101
49158
|
imagePromise.then(function (image) {
|
|
49102
49159
|
_this.firstLoaded = true; // Display the first image
|
|
49160
|
+
// 注:display image之前校验image的正确性 避免快速滚动图像加载堆积 导致显示的图像并非当前图像
|
|
49161
|
+
|
|
49162
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49163
|
+
|
|
49164
|
+
if (!checkResult) {
|
|
49165
|
+
return;
|
|
49166
|
+
}
|
|
49103
49167
|
|
|
49104
49168
|
cornerstone.displayImage(_this.element, image); // 扫描定位线处理 May be we can remove it, 防丢失
|
|
49105
49169
|
|
|
@@ -49188,6 +49252,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49188
49252
|
error: null
|
|
49189
49253
|
});
|
|
49190
49254
|
}, function (error) {
|
|
49255
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49256
|
+
|
|
49257
|
+
if (!checkResult) {
|
|
49258
|
+
return;
|
|
49259
|
+
}
|
|
49260
|
+
|
|
49191
49261
|
console.error('viewport-loadImage-error', error);
|
|
49192
49262
|
|
|
49193
49263
|
_this.clearFirstLoadingHandler();
|
|
@@ -49248,6 +49318,13 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49248
49318
|
}
|
|
49249
49319
|
|
|
49250
49320
|
imagePromise.then(function (image) {
|
|
49321
|
+
// 注:display image之前校验image的正确性 避免快速滚动图像加载堆积 导致显示的图像并非当前图像
|
|
49322
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49323
|
+
|
|
49324
|
+
if (!checkResult) {
|
|
49325
|
+
return;
|
|
49326
|
+
}
|
|
49327
|
+
|
|
49251
49328
|
cornerstone.displayImage(_this.element, image); // 伪彩单独重置
|
|
49252
49329
|
|
|
49253
49330
|
var viewport = cornerstone.getViewport(_this.element);
|
|
@@ -49275,6 +49352,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49275
49352
|
_default$E.setToolDisabledForElement(_this.element, 'StackScrollMouseWheel', {});
|
|
49276
49353
|
}
|
|
49277
49354
|
}, function (error) {
|
|
49355
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49356
|
+
|
|
49357
|
+
if (!checkResult) {
|
|
49358
|
+
return;
|
|
49359
|
+
}
|
|
49360
|
+
|
|
49278
49361
|
console.error('viewport-update-loadImage-error', error);
|
|
49279
49362
|
|
|
49280
49363
|
_this.setState({
|