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