hellfire 0.19.6 → 0.19.7
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 +77 -16
- 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.19.7](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.6...v0.19.7) (2022-03-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.19.6](http://10.16.100.57/diffusion/115/paladin/compare/v0.19.5...v0.19.6) (2022-03-02)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -44178,11 +44178,11 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44178
44178
|
var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Reset', 'Cine', 'FalseColor', 'Link', 'ReferencePosition'];
|
|
44179
44179
|
|
|
44180
44180
|
if (mode !== 'seriesMode') {
|
|
44181
|
-
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44181
|
+
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44182
44182
|
}
|
|
44183
44183
|
|
|
44184
44184
|
if (isThree) {
|
|
44185
|
-
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44185
|
+
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44186
44186
|
}
|
|
44187
44187
|
|
|
44188
44188
|
var vrTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
@@ -44344,7 +44344,7 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
44344
44344
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem, {
|
|
44345
44345
|
active: Fullscreen,
|
|
44346
44346
|
onClick: handleFullscreen
|
|
44347
|
-
}, "\u5168\u5C4F")), !MPR && IODisconnect && /*#__PURE__*/React__default.createElement("div", {
|
|
44347
|
+
}, "\u5168\u5C4F")), !MPR && IODisconnect && mode && mode !== 'allImageMode' && /*#__PURE__*/React__default.createElement("div", {
|
|
44348
44348
|
className: "paladin-flex-row"
|
|
44349
44349
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem, {
|
|
44350
44350
|
active: Surgery,
|
|
@@ -44473,11 +44473,11 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44473
44473
|
var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Reset', 'Cine', 'FalseColor', 'Link', 'ReferencePosition'];
|
|
44474
44474
|
|
|
44475
44475
|
if (mode !== 'seriesMode') {
|
|
44476
|
-
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44476
|
+
commonTools = ['Layout', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44477
44477
|
}
|
|
44478
44478
|
|
|
44479
44479
|
if (isThree) {
|
|
44480
|
-
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', '
|
|
44480
|
+
commonTools = ['StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Reset', 'Rotate', 'ReverseColor', 'FalseColor'];
|
|
44481
44481
|
}
|
|
44482
44482
|
|
|
44483
44483
|
var vrTools = ['CrosshairsMPR', 'MprSwitchPerspective', 'MprRefresh'];
|
|
@@ -44657,7 +44657,7 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
|
|
|
44657
44657
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem$1, {
|
|
44658
44658
|
active: Fullscreen,
|
|
44659
44659
|
onClick: handleFullscreen
|
|
44660
|
-
}, "\u5168\u5C4F")), !MPR && IODisconnect && /*#__PURE__*/React__default.createElement("div", {
|
|
44660
|
+
}, "\u5168\u5C4F")), !MPR && IODisconnect && mode && mode !== 'allImageMode' && /*#__PURE__*/React__default.createElement("div", {
|
|
44661
44661
|
className: "paladin-flex-row"
|
|
44662
44662
|
}, /*#__PURE__*/React__default.createElement(LargeToolItem$1, {
|
|
44663
44663
|
active: Surgery,
|
|
@@ -47537,20 +47537,49 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47537
47537
|
}
|
|
47538
47538
|
|
|
47539
47539
|
createClass(ViewportOverlay, [{
|
|
47540
|
+
key: "componentDidMount",
|
|
47541
|
+
value: function componentDidMount() {
|
|
47542
|
+
this.loadDicom(this.props.imageId);
|
|
47543
|
+
}
|
|
47544
|
+
}, {
|
|
47540
47545
|
key: "componentWillReceiveProps",
|
|
47541
47546
|
value: function () {
|
|
47542
47547
|
var _componentWillReceiveProps = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nextProps, nextContext) {
|
|
47543
|
-
var _dicom;
|
|
47544
|
-
|
|
47545
47548
|
return regenerator.wrap(function _callee$(_context) {
|
|
47546
47549
|
while (1) {
|
|
47547
47550
|
switch (_context.prev = _context.next) {
|
|
47548
47551
|
case 0:
|
|
47549
|
-
|
|
47550
|
-
|
|
47552
|
+
this.loadDicom(nextProps.imageId);
|
|
47553
|
+
|
|
47554
|
+
case 1:
|
|
47555
|
+
case "end":
|
|
47556
|
+
return _context.stop();
|
|
47557
|
+
}
|
|
47558
|
+
}
|
|
47559
|
+
}, _callee, this);
|
|
47560
|
+
}));
|
|
47561
|
+
|
|
47562
|
+
function componentWillReceiveProps(_x, _x2) {
|
|
47563
|
+
return _componentWillReceiveProps.apply(this, arguments);
|
|
47564
|
+
}
|
|
47565
|
+
|
|
47566
|
+
return componentWillReceiveProps;
|
|
47567
|
+
}()
|
|
47568
|
+
}, {
|
|
47569
|
+
key: "loadDicom",
|
|
47570
|
+
value: function () {
|
|
47571
|
+
var _loadDicom = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(imageId) {
|
|
47572
|
+
var _dicom;
|
|
47573
|
+
|
|
47574
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
47575
|
+
while (1) {
|
|
47576
|
+
switch (_context2.prev = _context2.next) {
|
|
47577
|
+
case 0:
|
|
47578
|
+
_context2.next = 2;
|
|
47579
|
+
return loadAndCacheDicom(imageId);
|
|
47551
47580
|
|
|
47552
47581
|
case 2:
|
|
47553
|
-
_dicom =
|
|
47582
|
+
_dicom = _context2.sent;
|
|
47554
47583
|
|
|
47555
47584
|
if (_dicom) {
|
|
47556
47585
|
this.setState({
|
|
@@ -47560,17 +47589,17 @@ var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
|
47560
47589
|
|
|
47561
47590
|
case 4:
|
|
47562
47591
|
case "end":
|
|
47563
|
-
return
|
|
47592
|
+
return _context2.stop();
|
|
47564
47593
|
}
|
|
47565
47594
|
}
|
|
47566
|
-
},
|
|
47595
|
+
}, _callee2, this);
|
|
47567
47596
|
}));
|
|
47568
47597
|
|
|
47569
|
-
function
|
|
47570
|
-
return
|
|
47598
|
+
function loadDicom(_x3) {
|
|
47599
|
+
return _loadDicom.apply(this, arguments);
|
|
47571
47600
|
}
|
|
47572
47601
|
|
|
47573
|
-
return
|
|
47602
|
+
return loadDicom;
|
|
47574
47603
|
}()
|
|
47575
47604
|
}, {
|
|
47576
47605
|
key: "render",
|
|
@@ -49093,6 +49122,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49093
49122
|
});
|
|
49094
49123
|
});
|
|
49095
49124
|
|
|
49125
|
+
defineProperty(assertThisInitialized(_this), "checkImageBeforeDisplay", function (imageId) {
|
|
49126
|
+
var stack = _this.state.stack;
|
|
49127
|
+
var currentImageId = stack && stack.imageIds[stack.currentImageIdIndex];
|
|
49128
|
+
return currentImageId === imageId;
|
|
49129
|
+
});
|
|
49130
|
+
|
|
49096
49131
|
defineProperty(assertThisInitialized(_this), "loadImage", function () {
|
|
49097
49132
|
var _this2;
|
|
49098
49133
|
|
|
@@ -49127,6 +49162,13 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49127
49162
|
|
|
49128
49163
|
imagePromise.then(function (image) {
|
|
49129
49164
|
_this.firstLoaded = true; // Display the first image
|
|
49165
|
+
// 注:display image之前校验image的正确性 避免快速滚动图像加载堆积 导致显示的图像并非当前图像
|
|
49166
|
+
|
|
49167
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49168
|
+
|
|
49169
|
+
if (!checkResult) {
|
|
49170
|
+
return;
|
|
49171
|
+
}
|
|
49130
49172
|
|
|
49131
49173
|
cornerstone.displayImage(_this.element, image); // 扫描定位线处理 May be we can remove it, 防丢失
|
|
49132
49174
|
|
|
@@ -49215,6 +49257,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49215
49257
|
error: null
|
|
49216
49258
|
});
|
|
49217
49259
|
}, function (error) {
|
|
49260
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49261
|
+
|
|
49262
|
+
if (!checkResult) {
|
|
49263
|
+
return;
|
|
49264
|
+
}
|
|
49265
|
+
|
|
49218
49266
|
console.error('viewport-loadImage-error', error);
|
|
49219
49267
|
|
|
49220
49268
|
_this.clearFirstLoadingHandler();
|
|
@@ -49275,6 +49323,13 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49275
49323
|
}
|
|
49276
49324
|
|
|
49277
49325
|
imagePromise.then(function (image) {
|
|
49326
|
+
// 注:display image之前校验image的正确性 避免快速滚动图像加载堆积 导致显示的图像并非当前图像
|
|
49327
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49328
|
+
|
|
49329
|
+
if (!checkResult) {
|
|
49330
|
+
return;
|
|
49331
|
+
}
|
|
49332
|
+
|
|
49278
49333
|
cornerstone.displayImage(_this.element, image); // 伪彩单独重置
|
|
49279
49334
|
|
|
49280
49335
|
var viewport = cornerstone.getViewport(_this.element);
|
|
@@ -49302,6 +49357,12 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49302
49357
|
_default$E.setToolDisabledForElement(_this.element, 'StackScrollMouseWheel', {});
|
|
49303
49358
|
}
|
|
49304
49359
|
}, function (error) {
|
|
49360
|
+
var checkResult = _this.checkImageBeforeDisplay(imageId);
|
|
49361
|
+
|
|
49362
|
+
if (!checkResult) {
|
|
49363
|
+
return;
|
|
49364
|
+
}
|
|
49365
|
+
|
|
49305
49366
|
console.error('viewport-update-loadImage-error', error);
|
|
49306
49367
|
|
|
49307
49368
|
_this.setState({
|