@complat/react-spectra-editor 1.0.0-rc2 → 1.0.0-rc20.patch-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.
Files changed (202) hide show
  1. package/README.md +16 -0
  2. package/dist/__tests__/fixtures/aif_jcamp_1.js +136 -0
  3. package/dist/__tests__/fixtures/aif_jcamp_2.js +122 -0
  4. package/dist/__tests__/fixtures/backup/nmr1h_a.js +3518 -0
  5. package/dist/__tests__/fixtures/backup/xrd_jcamp_1.js +10705 -0
  6. package/dist/__tests__/fixtures/cds_jcamp.js +861 -0
  7. package/dist/__tests__/fixtures/compare_ir_1_jcamp.js +585 -0
  8. package/dist/__tests__/fixtures/compare_ir_2_jcamp.js +515 -0
  9. package/dist/__tests__/fixtures/compare_uv_vis_jcamp.js +640 -0
  10. package/dist/__tests__/fixtures/cyclic_voltammetry_1.js +778 -0
  11. package/dist/__tests__/fixtures/cyclic_voltammetry_2.js +758 -0
  12. package/dist/__tests__/fixtures/cyclic_voltammetry_3.js +759 -0
  13. package/dist/__tests__/fixtures/dls_acf_jcamp.js +148 -0
  14. package/dist/__tests__/fixtures/dls_intensity_jcamp.js +151 -0
  15. package/dist/__tests__/fixtures/emissions_jcamp.js +883 -0
  16. package/dist/__tests__/fixtures/hplc_uvvis_jcamp.js +638 -0
  17. package/dist/__tests__/fixtures/hplc_uvvis_jcamp_2.js +221 -0
  18. package/dist/__tests__/fixtures/ir_jcamp.js +148 -0
  19. package/dist/__tests__/fixtures/ir_result.js +46 -0
  20. package/dist/__tests__/fixtures/ir_svg.js +8 -0
  21. package/dist/__tests__/fixtures/ms_jcamp.js +64 -0
  22. package/dist/__tests__/fixtures/nmr13c_dept_jcamp.js +3543 -0
  23. package/dist/__tests__/fixtures/nmr13c_jcamp.js +1229 -0
  24. package/dist/__tests__/fixtures/nmr15n_jcamp.js +7177 -0
  25. package/dist/__tests__/fixtures/nmr19f_jcamp.js +6560 -0
  26. package/dist/__tests__/fixtures/nmr1h_2_jcamp.js +2005 -0
  27. package/dist/__tests__/fixtures/nmr1h_jcamp.js +4516 -0
  28. package/dist/__tests__/fixtures/nmr29si_jcamp.js +3029 -0
  29. package/dist/__tests__/fixtures/nmr31p_jcamp.js +3418 -0
  30. package/dist/__tests__/fixtures/nmr_result.js +68 -0
  31. package/dist/__tests__/fixtures/nmr_svg.js +8 -0
  32. package/dist/__tests__/fixtures/phenylalanin.js +142 -0
  33. package/dist/__tests__/fixtures/qDescValue.js +65 -0
  34. package/dist/__tests__/fixtures/raman_jcamp.js +410 -0
  35. package/dist/__tests__/fixtures/sec_1_jcamp.js +425 -0
  36. package/dist/__tests__/fixtures/sec_2_jcamp.js +407 -0
  37. package/dist/__tests__/fixtures/sec_3_jcamp.js +408 -0
  38. package/dist/__tests__/fixtures/sec_4_jcamp.js +407 -0
  39. package/dist/__tests__/fixtures/tga_jcamp.js +4157 -0
  40. package/dist/__tests__/fixtures/uv_vis_jcamp.js +249 -0
  41. package/dist/__tests__/fixtures/xrd_jcamp_1.js +436 -0
  42. package/dist/__tests__/fixtures/xrd_jcamp_2.js +955 -0
  43. package/dist/__tests__/fixtures/xrd_jcamp_3.js +1871 -0
  44. package/dist/__tests__/units/components/panel/graph_selection.test.js +72 -0
  45. package/dist/__tests__/units/components/panel/peaks.test.js +87 -0
  46. package/dist/actions/curve.js +15 -14
  47. package/dist/actions/cyclic_voltammetry.js +40 -60
  48. package/dist/actions/edit_peak.js +8 -12
  49. package/dist/actions/forecast.js +16 -24
  50. package/dist/actions/integration.js +12 -18
  51. package/dist/actions/jcamp.js +16 -24
  52. package/dist/actions/layout.js +4 -6
  53. package/dist/actions/manager.js +20 -30
  54. package/dist/actions/meta.js +4 -6
  55. package/dist/actions/multiplicity.js +24 -36
  56. package/dist/actions/scan.js +12 -18
  57. package/dist/actions/shift.js +8 -12
  58. package/dist/actions/status.js +12 -18
  59. package/dist/actions/submit.js +16 -24
  60. package/dist/actions/threshold.js +20 -30
  61. package/dist/actions/ui.js +25 -31
  62. package/dist/actions/wavelength.js +4 -6
  63. package/dist/app.js +25 -23
  64. package/dist/components/cmd_bar/01_viewer.js +24 -34
  65. package/dist/components/cmd_bar/02_zoom.js +18 -28
  66. package/dist/components/cmd_bar/03_peak.js +50 -66
  67. package/dist/components/cmd_bar/04_integration.js +70 -84
  68. package/dist/components/cmd_bar/05_multiplicity.js +42 -56
  69. package/dist/components/cmd_bar/06_undo_redo.js +22 -36
  70. package/dist/components/cmd_bar/07_pecker.js +24 -34
  71. package/dist/components/cmd_bar/common.js +11 -7
  72. package/dist/components/cmd_bar/index.js +17 -23
  73. package/dist/components/cmd_bar/r01_layout.js +79 -56
  74. package/dist/components/cmd_bar/r02_scan.js +70 -87
  75. package/dist/components/cmd_bar/r03_threshold.js +54 -68
  76. package/dist/components/cmd_bar/r04_submit.js +71 -83
  77. package/dist/components/cmd_bar/r05_submit_btn.js +64 -72
  78. package/dist/components/cmd_bar/r06_predict_btn.js +142 -152
  79. package/dist/components/cmd_bar/r07_wavelength_btn.js +28 -36
  80. package/dist/components/cmd_bar/tri_btn.js +91 -113
  81. package/dist/components/common/chem.js +2 -3
  82. package/dist/components/common/comps.js +2 -2
  83. package/dist/components/common/draw.js +30 -11
  84. package/dist/components/d3_line/index.js +154 -176
  85. package/dist/components/d3_line/line_focus.js +595 -739
  86. package/dist/components/d3_multi/index.js +153 -174
  87. package/dist/components/d3_multi/multi_focus.js +725 -850
  88. package/dist/components/d3_rect/index.js +112 -134
  89. package/dist/components/d3_rect/rect_focus.js +163 -208
  90. package/dist/components/forecast/comps.js +60 -68
  91. package/dist/components/forecast/ir_comps.js +49 -56
  92. package/dist/components/forecast/ir_viewer.js +61 -68
  93. package/dist/components/forecast/nmr_comps.js +62 -72
  94. package/dist/components/forecast/nmr_viewer.js +59 -68
  95. package/dist/components/forecast/section_loading.js +39 -63
  96. package/dist/components/forecast_viewer.js +109 -119
  97. package/dist/components/multi_jcamps_viewer.js +97 -113
  98. package/dist/components/panel/compare.js +183 -192
  99. package/dist/components/panel/cyclic_voltamery_data.js +149 -165
  100. package/dist/components/panel/graph_selection.js +143 -132
  101. package/dist/components/panel/index.js +112 -144
  102. package/dist/components/panel/info.js +125 -132
  103. package/dist/components/panel/multiplicity.js +215 -223
  104. package/dist/components/panel/multiplicity_coupling.js +108 -136
  105. package/dist/components/panel/multiplicity_select.js +43 -51
  106. package/dist/components/panel/peaks.js +130 -132
  107. package/dist/constants/action_type.js +23 -39
  108. package/dist/constants/list_layout.js +7 -4
  109. package/dist/constants/list_shift.js +117 -103
  110. package/dist/constants/list_ui.js +3 -6
  111. package/dist/constants/list_wavelength.js +7 -8
  112. package/dist/fn.js +2 -3
  113. package/dist/helpers/brush.js +49 -65
  114. package/dist/helpers/calc.js +2 -4
  115. package/dist/helpers/carbonFeatures.js +22 -20
  116. package/dist/helpers/cfg.js +49 -67
  117. package/dist/helpers/chem.js +450 -393
  118. package/dist/helpers/compass.js +92 -83
  119. package/dist/helpers/converter.js +52 -65
  120. package/dist/helpers/extractParams.js +60 -52
  121. package/dist/helpers/extractPeaksEdit.js +29 -25
  122. package/dist/helpers/focus.js +2 -6
  123. package/dist/helpers/format.js +416 -361
  124. package/dist/helpers/init.js +41 -37
  125. package/dist/helpers/integration.js +18 -21
  126. package/dist/helpers/mount.js +57 -61
  127. package/dist/helpers/multiplicity.js +19 -24
  128. package/dist/helpers/multiplicity_calc.js +39 -50
  129. package/dist/helpers/multiplicity_complat.js +21 -47
  130. package/dist/helpers/multiplicity_manual.js +49 -55
  131. package/dist/helpers/multiplicity_verify_basic.js +108 -111
  132. package/dist/helpers/shift.js +15 -23
  133. package/dist/helpers/zoom.js +7 -11
  134. package/dist/index.js +680 -630
  135. package/dist/layer_content.js +40 -43
  136. package/dist/layer_init.js +162 -184
  137. package/dist/layer_prism.js +38 -41
  138. package/dist/reducers/index.js +2 -3
  139. package/dist/reducers/reducer_curve.js +35 -26
  140. package/dist/reducers/reducer_edit_peak.js +122 -98
  141. package/dist/reducers/reducer_forecast.js +57 -44
  142. package/dist/reducers/reducer_integration.js +135 -103
  143. package/dist/reducers/reducer_jcamp.js +49 -44
  144. package/dist/reducers/reducer_layout.js +5 -6
  145. package/dist/reducers/reducer_manager.js +5 -6
  146. package/dist/reducers/reducer_meta.js +5 -6
  147. package/dist/reducers/reducer_multiplicity.js +100 -77
  148. package/dist/reducers/reducer_scan.js +17 -20
  149. package/dist/reducers/reducer_shift.js +115 -70
  150. package/dist/reducers/reducer_simulation.js +7 -8
  151. package/dist/reducers/reducer_status.js +5 -6
  152. package/dist/reducers/reducer_submit.js +12 -15
  153. package/dist/reducers/reducer_threshold.js +5 -6
  154. package/dist/reducers/reducer_ui.js +5 -6
  155. package/dist/reducers/reducer_voltammetry.js +156 -96
  156. package/dist/reducers/reducer_wavelength.js +5 -6
  157. package/dist/reducers/undo_redo_config.js +3 -5
  158. package/dist/sagas/index.js +2 -15
  159. package/dist/sagas/saga_edit_peak.js +54 -68
  160. package/dist/sagas/saga_manager.js +86 -130
  161. package/dist/sagas/saga_meta.js +25 -31
  162. package/dist/sagas/saga_multi_entities.js +40 -103
  163. package/dist/sagas/saga_multiplicity.js +336 -406
  164. package/dist/sagas/saga_ui.js +296 -475
  165. package/dist/setupTests.js +8 -0
  166. package/dist/third_party/jAnalyzer.js +66 -67
  167. package/dist/third_party/peakInterval.js +34 -34
  168. package/package.json +14 -14
  169. package/dist/components/cmd_bar/03_peak_bk.js +0 -139
  170. package/dist/components/cmd_bar/04_integration_bk.js +0 -180
  171. package/dist/components/cmd_bar/05_multiplicity_bk.js +0 -131
  172. package/dist/components/cmd_bar/r01_layout_bk.js +0 -186
  173. package/dist/components/cmd_bar/r06_predict_btn_bk.js +0 -220
  174. package/dist/components/d3_line/line_focus_bk.js +0 -825
  175. package/dist/components/d3_multi/index_bk.js +0 -210
  176. package/dist/components/d3_multi/multi_focus_bk.js +0 -533
  177. package/dist/components/panel/compare_bk.js +0 -256
  178. package/dist/components/panel/cyclic_voltamery_data_bk.js +0 -292
  179. package/dist/components/panel/index_bk.js +0 -178
  180. package/dist/components/panel/info_bk.js +0 -235
  181. package/dist/components/panel/multiplicity_bk.js +0 -280
  182. package/dist/helpers/carbonFeatures_bk.js +0 -45
  183. package/dist/helpers/cfg_bk.js +0 -80
  184. package/dist/helpers/chem_bk.js +0 -787
  185. package/dist/helpers/compass_bk.js +0 -149
  186. package/dist/helpers/converter_bk.js +0 -96
  187. package/dist/helpers/extractPeaksEdit_bk.js +0 -53
  188. package/dist/helpers/format_bk.js +0 -497
  189. package/dist/index_bk.js +0 -640
  190. package/dist/layer_content_bk.js +0 -105
  191. package/dist/layer_init_bk.js +0 -235
  192. package/dist/layer_prism_bk.js +0 -133
  193. package/dist/reducers/reducer_edit_peak_bk.js +0 -108
  194. package/dist/reducers/reducer_integration_bk.js +0 -134
  195. package/dist/reducers/reducer_jcamp_bk.js +0 -71
  196. package/dist/reducers/reducer_multiplicity_bk.js +0 -126
  197. package/dist/reducers/reducer_shift_bk.js +0 -88
  198. package/dist/reducers/reducer_voltammetry_bk.js +0 -287
  199. package/dist/sagas/saga_edit_peak_bk.js +0 -73
  200. package/dist/sagas/saga_multi_entities_bk.js +0 -106
  201. package/dist/sagas/saga_multiplicity_bk.js +0 -351
  202. package/dist/sagas/saga_ui_bk.js +0 -453
