@complat/react-spectra-editor 1.0.0-rc9 → 1.0.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.
Files changed (145) hide show
  1. package/README.md +18 -1
  2. package/dist/__tests__/fixtures/aif_jcamp_1.js +1 -2
  3. package/dist/__tests__/fixtures/aif_jcamp_2.js +1 -2
  4. package/dist/__tests__/fixtures/backup/nmr1h_a.js +1 -2
  5. package/dist/__tests__/fixtures/backup/xrd_jcamp_1.js +10705 -0
  6. package/dist/__tests__/fixtures/cds_jcamp.js +1 -2
  7. package/dist/__tests__/fixtures/compare_ir_1_jcamp.js +1 -2
  8. package/dist/__tests__/fixtures/compare_ir_2_jcamp.js +1 -2
  9. package/dist/__tests__/fixtures/compare_uv_vis_jcamp.js +1 -2
  10. package/dist/__tests__/fixtures/cyclic_voltammetry_1.js +3 -3
  11. package/dist/__tests__/fixtures/cyclic_voltammetry_2.js +1 -2
  12. package/dist/__tests__/fixtures/cyclic_voltammetry_3.js +1 -2
  13. package/dist/__tests__/fixtures/dls_acf_jcamp.js +148 -0
  14. package/dist/__tests__/fixtures/dls_intensity_jcamp.js +151 -0
  15. package/dist/__tests__/fixtures/emissions_jcamp.js +883 -0
  16. package/dist/__tests__/fixtures/hplc_uvvis_jcamp.js +1 -2
  17. package/dist/__tests__/fixtures/hplc_uvvis_jcamp_2.js +1 -2
  18. package/dist/__tests__/fixtures/ir_jcamp.js +1 -2
  19. package/dist/__tests__/fixtures/ir_result.js +1 -2
  20. package/dist/__tests__/fixtures/ir_svg.js +1 -2
  21. package/dist/__tests__/fixtures/ms_jcamp.js +1 -2
  22. package/dist/__tests__/fixtures/nmr13c_dept_jcamp.js +1 -2
  23. package/dist/__tests__/fixtures/nmr13c_jcamp.js +1 -2
  24. package/dist/__tests__/fixtures/nmr15n_jcamp.js +1 -2
  25. package/dist/__tests__/fixtures/nmr19f_jcamp.js +1 -2
  26. package/dist/__tests__/fixtures/nmr1h_2_jcamp.js +1 -2
  27. package/dist/__tests__/fixtures/nmr1h_jcamp.js +1 -2
  28. package/dist/__tests__/fixtures/nmr29si_jcamp.js +1 -2
  29. package/dist/__tests__/fixtures/nmr31p_jcamp.js +1 -2
  30. package/dist/__tests__/fixtures/nmr_result.js +1 -2
  31. package/dist/__tests__/fixtures/nmr_svg.js +1 -2
  32. package/dist/__tests__/fixtures/phenylalanin.js +1 -2
  33. package/dist/__tests__/fixtures/qDescValue.js +3 -6
  34. package/dist/__tests__/fixtures/raman_jcamp.js +1 -2
  35. package/dist/__tests__/fixtures/sec_1_jcamp.js +1 -2
  36. package/dist/__tests__/fixtures/sec_2_jcamp.js +1 -2
  37. package/dist/__tests__/fixtures/sec_3_jcamp.js +1 -2
  38. package/dist/__tests__/fixtures/sec_4_jcamp.js +1 -2
  39. package/dist/__tests__/fixtures/tga_jcamp.js +1 -2
  40. package/dist/__tests__/fixtures/uv_vis_jcamp.js +1 -2
  41. package/dist/__tests__/fixtures/xrd_jcamp_1.js +422 -10692
  42. package/dist/__tests__/fixtures/xrd_jcamp_2.js +1 -2
  43. package/dist/__tests__/fixtures/xrd_jcamp_3.js +1 -2
  44. package/dist/__tests__/units/components/cmd_bar/01_viewer.test.js +57 -0
  45. package/dist/__tests__/units/components/cmd_bar/02_zoom.test.js +44 -0
  46. package/dist/__tests__/units/components/cmd_bar/03_peak.test.js +62 -0
  47. package/dist/__tests__/units/components/cmd_bar/07_pecker.test.js +73 -0
  48. package/dist/__tests__/units/components/cmd_bar/r08_change_axes.test.js +40 -0
  49. package/dist/__tests__/units/components/common/draw.test.js +29 -0
  50. package/dist/__tests__/units/components/panel/peaks.test.js +16 -4
  51. package/dist/actions/axes.js +19 -0
  52. package/dist/actions/cyclic_voltammetry.js +17 -2
  53. package/dist/app.js +4 -1
  54. package/dist/components/cmd_bar/01_viewer.js +7 -7
  55. package/dist/components/cmd_bar/02_zoom.js +7 -7
  56. package/dist/components/cmd_bar/03_peak.js +9 -9
  57. package/dist/components/cmd_bar/04_integration.js +25 -22
  58. package/dist/components/cmd_bar/05_multiplicity.js +4 -5
  59. package/dist/components/cmd_bar/06_undo_redo.js +5 -6
  60. package/dist/components/cmd_bar/07_pecker.js +94 -14
  61. package/dist/components/cmd_bar/common.js +40 -8
  62. package/dist/components/cmd_bar/index.js +4 -4
  63. package/dist/components/cmd_bar/r01_layout.js +52 -45
  64. package/dist/components/cmd_bar/r02_scan.js +16 -22
  65. package/dist/components/cmd_bar/r03_threshold.js +15 -17
  66. package/dist/components/cmd_bar/r04_submit.js +61 -42
  67. package/dist/components/cmd_bar/r05_submit_btn.js +14 -11
  68. package/dist/components/cmd_bar/r06_predict_btn.js +12 -12
  69. package/dist/components/cmd_bar/r07_wavelength_btn.js +11 -12
  70. package/dist/components/cmd_bar/r08_change_axes.js +130 -0
  71. package/dist/components/cmd_bar/tri_btn.js +3 -4
  72. package/dist/components/common/chem.js +1 -2
  73. package/dist/components/common/draw.js +2 -2
  74. package/dist/components/d3_line/index.js +30 -7
  75. package/dist/components/d3_line/line_focus.js +12 -11
  76. package/dist/components/d3_multi/index.js +31 -8
  77. package/dist/components/d3_multi/multi_focus.js +14 -10
  78. package/dist/components/d3_rect/index.js +1 -2
  79. package/dist/components/d3_rect/rect_focus.js +3 -4
  80. package/dist/components/forecast/comps.js +16 -19
  81. package/dist/components/forecast/ir_comps.js +17 -22
  82. package/dist/components/forecast/ir_viewer.js +10 -14
  83. package/dist/components/forecast/nmr_comps.js +19 -24
  84. package/dist/components/forecast/nmr_viewer.js +10 -14
  85. package/dist/components/forecast/section_loading.js +3 -4
  86. package/dist/components/forecast_viewer.js +19 -10
  87. package/dist/components/multi_jcamps_viewer.js +17 -11
  88. package/dist/components/panel/compare.js +18 -27
  89. package/dist/components/panel/cyclic_voltamery_data.js +75 -42
  90. package/dist/components/panel/graph_selection.js +42 -36
  91. package/dist/components/panel/index.js +10 -8
  92. package/dist/components/panel/info.js +12 -16
  93. package/dist/components/panel/multiplicity.js +24 -31
  94. package/dist/components/panel/multiplicity_coupling.js +6 -8
  95. package/dist/components/panel/multiplicity_select.js +5 -7
  96. package/dist/components/panel/peaks.js +26 -32
  97. package/dist/constants/action_type.js +26 -38
  98. package/dist/constants/list_axes.js +17 -0
  99. package/dist/constants/list_layout.js +6 -4
  100. package/dist/constants/list_shift.js +48 -34
  101. package/dist/constants/list_ui.js +3 -6
  102. package/dist/constants/list_wavelength.js +3 -4
  103. package/dist/fn.js +1 -2
  104. package/dist/helpers/brush.js +4 -5
  105. package/dist/helpers/cfg.js +17 -6
  106. package/dist/helpers/chem.js +154 -60
  107. package/dist/helpers/compass.js +2 -2
  108. package/dist/helpers/format.js +138 -8
  109. package/dist/helpers/init.js +2 -2
  110. package/dist/helpers/multiplicity.js +1 -2
  111. package/dist/helpers/zoom.js +3 -4
  112. package/dist/index.js +82 -36
  113. package/dist/layer_content.js +1 -2
  114. package/dist/layer_init.js +3 -4
  115. package/dist/layer_prism.js +4 -5
  116. package/dist/reducers/index.js +4 -3
  117. package/dist/reducers/reducer_axes.js +37 -0
  118. package/dist/reducers/reducer_curve.js +1 -2
  119. package/dist/reducers/reducer_edit_peak.js +30 -17
  120. package/dist/reducers/reducer_forecast.js +1 -2
  121. package/dist/reducers/reducer_integration.js +19 -14
  122. package/dist/reducers/reducer_jcamp.js +2 -3
  123. package/dist/reducers/reducer_layout.js +1 -2
  124. package/dist/reducers/reducer_manager.js +1 -2
  125. package/dist/reducers/reducer_meta.js +1 -2
  126. package/dist/reducers/reducer_multiplicity.js +16 -12
  127. package/dist/reducers/reducer_scan.js +1 -2
  128. package/dist/reducers/reducer_shift.js +2 -3
  129. package/dist/reducers/reducer_simulation.js +1 -2
  130. package/dist/reducers/reducer_status.js +1 -2
  131. package/dist/reducers/reducer_submit.js +1 -2
  132. package/dist/reducers/reducer_threshold.js +1 -2
  133. package/dist/reducers/reducer_ui.js +1 -2
  134. package/dist/reducers/reducer_voltammetry.js +169 -22
  135. package/dist/reducers/reducer_wavelength.js +1 -2
  136. package/dist/reducers/undo_redo_config.js +3 -5
  137. package/dist/sagas/saga_edit_peak.js +3 -4
  138. package/dist/sagas/saga_manager.js +7 -6
  139. package/dist/sagas/saga_meta.js +1 -2
  140. package/dist/sagas/saga_multi_entities.js +40 -19
  141. package/dist/sagas/saga_multiplicity.js +19 -14
  142. package/dist/sagas/saga_ui.js +1 -2
  143. package/dist/setupTests.js +1 -1
  144. package/dist/third_party/jAnalyzer.js +2 -3
  145. package/package.json +15 -16
