hellfire 0.18.2 → 0.18.3
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 +29 -5
- 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.18.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.18.2...v0.18.3) (2022-01-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.18.2](http://10.16.100.57/diffusion/115/paladin/compare/v0.18.1...v0.18.2) (2022-01-27)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -575,7 +575,9 @@ var WwwcDefinedList = {
|
|
|
575
575
|
WWWC_NECK: [350, 90],
|
|
576
576
|
WWWC_TOP_ABDOMEN: [150, 50]
|
|
577
577
|
};
|
|
578
|
-
var LengthTools = ['Length', 'Angle', 'ArrowAnnotate', 'EllipticalRoi', 'Probe', 'RectangleRoi', 'CobbAngle', 'CTR'];
|
|
578
|
+
var LengthTools = ['Length', 'Angle', 'ArrowAnnotate', 'EllipticalRoi', 'Probe', 'RectangleRoi', 'CobbAngle', 'CTR', 'ReferencePosition']; // 真正的测量工具 连续测量那边需要用到
|
|
579
|
+
|
|
580
|
+
var LengthToolsWithMeasure = ['Length', 'Angle', 'ArrowAnnotate', 'EllipticalRoi', 'Probe', 'RectangleRoi', 'CobbAngle', 'CTR'];
|
|
579
581
|
var LengthToolMap = {
|
|
580
582
|
Length: '直线',
|
|
581
583
|
ArrowAnnotate: '箭头',
|
|
@@ -601,6 +603,7 @@ var ToolsCursorMap = {
|
|
|
601
603
|
|
|
602
604
|
reactHotLoader.register(WwwcDefinedList, "WwwcDefinedList", "/Users/huyeqing/workspace/chainz/paladin/src/utils/constant.js");
|
|
603
605
|
reactHotLoader.register(LengthTools, "LengthTools", "/Users/huyeqing/workspace/chainz/paladin/src/utils/constant.js");
|
|
606
|
+
reactHotLoader.register(LengthToolsWithMeasure, "LengthToolsWithMeasure", "/Users/huyeqing/workspace/chainz/paladin/src/utils/constant.js");
|
|
604
607
|
reactHotLoader.register(LengthToolMap, "LengthToolMap", "/Users/huyeqing/workspace/chainz/paladin/src/utils/constant.js");
|
|
605
608
|
reactHotLoader.register(ToolsCursorMap, "ToolsCursorMap", "/Users/huyeqing/workspace/chainz/paladin/src/utils/constant.js");
|
|
606
609
|
})();
|
|
@@ -48312,7 +48315,7 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
48312
48315
|
|
|
48313
48316
|
var activeTool = _this.props.activeTool;
|
|
48314
48317
|
|
|
48315
|
-
if (!_this.props.continuousMeasure && lodash$1.includes(
|
|
48318
|
+
if (!_this.props.continuousMeasure && lodash$1.includes(LengthToolsWithMeasure, activeTool)) {
|
|
48316
48319
|
var toolData = _default$E.getToolState(_this.element, activeDataTool);
|
|
48317
48320
|
|
|
48318
48321
|
if (toolData && toolData.data && toolData.data.length > 0) {
|
|
@@ -48688,7 +48691,6 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
48688
48691
|
});
|
|
48689
48692
|
});
|
|
48690
48693
|
|
|
48691
|
-
_this.loaded = false;
|
|
48692
48694
|
_this.mouseDownViewport = null; // 记录鼠标操作前的viewport,为了相对同步
|
|
48693
48695
|
// 拷贝一份 使得作用域内stack的修改不污染外部的series
|
|
48694
48696
|
|
|
@@ -50087,6 +50089,27 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
50087
50089
|
// 测量工具下不响应双击操作
|
|
50088
50090
|
if (lodash$1.includes(LengthTools, propsFromState.activeTool)) {
|
|
50089
50091
|
return;
|
|
50092
|
+
} // 有绘制的toolData被激活时 也不响应(双点击的会偶发T10283)
|
|
50093
|
+
|
|
50094
|
+
|
|
50095
|
+
var element = getElement(index);
|
|
50096
|
+
var checkToolDataActive = false;
|
|
50097
|
+
lodash$1.forEach(LengthTools, function (tool) {
|
|
50098
|
+
if (!checkToolDataActive) {
|
|
50099
|
+
var toolData = _default$E.getToolState(element, tool);
|
|
50100
|
+
|
|
50101
|
+
if (toolData && toolData.data && toolData.data.length > 0) {
|
|
50102
|
+
lodash$1.forEach(toolData.data, function (handler) {
|
|
50103
|
+
if (handler && handler.active) {
|
|
50104
|
+
checkToolDataActive = true;
|
|
50105
|
+
}
|
|
50106
|
+
});
|
|
50107
|
+
}
|
|
50108
|
+
}
|
|
50109
|
+
});
|
|
50110
|
+
|
|
50111
|
+
if (checkToolDataActive) {
|
|
50112
|
+
return;
|
|
50090
50113
|
}
|
|
50091
50114
|
|
|
50092
50115
|
var onePickMode = propsFromState.onePickMode,
|
|
@@ -50120,8 +50143,9 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
50120
50143
|
|
|
50121
50144
|
setTimeout(function () {
|
|
50122
50145
|
try {
|
|
50123
|
-
var
|
|
50124
|
-
|
|
50146
|
+
var _element = getElement(resizeIndex);
|
|
50147
|
+
|
|
50148
|
+
cornerstone.resize(_element, true);
|
|
50125
50149
|
} catch (e) {
|
|
50126
50150
|
console.log('ignore element not enabled event');
|
|
50127
50151
|
}
|