hellfire 0.17.0 → 0.17.1
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 +76 -0
- 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.17.1](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.0...v0.17.1) (2021-11-30)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
# [0.17.0](http://10.16.100.57/diffusion/115/paladin/compare/v0.16.1...v0.17.0) (2021-11-24)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -7349,6 +7349,22 @@ var cornerstoneToolStateReset = function cornerstoneToolStateReset(data) {
|
|
|
7349
7349
|
data: data
|
|
7350
7350
|
});
|
|
7351
7351
|
};
|
|
7352
|
+
var paladinRefreshEvent = function paladinRefreshEvent() {
|
|
7353
|
+
_default$e.emit('paladin_action', {
|
|
7354
|
+
type: 'window_refresh'
|
|
7355
|
+
});
|
|
7356
|
+
};
|
|
7357
|
+
var paladinModalOpenEvent = function paladinModalOpenEvent(data) {
|
|
7358
|
+
_default$e.emit('paladin_action', {
|
|
7359
|
+
type: 'modal_open',
|
|
7360
|
+
data: data
|
|
7361
|
+
});
|
|
7362
|
+
};
|
|
7363
|
+
var paladinModalCloseEvent = function paladinModalCloseEvent() {
|
|
7364
|
+
_default$e.emit('paladin_action', {
|
|
7365
|
+
type: 'modal_close'
|
|
7366
|
+
});
|
|
7367
|
+
};
|
|
7352
7368
|
|
|
7353
7369
|
(function () {
|
|
7354
7370
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -7362,6 +7378,9 @@ var cornerstoneToolStateReset = function cornerstoneToolStateReset(data) {
|
|
|
7362
7378
|
reactHotLoader.register(cornerstoneStateChangeEvent, "cornerstoneStateChangeEvent", "/Users/huyeqing/workspace/chainz/paladin/src/utils/paladinAction.js");
|
|
7363
7379
|
reactHotLoader.register(cornerstoneToolUpdateEvent, "cornerstoneToolUpdateEvent", "/Users/huyeqing/workspace/chainz/paladin/src/utils/paladinAction.js");
|
|
7364
7380
|
reactHotLoader.register(cornerstoneToolStateReset, "cornerstoneToolStateReset", "/Users/huyeqing/workspace/chainz/paladin/src/utils/paladinAction.js");
|
|
7381
|
+
reactHotLoader.register(paladinRefreshEvent, "paladinRefreshEvent", "/Users/huyeqing/workspace/chainz/paladin/src/utils/paladinAction.js");
|
|
7382
|
+
reactHotLoader.register(paladinModalOpenEvent, "paladinModalOpenEvent", "/Users/huyeqing/workspace/chainz/paladin/src/utils/paladinAction.js");
|
|
7383
|
+
reactHotLoader.register(paladinModalCloseEvent, "paladinModalCloseEvent", "/Users/huyeqing/workspace/chainz/paladin/src/utils/paladinAction.js");
|
|
7365
7384
|
})();
|
|
7366
7385
|
|
|
7367
7386
|
(function () {
|
|
@@ -31921,6 +31940,7 @@ Modal.create = function (child, props) {
|
|
|
31921
31940
|
visible: false
|
|
31922
31941
|
});
|
|
31923
31942
|
setTimeout(function () {
|
|
31943
|
+
props.onCancel && props.onCancel();
|
|
31924
31944
|
destroy();
|
|
31925
31945
|
}, 0);
|
|
31926
31946
|
}
|
|
@@ -33798,6 +33818,14 @@ var ImageTool = /*#__PURE__*/function (_Component) {
|
|
|
33798
33818
|
_this = _super.call(this, props);
|
|
33799
33819
|
|
|
33800
33820
|
defineProperty(assertThisInitialized(_this), "openDicomModal", function (tag, title) {
|
|
33821
|
+
paladinModalOpenEvent({
|
|
33822
|
+
key: 'dicom_modal',
|
|
33823
|
+
value: {
|
|
33824
|
+
tag: tag,
|
|
33825
|
+
title: title
|
|
33826
|
+
}
|
|
33827
|
+
});
|
|
33828
|
+
|
|
33801
33829
|
var imageId = _this.props.getCurrentImageId();
|
|
33802
33830
|
|
|
33803
33831
|
_default$K.create( /*#__PURE__*/React__default.createElement(DicomInfoModal, {
|
|
@@ -33812,6 +33840,9 @@ var ImageTool = /*#__PURE__*/function (_Component) {
|
|
|
33812
33840
|
style: {
|
|
33813
33841
|
top: 0,
|
|
33814
33842
|
transform: 'translate(-50%,0)'
|
|
33843
|
+
},
|
|
33844
|
+
onCancel: function onCancel() {
|
|
33845
|
+
paladinModalCloseEvent();
|
|
33815
33846
|
}
|
|
33816
33847
|
});
|
|
33817
33848
|
});
|
|
@@ -45497,6 +45528,13 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
45497
45528
|
propsFromDispatch.activeDicomFunction('Fullscreen');
|
|
45498
45529
|
},
|
|
45499
45530
|
openDicomModal: function openDicomModal(tag, title) {
|
|
45531
|
+
paladinModalOpenEvent({
|
|
45532
|
+
key: 'dicom_modal',
|
|
45533
|
+
value: {
|
|
45534
|
+
tag: tag,
|
|
45535
|
+
title: title
|
|
45536
|
+
}
|
|
45537
|
+
});
|
|
45500
45538
|
var activeElement = getElement(realActiveIndex);
|
|
45501
45539
|
var image = cornerstone.getImage(activeElement);
|
|
45502
45540
|
_default$K.create( /*#__PURE__*/React__default.createElement(DicomInfoModal, {
|
|
@@ -45511,6 +45549,9 @@ var mergeProps$c = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
45511
45549
|
style: {
|
|
45512
45550
|
top: 0,
|
|
45513
45551
|
transform: 'translate(-50%,0)'
|
|
45552
|
+
},
|
|
45553
|
+
onCancel: function onCancel() {
|
|
45554
|
+
paladinModalCloseEvent();
|
|
45514
45555
|
}
|
|
45515
45556
|
});
|
|
45516
45557
|
},
|
|
@@ -45979,6 +46020,7 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
|
|
|
45979
46020
|
});
|
|
45980
46021
|
|
|
45981
46022
|
defineProperty(assertThisInitialized(_this), "handleRefresh", function () {
|
|
46023
|
+
paladinRefreshEvent();
|
|
45982
46024
|
window.location.reload();
|
|
45983
46025
|
});
|
|
45984
46026
|
|
|
@@ -51955,6 +51997,39 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
51955
51997
|
}
|
|
51956
51998
|
|
|
51957
51999
|
break;
|
|
52000
|
+
|
|
52001
|
+
case "modal_open":
|
|
52002
|
+
var key = data.key,
|
|
52003
|
+
value = data.value;
|
|
52004
|
+
|
|
52005
|
+
if (key === "dicom_modal") {
|
|
52006
|
+
try {
|
|
52007
|
+
var activeElement = this.props.getCurrentElement();
|
|
52008
|
+
var image = cornerstone.getImage(activeElement);
|
|
52009
|
+
_default$K.create( /*#__PURE__*/React__default.createElement(DicomInfoModal, {
|
|
52010
|
+
dicomModalTag: value.tag,
|
|
52011
|
+
imageId: image.imageId
|
|
52012
|
+
}), {
|
|
52013
|
+
title: value.title,
|
|
52014
|
+
okText: '关闭',
|
|
52015
|
+
cancelButtonProps: {
|
|
52016
|
+
show: false
|
|
52017
|
+
},
|
|
52018
|
+
style: {
|
|
52019
|
+
top: 0,
|
|
52020
|
+
transform: 'translate(-50%,0)'
|
|
52021
|
+
}
|
|
52022
|
+
});
|
|
52023
|
+
} catch (e) {
|
|
52024
|
+
console.log('modal_open', e);
|
|
52025
|
+
}
|
|
52026
|
+
}
|
|
52027
|
+
|
|
52028
|
+
break;
|
|
52029
|
+
|
|
52030
|
+
case "modal_close":
|
|
52031
|
+
_default$K.destroy();
|
|
52032
|
+
break;
|
|
51958
52033
|
}
|
|
51959
52034
|
}
|
|
51960
52035
|
}, {
|
|
@@ -52394,6 +52469,7 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
52394
52469
|
setWwwc(getCurrentElement(), wwwcCustomDic[9].ww, wwwcCustomDic[9].wc);
|
|
52395
52470
|
}
|
|
52396
52471
|
},
|
|
52472
|
+
getCurrentElement: getCurrentElement,
|
|
52397
52473
|
addStudy: function addStudy(value) {
|
|
52398
52474
|
/**
|
|
52399
52475
|
* 添加关联study
|