hellfire 0.21.1 → 0.21.2
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 +91 -30
- 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.21.2](http://10.16.100.57/diffusion/115/paladin/compare/v0.21.1...v0.21.2) (2022-06-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.21.1](http://10.16.100.57/diffusion/115/paladin/compare/v0.21.0...v0.21.1) (2022-06-22)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -859,7 +859,12 @@ var MessagerKeys = {
|
|
|
859
859
|
* 完成裁剪操作
|
|
860
860
|
* 消息参数类型: null
|
|
861
861
|
*/
|
|
862
|
-
MipFinishClipPathExport: "2001"
|
|
862
|
+
MipFinishClipPathExport: "2001",
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* 调窗操作
|
|
866
|
+
*/
|
|
867
|
+
MipWwwcChange: "2002"
|
|
863
868
|
};
|
|
864
869
|
var _default$1 = {
|
|
865
870
|
MessagerKeys: MessagerKeys
|
|
@@ -21228,8 +21233,6 @@ var MipImageProcessorWorkerImpl = /*#__PURE__*/function (_ImageProcessorWorker)
|
|
|
21228
21233
|
|
|
21229
21234
|
last = aSegment.endPixel;
|
|
21230
21235
|
});
|
|
21231
|
-
this.opacityTransformFunction.addPoint(ImageProcessorWorkerBase.ctValueToImageValue(last + 0.5, this.rescaleSlop, this.rescaleIntercept), //last+0.5,
|
|
21232
|
-
1);
|
|
21233
21236
|
if (this._canRender) this.renderWindow.render();
|
|
21234
21237
|
}
|
|
21235
21238
|
}, {
|
|
@@ -21416,8 +21419,14 @@ var MipImageProcessorWorkerImpl = /*#__PURE__*/function (_ImageProcessorWorker)
|
|
|
21416
21419
|
var maxValue = this.windowMaxPixel; // mip 在窗宽范围内线性变化
|
|
21417
21420
|
|
|
21418
21421
|
if (this.actionParameter.reconstructMethodType === ReconstructMethodType.MIP) {
|
|
21419
|
-
colorSegments = [new MipPixelSegment(minValue,
|
|
21420
|
-
|
|
21422
|
+
colorSegments = [new MipPixelSegment(minValue, 0xFFFFFF, maxValue, 0xFFFFFF)];
|
|
21423
|
+
var range = maxValue - minValue;
|
|
21424
|
+
opacitySegments = [new MipPixelSegment(Math.floor(minValue), 0.01, Math.floor(minValue + range * 0.15), 0.1), new MipPixelSegment(Math.floor(minValue + range * 0.15), 0.25, Math.floor(minValue + range * 0.75), 0.97), new MipPixelSegment(Math.floor(minValue + range * 0.75), 0.97, Math.floor(maxValue), 1)]; // colorSegments = [
|
|
21425
|
+
// new MipPixelSegment(minValue, 0x5A5A5A, maxValue, 0xFFFFFF),
|
|
21426
|
+
// ];
|
|
21427
|
+
// opacitySegments = [
|
|
21428
|
+
// new MipPixelSegment(minValue, 0.02, maxValue, 0.99),
|
|
21429
|
+
// ];
|
|
21421
21430
|
} else {
|
|
21422
21431
|
colorSegments = [new MipPixelSegment(minValue, 0x555555, minValue + (maxValue - minValue) * 0.3, 0x888888), new MipPixelSegment(minValue + (maxValue - minValue) * 0.3, 0xBFAE96, minValue + (maxValue - minValue) * 2, 0xBFAE96), new MipPixelSegment(minValue + (maxValue - minValue) * 2, 0xBFAE96, minValue + (maxValue - minValue) * 100, 0xffffff)];
|
|
21423
21432
|
opacitySegments = [new MipPixelSegment(minValue, 0, minValue + (maxValue - minValue) * 0.3, 0.1), new MipPixelSegment(minValue + (maxValue - minValue) * 2, 0.6, minValue + (maxValue - minValue) * 100, 0.99)];
|
|
@@ -21429,7 +21438,10 @@ var MipImageProcessorWorkerImpl = /*#__PURE__*/function (_ImageProcessorWorker)
|
|
|
21429
21438
|
this.actionParameter.addTailOpacityTransformSegments(opacitySegments);
|
|
21430
21439
|
this.updateColorFunction();
|
|
21431
21440
|
this.updateOpacityTransform();
|
|
21432
|
-
}
|
|
21441
|
+
} // 窗宽窗值
|
|
21442
|
+
|
|
21443
|
+
|
|
21444
|
+
Messager.Instance.call(_default$1.MessagerKeys.MipWwwcChange, this.messageGroupId, this.volumeWindowLevel);
|
|
21433
21445
|
}
|
|
21434
21446
|
}, {
|
|
21435
21447
|
key: "releaseVTKComponent",
|
|
@@ -53441,7 +53453,7 @@ var _default$16 = ConnectedSurgeryLayout;
|
|
|
53441
53453
|
var css_248z$r = ".paladin-main-wrapper svg {\n width: 100%;\n height: 100%;\n}\n.paladin-main-wrapper span,\n.paladin-main-wrapper div {\n user-select: none;\n}\n.paladin-main-wrapper .paladin-dicomView-dicomToolWrapper {\n background-color: #353535;\n z-index: 2;\n}\n.paladin-main-wrapper .paladin-dicomView-dicomThumbnailWrapper {\n background-color: #353535;\n border: 1px solid #727882;\n}\n.paladin-main-wrapper .paladin-dicomView-pcmobileWrapper {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 0;\n}\nbutton:focus {\n outline: none;\n}\n.paladin-flex {\n display: flex;\n}\n.paladin-flex-row {\n display: flex;\n box-sizing: border-box;\n flex-direction: row;\n flex-wrap: wrap;\n flex: 0 1 auto;\n}\n.paladin-flex-col {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n flex: 0 0 auto;\n}\n.paladin-flex-center {\n justify-content: center;\n align-items: center;\n}\n.paladin-flex-end {\n justify-content: flex-end;\n}\n.paladin-flex-1 {\n flex: 1;\n}\n.paladin-full-content {\n width: 100%;\n height: 100%;\n}\n.paladin-full-height {\n height: 100%;\n}\n.paladin-full-width {\n width: 100%;\n}\n.paladin-text-center {\n text-align: center;\n}\n";
|
|
53442
53454
|
styleInject$1(css_248z$r);
|
|
53443
53455
|
|
|
53444
|
-
var css_248z$s = ".image-processing-container {\n position: absolute;\n width: 100%;\n height: 100%;\n text-align: center;\n background: black;\n display: flex;\n align-items: center;\n justify-content: space-around;\n flex-direction: column;\n z-index: 999;\n}\n.image-processing-container-content {\n cursor: pointer;\n}\n.image-processing-container-content svg {\n width: 50px;\n height: 50px;\n display: block;\n margin: 15px auto 0 auto;\n color: #999;\n}\n.paladin-three-wrapper {\n width: 100%;\n height: 100%;\n color: white;\n display: flex;\n}\n.paladin-three-horizontal-left {\n width: 66.6%;\n height: 100%;\n}\n.paladin-three-horizontal-right {\n width: 33.4%;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.paladin-three-vertical-top {\n width: 100%;\n height: 66.6%;\n flex-direction: row;\n}\n.paladin-three-vertical-bottom {\n width: 100%;\n height: 33.4%;\n display: flex;\n flex-direction: row;\n}\n.paladin-three-height-50 {\n width: 100%;\n height: 50%;\n}\n.paladin-three-width-50 {\n width: 50%;\n height: 100%;\n}\n.paladin-three-height-33 {\n width: 100%;\n height: 33.333%;\n}\n.paladin-three-width-33 {\n height: 100%;\n width: 33.333%;\n}\n.paladin-three-relative {\n position: relative;\n}\n";
|
|
53456
|
+
var css_248z$s = ".image-processing-container {\n position: absolute;\n width: 100%;\n height: 100%;\n text-align: center;\n background: black;\n display: flex;\n align-items: center;\n justify-content: space-around;\n flex-direction: column;\n z-index: 999;\n}\n.image-processing-container-content {\n cursor: pointer;\n}\n.image-processing-container-content svg {\n width: 50px;\n height: 50px;\n display: block;\n margin: 15px auto 0 auto;\n color: #999;\n}\n.paladin-three-wrapper {\n width: 100%;\n height: 100%;\n color: white;\n display: flex;\n}\n.paladin-three-horizontal-left {\n width: 66.6%;\n height: 100%;\n}\n.paladin-three-horizontal-right {\n width: 33.4%;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.paladin-three-vertical-top {\n width: 100%;\n height: 66.6%;\n flex-direction: row;\n}\n.paladin-three-vertical-bottom {\n width: 100%;\n height: 33.4%;\n display: flex;\n flex-direction: row;\n}\n.paladin-three-height-50 {\n width: 100%;\n height: 50%;\n}\n.paladin-three-width-50 {\n width: 50%;\n height: 100%;\n}\n.paladin-three-height-33 {\n width: 100%;\n height: 33.333%;\n}\n.paladin-three-width-33 {\n height: 100%;\n width: 33.333%;\n}\n.paladin-three-relative {\n position: relative;\n}\n.mip-wwwc {\n position: absolute;\n bottom: 15px;\n left: 15px;\n}\n.mip-wwwc p {\n color: #ffffff;\n margin: 0;\n text-align: right;\n}\n";
|
|
53445
53457
|
styleInject$1(css_248z$s);
|
|
53446
53458
|
|
|
53447
53459
|
(function () {
|
|
@@ -54347,7 +54359,9 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
54347
54359
|
|
|
54348
54360
|
_this.state = {
|
|
54349
54361
|
processing: true,
|
|
54350
|
-
error: null
|
|
54362
|
+
error: null,
|
|
54363
|
+
windowWidth: 0,
|
|
54364
|
+
windowCenter: 0
|
|
54351
54365
|
};
|
|
54352
54366
|
_this.vr = '';
|
|
54353
54367
|
return _this;
|
|
@@ -54357,6 +54371,9 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
54357
54371
|
key: "initVR",
|
|
54358
54372
|
value: function () {
|
|
54359
54373
|
var _initVR = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(currentSeries, instanceImages) {
|
|
54374
|
+
var _this2 = this;
|
|
54375
|
+
|
|
54376
|
+
var volumeWindowLevel;
|
|
54360
54377
|
return regenerator.wrap(function _callee$(_context) {
|
|
54361
54378
|
while (1) {
|
|
54362
54379
|
switch (_context.prev = _context.next) {
|
|
@@ -54374,12 +54391,27 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
54374
54391
|
this.vr = _context.sent;
|
|
54375
54392
|
// mip左键默认工具是调窗
|
|
54376
54393
|
this.vr.ActionParameter.mouseActionMode = InteractorStyleActionMode.WindowLevel;
|
|
54377
|
-
this.props.set3DActiveTool('MipWWWc');
|
|
54378
|
-
|
|
54394
|
+
this.props.set3DActiveTool('MipWWWc'); // 窗值初始值
|
|
54395
|
+
|
|
54396
|
+
volumeWindowLevel = this.vr.volumeWindowLevel;
|
|
54397
|
+
this.setState({
|
|
54398
|
+
windowWidth: Math.floor(volumeWindowLevel.level),
|
|
54399
|
+
windowCenter: Math.floor(volumeWindowLevel.center)
|
|
54400
|
+
}); // 调窗监听
|
|
54401
|
+
|
|
54402
|
+
Messager.Instance.regist(_default$1.MessagerKeys.MipWwwcChange, this.vr.messageGroupId, function (param) {
|
|
54403
|
+
if (param) {
|
|
54404
|
+
_this2.setState({
|
|
54405
|
+
windowWidth: param.level,
|
|
54406
|
+
windowCenter: param.center
|
|
54407
|
+
});
|
|
54408
|
+
}
|
|
54409
|
+
});
|
|
54410
|
+
_context.next = 16;
|
|
54379
54411
|
break;
|
|
54380
54412
|
|
|
54381
|
-
case
|
|
54382
|
-
_context.prev =
|
|
54413
|
+
case 11:
|
|
54414
|
+
_context.prev = 11;
|
|
54383
54415
|
_context.t0 = _context["catch"](0);
|
|
54384
54416
|
console.error(_context.t0);
|
|
54385
54417
|
this.setState({
|
|
@@ -54388,19 +54420,19 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
54388
54420
|
});
|
|
54389
54421
|
return _context.abrupt("return");
|
|
54390
54422
|
|
|
54391
|
-
case
|
|
54423
|
+
case 16:
|
|
54392
54424
|
this.setState({
|
|
54393
54425
|
processingMessage: null,
|
|
54394
54426
|
processing: false,
|
|
54395
54427
|
error: null
|
|
54396
54428
|
});
|
|
54397
54429
|
|
|
54398
|
-
case
|
|
54430
|
+
case 17:
|
|
54399
54431
|
case "end":
|
|
54400
54432
|
return _context.stop();
|
|
54401
54433
|
}
|
|
54402
54434
|
}
|
|
54403
|
-
}, _callee, this, [[0,
|
|
54435
|
+
}, _callee, this, [[0, 11]]);
|
|
54404
54436
|
}));
|
|
54405
54437
|
|
|
54406
54438
|
function initVR(_x, _x2) {
|
|
@@ -54413,7 +54445,7 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
54413
54445
|
key: "componentDidMount",
|
|
54414
54446
|
value: function () {
|
|
54415
54447
|
var _componentDidMount = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
54416
|
-
var
|
|
54448
|
+
var _this3 = this;
|
|
54417
54449
|
|
|
54418
54450
|
var currentSeries, instanceImages, i;
|
|
54419
54451
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
@@ -54444,7 +54476,7 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
54444
54476
|
error: null
|
|
54445
54477
|
}, function () {
|
|
54446
54478
|
setTimeout(function () {
|
|
54447
|
-
|
|
54479
|
+
_this3.initVR(currentSeries, instanceImages);
|
|
54448
54480
|
}, 50);
|
|
54449
54481
|
});
|
|
54450
54482
|
}
|
|
@@ -54496,7 +54528,9 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
54496
54528
|
var _this$state = this.state,
|
|
54497
54529
|
processing = _this$state.processing,
|
|
54498
54530
|
processingMessage = _this$state.processingMessage,
|
|
54499
|
-
error = _this$state.error
|
|
54531
|
+
error = _this$state.error,
|
|
54532
|
+
windowWidth = _this$state.windowWidth,
|
|
54533
|
+
windowCenter = _this$state.windowCenter;
|
|
54500
54534
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
54501
54535
|
className: "paladin-three-wrapper",
|
|
54502
54536
|
style: {
|
|
@@ -54515,7 +54549,9 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
54515
54549
|
height: '100%'
|
|
54516
54550
|
},
|
|
54517
54551
|
id: 'mipContainer'
|
|
54518
|
-
})
|
|
54552
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
54553
|
+
className: "mip-wwwc"
|
|
54554
|
+
}, /*#__PURE__*/React__default.createElement("p", null, "W:", windowWidth), /*#__PURE__*/React__default.createElement("p", null, "C:", windowCenter))));
|
|
54519
54555
|
}
|
|
54520
54556
|
}, {
|
|
54521
54557
|
key: "__reactstandin__regenerateByEval",
|
|
@@ -55749,6 +55785,7 @@ var mergeProps$l = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55749
55785
|
},
|
|
55750
55786
|
FORWARD: function FORWARD() {
|
|
55751
55787
|
var activeElement = getCurrentElement();
|
|
55788
|
+
if (!activeElement) return;
|
|
55752
55789
|
|
|
55753
55790
|
if (threeDMode) {
|
|
55754
55791
|
changeMprPositionWithElement(activeElement, -1, threeScrollType);
|
|
@@ -55758,6 +55795,7 @@ var mergeProps$l = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55758
55795
|
},
|
|
55759
55796
|
BACKWARD: function BACKWARD() {
|
|
55760
55797
|
var activeElement = getCurrentElement();
|
|
55798
|
+
if (!activeElement) return;
|
|
55761
55799
|
|
|
55762
55800
|
if (threeDMode) {
|
|
55763
55801
|
changeMprPositionWithElement(activeElement, 1, threeScrollType);
|
|
@@ -55797,12 +55835,15 @@ var mergeProps$l = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55797
55835
|
});
|
|
55798
55836
|
},
|
|
55799
55837
|
SCROLL_START: function SCROLL_START() {
|
|
55800
|
-
|
|
55838
|
+
var activeElement = getCurrentElement();
|
|
55839
|
+
if (!activeElement) return;
|
|
55840
|
+
_default$E.scrollToIndex(activeElement, 0, true, {
|
|
55801
55841
|
backToStart: true
|
|
55802
55842
|
});
|
|
55803
55843
|
},
|
|
55804
55844
|
SCROLL_END: function SCROLL_END() {
|
|
55805
55845
|
var activeElement = getCurrentElement();
|
|
55846
|
+
if (!activeElement) return;
|
|
55806
55847
|
var max = _default$E.getImagesLength(activeElement) - 1;
|
|
55807
55848
|
_default$E.scrollToIndex(activeElement, max, tement, max, true, {
|
|
55808
55849
|
backToEnd: true
|
|
@@ -55819,43 +55860,63 @@ var mergeProps$l = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55819
55860
|
},
|
|
55820
55861
|
WWWC1: function WWWC1() {
|
|
55821
55862
|
if (!wwwcCustomDic[0]) return;
|
|
55822
|
-
|
|
55863
|
+
var activeElement = getCurrentElement();
|
|
55864
|
+
if (!activeElement) return;
|
|
55865
|
+
setWwwc(activeElement, wwwcCustomDic[0].ww, wwwcCustomDic[0].wc);
|
|
55823
55866
|
},
|
|
55824
55867
|
WWWC2: function WWWC2() {
|
|
55825
55868
|
if (!wwwcCustomDic[1]) return;
|
|
55826
|
-
|
|
55869
|
+
var activeElement = getCurrentElement();
|
|
55870
|
+
if (!activeElement) return;
|
|
55871
|
+
setWwwc(activeElement, wwwcCustomDic[1].ww, wwwcCustomDic[1].wc);
|
|
55827
55872
|
},
|
|
55828
55873
|
WWWC3: function WWWC3() {
|
|
55829
55874
|
if (!wwwcCustomDic[2]) return;
|
|
55830
|
-
|
|
55875
|
+
var activeElement = getCurrentElement();
|
|
55876
|
+
if (!activeElement) return;
|
|
55877
|
+
setWwwc(activeElement, wwwcCustomDic[2].ww, wwwcCustomDic[2].wc);
|
|
55831
55878
|
},
|
|
55832
55879
|
WWWC4: function WWWC4() {
|
|
55833
55880
|
if (!wwwcCustomDic[3]) return;
|
|
55834
|
-
|
|
55881
|
+
var activeElement = getCurrentElement();
|
|
55882
|
+
if (!activeElement) return;
|
|
55883
|
+
setWwwc(activeElement, wwwcCustomDic[3].ww, wwwcCustomDic[3].wc);
|
|
55835
55884
|
},
|
|
55836
55885
|
WWWC5: function WWWC5() {
|
|
55837
55886
|
if (!wwwcCustomDic[4]) return;
|
|
55838
|
-
|
|
55887
|
+
var activeElement = getCurrentElement();
|
|
55888
|
+
if (!activeElement) return;
|
|
55889
|
+
setWwwc(activeElement, wwwcCustomDic[4].ww, wwwcCustomDic[4].wc);
|
|
55839
55890
|
},
|
|
55840
55891
|
WWWC6: function WWWC6() {
|
|
55841
55892
|
if (!wwwcCustomDic[5]) return;
|
|
55842
|
-
|
|
55893
|
+
var activeElement = getCurrentElement();
|
|
55894
|
+
if (!activeElement) return;
|
|
55895
|
+
setWwwc(activeElement, wwwcCustomDic[5].ww, wwwcCustomDic[5].wc);
|
|
55843
55896
|
},
|
|
55844
55897
|
WWWC7: function WWWC7() {
|
|
55845
55898
|
if (!wwwcCustomDic[6]) return;
|
|
55846
|
-
|
|
55899
|
+
var activeElement = getCurrentElement();
|
|
55900
|
+
if (!activeElement) return;
|
|
55901
|
+
setWwwc(activeElement, wwwcCustomDic[6].ww, wwwcCustomDic[6].wc);
|
|
55847
55902
|
},
|
|
55848
55903
|
WWWC8: function WWWC8() {
|
|
55849
55904
|
if (!wwwcCustomDic[7]) return;
|
|
55850
|
-
|
|
55905
|
+
var activeElement = getCurrentElement();
|
|
55906
|
+
if (!activeElement) return;
|
|
55907
|
+
setWwwc(activeElement, wwwcCustomDic[7].ww, wwwcCustomDic[7].wc);
|
|
55851
55908
|
},
|
|
55852
55909
|
WWWC9: function WWWC9() {
|
|
55853
55910
|
if (!wwwcCustomDic[8]) return;
|
|
55854
|
-
|
|
55911
|
+
var activeElement = getCurrentElement();
|
|
55912
|
+
if (!activeElement) return;
|
|
55913
|
+
setWwwc(activeElement, wwwcCustomDic[8].ww, wwwcCustomDic[8].wc);
|
|
55855
55914
|
},
|
|
55856
55915
|
WWWC0: function WWWC0() {
|
|
55857
55916
|
if (!wwwcCustomDic[9]) return;
|
|
55858
|
-
|
|
55917
|
+
var activeElement = getCurrentElement();
|
|
55918
|
+
if (!activeElement) return;
|
|
55919
|
+
setWwwc(activeElement, wwwcCustomDic[9].ww, wwwcCustomDic[9].wc);
|
|
55859
55920
|
}
|
|
55860
55921
|
},
|
|
55861
55922
|
getCurrentElement: getCurrentElement,
|