@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
package/dist/layer_content_bk.js
DELETED
|
@@ -1,105 +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 _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _reactRedux = require("react-redux");
|
|
11
|
-
var _redux = require("redux");
|
|
12
|
-
var _index = _interopRequireDefault(require("./components/d3_line/index"));
|
|
13
|
-
var _index2 = _interopRequireDefault(require("./components/d3_rect/index"));
|
|
14
|
-
var _forecast_viewer = _interopRequireDefault(require("./components/forecast_viewer"));
|
|
15
|
-
var _format = _interopRequireDefault(require("./helpers/format"));
|
|
16
|
-
var extractLayout = function extractLayout(forecast, layoutSt) {
|
|
17
|
-
var isEmpty = Object.keys(forecast).length === 0 && forecast.constructor === Object;
|
|
18
|
-
var isNmr = _format.default.isNmrLayout(layoutSt);
|
|
19
|
-
var isMs = _format.default.isMsLayout(layoutSt);
|
|
20
|
-
var isIr = _format.default.isIrLayout(layoutSt);
|
|
21
|
-
var isUvvis = _format.default.isUvVisLayout(layoutSt) || _format.default.isHplcUvVisLayout(layoutSt);
|
|
22
|
-
var isXRD = _format.default.isXRDLayout(layoutSt);
|
|
23
|
-
var showForecast = !isEmpty && (isNmr || isIr || isUvvis || isXRD);
|
|
24
|
-
return {
|
|
25
|
-
showForecast: showForecast,
|
|
26
|
-
isNmr: isNmr,
|
|
27
|
-
isIr: isIr,
|
|
28
|
-
isMs: isMs,
|
|
29
|
-
isUvvis: isUvvis,
|
|
30
|
-
isXRD: isXRD
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
var Content = function Content(_ref) {
|
|
34
|
-
var topic = _ref.topic,
|
|
35
|
-
feature = _ref.feature,
|
|
36
|
-
cLabel = _ref.cLabel,
|
|
37
|
-
xLabel = _ref.xLabel,
|
|
38
|
-
yLabel = _ref.yLabel,
|
|
39
|
-
forecast = _ref.forecast,
|
|
40
|
-
operations = _ref.operations,
|
|
41
|
-
layoutSt = _ref.layoutSt;
|
|
42
|
-
var _extractLayout = extractLayout(forecast, layoutSt),
|
|
43
|
-
showForecast = _extractLayout.showForecast,
|
|
44
|
-
isNmr = _extractLayout.isNmr,
|
|
45
|
-
isIr = _extractLayout.isIr,
|
|
46
|
-
isMs = _extractLayout.isMs,
|
|
47
|
-
isUvvis = _extractLayout.isUvvis,
|
|
48
|
-
isXRD = _extractLayout.isXRD;
|
|
49
|
-
if (showForecast) {
|
|
50
|
-
return /*#__PURE__*/_react.default.createElement(_forecast_viewer.default, {
|
|
51
|
-
topic: topic,
|
|
52
|
-
cLabel: cLabel,
|
|
53
|
-
xLabel: xLabel,
|
|
54
|
-
yLabel: yLabel,
|
|
55
|
-
feature: feature,
|
|
56
|
-
forecast: forecast,
|
|
57
|
-
isNmr: isNmr,
|
|
58
|
-
isIr: isIr,
|
|
59
|
-
isUvvis: isUvvis,
|
|
60
|
-
isXRD: isXRD,
|
|
61
|
-
operations: operations
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
if (isMs) {
|
|
65
|
-
return /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
66
|
-
topic: topic,
|
|
67
|
-
cLabel: cLabel,
|
|
68
|
-
xLabel: xLabel,
|
|
69
|
-
yLabel: yLabel,
|
|
70
|
-
feature: feature,
|
|
71
|
-
isHidden: false
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
75
|
-
topic: topic,
|
|
76
|
-
cLabel: cLabel,
|
|
77
|
-
xLabel: xLabel,
|
|
78
|
-
yLabel: yLabel,
|
|
79
|
-
feature: feature,
|
|
80
|
-
isHidden: false
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
var mapStateToProps = function mapStateToProps(state, _) {
|
|
84
|
-
return (
|
|
85
|
-
// eslint-disable-line
|
|
86
|
-
{
|
|
87
|
-
layoutSt: state.layout
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
};
|
|
91
|
-
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
92
|
-
return (0, _redux.bindActionCreators)({}, dispatch);
|
|
93
|
-
};
|
|
94
|
-
Content.propTypes = {
|
|
95
|
-
topic: _propTypes.default.object.isRequired,
|
|
96
|
-
feature: _propTypes.default.object.isRequired,
|
|
97
|
-
cLabel: _propTypes.default.string.isRequired,
|
|
98
|
-
xLabel: _propTypes.default.string.isRequired,
|
|
99
|
-
yLabel: _propTypes.default.string.isRequired,
|
|
100
|
-
forecast: _propTypes.default.object.isRequired,
|
|
101
|
-
operations: _propTypes.default.array.isRequired,
|
|
102
|
-
layoutSt: _propTypes.default.string.isRequired
|
|
103
|
-
};
|
|
104
|
-
var _default = (0, _redux.compose)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps))(Content);
|
|
105
|
-
exports.default = _default;
|
package/dist/layer_init_bk.js
DELETED
|
@@ -1,235 +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 _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
|
-
var _reactRedux = require("react-redux");
|
|
17
|
-
var _redux = require("redux");
|
|
18
|
-
var _styles = require("@material-ui/core/styles");
|
|
19
|
-
var _submit = require("./actions/submit");
|
|
20
|
-
var _manager = require("./actions/manager");
|
|
21
|
-
var _meta = require("./actions/meta");
|
|
22
|
-
var _jcamp = require("./actions/jcamp");
|
|
23
|
-
var _layer_prism = _interopRequireDefault(require("./layer_prism"));
|
|
24
|
-
var _format = _interopRequireDefault(require("./helpers/format"));
|
|
25
|
-
var _multi_jcamps_viewer = _interopRequireDefault(require("./components/multi_jcamps_viewer"));
|
|
26
|
-
var _curve = require("./actions/curve");
|
|
27
|
-
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); }; }
|
|
28
|
-
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; } }
|
|
29
|
-
var styles = function styles() {
|
|
30
|
-
return {};
|
|
31
|
-
};
|
|
32
|
-
var LayerInit = /*#__PURE__*/function (_React$Component) {
|
|
33
|
-
(0, _inherits2.default)(LayerInit, _React$Component);
|
|
34
|
-
var _super = _createSuper(LayerInit);
|
|
35
|
-
function LayerInit(props) {
|
|
36
|
-
var _this;
|
|
37
|
-
(0, _classCallCheck2.default)(this, LayerInit);
|
|
38
|
-
_this = _super.call(this, props);
|
|
39
|
-
_this.normChange = _this.normChange.bind((0, _assertThisInitialized2.default)(_this));
|
|
40
|
-
_this.execReset = _this.execReset.bind((0, _assertThisInitialized2.default)(_this));
|
|
41
|
-
_this.initReducer = _this.initReducer.bind((0, _assertThisInitialized2.default)(_this));
|
|
42
|
-
_this.updateOthers = _this.updateOthers.bind((0, _assertThisInitialized2.default)(_this));
|
|
43
|
-
_this.updateMultiEntities = _this.updateMultiEntities.bind((0, _assertThisInitialized2.default)(_this));
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
(0, _createClass2.default)(LayerInit, [{
|
|
47
|
-
key: "componentDidMount",
|
|
48
|
-
value: function componentDidMount() {
|
|
49
|
-
this.execReset();
|
|
50
|
-
this.initReducer();
|
|
51
|
-
this.updateOthers();
|
|
52
|
-
this.updateMultiEntities();
|
|
53
|
-
}
|
|
54
|
-
}, {
|
|
55
|
-
key: "componentDidUpdate",
|
|
56
|
-
value: function componentDidUpdate(prevProps) {
|
|
57
|
-
this.normChange(prevProps);
|
|
58
|
-
this.updateOthers();
|
|
59
|
-
this.updateMultiEntities();
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
62
|
-
key: "normChange",
|
|
63
|
-
value: function normChange(prevProps) {
|
|
64
|
-
var prevFeatures = prevProps.entity.features;
|
|
65
|
-
var prevPeak = prevFeatures.editPeak || prevFeatures.autoPeak;
|
|
66
|
-
var entity = this.props.entity;
|
|
67
|
-
var nextFeatures = entity.features;
|
|
68
|
-
var nextPeak = nextFeatures.editPeak || nextFeatures.autoPeak;
|
|
69
|
-
if (prevPeak !== nextPeak) {
|
|
70
|
-
this.execReset();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
key: "execReset",
|
|
75
|
-
value: function execReset() {
|
|
76
|
-
var _this$props = this.props,
|
|
77
|
-
entity = _this$props.entity,
|
|
78
|
-
updateMetaPeaksAct = _this$props.updateMetaPeaksAct,
|
|
79
|
-
resetInitCommonAct = _this$props.resetInitCommonAct,
|
|
80
|
-
resetInitMsAct = _this$props.resetInitMsAct,
|
|
81
|
-
resetInitNmrAct = _this$props.resetInitNmrAct,
|
|
82
|
-
resetInitCommonWithIntergationAct = _this$props.resetInitCommonWithIntergationAct;
|
|
83
|
-
resetInitCommonAct();
|
|
84
|
-
var layout = entity.layout,
|
|
85
|
-
features = entity.features;
|
|
86
|
-
if (_format.default.isMsLayout(layout)) {
|
|
87
|
-
// const { autoPeak, editPeak } = features; // TBD
|
|
88
|
-
var autoPeak = features.autoPeak || features[0];
|
|
89
|
-
var editPeak = features.editPeak || features[0];
|
|
90
|
-
var baseFeat = editPeak || autoPeak;
|
|
91
|
-
resetInitMsAct(baseFeat);
|
|
92
|
-
}
|
|
93
|
-
if (_format.default.isNmrLayout(layout)) {
|
|
94
|
-
var integration = features.integration,
|
|
95
|
-
multiplicity = features.multiplicity,
|
|
96
|
-
simulation = features.simulation;
|
|
97
|
-
updateMetaPeaksAct(entity);
|
|
98
|
-
resetInitNmrAct({
|
|
99
|
-
integration: integration,
|
|
100
|
-
multiplicity: multiplicity,
|
|
101
|
-
simulation: simulation
|
|
102
|
-
});
|
|
103
|
-
} else if (_format.default.isHplcUvVisLayout(layout)) {
|
|
104
|
-
var _integration = features.integration;
|
|
105
|
-
updateMetaPeaksAct(entity);
|
|
106
|
-
resetInitCommonWithIntergationAct({
|
|
107
|
-
integration: _integration
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}, {
|
|
112
|
-
key: "initReducer",
|
|
113
|
-
value: function initReducer() {
|
|
114
|
-
var _this$props2 = this.props,
|
|
115
|
-
operations = _this$props2.operations,
|
|
116
|
-
updateOperationAct = _this$props2.updateOperationAct;
|
|
117
|
-
updateOperationAct(operations[0]);
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
key: "updateOthers",
|
|
121
|
-
value: function updateOthers() {
|
|
122
|
-
var _this$props3 = this.props,
|
|
123
|
-
others = _this$props3.others,
|
|
124
|
-
addOthersAct = _this$props3.addOthersAct;
|
|
125
|
-
addOthersAct(others);
|
|
126
|
-
}
|
|
127
|
-
}, {
|
|
128
|
-
key: "updateMultiEntities",
|
|
129
|
-
value: function updateMultiEntities() {
|
|
130
|
-
var _this$props4 = this.props,
|
|
131
|
-
multiEntities = _this$props4.multiEntities,
|
|
132
|
-
setAllCurvesAct = _this$props4.setAllCurvesAct;
|
|
133
|
-
setAllCurvesAct(multiEntities);
|
|
134
|
-
}
|
|
135
|
-
}, {
|
|
136
|
-
key: "render",
|
|
137
|
-
value: function render() {
|
|
138
|
-
var _this$props5 = this.props,
|
|
139
|
-
entity = _this$props5.entity,
|
|
140
|
-
cLabel = _this$props5.cLabel,
|
|
141
|
-
xLabel = _this$props5.xLabel,
|
|
142
|
-
yLabel = _this$props5.yLabel,
|
|
143
|
-
forecast = _this$props5.forecast,
|
|
144
|
-
operations = _this$props5.operations,
|
|
145
|
-
descriptions = _this$props5.descriptions,
|
|
146
|
-
molSvg = _this$props5.molSvg,
|
|
147
|
-
editorOnly = _this$props5.editorOnly,
|
|
148
|
-
canChangeDescription = _this$props5.canChangeDescription,
|
|
149
|
-
onDescriptionChanged = _this$props5.onDescriptionChanged,
|
|
150
|
-
multiEntities = _this$props5.multiEntities,
|
|
151
|
-
entityFileNames = _this$props5.entityFileNames,
|
|
152
|
-
userManualLink = _this$props5.userManualLink;
|
|
153
|
-
var target = entity.spectra[0];
|
|
154
|
-
var layout = entity.layout;
|
|
155
|
-
var xxLabel = !xLabel && xLabel === '' ? "X (".concat(target.xUnit, ")") : xLabel;
|
|
156
|
-
var yyLabel = !yLabel && yLabel === '' ? "Y (".concat(target.yUnit, ")") : yLabel;
|
|
157
|
-
if (multiEntities) {
|
|
158
|
-
return /*#__PURE__*/_react.default.createElement(_multi_jcamps_viewer.default, {
|
|
159
|
-
multiEntities: multiEntities,
|
|
160
|
-
entityFileNames: entityFileNames,
|
|
161
|
-
userManualLink: userManualLink,
|
|
162
|
-
molSvg: molSvg,
|
|
163
|
-
operations: operations
|
|
164
|
-
});
|
|
165
|
-
} else if (_format.default.isCyclicVoltaLayout(layout)) {
|
|
166
|
-
return /*#__PURE__*/_react.default.createElement(_multi_jcamps_viewer.default, {
|
|
167
|
-
multiEntities: [entity],
|
|
168
|
-
entityFileNames: entityFileNames,
|
|
169
|
-
userManualLink: userManualLink,
|
|
170
|
-
molSvg: molSvg,
|
|
171
|
-
operations: operations
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
return /*#__PURE__*/_react.default.createElement(_layer_prism.default, {
|
|
175
|
-
entity: entity,
|
|
176
|
-
cLabel: cLabel,
|
|
177
|
-
xLabel: xxLabel,
|
|
178
|
-
yLabel: yyLabel,
|
|
179
|
-
forecast: forecast,
|
|
180
|
-
operations: operations,
|
|
181
|
-
descriptions: descriptions,
|
|
182
|
-
molSvg: molSvg,
|
|
183
|
-
editorOnly: editorOnly,
|
|
184
|
-
canChangeDescription: canChangeDescription,
|
|
185
|
-
onDescriptionChanged: onDescriptionChanged
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
}]);
|
|
189
|
-
return LayerInit;
|
|
190
|
-
}(_react.default.Component);
|
|
191
|
-
var mapStateToProps = function mapStateToProps(state, props) {
|
|
192
|
-
return (
|
|
193
|
-
// eslint-disable-line
|
|
194
|
-
{}
|
|
195
|
-
);
|
|
196
|
-
};
|
|
197
|
-
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
198
|
-
return (0, _redux.bindActionCreators)({
|
|
199
|
-
resetInitCommonAct: _manager.resetInitCommon,
|
|
200
|
-
resetInitNmrAct: _manager.resetInitNmr,
|
|
201
|
-
resetInitMsAct: _manager.resetInitMs,
|
|
202
|
-
resetInitCommonWithIntergationAct: _manager.resetInitCommonWithIntergation,
|
|
203
|
-
updateOperationAct: _submit.updateOperation,
|
|
204
|
-
updateMetaPeaksAct: _meta.updateMetaPeaks,
|
|
205
|
-
addOthersAct: _jcamp.addOthers,
|
|
206
|
-
setAllCurvesAct: _curve.setAllCurves
|
|
207
|
-
}, dispatch);
|
|
208
|
-
};
|
|
209
|
-
LayerInit.propTypes = {
|
|
210
|
-
entity: _propTypes.default.object.isRequired,
|
|
211
|
-
multiEntities: _propTypes.default.array,
|
|
212
|
-
entityFileNames: _propTypes.default.array,
|
|
213
|
-
others: _propTypes.default.object.isRequired,
|
|
214
|
-
cLabel: _propTypes.default.string.isRequired,
|
|
215
|
-
xLabel: _propTypes.default.string.isRequired,
|
|
216
|
-
yLabel: _propTypes.default.string.isRequired,
|
|
217
|
-
molSvg: _propTypes.default.string.isRequired,
|
|
218
|
-
editorOnly: _propTypes.default.bool.isRequired,
|
|
219
|
-
forecast: _propTypes.default.object.isRequired,
|
|
220
|
-
operations: _propTypes.default.array.isRequired,
|
|
221
|
-
descriptions: _propTypes.default.array.isRequired,
|
|
222
|
-
resetInitCommonAct: _propTypes.default.func.isRequired,
|
|
223
|
-
resetInitNmrAct: _propTypes.default.func.isRequired,
|
|
224
|
-
resetInitMsAct: _propTypes.default.func.isRequired,
|
|
225
|
-
resetInitCommonWithIntergationAct: _propTypes.default.func.isRequired,
|
|
226
|
-
updateOperationAct: _propTypes.default.func.isRequired,
|
|
227
|
-
updateMetaPeaksAct: _propTypes.default.func.isRequired,
|
|
228
|
-
addOthersAct: _propTypes.default.func.isRequired,
|
|
229
|
-
canChangeDescription: _propTypes.default.bool.isRequired,
|
|
230
|
-
onDescriptionChanged: _propTypes.default.func,
|
|
231
|
-
setAllCurvesAct: _propTypes.default.func.isRequired,
|
|
232
|
-
userManualLink: _propTypes.default.object
|
|
233
|
-
};
|
|
234
|
-
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(LayerInit));
|
|
235
|
-
exports.default = _default;
|
package/dist/layer_prism_bk.js
DELETED
|
@@ -1,133 +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 _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _reactRedux = require("react-redux");
|
|
11
|
-
var _redux = require("redux");
|
|
12
|
-
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
13
|
-
var _styles = require("@material-ui/core/styles");
|
|
14
|
-
var _index = _interopRequireDefault(require("./components/panel/index"));
|
|
15
|
-
var _index2 = _interopRequireDefault(require("./components/cmd_bar/index"));
|
|
16
|
-
var _layer_content = _interopRequireDefault(require("./layer_content"));
|
|
17
|
-
var _list_ui = require("./constants/list_ui");
|
|
18
|
-
var _extractParams2 = require("./helpers/extractParams");
|
|
19
|
-
var styles = function styles() {
|
|
20
|
-
return {};
|
|
21
|
-
};
|
|
22
|
-
var LayerPrism = function LayerPrism(_ref) {
|
|
23
|
-
var entity = _ref.entity,
|
|
24
|
-
cLabel = _ref.cLabel,
|
|
25
|
-
xLabel = _ref.xLabel,
|
|
26
|
-
yLabel = _ref.yLabel,
|
|
27
|
-
forecast = _ref.forecast,
|
|
28
|
-
operations = _ref.operations,
|
|
29
|
-
descriptions = _ref.descriptions,
|
|
30
|
-
molSvg = _ref.molSvg,
|
|
31
|
-
editorOnly = _ref.editorOnly,
|
|
32
|
-
thresSt = _ref.thresSt,
|
|
33
|
-
scanSt = _ref.scanSt,
|
|
34
|
-
uiSt = _ref.uiSt,
|
|
35
|
-
canChangeDescription = _ref.canChangeDescription,
|
|
36
|
-
onDescriptionChanged = _ref.onDescriptionChanged;
|
|
37
|
-
var _extractParams = (0, _extractParams2.extractParams)(entity, thresSt, scanSt),
|
|
38
|
-
topic = _extractParams.topic,
|
|
39
|
-
feature = _extractParams.feature,
|
|
40
|
-
hasEdit = _extractParams.hasEdit,
|
|
41
|
-
integration = _extractParams.integration;
|
|
42
|
-
if (!topic) return null;
|
|
43
|
-
var viewer = uiSt.viewer;
|
|
44
|
-
if (viewer === _list_ui.LIST_UI_VIEWER_TYPE.ANALYSIS) {
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
46
|
-
feature: feature,
|
|
47
|
-
hasEdit: hasEdit,
|
|
48
|
-
forecast: forecast,
|
|
49
|
-
operations: operations,
|
|
50
|
-
editorOnly: editorOnly
|
|
51
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
52
|
-
className: "react-spectrum-editor"
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
54
|
-
container: true
|
|
55
|
-
}, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
56
|
-
item: true,
|
|
57
|
-
xs: 12
|
|
58
|
-
}, /*#__PURE__*/_react.default.createElement(_layer_content.default, {
|
|
59
|
-
topic: topic,
|
|
60
|
-
feature: feature,
|
|
61
|
-
cLabel: cLabel,
|
|
62
|
-
xLabel: xLabel,
|
|
63
|
-
yLabel: yLabel,
|
|
64
|
-
forecast: forecast,
|
|
65
|
-
operations: operations
|
|
66
|
-
})))));
|
|
67
|
-
}
|
|
68
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_index2.default, {
|
|
69
|
-
feature: feature,
|
|
70
|
-
hasEdit: hasEdit,
|
|
71
|
-
forecast: forecast,
|
|
72
|
-
operations: operations,
|
|
73
|
-
editorOnly: editorOnly
|
|
74
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
-
className: "react-spectrum-editor"
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
77
|
-
container: true
|
|
78
|
-
}, /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
79
|
-
item: true,
|
|
80
|
-
xs: 9
|
|
81
|
-
}, /*#__PURE__*/_react.default.createElement(_layer_content.default, {
|
|
82
|
-
topic: topic,
|
|
83
|
-
feature: feature,
|
|
84
|
-
cLabel: cLabel,
|
|
85
|
-
xLabel: xLabel,
|
|
86
|
-
yLabel: yLabel,
|
|
87
|
-
forecast: forecast,
|
|
88
|
-
operations: operations
|
|
89
|
-
})), /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
90
|
-
item: true,
|
|
91
|
-
xs: 3,
|
|
92
|
-
align: "center"
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
94
|
-
feature: feature,
|
|
95
|
-
integration: integration,
|
|
96
|
-
editorOnly: editorOnly,
|
|
97
|
-
molSvg: molSvg,
|
|
98
|
-
descriptions: descriptions,
|
|
99
|
-
canChangeDescription: canChangeDescription,
|
|
100
|
-
onDescriptionChanged: onDescriptionChanged
|
|
101
|
-
})))));
|
|
102
|
-
};
|
|
103
|
-
var mapStateToProps = function mapStateToProps(state, props) {
|
|
104
|
-
return (
|
|
105
|
-
// eslint-disable-line
|
|
106
|
-
{
|
|
107
|
-
scanSt: state.scan,
|
|
108
|
-
thresSt: state.threshold,
|
|
109
|
-
uiSt: state.ui
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
var mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
114
|
-
return (0, _redux.bindActionCreators)({}, dispatch);
|
|
115
|
-
};
|
|
116
|
-
LayerPrism.propTypes = {
|
|
117
|
-
entity: _propTypes.default.object.isRequired,
|
|
118
|
-
cLabel: _propTypes.default.string.isRequired,
|
|
119
|
-
xLabel: _propTypes.default.string.isRequired,
|
|
120
|
-
yLabel: _propTypes.default.string.isRequired,
|
|
121
|
-
molSvg: _propTypes.default.string.isRequired,
|
|
122
|
-
editorOnly: _propTypes.default.bool.isRequired,
|
|
123
|
-
forecast: _propTypes.default.object.isRequired,
|
|
124
|
-
operations: _propTypes.default.array.isRequired,
|
|
125
|
-
descriptions: _propTypes.default.array.isRequired,
|
|
126
|
-
thresSt: _propTypes.default.object.isRequired,
|
|
127
|
-
scanSt: _propTypes.default.object.isRequired,
|
|
128
|
-
uiSt: _propTypes.default.object.isRequired,
|
|
129
|
-
canChangeDescription: _propTypes.default.bool.isRequired,
|
|
130
|
-
onDescriptionChanged: _propTypes.default.func
|
|
131
|
-
};
|
|
132
|
-
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _styles.withStyles)(styles)(LayerPrism));
|
|
133
|
-
exports.default = _default;
|
|
@@ -1,108 +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 _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
-
var _reduxUndo = _interopRequireDefault(require("redux-undo"));
|
|
10
|
-
var _action_type = require("../constants/action_type");
|
|
11
|
-
var _undo_redo_config = require("./undo_redo_config");
|
|
12
|
-
var _calc = require("../helpers/calc");
|
|
13
|
-
var initialState = {
|
|
14
|
-
prevOffset: 0,
|
|
15
|
-
pos: [],
|
|
16
|
-
neg: []
|
|
17
|
-
};
|
|
18
|
-
var addToPos = function addToPos(state, action) {
|
|
19
|
-
var oriPosState = state.pos;
|
|
20
|
-
var oriNegState = state.neg;
|
|
21
|
-
var idxN = oriNegState.findIndex(function (n) {
|
|
22
|
-
return (0, _calc.almostEqual)(n.x, action.payload.x);
|
|
23
|
-
});
|
|
24
|
-
if (idxN >= 0) {
|
|
25
|
-
// rm the peak from oriNegState if it is already deleted.
|
|
26
|
-
var neg = [].concat((0, _toConsumableArray2.default)(oriNegState.slice(0, idxN)), (0, _toConsumableArray2.default)(oriNegState.slice(idxN + 1)));
|
|
27
|
-
return Object.assign({}, state, {
|
|
28
|
-
neg: neg
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
var idxP = oriPosState.findIndex(function (p) {
|
|
32
|
-
return (0, _calc.almostEqual)(p.x, action.payload.x);
|
|
33
|
-
});
|
|
34
|
-
if (idxP < 0) {
|
|
35
|
-
// add the peak
|
|
36
|
-
var pos = [].concat((0, _toConsumableArray2.default)(oriPosState), [action.payload]);
|
|
37
|
-
return Object.assign({}, state, {
|
|
38
|
-
pos: pos
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return state;
|
|
42
|
-
};
|
|
43
|
-
var rmFromPos = function rmFromPos(state, action) {
|
|
44
|
-
var oriPosState = state.pos;
|
|
45
|
-
var idx = oriPosState.findIndex(function (p) {
|
|
46
|
-
return p.x === action.payload.x;
|
|
47
|
-
});
|
|
48
|
-
var pos = [].concat((0, _toConsumableArray2.default)(oriPosState.slice(0, idx)), (0, _toConsumableArray2.default)(oriPosState.slice(idx + 1)));
|
|
49
|
-
return Object.assign({}, state, {
|
|
50
|
-
pos: pos
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
var addToNeg = function addToNeg(state, action) {
|
|
54
|
-
var oriPosState = state.pos;
|
|
55
|
-
var oriNegState = state.neg;
|
|
56
|
-
var idxP = oriPosState.findIndex(function (n) {
|
|
57
|
-
return n.x === action.payload.x;
|
|
58
|
-
});
|
|
59
|
-
if (idxP >= 0) {
|
|
60
|
-
var pos = [].concat((0, _toConsumableArray2.default)(oriPosState.slice(0, idxP)), (0, _toConsumableArray2.default)(oriPosState.slice(idxP + 1)));
|
|
61
|
-
return Object.assign({}, state, {
|
|
62
|
-
pos: pos
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
var idxN = oriNegState.findIndex(function (n) {
|
|
66
|
-
return n.x === action.payload.x;
|
|
67
|
-
});
|
|
68
|
-
if (idxN < 0) {
|
|
69
|
-
var neg = [].concat((0, _toConsumableArray2.default)(oriNegState), [action.payload]);
|
|
70
|
-
return Object.assign({}, state, {
|
|
71
|
-
neg: neg
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return state;
|
|
75
|
-
};
|
|
76
|
-
var rmFromNeg = function rmFromNeg(state, action) {
|
|
77
|
-
var oriNegState = state.neg;
|
|
78
|
-
var idx = oriNegState.findIndex(function (n) {
|
|
79
|
-
return n.x === action.payload.x;
|
|
80
|
-
});
|
|
81
|
-
var neg = [].concat((0, _toConsumableArray2.default)(oriNegState.slice(0, idx)), (0, _toConsumableArray2.default)(oriNegState.slice(idx + 1)));
|
|
82
|
-
return Object.assign({}, state, {
|
|
83
|
-
neg: neg
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
var editPeakReducer = function editPeakReducer() {
|
|
87
|
-
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
|
|
88
|
-
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
89
|
-
switch (action.type) {
|
|
90
|
-
case _action_type.EDITPEAK.ADD_POSITIVE:
|
|
91
|
-
return addToPos(state, action);
|
|
92
|
-
case _action_type.EDITPEAK.ADD_NEGATIVE:
|
|
93
|
-
return addToNeg(state, action);
|
|
94
|
-
case _action_type.EDITPEAK.RM_POSITIVE:
|
|
95
|
-
return rmFromPos(state, action);
|
|
96
|
-
case _action_type.EDITPEAK.RM_NEGATIVE:
|
|
97
|
-
return rmFromNeg(state, action);
|
|
98
|
-
case _action_type.EDITPEAK.SHIFT:
|
|
99
|
-
return Object.assign({}, state, action.payload);
|
|
100
|
-
case _action_type.MANAGER.RESETALL:
|
|
101
|
-
return initialState;
|
|
102
|
-
default:
|
|
103
|
-
return _undo_redo_config.undoRedoActions.indexOf(action.type) >= 0 ? Object.assign({}, state) : state;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
var undoableEditPeakReducer = (0, _reduxUndo.default)(editPeakReducer, _undo_redo_config.undoRedoConfig);
|
|
107
|
-
var _default = undoableEditPeakReducer;
|
|
108
|
-
exports.default = _default;
|