package/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # react-spectra-editor
2
2
 
3
- An editor to View and Edit Chemical Spectra data (NMR, IR and MS).
3
+ An editor to View and Edit Chemical Spectra data (NMR, IR, MS, UV, CV and XRD).
4
+
5
+ ![GitHub package.json version](https://img.shields.io/github/package-json/v/ComPlat/react-spectra-editor)
6
+ ![Testing](https://github.com/ComPlat/react-spectra-editor/actions/workflows/testing.yml/badge.svg)
4
7
 
5
8
  ### Usage
6
9
 
@@ -35,3 +38,17 @@ $ yarn start
35
38
 
36
39
  [demo & step-by-step manual](https://github.com/ComPlat/react-spectra-editor/blob/master/DEMO_MANUAL.md)
37
40
 
41
+
42
+
43
+ ## Acknowledgments
44
+
45
+ This project has been funded by the **[DFG]**.
46
+
47
+ [![DFG Logo]][DFG]
48
+
49
+
50
+ Funded by the [Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)](https://www.dfg.de/) under the [National Research Data Infrastructure – NFDI4Chem](https://nfdi4chem.de/) – Projektnummer **441958208** since 2020.
51
+
52
+
53
+ [DFG]: https://www.dfg.de/en/
54
+ [DFG Logo]: https://www.dfg.de/zentralablage/bilder/service/logos_corporate_design/logo_negativ_267.png
@@ -133,5 +133,4 @@ const aifJcamp1 = `
133
133
  ##END=$$ End of the data block
134
134
 
135
135
  `;
136
- var _default = aifJcamp1;
137
- exports.default = _default;
136
+ var _default = exports.default = aifJcamp1;
@@ -119,5 +119,4 @@ const aifJcamp2 = `
119
119
 
120
120
 
121
121
  `;
122
- var _default = aifJcamp2;
123
- exports.default = _default;
122
+ var _default = exports.default = aifJcamp2;
@@ -3515,5 +3515,4 @@ $$ === CHEMSPECTRA PEAK TABLE AUTO ===
3515
3515
 
3516
3516
 
3517
3517
  `;
3518
- var _default = nmr1HA;
3519
- exports.default = _default;
3518
+ var _default = exports.default = nmr1HA;