@complat/react-spectra-editor 0.10.14-beta.4 → 0.10.15-alpha.0
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/dist/components/cmd_bar/r06_predict_btn.js +9 -6
- package/dist/components/d3_line/line_focus_bk.js +860 -0
- package/dist/components/d3_multi/index_bk.js +240 -0
- package/dist/components/d3_multi/multi_focus_bk.js +550 -0
- package/dist/components/panel/compare_bk.js +370 -0
- package/dist/components/panel/multiplicity_bk.js +405 -0
- package/dist/helpers/chem.js +12 -1
- package/dist/helpers/chem_bk.js +775 -0
- package/dist/helpers/converter_bk.js +106 -0
- package/dist/index_bk.js +760 -0
- package/dist/layer_content_bk.js +128 -0
- package/dist/layer_prism_bk.js +186 -0
- package/dist/reducers/reducer_edit_peak_bk.js +111 -0
- package/dist/reducers/reducer_integration_bk.js +137 -0
- package/dist/reducers/reducer_jcamp_bk.js +74 -0
- package/dist/reducers/reducer_multiplicity_bk.js +131 -0
- package/dist/sagas/saga_multiplicity_bk.js +387 -0
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ var onClickReady = function onClickReady(forecast, peaksEdit, layoutSt, scan, sh
|
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
var onClicUnknown = function onClicUnknown(feature, forecast, peaksEdit, layoutSt, scan, shiftSt, thres, analysis, integrationSt, multiplicitySt) {
|
|
128
|
+
var onClicUnknown = function onClicUnknown(feature, forecast, peaksEdit, layoutSt, scan, shiftSt, thres, analysis, integrationSt, multiplicitySt, curveSt) {
|
|
129
129
|
var refreshCb = forecast.refreshCb;
|
|
130
130
|
|
|
131
131
|
if (!refreshCb) {
|
|
@@ -143,7 +143,8 @@ var onClicUnknown = function onClicUnknown(feature, forecast, peaksEdit, layoutS
|
|
|
143
143
|
thres: thres,
|
|
144
144
|
analysis: analysis,
|
|
145
145
|
integration: integrationSt,
|
|
146
|
-
multiplicity: multiplicitySt
|
|
146
|
+
multiplicity: multiplicitySt,
|
|
147
|
+
curveSt: curveSt
|
|
147
148
|
});
|
|
148
149
|
};
|
|
149
150
|
};
|
|
@@ -239,7 +240,8 @@ var BtnPredict = function BtnPredict(_ref) {
|
|
|
239
240
|
thresSt = _ref.thresSt,
|
|
240
241
|
integrationSt = _ref.integrationSt,
|
|
241
242
|
multiplicitySt = _ref.multiplicitySt,
|
|
242
|
-
setUiViewerTypeAct = _ref.setUiViewerTypeAct
|
|
243
|
+
setUiViewerTypeAct = _ref.setUiViewerTypeAct,
|
|
244
|
+
curveSt = _ref.curveSt;
|
|
243
245
|
|
|
244
246
|
var is13Cor1H = _format2.default.is13CLayout(layoutSt) || _format2.default.is1HLayout(layoutSt);
|
|
245
247
|
var isIr = _format2.default.isIrLayout(layoutSt);
|
|
@@ -254,14 +256,14 @@ var BtnPredict = function BtnPredict(_ref) {
|
|
|
254
256
|
var realCount = _format2.default.is13CLayout(layoutSt) ? (0, _carbonFeatures.carbonFeatures)(peaksEdit, multiplicitySt).length : multiplicitySt.stack.length;
|
|
255
257
|
|
|
256
258
|
if (is13Cor1H && simuCount === 0) {
|
|
257
|
-
var onClickUnknownCb = onClicUnknown(feature, forecast, peaksEdit, layoutSt, scan, shiftSt, thres, forecast.predictions, integrationSt, multiplicitySt);
|
|
259
|
+
var onClickUnknownCb = onClicUnknown(feature, forecast, peaksEdit, layoutSt, scan, shiftSt, thres, forecast.predictions, integrationSt, multiplicitySt, curveSt);
|
|
258
260
|
return renderBtnUnknown(classes, onClickUnknownCb);
|
|
259
261
|
}
|
|
260
262
|
|
|
261
263
|
var predictable = isIr || simuCount >= realCount && realCount > 0;
|
|
262
264
|
var color = predictable ? 'green' : 'red';
|
|
263
265
|
|
|
264
|
-
var onClick = predictable ? onClickReady(forecast, peaksEdit, layoutSt, scan, shiftSt, thres, forecast.predictions, integrationSt, multiplicitySt, setUiViewerTypeAct) : onClickFail(layoutSt, simuCount, realCount);
|
|
266
|
+
var onClick = predictable ? onClickReady(forecast, peaksEdit, layoutSt, scan, shiftSt, thres, forecast.predictions, integrationSt, multiplicitySt, setUiViewerTypeAct, curveSt) : onClickFail(layoutSt, simuCount, realCount);
|
|
265
267
|
|
|
266
268
|
var btnWidthCls = isIr ? classes.btnWidthIr : classes.btnWidthNmr;
|
|
267
269
|
|
|
@@ -278,7 +280,8 @@ var mapStateToProps = function mapStateToProps(state, props) {
|
|
|
278
280
|
shiftSt: state.shift,
|
|
279
281
|
thresSt: state.threshold,
|
|
280
282
|
integrationSt: state.integration.present,
|
|
281
|
-
multiplicitySt: state.multiplicity.present
|
|
283
|
+
multiplicitySt: state.multiplicity.present,
|
|
284
|
+
curveSt: state.curve
|
|
282
285
|
}
|
|
283
286
|
);
|
|
284
287
|
};
|