@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
|
@@ -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");
|
|
@@ -22,178 +16,163 @@ var _line_focus = _interopRequireDefault(require("./line_focus"));
|
|
|
22
16
|
var _draw = require("../common/draw");
|
|
23
17
|
var _list_ui = require("../../constants/list_ui");
|
|
24
18
|
var _cyclic_voltammetry = require("../../actions/cyclic_voltammetry");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
scrollUiWheelAct: scrollUiWheelAct
|
|
19
|
+
/* eslint-disable no-mixed-operators */
|
|
20
|
+
|
|
21
|
+
const W = Math.round(window.innerWidth * 0.90 * 9 / 12); // ROI
|
|
22
|
+
const H = Math.round(window.innerHeight * 0.90 * 0.85); // ROI
|
|
23
|
+
|
|
24
|
+
class ViewerLine extends _react.default.Component {
|
|
25
|
+
constructor(props) {
|
|
26
|
+
super(props);
|
|
27
|
+
const {
|
|
28
|
+
clickUiTargetAct,
|
|
29
|
+
selectUiSweepAct,
|
|
30
|
+
scrollUiWheelAct
|
|
31
|
+
} = props;
|
|
32
|
+
this.rootKlass = '.d3Line';
|
|
33
|
+
this.focus = new _line_focus.default({
|
|
34
|
+
W,
|
|
35
|
+
H,
|
|
36
|
+
clickUiTargetAct,
|
|
37
|
+
selectUiSweepAct,
|
|
38
|
+
scrollUiWheelAct
|
|
46
39
|
});
|
|
47
|
-
|
|
48
|
-
return _this;
|
|
40
|
+
this.normChange = this.normChange.bind(this);
|
|
49
41
|
}
|
|
50
|
-
(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
42
|
+
componentDidMount() {
|
|
43
|
+
const {
|
|
44
|
+
seed,
|
|
45
|
+
peak,
|
|
46
|
+
cLabel,
|
|
47
|
+
xLabel,
|
|
48
|
+
yLabel,
|
|
49
|
+
feature,
|
|
50
|
+
freq,
|
|
51
|
+
comparisons,
|
|
52
|
+
tTrEndPts,
|
|
53
|
+
tSfPeaks,
|
|
54
|
+
editPeakSt,
|
|
55
|
+
layoutSt,
|
|
56
|
+
integationSt,
|
|
57
|
+
mtplySt,
|
|
58
|
+
sweepExtentSt,
|
|
59
|
+
isUiAddIntgSt,
|
|
60
|
+
isUiNoBrushSt,
|
|
61
|
+
isHidden,
|
|
62
|
+
wavelength,
|
|
63
|
+
resetAllAct
|
|
64
|
+
} = this.props;
|
|
65
|
+
(0, _draw.drawDestroy)(this.rootKlass);
|
|
66
|
+
resetAllAct(feature);
|
|
67
|
+
const filterSeed = seed;
|
|
68
|
+
const filterPeak = peak;
|
|
69
|
+
(0, _draw.drawMain)(this.rootKlass, W, H);
|
|
70
|
+
this.focus.create({
|
|
71
|
+
filterSeed,
|
|
72
|
+
filterPeak,
|
|
73
|
+
freq,
|
|
74
|
+
comparisons,
|
|
75
|
+
tTrEndPts,
|
|
76
|
+
tSfPeaks,
|
|
77
|
+
editPeakSt,
|
|
78
|
+
layoutSt,
|
|
79
|
+
integationSt,
|
|
80
|
+
mtplySt,
|
|
81
|
+
sweepExtentSt,
|
|
82
|
+
isUiAddIntgSt,
|
|
83
|
+
isUiNoBrushSt,
|
|
84
|
+
wavelength
|
|
85
|
+
});
|
|
86
|
+
(0, _draw.drawLabel)(this.rootKlass, cLabel, xLabel, yLabel);
|
|
87
|
+
(0, _draw.drawDisplay)(this.rootKlass, isHidden);
|
|
88
|
+
}
|
|
89
|
+
componentDidUpdate(prevProps) {
|
|
90
|
+
const {
|
|
91
|
+
seed,
|
|
92
|
+
peak,
|
|
93
|
+
cLabel,
|
|
94
|
+
xLabel,
|
|
95
|
+
yLabel,
|
|
96
|
+
freq,
|
|
97
|
+
comparisons,
|
|
98
|
+
tTrEndPts,
|
|
99
|
+
tSfPeaks,
|
|
100
|
+
editPeakSt,
|
|
101
|
+
layoutSt,
|
|
102
|
+
integationSt,
|
|
103
|
+
mtplySt,
|
|
104
|
+
sweepExtentSt,
|
|
105
|
+
isUiAddIntgSt,
|
|
106
|
+
isUiNoBrushSt,
|
|
107
|
+
isHidden,
|
|
108
|
+
wavelength
|
|
109
|
+
} = this.props;
|
|
110
|
+
this.normChange(prevProps);
|
|
111
|
+
const filterSeed = seed;
|
|
112
|
+
const filterPeak = peak;
|
|
113
|
+
this.focus.update({
|
|
114
|
+
filterSeed,
|
|
115
|
+
filterPeak,
|
|
116
|
+
freq,
|
|
117
|
+
comparisons,
|
|
118
|
+
tTrEndPts,
|
|
119
|
+
tSfPeaks,
|
|
120
|
+
editPeakSt,
|
|
121
|
+
layoutSt,
|
|
122
|
+
integationSt,
|
|
123
|
+
mtplySt,
|
|
124
|
+
sweepExtentSt,
|
|
125
|
+
isUiAddIntgSt,
|
|
126
|
+
isUiNoBrushSt,
|
|
127
|
+
wavelength
|
|
128
|
+
});
|
|
129
|
+
(0, _draw.drawLabel)(this.rootKlass, cLabel, xLabel, yLabel);
|
|
130
|
+
(0, _draw.drawDisplay)(this.rootKlass, isHidden);
|
|
131
|
+
}
|
|
132
|
+
componentWillUnmount() {
|
|
133
|
+
(0, _draw.drawDestroy)(this.rootKlass);
|
|
134
|
+
}
|
|
135
|
+
normChange(prevProps) {
|
|
136
|
+
const {
|
|
137
|
+
feature,
|
|
138
|
+
resetAllAct
|
|
139
|
+
} = this.props;
|
|
140
|
+
const oldFeature = prevProps.feature;
|
|
141
|
+
if (oldFeature !== feature) {
|
|
75
142
|
resetAllAct(feature);
|
|
76
|
-
var filterSeed = seed;
|
|
77
|
-
var filterPeak = peak;
|
|
78
|
-
(0, _draw.drawMain)(this.rootKlass, W, H);
|
|
79
|
-
this.focus.create({
|
|
80
|
-
filterSeed: filterSeed,
|
|
81
|
-
filterPeak: filterPeak,
|
|
82
|
-
freq: freq,
|
|
83
|
-
comparisons: comparisons,
|
|
84
|
-
tTrEndPts: tTrEndPts,
|
|
85
|
-
tSfPeaks: tSfPeaks,
|
|
86
|
-
editPeakSt: editPeakSt,
|
|
87
|
-
layoutSt: layoutSt,
|
|
88
|
-
integationSt: integationSt,
|
|
89
|
-
mtplySt: mtplySt,
|
|
90
|
-
sweepExtentSt: sweepExtentSt,
|
|
91
|
-
isUiAddIntgSt: isUiAddIntgSt,
|
|
92
|
-
isUiNoBrushSt: isUiNoBrushSt,
|
|
93
|
-
wavelength: wavelength
|
|
94
|
-
});
|
|
95
|
-
(0, _draw.drawLabel)(this.rootKlass, cLabel, xLabel, yLabel);
|
|
96
|
-
(0, _draw.drawDisplay)(this.rootKlass, isHidden);
|
|
97
|
-
}
|
|
98
|
-
}, {
|
|
99
|
-
key: "componentDidUpdate",
|
|
100
|
-
value: function componentDidUpdate(prevProps) {
|
|
101
|
-
var _this$props2 = this.props,
|
|
102
|
-
seed = _this$props2.seed,
|
|
103
|
-
peak = _this$props2.peak,
|
|
104
|
-
cLabel = _this$props2.cLabel,
|
|
105
|
-
xLabel = _this$props2.xLabel,
|
|
106
|
-
yLabel = _this$props2.yLabel,
|
|
107
|
-
freq = _this$props2.freq,
|
|
108
|
-
comparisons = _this$props2.comparisons,
|
|
109
|
-
tTrEndPts = _this$props2.tTrEndPts,
|
|
110
|
-
tSfPeaks = _this$props2.tSfPeaks,
|
|
111
|
-
editPeakSt = _this$props2.editPeakSt,
|
|
112
|
-
layoutSt = _this$props2.layoutSt,
|
|
113
|
-
integationSt = _this$props2.integationSt,
|
|
114
|
-
mtplySt = _this$props2.mtplySt,
|
|
115
|
-
sweepExtentSt = _this$props2.sweepExtentSt,
|
|
116
|
-
isUiAddIntgSt = _this$props2.isUiAddIntgSt,
|
|
117
|
-
isUiNoBrushSt = _this$props2.isUiNoBrushSt,
|
|
118
|
-
isHidden = _this$props2.isHidden,
|
|
119
|
-
wavelength = _this$props2.wavelength;
|
|
120
|
-
this.normChange(prevProps);
|
|
121
|
-
var filterSeed = seed;
|
|
122
|
-
var filterPeak = peak;
|
|
123
|
-
this.focus.update({
|
|
124
|
-
filterSeed: filterSeed,
|
|
125
|
-
filterPeak: filterPeak,
|
|
126
|
-
freq: freq,
|
|
127
|
-
comparisons: comparisons,
|
|
128
|
-
tTrEndPts: tTrEndPts,
|
|
129
|
-
tSfPeaks: tSfPeaks,
|
|
130
|
-
editPeakSt: editPeakSt,
|
|
131
|
-
layoutSt: layoutSt,
|
|
132
|
-
integationSt: integationSt,
|
|
133
|
-
mtplySt: mtplySt,
|
|
134
|
-
sweepExtentSt: sweepExtentSt,
|
|
135
|
-
isUiAddIntgSt: isUiAddIntgSt,
|
|
136
|
-
isUiNoBrushSt: isUiNoBrushSt,
|
|
137
|
-
wavelength: wavelength
|
|
138
|
-
});
|
|
139
|
-
(0, _draw.drawLabel)(this.rootKlass, cLabel, xLabel, yLabel);
|
|
140
|
-
(0, _draw.drawDisplay)(this.rootKlass, isHidden);
|
|
141
|
-
}
|
|
142
|
-
}, {
|
|
143
|
-
key: "componentWillUnmount",
|
|
144
|
-
value: function componentWillUnmount() {
|
|
145
|
-
(0, _draw.drawDestroy)(this.rootKlass);
|
|
146
143
|
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
mtplySt: state.multiplicity.present,
|
|
180
|
-
sweepExtentSt: state.ui.sweepExtent,
|
|
181
|
-
isUiAddIntgSt: state.ui.sweepType === _list_ui.LIST_UI_SWEEP_TYPE.INTEGRATION_ADD,
|
|
182
|
-
isUiNoBrushSt: _list_ui.LIST_NON_BRUSH_TYPES.indexOf(state.ui.sweepType) < 0,
|
|
183
|
-
wavelength: state.wavelength
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
187
|
-
return (0, _redux.bindActionCreators)({
|
|
188
|
-
resetAllAct: _manager.resetAll,
|
|
189
|
-
clickUiTargetAct: _ui.clickUiTarget,
|
|
190
|
-
selectUiSweepAct: _ui.selectUiSweep,
|
|
191
|
-
scrollUiWheelAct: _ui.scrollUiWheel,
|
|
192
|
-
addNewCylicVoltaPairPeakAct: _cyclic_voltammetry.addNewCylicVoltaPairPeak,
|
|
193
|
-
addCylicVoltaMaxPeakAct: _cyclic_voltammetry.addCylicVoltaMaxPeak,
|
|
194
|
-
addCylicVoltaMinPeakAct: _cyclic_voltammetry.addCylicVoltaMinPeak
|
|
195
|
-
}, dispatch);
|
|
196
|
-
};
|
|
144
|
+
}
|
|
145
|
+
render() {
|
|
146
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
147
|
+
className: "d3Line"
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const mapStateToProps = (state, props) => ({
|
|
152
|
+
seed: (0, _chem.Topic2Seed)(state, props),
|
|
153
|
+
peak: (0, _chem.Feature2Peak)(state, props),
|
|
154
|
+
freq: (0, _chem.ToFrequency)(state, props),
|
|
155
|
+
comparisons: (0, _chem.GetComparisons)(state, props),
|
|
156
|
+
tTrEndPts: (0, _chem.ToThresEndPts)(state, props),
|
|
157
|
+
tSfPeaks: (0, _chem.ToShiftPeaks)(state, props),
|
|
158
|
+
editPeakSt: state.editPeak.present,
|
|
159
|
+
layoutSt: state.layout,
|
|
160
|
+
integationSt: state.integration.present,
|
|
161
|
+
mtplySt: state.multiplicity.present,
|
|
162
|
+
sweepExtentSt: state.ui.sweepExtent,
|
|
163
|
+
isUiAddIntgSt: state.ui.sweepType === _list_ui.LIST_UI_SWEEP_TYPE.INTEGRATION_ADD,
|
|
164
|
+
isUiNoBrushSt: _list_ui.LIST_NON_BRUSH_TYPES.indexOf(state.ui.sweepType) < 0,
|
|
165
|
+
wavelength: state.wavelength
|
|
166
|
+
});
|
|
167
|
+
const mapDispatchToProps = dispatch => (0, _redux.bindActionCreators)({
|
|
168
|
+
resetAllAct: _manager.resetAll,
|
|
169
|
+
clickUiTargetAct: _ui.clickUiTarget,
|
|
170
|
+
selectUiSweepAct: _ui.selectUiSweep,
|
|
171
|
+
scrollUiWheelAct: _ui.scrollUiWheel,
|
|
172
|
+
addNewCylicVoltaPairPeakAct: _cyclic_voltammetry.addNewCylicVoltaPairPeak,
|
|
173
|
+
addCylicVoltaMaxPeakAct: _cyclic_voltammetry.addCylicVoltaMaxPeak,
|
|
174
|
+
addCylicVoltaMinPeakAct: _cyclic_voltammetry.addCylicVoltaMinPeak
|
|
175
|
+
}, dispatch);
|
|
197
176
|
ViewerLine.propTypes = {
|
|
198
177
|
seed: _propTypes.default.array.isRequired,
|
|
199
178
|
peak: _propTypes.default.array.isRequired,
|
|
@@ -219,5 +198,4 @@ ViewerLine.propTypes = {
|
|
|
219
198
|
isHidden: _propTypes.default.bool.isRequired,
|
|
220
199
|
wavelength: _propTypes.default.object.isRequired
|
|
221
200
|
};
|
|
222
|
-
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerLine);
|
|
223
|
-
exports.default = _default;
|
|
201
|
+
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ViewerLine);
|