@complat/react-spectra-editor 1.2.2 → 1.3.2
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/__tests__/fixtures/cyclic_voltammetry_1.js +2 -0
- package/dist/__tests__/fixtures/dsc_jcamp.js +425 -0
- package/dist/__tests__/units/components/cmd_bar/r08_change_axes.test.js +12 -1
- package/dist/__tests__/units/components/panel/info.test.js +2 -1
- package/dist/actions/meta.js +7 -2
- package/dist/components/cmd_bar/07_pecker.js +17 -3
- package/dist/components/cmd_bar/r01_layout.js +4 -0
- package/dist/components/cmd_bar/r05_submit_btn.js +13 -6
- package/dist/components/cmd_bar/r08_change_axes.js +41 -10
- package/dist/components/d3_line/index.js +8 -2
- package/dist/components/d3_line/line_focus.js +1 -1
- package/dist/components/d3_multi/index.js +28 -2
- package/dist/components/d3_multi/multi_focus.js +49 -2
- package/dist/components/panel/cyclic_voltamery_data.js +2 -2
- package/dist/components/panel/info.js +140 -16
- package/dist/constants/action_type.js +3 -1
- package/dist/constants/list_layout.js +2 -1
- package/dist/helpers/cfg.js +1 -1
- package/dist/helpers/chem.js +50 -33
- package/dist/helpers/compass.js +1 -1
- package/dist/helpers/format.js +97 -3
- package/dist/index.js +52 -4
- package/dist/layer_init.js +11 -3
- package/dist/reducers/reducer_axes.js +27 -5
- package/dist/reducers/reducer_meta.js +14 -0
- package/dist/reducers/reducer_voltammetry.js +139 -56
- package/dist/sagas/saga_meta.js +9 -1
- package/dist/sagas/saga_ui.js +1 -0
- package/package.json +2 -2
package/dist/sagas/saga_meta.js
CHANGED
|
@@ -32,5 +32,13 @@ function* updateMetaPeaks(action) {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
function* updateMetaData(action) {
|
|
36
|
+
yield (0, _effects.put)({
|
|
37
|
+
type: _action_type.META.UPDATE_META_DATA_RDC,
|
|
38
|
+
payload: {
|
|
39
|
+
dscMetaData: action.payload
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
const metaSagas = [(0, _effects.takeEvery)(_action_type.META.UPDATE_PEAKS, updateMetaPeaks), (0, _effects.takeEvery)(_action_type.META.UPDATE_META_DATA, updateMetaData)];
|
|
36
44
|
var _default = exports.default = metaSagas;
|
package/dist/sagas/saga_ui.js
CHANGED
|
@@ -139,6 +139,7 @@ function* scrollUiWheel(action) {
|
|
|
139
139
|
case _list_layout.LIST_LAYOUT.UVVIS:
|
|
140
140
|
case _list_layout.LIST_LAYOUT.HPLC_UVVIS:
|
|
141
141
|
case _list_layout.LIST_LAYOUT.TGA:
|
|
142
|
+
case _list_layout.LIST_LAYOUT.DSC:
|
|
142
143
|
case _list_layout.LIST_LAYOUT.XRD:
|
|
143
144
|
default:
|
|
144
145
|
[nyeL, nyeU] = [yeL, yeL + (yeU - yeL) * scale];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@complat/react-spectra-editor",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "An editor to View and Edit Chemical Spectra data (NMR, IR
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"description": "An editor to View and Edit Chemical Spectra data (NMR, IR, MS, CV, UIVIS, XRD, and DSC).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/ComPlat/react-spectra-editor"
|