@@ -5,12 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
8
  var _react = _interopRequireDefault(require("react"));
15
9
  var _reactRedux = require("react-redux");
16
10
  var _redux = require("redux");
@@ -21,136 +15,121 @@ var _ui = require("../../actions/ui");
21
15
  var _rect_focus = _interopRequireDefault(require("./rect_focus"));
22
16
  var _draw = require("../common/draw");
23
17
  var _list_ui = require("../../constants/list_ui");
24
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable no-mixed-operators */
26
- var W = Math.round(window.innerWidth * 0.90 * 9 / 12); // ROI
27
- var H = Math.round(window.innerHeight * 0.90 * 0.85); // ROI
28
- var ViewerRect = /*#__PURE__*/function (_React$Component) {
29
- (0, _inherits2.default)(ViewerRect, _React$Component);
30
- var _super = _createSuper(ViewerRect);
31
- function ViewerRect(props) {
32
- var _this;
33
- (0, _classCallCheck2.default)(this, ViewerRect);
34
- _this = _super.call(this, props);
35
- var clickUiTargetAct = props.clickUiTargetAct,
36
- selectUiSweepAct = props.selectUiSweepAct,
37
- scrollUiWheelAct = props.scrollUiWheelAct;
38
- _this.rootKlass = '.d3Rect';
39
- _this.focus = new _rect_focus.default({
40
- W: W,
41
- H: H,
42
- clickUiTargetAct: clickUiTargetAct,
43
- selectUiSweepAct: selectUiSweepAct,
44
- scrollUiWheelAct: scrollUiWheelAct
18
+ /* eslint-disable no-mixed-operators */
19
+
20
+ const W = Math.round(window.innerWidth * 0.90 * 9 / 12); // ROI
21
+ const H = Math.round(window.innerHeight * 0.90 * 0.85); // ROI
22
+
23
+ class ViewerRect extends _react.default.Component {
24
+ constructor(props) {
25
+ super(props);
26
+ const {
27
+ clickUiTargetAct,
28
+ selectUiSweepAct,
29
+ scrollUiWheelAct
30
+ } = props;
31
+ this.rootKlass = '.d3Rect';
32
+ this.focus = new _rect_focus.default({
33
+ W,
34
+ H,
35
+ clickUiTargetAct,
36
+ selectUiSweepAct,
37
+ scrollUiWheelAct
45
38
  });
46
- _this.normChange = _this.normChange.bind((0, _assertThisInitialized2.default)(_this));
47
- return _this;
39
+ this.normChange = this.normChange.bind(this);
48
40
  }
49
- (0, _createClass2.default)(ViewerRect, [{
50
- key: "componentDidMount",
51
- value: function componentDidMount() {
52
- var _this$props = this.props,
53
- seed = _this$props.seed,
54
- peak = _this$props.peak,
55
- cLabel = _this$props.cLabel,
56
- xLabel = _this$props.xLabel,
57
- yLabel = _this$props.yLabel,
58
- feature = _this$props.feature,
59
- tTrEndPts = _this$props.tTrEndPts,
60
- tSfPeaks = _this$props.tSfPeaks,
61
- isHidden = _this$props.isHidden,
62
- sweepExtentSt = _this$props.sweepExtentSt,
63
- isUiAddIntgSt = _this$props.isUiAddIntgSt,
64
- isUiNoBrushSt = _this$props.isUiNoBrushSt,
65
- resetAllAct = _this$props.resetAllAct;
66
- (0, _draw.drawDestroy)(this.rootKlass);
41
+ componentDidMount() {
42
+ const {
43
+ seed,
44
+ peak,
45
+ cLabel,
46
+ xLabel,
47
+ yLabel,
48
+ feature,
49
+ tTrEndPts,
50
+ tSfPeaks,
51
+ isHidden,
52
+ sweepExtentSt,
53
+ isUiAddIntgSt,
54
+ isUiNoBrushSt,
55
+ resetAllAct
56
+ } = this.props;
57
+ (0, _draw.drawDestroy)(this.rootKlass);
58
+ resetAllAct(feature);
59
+ const filterSeed = seed;
60
+ const filterPeak = peak;
61
+ (0, _draw.drawMain)(this.rootKlass, W, H);
62
+ this.focus.create({
63
+ filterSeed,
64
+ filterPeak,
65
+ tTrEndPts,
66
+ tSfPeaks,
67
+ sweepExtentSt,
68
+ isUiAddIntgSt,
69
+ isUiNoBrushSt
70
+ });
71
+ (0, _draw.drawLabel)(this.rootKlass, cLabel, xLabel, yLabel);
72
+ (0, _draw.drawDisplay)(this.rootKlass, isHidden);
73
+ }
74
+ componentDidUpdate(prevProps) {
75
+ const {
76
+ seed,
77
+ peak,
78
+ tTrEndPts,
79
+ tSfPeaks,
80
+ isHidden,
81
+ sweepExtentSt,
82
+ isUiAddIntgSt,
83
+ isUiNoBrushSt
84
+ } = this.props;
85
+ this.normChange(prevProps);
86
+ const filterSeed = seed;
87
+ const filterPeak = peak;
88
+ this.focus.update({
89
+ filterSeed,
90
+ filterPeak,
91
+ tTrEndPts,
92
+ tSfPeaks,
93
+ sweepExtentSt,
94
+ isUiAddIntgSt,
95
+ isUiNoBrushSt
96
+ });
97
+ (0, _draw.drawDisplay)(this.rootKlass, isHidden);
98
+ }
99
+ componentWillUnmount() {
100
+ (0, _draw.drawDestroy)(this.rootKlass);
101
+ }
102
+ normChange(prevProps) {
103
+ const {
104
+ feature,
105
+ resetAllAct
106
+ } = this.props;
107
+ const oldFeature = prevProps.feature;
108
+ if (oldFeature !== feature) {
67
109
  resetAllAct(feature);
68
- var filterSeed = seed;
69
- var filterPeak = peak;
70
- (0, _draw.drawMain)(this.rootKlass, W, H);
71
- this.focus.create({
72
- filterSeed: filterSeed,
73
- filterPeak: filterPeak,
74
- tTrEndPts: tTrEndPts,
75
- tSfPeaks: tSfPeaks,
76
- sweepExtentSt: sweepExtentSt,
77
- isUiAddIntgSt: isUiAddIntgSt,
78
- isUiNoBrushSt: isUiNoBrushSt
79
- });
80
- (0, _draw.drawLabel)(this.rootKlass, cLabel, xLabel, yLabel);
81
- (0, _draw.drawDisplay)(this.rootKlass, isHidden);
82
- }
83
- }, {
84
- key: "componentDidUpdate",
85
- value: function componentDidUpdate(prevProps) {
86
- var _this$props2 = this.props,
87
- seed = _this$props2.seed,
88
- peak = _this$props2.peak,
89
- tTrEndPts = _this$props2.tTrEndPts,
90
- tSfPeaks = _this$props2.tSfPeaks,
91
- isHidden = _this$props2.isHidden,
92
- sweepExtentSt = _this$props2.sweepExtentSt,
93
- isUiAddIntgSt = _this$props2.isUiAddIntgSt,
94
- isUiNoBrushSt = _this$props2.isUiNoBrushSt;
95
- this.normChange(prevProps);
96
- var filterSeed = seed;
97
- var filterPeak = peak;
98
- this.focus.update({
99
- filterSeed: filterSeed,
100
- filterPeak: filterPeak,
101
- tTrEndPts: tTrEndPts,
102
- tSfPeaks: tSfPeaks,
103
- sweepExtentSt: sweepExtentSt,
104
- isUiAddIntgSt: isUiAddIntgSt,
105
- isUiNoBrushSt: isUiNoBrushSt
106
- });
107
- (0, _draw.drawDisplay)(this.rootKlass, isHidden);
108
- }
109
- }, {
110
- key: "componentWillUnmount",
111
- value: function componentWillUnmount() {
112
- (0, _draw.drawDestroy)(this.rootKlass);
113
110
  }
114
- }, {
115
- key: "normChange",
116
- value: function normChange(prevProps) {
117
- var _this$props3 = this.props,
118
- feature = _this$props3.feature,
119
- resetAllAct = _this$props3.resetAllAct;
120
- var oldFeature = prevProps.feature;
121
- if (oldFeature !== feature) {
122
- resetAllAct(feature);
123
- }
124
- }
125
- }, {
126
- key: "render",
127
- value: function render() {
128
- return /*#__PURE__*/_react.default.createElement("div", {
129
- className: "d3Rect"
130
- });
131
- }
132
- }]);
133
- return ViewerRect;
134
- }(_react.default.Component);
135
- var mapStateToProps = function mapStateToProps(state, props) {
136
- return {
137
- seed: (0, _chem.Topic2Seed)(state, props),
138
- peak: (0, _chem.Feature2Peak)(state, props),
139
- tTrEndPts: (0, _chem.ToThresEndPts)(state, props),
140
- tSfPeaks: (0, _chem.ToShiftPeaks)(state, props),
141
- sweepExtentSt: state.ui.sweepExtent,
142
- isUiAddIntgSt: state.ui.sweepType === _list_ui.LIST_UI_SWEEP_TYPE.INTEGRATION_ADD,
143
- isUiNoBrushSt: _list_ui.LIST_NON_BRUSH_TYPES.indexOf(state.ui.sweepType) < 0
144
- };
145
- };
146
- var mapDispatchToProps = function mapDispatchToProps(dispatch) {
147
- return (0, _redux.bindActionCreators)({
148
- resetAllAct: _manager.resetAll,
149
- clickUiTargetAct: _ui.clickUiTarget,
150
- selectUiSweepAct: _ui.selectUiSweep,
151
- scrollUiWheelAct: _ui.scrollUiWheel
152
- }, dispatch);
153
- };
111
+ }
112
+ render() {
113
+ return /*#__PURE__*/_react.default.createElement("div", {
114
+ className: "d3Rect"
115
+ });
116
+ }
117
+ }
118
+ const mapStateToProps = (state, props) => ({
119
+ seed: (0, _chem.Topic2Seed)(state, props),
120
+ peak: (0, _chem.Feature2Peak)(state, props),
121
+ tTrEndPts: (0, _chem.ToThresEndPts)(state, props),
122
+ tSfPeaks: (0, _chem.ToShiftPeaks)(state, props),
123
+ sweepExtentSt: state.ui.sweepExtent,
124
+ isUiAddIntgSt: state.ui.sweepType === _list_ui.LIST_UI_SWEEP_TYPE.INTEGRATION_ADD,
125
+ isUiNoBrushSt: _list_ui.LIST_NON_BRUSH_TYPES.indexOf(state.ui.sweepType) < 0
126
+ });
127
+ const mapDispatchToProps = dispatch => (0, _redux.bindActionCreators)({
128
+ resetAllAct: _manager.resetAll,
129
+ clickUiTargetAct: _ui.clickUiTarget,
130
+ selectUiSweepAct: _ui.selectUiSweep,
131
+ scrollUiWheelAct: _ui.scrollUiWheel
132
+ }, dispatch);
154
133
  ViewerRect.propTypes = {
155
134
  seed: _propTypes.default.array.isRequired,
156
135
  peak: _propTypes.default.array.isRequired,
@@ -169,5 +148,4 @@ ViewerRect.propTypes = {
169
148
  scrollUiWheelAct: _propTypes.default.func.isRequired,
170
149
  isHidden: _propTypes.default.bool.isRequired
171
150
  };
172
- var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerRect);
173
- exports.default = _default;
151
+ var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerRect);