hellfire 0.26.0 → 0.26.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 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.26.1](http://10.16.100.57/diffusion/115/paladin/compare/v0.26.0...v0.26.1) (2023-05-16)
6
+
7
+
8
+
5
9
  # [0.26.0](http://10.16.100.57/diffusion/115/paladin/compare/v0.25.16...v0.26.0) (2023-05-16)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -42747,12 +42747,12 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
42747
42747
  var _this$props3 = this.props,
42748
42748
  start3D = _this$props3.start3D,
42749
42749
  exit3D = _this$props3.exit3D,
42750
- toggleToolMode = _this$props3.toggleToolMode,
42751
42750
  toggleOverlayText = _this$props3.toggleOverlayText,
42752
42751
  toggleImageMode = _this$props3.toggleImageMode,
42753
42752
  toggleMeasure = _this$props3.toggleMeasure,
42754
42753
  openDicomModal = _this$props3.openDicomModal,
42755
- handleFullscreen = _this$props3.handleFullscreen;
42754
+ handleFullscreen = _this$props3.handleFullscreen,
42755
+ setCustomWindowLayoutType = _this$props3.setCustomWindowLayoutType;
42756
42756
  var isThree = MPR || VR || Surgery || MIP;
42757
42757
  var IODisconnect = !IO;
42758
42758
  var commonTools = ['Layout', 'StackScroll', 'Wwwc', 'Zoom', 'Pan', 'Rotate', 'ReverseColor', 'Sharpen', 'Cine', 'FalseColor', 'Link', 'ReferencePosition', 'Reset'];
@@ -42793,9 +42793,11 @@ var DicomToolFlattenMode$1 = /*#__PURE__*/function (_Component) {
42793
42793
  className: "paladin-tool-flatten-hor-wrapper"
42794
42794
  }, IODisconnect && /*#__PURE__*/React__default.createElement("div", {
42795
42795
  className: "paladin-flatten-hor-go-line",
42796
- onClick: toggleToolMode
42796
+ onClick: function onClick() {
42797
+ setCustomWindowLayoutType('horizontal');
42798
+ }
42797
42799
  }, /*#__PURE__*/React__default.createElement(PopperBox, {
42798
- tooltip: '折叠工具栏'
42800
+ tooltip: '切换工具栏'
42799
42801
  }, /*#__PURE__*/React__default.createElement("div", {
42800
42802
  className: "paladin-flatten-hor-go-line-content"
42801
42803
  }, /*#__PURE__*/React__default.createElement(SvgCaretLeft, null)))), !Surgery && /*#__PURE__*/React__default.createElement("div", {
@@ -45060,7 +45062,15 @@ var DicomTool = /*#__PURE__*/function (_Component) {
45060
45062
  }
45061
45063
 
45062
45064
  var width = window.innerWidth;
45063
- var height = window.innerHeight; // 横屏
45065
+ var height = window.innerHeight;
45066
+ /**
45067
+ * 工具栏影响因素:
45068
+ * 1._toolMode为 line 和 flatten 简约工具栏和展开式工具栏(期望尽量不用简约)
45069
+ * 2.pc端横屏还是竖屏
45070
+ * 3.手机端
45071
+ * 4.手机端三维界面
45072
+ */
45073
+ // 横屏
45064
45074
 
45065
45075
  var FlattenMode = DicomToolFlattenMode;
45066
45076
 
@@ -45078,7 +45088,8 @@ var DicomTool = /*#__PURE__*/function (_Component) {
45078
45088
  toolsMap: this.toolsMap,
45079
45089
  direction: isMobile ? 'Horizontal' : 'Vertical'
45080
45090
  })), _toolMode === 'flatten' && /*#__PURE__*/React__default.createElement(FlattenMode, _extends_1({}, this.props, {
45081
- toolsMap: this.toolsMap
45091
+ toolsMap: this.toolsMap,
45092
+ setCustomWindowLayoutType: this.props.setCustomWindowLayoutType
45082
45093
  })), _toolMode === 'mobile' && /*#__PURE__*/React__default.createElement(DicomToolMobileThreeModeBottom, _extends_1({}, this.props, {
45083
45094
  toolsMap: this.toolsMap,
45084
45095
  scrollHidden: isThree
@@ -53375,9 +53386,16 @@ var DicomView = /*#__PURE__*/function (_Component) {
53375
53386
  });
53376
53387
  });
53377
53388
 
53389
+ defineProperty(assertThisInitialized(_this), "setCustomWindowLayoutType", function (value) {
53390
+ _this.setState({
53391
+ windowLayoutType: value
53392
+ });
53393
+ });
53394
+
53378
53395
  _this.state = {
53379
53396
  study: _this.props.study,
53380
- resize: 0
53397
+ resize: 0,
53398
+ windowLayoutType: _this.props.windowLayoutType
53381
53399
  }; // 窗口变化要重新渲染滚动条的距离
53382
53400
 
53383
53401
  _this.debouncedResize = lodash$1.debounce(_this.resize, 300);
@@ -53438,6 +53456,12 @@ var DicomView = /*#__PURE__*/function (_Component) {
53438
53456
  set$1('aiResult', nextProps.aiResult.inspectionDetails);
53439
53457
  }
53440
53458
  }
53459
+
53460
+ if (nextProps.windowLayoutType !== this.props.windowLayoutType) {
53461
+ this.setState({
53462
+ windowLayoutType: nextProps.windowLayoutType
53463
+ });
53464
+ }
53441
53465
  }
53442
53466
  }, {
53443
53467
  key: "componentWillUnmount",
@@ -53801,7 +53825,8 @@ var DicomView = /*#__PURE__*/function (_Component) {
53801
53825
  helpLink: this.props.helpLink,
53802
53826
  changeWindowSet: this.props.changeWindowSet,
53803
53827
  study: this.state.study,
53804
- windowLayoutType: this.props.windowLayoutType
53828
+ windowLayoutType: this.state.windowLayoutType,
53829
+ setCustomWindowLayoutType: this.setCustomWindowLayoutType
53805
53830
  }));
53806
53831
  var DicomLayout = /*#__PURE__*/React__default.createElement(DicomLayoutContainerWrap, null, viewMode === '2D' && this.props.mode === 'seriesMode' && /*#__PURE__*/React__default.createElement(ConnectedDicomLayout, {
53807
53832
  series: this.props.series,
@@ -53870,8 +53895,8 @@ var DicomView = /*#__PURE__*/function (_Component) {
53870
53895
  var width = window.innerWidth;
53871
53896
  var height = window.innerHeight;
53872
53897
 
53873
- if (this.props.windowLayoutType) {
53874
- if (this.props.windowLayoutType === 'vertical') pc = verticalLayout;
53898
+ if (this.state.windowLayoutType) {
53899
+ if (this.state.windowLayoutType === 'vertical') pc = verticalLayout;
53875
53900
  } else {
53876
53901
  if (width < height && toolMode === 'flatten') {
53877
53902
  // 竖屏 + 展开