hellfire 0.20.3 → 0.20.4

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 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.20.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.20.3...v0.20.4) (2022-05-19)
6
+
7
+
8
+
5
9
  ## [0.20.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.20.2...v0.20.3) (2022-05-18)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -27277,10 +27277,20 @@ var PolygonTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
27277
27277
  }
27278
27278
  }
27279
27279
 
27280
- var isToolLocked = lodash$1.get(cornerstoneTools, ['store', 'state', 'isToolLocked']);
27280
+ var isToolLocked = lodash$1.get(cornerstoneTools, ['store', 'state', 'isToolLocked']); // 会锁住 需要手动解锁state
27281
+
27281
27282
 
27282
27283
  if (isToolLocked) {
27283
- var enable = external$k.cornerstone.getEnabledElement(_this.elementCache);
27284
+ var enable = external$k.cornerstone.getEnabledElement(_this.elementCache); // 情况:添加一个点后没有move,这时候就不会走moveHandler,下面mouseup模拟的endHandler也不会生效,所以需要先模拟move
27285
+
27286
+ triggerEvent$3(_this.elementCache, EVENTS$4.MOUSE_MOVE, {
27287
+ element: _this.elementCache,
27288
+ currentPoints: {
27289
+ page: cornerstoneMath.point.pageToPoint(e)
27290
+ },
27291
+ image: enable.image,
27292
+ buttons: getEventButtons(e)
27293
+ });
27284
27294
  triggerEvent$3(_this.elementCache, EVENTS$4.MOUSE_UP, {
27285
27295
  element: _this.elementCache,
27286
27296
  currentPoints: {
@@ -27739,7 +27749,7 @@ function _createTextBoxContent$2(context, isColorImage) {
27739
27749
  if (!isColorImage) {
27740
27750
  var meanString = "Mean: ".concat(numbersWithCommas$2(mean.toFixed(1)));
27741
27751
  var stdDevString = "StdDev: ".concat(numbersWithCommas$2(stdDev.toFixed(1)));
27742
- textLines.push("Min/Max: ".concat(min, " / ").concat(max));
27752
+ textLines.push("Min/Max: ".concat(min.toFixed(1), " / ").concat(max.toFixed(1)));
27743
27753
  textLines.push("".concat(meanString));
27744
27754
  textLines.push("".concat(stdDevString));
27745
27755
  }
@@ -35969,11 +35979,11 @@ var LengthTool$1 = /*#__PURE__*/function (_Component) {
35969
35979
  icon: /*#__PURE__*/React__default.createElement(SvgSave, null),
35970
35980
  value: 'save',
35971
35981
  hidden: !operateServerToolState || IO
35972
- }]; // 移动端不显示"连续测量"
35982
+ }]; // 移动端不显示 "连续测量" "多边形"
35973
35983
 
35974
35984
  if (isMobile) {
35975
35985
  toolChildren = lodash$1.filter(toolChildren, function (item) {
35976
- return item.key !== 'continuousMeasure';
35986
+ return item.key !== 'continuousMeasure' && item.value !== 'Polygon';
35977
35987
  });
35978
35988
  }
35979
35989
 
@@ -54705,7 +54715,10 @@ var mapStateToProps$l = function mapStateToProps(state) {
54705
54715
  MPR = _state$paladin$tools$2.MPR,
54706
54716
  VR = _state$paladin$tools$2.VR,
54707
54717
  Surgery = _state$paladin$tools$2.Surgery,
54708
- Cine = _state$paladin$tools$2.Cine;
54718
+ Cine = _state$paladin$tools$2.Cine,
54719
+ activeTool = _state$paladin$tools$2.activeTool,
54720
+ continuousMeasure = _state$paladin$tools$2.continuousMeasure,
54721
+ originActiveTool = _state$paladin$tools$2.originActiveTool;
54709
54722
  var toolMode = state.paladin.tools.customization.toolMode;
54710
54723
  return {
54711
54724
  activeIndex: activeIndex,
@@ -54730,7 +54743,10 @@ var mapStateToProps$l = function mapStateToProps(state) {
54730
54743
  synchronizer: synchronizer,
54731
54744
  linkSynchronizer: linkSynchronizer,
54732
54745
  linkImageModeSynchronizer: linkImageModeSynchronizer,
54733
- linkScrollSynchronizer: linkScrollSynchronizer
54746
+ linkScrollSynchronizer: linkScrollSynchronizer,
54747
+ activeTool: activeTool,
54748
+ continuousMeasure: continuousMeasure,
54749
+ originActiveTool: originActiveTool
54734
54750
  };
54735
54751
  };
54736
54752
 
@@ -54804,7 +54820,8 @@ var mergeProps$k = function mergeProps(propsFromState, propsFromDispatch, ownPro
54804
54820
  WWWC7: ['key-7'],
54805
54821
  WWWC8: ['key-8'],
54806
54822
  WWWC9: ['key-9'],
54807
- PAUSE: "space"
54823
+ PAUSE: "space",
54824
+ ESC: "esc"
54808
54825
  },
54809
54826
  handlers: {
54810
54827
  PAUSE: function PAUSE() {
@@ -54952,6 +54969,15 @@ var mergeProps$k = function mergeProps(propsFromState, propsFromDispatch, ownPro
54952
54969
  backToEnd: true
54953
54970
  });
54954
54971
  },
54972
+ ESC: function ESC() {
54973
+ var activeTool = propsFromState.activeTool,
54974
+ continuousMeasure = propsFromState.continuousMeasure,
54975
+ originActiveTool = propsFromState.originActiveTool;
54976
+
54977
+ if (!continuousMeasure && activeTool && activeTool === 'Polygon') {
54978
+ propsFromDispatch.setActiveTool(originActiveTool);
54979
+ }
54980
+ },
54955
54981
  WWWC1: function WWWC1() {
54956
54982
  if (!wwwcCustomDic[0]) return;
54957
54983
  setWwwc(getCurrentElement(), wwwcCustomDic[0].ww, wwwcCustomDic[0].wc);
@@ -55198,7 +55224,8 @@ var ConnectedDicomView = reactRedux.connect(mapStateToProps$l, {
55198
55224
  closeOnePickLayout: closeOnePickLayout,
55199
55225
  activeDicomFunction: activeDicomFunction,
55200
55226
  openIO: openIO,
55201
- closeIO: closeIO
55227
+ closeIO: closeIO,
55228
+ setActiveTool: setActiveTool
55202
55229
  }, mergeProps$k, withRef())(DicomView);
55203
55230
 
55204
55231
  function withRef() {