nmrium 0.50.0 → 0.51.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 (196) hide show
  1. package/README.md +7 -7
  2. package/lib/component/1d/Chart1D.js +1 -1
  3. package/lib/component/1d/LinesSeries.js +2 -2
  4. package/lib/component/1d/Viewer1D.js +6 -11
  5. package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
  6. package/lib/component/2d/1d-tracer/HorizontalSliceChart.js +6 -2
  7. package/lib/component/2d/1d-tracer/VerticalSliceChart.js +8 -1
  8. package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraceWithMouse.js +2 -21
  9. package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.js +1 -1
  10. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.d.ts +1 -1
  11. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js +6 -17
  12. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts +6 -10
  13. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js +62 -13
  14. package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts +1 -0
  15. package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.js +2 -1
  16. package/lib/component/2d/Viewer2D.js +16 -15
  17. package/lib/component/2d/ft/Contours.js +6 -3
  18. package/lib/component/2d/utilities/scale.d.ts +2 -1
  19. package/lib/component/2d/utilities/scale.js +12 -2
  20. package/lib/component/EventsTrackers/BrushTracker.d.ts +5 -3
  21. package/lib/component/EventsTrackers/BrushTracker.js +2 -2
  22. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts +1 -1
  23. package/lib/component/EventsTrackers/KeysListenerTracker.js +29 -15
  24. package/lib/component/context/ToasterContext.d.ts +13 -0
  25. package/lib/component/context/ToasterContext.js +34 -0
  26. package/lib/component/elements/CloseButton.d.ts +2 -2
  27. package/lib/component/elements/CloseButton.js +1 -1
  28. package/lib/component/elements/CounterLabel.d.ts +3 -3
  29. package/lib/component/elements/CounterLabel.js +3 -3
  30. package/lib/component/elements/PreferencesButton.d.ts +2 -2
  31. package/lib/component/elements/PreferencesButton.js +2 -4
  32. package/lib/component/elements/SaveButton.d.ts +2 -2
  33. package/lib/component/elements/SaveButton.js +1 -1
  34. package/lib/component/elements/Select.js +2 -2
  35. package/lib/component/elements/ToolBarButton.d.ts +1 -8
  36. package/lib/component/elements/ToolBarButton.js +2 -11
  37. package/lib/component/elements/ToolbarPopoverItem.d.ts +11 -0
  38. package/lib/component/elements/ToolbarPopoverItem.js +10 -0
  39. package/lib/component/header/AutoPeakPickingOptionPanel.js +6 -3
  40. package/lib/component/header/Header.d.ts +1 -11
  41. package/lib/component/header/Header.js +5 -6
  42. package/lib/component/header/PhaseCorrectionPanel.js +24 -33
  43. package/lib/component/header/PhaseCorrectionTwoDimensionsPanel.d.ts +1 -1
  44. package/lib/component/header/PhaseCorrectionTwoDimensionsPanel.js +96 -42
  45. package/lib/component/header/RangesPickingOptionPanel.js +6 -3
  46. package/lib/component/hooks/useDialogToggle.d.ts +5 -0
  47. package/lib/component/hooks/useDialogToggle.js +16 -0
  48. package/lib/component/hooks/useExport.d.ts +9 -1
  49. package/lib/component/hooks/useExport.js +34 -36
  50. package/lib/component/hooks/useSaveSettings.js +6 -3
  51. package/lib/component/hooks/useToolsFunctions.js +6 -4
  52. package/lib/component/loader/DropZone.js +14 -14
  53. package/lib/component/main/InnerNMRium.js +5 -9
  54. package/lib/component/main/InnerNMRiumContents.d.ts +0 -2
  55. package/lib/component/main/InnerNMRiumContents.js +5 -3
  56. package/lib/component/main/NMRium.js +2 -2
  57. package/lib/component/modal/AboutPredictionModal.js +1 -1
  58. package/lib/component/modal/CopyClipboardModal.js +1 -1
  59. package/lib/component/modal/EditPeakShapeModal.js +1 -1
  60. package/lib/component/modal/ExportAsJcampModal.js +15 -15
  61. package/lib/component/modal/ImportPublicationStringModal.js +5 -3
  62. package/lib/component/modal/LoadJCAMPModal.js +6 -4
  63. package/lib/component/modal/PredictSpectraModal.js +11 -9
  64. package/lib/component/modal/SaveAsModal.d.ts +3 -4
  65. package/lib/component/modal/SaveAsModal.js +27 -27
  66. package/lib/component/modal/aboutUs/AboutUsModal.js +1 -1
  67. package/lib/component/modal/editRange/EditRangeModal.js +2 -2
  68. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +2 -3
  69. package/lib/component/modal/editRange/forms/components/DeltaInput.js +2 -3
  70. package/lib/component/modal/editRange/forms/components/InfoBlock.d.ts +1 -0
  71. package/lib/component/modal/editRange/forms/components/{SignalFormInfo.js → InfoBlock.js} +2 -2
  72. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts +5 -0
  73. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +85 -0
  74. package/lib/component/modal/editRange/forms/components/SignalTab.d.ts +7 -0
  75. package/lib/component/modal/editRange/forms/components/SignalTab.js +24 -0
  76. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts +8 -0
  77. package/lib/component/modal/editRange/forms/components/SignalsContent.js +57 -0
  78. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts +5 -0
  79. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +133 -0
  80. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts +5 -0
  81. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +141 -0
  82. package/lib/component/modal/editZone/EditZoneModal.js +1 -1
  83. package/lib/component/modal/metaImportation/MetaImportationModal.d.ts +7 -4
  84. package/lib/component/modal/metaImportation/MetaImportationModal.js +23 -13
  85. package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.js +1 -1
  86. package/lib/component/modal/setting/GeneralSettings.js +7 -4
  87. package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +16 -2
  88. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +7 -4
  89. package/lib/component/panels/IntegralsPanel/IntegralPanel.js +20 -6
  90. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +16 -3
  91. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +14 -10
  92. package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +6 -4
  93. package/lib/component/panels/PeaksPanel/PeaksPanel.js +48 -14
  94. package/lib/component/panels/RangesPanel/RangesHeader.js +73 -13
  95. package/lib/component/panels/RangesPanel/RangesPanel.js +4 -4
  96. package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +49 -8
  97. package/lib/component/panels/SpectrumsPanel/SpectraTable.js +11 -5
  98. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +1 -1
  99. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
  100. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +1 -1
  101. package/lib/component/panels/SummaryPanel/SummaryPanel.js +28 -18
  102. package/lib/component/panels/ZonesPanel/ZonesPanel.js +28 -4
  103. package/lib/component/panels/databasePanel/DatabasePanel.js +37 -19
  104. package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +3 -3
  105. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +4 -4
  106. package/lib/component/panels/filtersPanel/FilterPanel.js +6 -4
  107. package/lib/component/panels/filtersPanel/FiltersTable.js +27 -23
  108. package/lib/component/panels/header/DefaultPanelHeader.d.ts +10 -6
  109. package/lib/component/panels/header/DefaultPanelHeader.js +26 -10
  110. package/lib/component/panels/header/SpectraAutomaticPickingButton.js +6 -4
  111. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +2 -2
  112. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +3 -3
  113. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +36 -7
  114. package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +4 -2
  115. package/lib/component/panels/predictionPanel/PredictionPanel.js +7 -5
  116. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -0
  117. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +5 -1
  118. package/lib/component/reducer/Reducer.d.ts +2 -2
  119. package/lib/component/reducer/Reducer.js +23 -16
  120. package/lib/component/reducer/actions/FiltersActions.d.ts +11 -4
  121. package/lib/component/reducer/actions/FiltersActions.js +243 -91
  122. package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
  123. package/lib/component/reducer/actions/IntegralsActions.js +2 -2
  124. package/lib/component/reducer/actions/MoleculeActions.js +0 -1
  125. package/lib/component/reducer/actions/RangesActions.js +16 -6
  126. package/lib/component/reducer/actions/ToolsActions.d.ts +3 -3
  127. package/lib/component/reducer/actions/ToolsActions.js +75 -14
  128. package/lib/component/reducer/helper/Zoom1DManager.d.ts +4 -3
  129. package/lib/component/reducer/helper/Zoom1DManager.js +4 -4
  130. package/lib/component/reducer/helper/ZoomHistoryManager.js +1 -5
  131. package/lib/component/reducer/helper/findStrongestPeak.d.ts +6 -0
  132. package/lib/component/reducer/helper/findStrongestPeak.js +13 -0
  133. package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts +2 -1
  134. package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js +7 -1
  135. package/lib/component/toolbar/ToolBar.js +241 -8
  136. package/lib/component/toolbar/toolbarMenu.d.ts +4 -0
  137. package/lib/component/toolbar/toolbarMenu.js +77 -0
  138. package/lib/component/utility/Events.d.ts +11 -0
  139. package/lib/component/utility/Events.js +22 -0
  140. package/lib/component/utility/booleanToString.d.ts +6 -0
  141. package/lib/component/utility/booleanToString.js +4 -0
  142. package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +0 -33
  143. package/lib/data/data1d/Spectrum1D/ranges/addRange.js +5 -15
  144. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +6 -4
  145. package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +1 -1
  146. package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +1 -1
  147. package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +6 -4
  148. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +13 -3
  149. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.js +6 -0
  150. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts +13 -3
  151. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +78 -18
  152. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +2 -2
  153. package/lib/data/data1d/spectrumSimulation.d.ts +1 -1
  154. package/lib/data/data2d/Spectrum2D/contours.js +3 -3
  155. package/lib/data/data2d/Spectrum2D/getMissingProjection.js +2 -2
  156. package/lib/data/data2d/Spectrum2D/getSlice.js +3 -3
  157. package/lib/data/getDefaultMatrixFilters.js +2 -2
  158. package/lib/data/matrixGeneration.js +1 -1
  159. package/lib/data/utilities/calculateSanPlot.d.ts +1 -6
  160. package/lib/versionInfo.js +1 -1
  161. package/package.json +31 -30
  162. package/lib/component/elements/DeleteButton.d.ts +0 -6
  163. package/lib/component/elements/DeleteButton.js +0 -8
  164. package/lib/component/elements/DropdownMenu.d.ts +0 -9
  165. package/lib/component/elements/DropdownMenu.js +0 -7
  166. package/lib/component/elements/FilterButton.d.ts +0 -6
  167. package/lib/component/elements/FilterButton.js +0 -8
  168. package/lib/component/elements/popup/Alert/AlertBlock.d.ts +0 -8
  169. package/lib/component/elements/popup/Alert/AlertBlock.js +0 -30
  170. package/lib/component/elements/popup/Alert/Context.d.ts +0 -27
  171. package/lib/component/elements/popup/Alert/Context.js +0 -10
  172. package/lib/component/elements/popup/Alert/ProgressIndicator.d.ts +0 -1
  173. package/lib/component/elements/popup/Alert/ProgressIndicator.js +0 -33
  174. package/lib/component/elements/popup/Alert/Provider.d.ts +0 -19
  175. package/lib/component/elements/popup/Alert/Provider.js +0 -127
  176. package/lib/component/elements/popup/Alert/index.d.ts +0 -3
  177. package/lib/component/elements/popup/Alert/index.js +0 -3
  178. package/lib/component/modal/editRange/forms/components/AddSignalFormTab.d.ts +0 -10
  179. package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +0 -81
  180. package/lib/component/modal/editRange/forms/components/CouplingsTable.d.ts +0 -13
  181. package/lib/component/modal/editRange/forms/components/CouplingsTable.js +0 -63
  182. package/lib/component/modal/editRange/forms/components/SignalFormInfo.d.ts +0 -1
  183. package/lib/component/modal/editRange/forms/components/SignalFormTab.d.ts +0 -8
  184. package/lib/component/modal/editRange/forms/components/SignalFormTab.js +0 -18
  185. package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +0 -10
  186. package/lib/component/modal/editRange/forms/components/SignalsForm.js +0 -114
  187. package/lib/component/modal/metaImportation/index.d.ts +0 -2
  188. package/lib/component/modal/metaImportation/index.js +0 -17
  189. package/lib/component/panels/PeaksPanel/PeaksToggleActions.d.ts +0 -12
  190. package/lib/component/panels/PeaksPanel/PeaksToggleActions.js +0 -7
  191. package/lib/component/reducer/helper/getStrongestPeak.d.ts +0 -7
  192. package/lib/component/reducer/helper/getStrongestPeak.js +0 -15
  193. package/lib/component/toolbar/BasicToolBar.d.ts +0 -1
  194. package/lib/component/toolbar/BasicToolBar.js +0 -165
  195. package/lib/component/toolbar/FunctionToolBar.d.ts +0 -3
  196. package/lib/component/toolbar/FunctionToolBar.js +0 -148
@@ -7,7 +7,7 @@ import { useEffect, useState } from 'react';
7
7
  import * as Yup from 'yup';
8
8
  import { REFERENCES } from '../../../data/constants/References';
9
9
  import { useDispatch } from '../../context/DispatchContext';
10
- import Button from '../../elements/Button';
10
+ import ActionButtons from '../../elements/ActionButtons';
11
11
  import Label from '../../elements/Label';
12
12
  import Message from '../../elements/Message';
13
13
  import Select from '../../elements/Select';
@@ -131,6 +131,6 @@ function AlignSpectra({ onClose = () => null, nucleus }) {
131
131
  padding-top: 5px;
132
132
  }
133
133
  `;
134
- return (_jsx("div", { css: styles, children: _jsx(Formik, { initialValues: options, enableReinitialize: true, onSubmit: submitHandler, validationSchema: schemaValidation, validate: () => setError(''), children: ({ submitForm }) => (_jsxs(_Fragment, { children: [_jsxs("div", { className: "body", style: { flex: 1 }, children: [_jsx("div", { className: "header", children: _jsx("span", { children: "Spectra calibration" }) }), error && _jsx(Message, { type: "error", children: error }), _jsx(Label, { title: "Options", style: labelStyle, children: _jsx(Select, { items: List, style: { width: '100%', height: 30 }, onChange: optionChangeHandler }) }), _jsxs(Label, { title: "Range", style: labelStyle, children: [_jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "from", type: "number", style: inputStyle }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "to", type: "number", style: inputStyle }) })] }), _jsx(Label, { title: "Number of Peaks", style: labelStyle, children: _jsx(FormikInput, { name: "nbPeaks", type: "number", style: inputStyle }) }), _jsx(Label, { title: "Target PPM", style: labelStyle, children: _jsx(FormikInput, { name: "targetX", type: "number", style: inputStyle }) })] }), _jsx("div", { className: "footer", children: _jsx(Button.Done, { style: { padding: '5px 14px', fontSize: 14 }, onClick: submitForm, children: "Done" }) })] })) }) }));
134
+ return (_jsx("div", { css: styles, children: _jsx(Formik, { initialValues: options, enableReinitialize: true, onSubmit: submitHandler, validationSchema: schemaValidation, validate: () => setError(''), children: ({ submitForm }) => (_jsxs(_Fragment, { children: [_jsxs("div", { className: "body", style: { flex: 1 }, children: [_jsx("div", { className: "header", children: _jsx("span", { children: "Spectra calibration" }) }), error && _jsx(Message, { type: "error", children: error }), _jsx(Label, { title: "Options", style: labelStyle, children: _jsx(Select, { items: List, style: { width: '100%', height: 30 }, onChange: optionChangeHandler }) }), _jsxs(Label, { title: "Range", style: labelStyle, children: [_jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "from", type: "number", style: inputStyle }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "to", type: "number", style: inputStyle }) })] }), _jsx(Label, { title: "Number of Peaks", style: labelStyle, children: _jsx(FormikInput, { name: "nbPeaks", type: "number", style: inputStyle }) }), _jsx(Label, { title: "Target PPM", style: labelStyle, children: _jsx(FormikInput, { name: "targetX", type: "number", style: inputStyle }) })] }), _jsx("div", { className: "footer", children: _jsx(ActionButtons, { onDone: submitForm, onCancel: onClose }) })] })) }) }));
135
135
  }
136
136
  export default AlignSpectra;
@@ -6,10 +6,10 @@ import { ResponsiveChart } from 'react-d3-utils';
6
6
  import { FaFileExport } from 'react-icons/fa';
7
7
  import { Axis, LineSeries, Plot } from 'react-plot';
8
8
  import { useChartData } from '../../context/ChartContext';
9
+ import { useToaster } from '../../context/ToasterContext';
9
10
  import Button from '../../elements/Button';
10
11
  import Input from '../../elements/Input';
11
12
  import Label from '../../elements/Label';
12
- import { useAlert } from '../../elements/popup/Alert';
13
13
  import useSpectraByActiveNucleus from '../../hooks/useSpectraPerNucleus';
14
14
  import { copyPNGToClipboard } from '../../utility/export';
15
15
  import { getSpectraObjectPaths } from '../../utility/getSpectraObjectPaths';
@@ -70,7 +70,7 @@ function getAnalysisColumnsPaths(spectraAnalysisData) {
70
70
  export default function AnalysisChart(props) {
71
71
  const { spectraAnalysisData } = props;
72
72
  const { data } = useChartData();
73
- const alert = useAlert();
73
+ const toaster = useToaster();
74
74
  const chartParentRef = useRef(null);
75
75
  const [plotOptions, setPlotOptions] = useState({
76
76
  xPath: '',
@@ -94,7 +94,7 @@ export default function AnalysisChart(props) {
94
94
  function handleCopy() {
95
95
  if (chartParentRef.current) {
96
96
  void copyPNGToClipboard(chartParentRef.current, svgId, css({ text: { fill: 'black' } }));
97
- alert.success('Chart copied to clipboard');
97
+ toaster.show({ message: 'Chart copied to clipboard', intent: 'success' });
98
98
  }
99
99
  }
100
100
  const plotData = usePlotData(spectraAnalysisData, { ...plotOptions, paths });
@@ -1,19 +1,19 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
2
2
  /** @jsxImportSource @emotion/react */
3
3
  import { css } from '@emotion/react';
4
4
  import { SvgNmrOverlay } from 'cheminfo-font';
5
5
  import { useCallback, useState, useRef, memo } from 'react';
6
6
  import { FaChartBar, FaFileExport } from 'react-icons/fa';
7
7
  import { IoPulseOutline } from 'react-icons/io5';
8
- import { Toolbar } from 'react-science/ui';
9
8
  import { useToggle } from 'react-use';
10
9
  import { getDataAsString, generateAnalyzeSpectra, } from '../../../data/data1d/multipleSpectraAnalysis';
11
10
  import { ClipboardFallbackModal } from '../../../utils/clipboard/clipboardComponents';
12
11
  import { useClipboard } from '../../../utils/clipboard/clipboardHooks';
13
12
  import { useChartData } from '../../context/ChartContext';
14
13
  import { useDispatch } from '../../context/DispatchContext';
15
- import { useAlert } from '../../elements/popup/Alert';
14
+ import { useToaster } from '../../context/ToasterContext';
16
15
  import { usePanelPreferences } from '../../hooks/usePanelPreferences';
16
+ import { booleanToString } from '../../utility/booleanToString';
17
17
  import { getSpectraByNucleus } from '../../utility/getSpectraByNucleus';
18
18
  import { tablePanelStyle } from '../extra/BasicPanelStyle';
19
19
  import DefaultPanelHeader from '../header/DefaultPanelHeader';
@@ -30,7 +30,7 @@ function MultipleSpectraAnalysisPanelInner({ activeTab, spectra, showLegend, dis
30
30
  const [showAnalysisChart, toggleAnalysisChart] = useToggle(false);
31
31
  const spectraAnalysis = generateAnalyzeSpectra(preferences, spectra, activeTab);
32
32
  const settingRef = useRef();
33
- const alert = useAlert();
33
+ const toaster = useToaster();
34
34
  const dispatch = useDispatch();
35
35
  const settingsPanelHandler = useCallback(() => {
36
36
  setFlipStatus(!isFlipped);
@@ -49,8 +49,8 @@ function MultipleSpectraAnalysisPanelInner({ activeTab, spectra, showLegend, dis
49
49
  const data = getDataAsString(spectraAnalysis, spectra, spectraPreferences);
50
50
  if (!data)
51
51
  return;
52
- void rawWriteWithType(data).then(() => alert.success('Data copied to clipboard'));
53
- }, [alert, rawWriteWithType, spectra, spectraAnalysis, spectraPreferences]);
52
+ void rawWriteWithType(data).then(() => toaster.show({ message: 'Data copied to clipboard', intent: 'success' }));
53
+ }, [rawWriteWithType, spectra, spectraAnalysis, spectraPreferences, toaster]);
54
54
  function handleSpectraCalibration() {
55
55
  setCalibration((value) => {
56
56
  if (value)
@@ -58,6 +58,35 @@ function MultipleSpectraAnalysisPanelInner({ activeTab, spectra, showLegend, dis
58
58
  return !value;
59
59
  });
60
60
  }
61
+ let lefButtons = [
62
+ {
63
+ icon: _jsx(FaFileExport, {}),
64
+ title: 'Copy To Clipboard',
65
+ onClick: copyToClipboardHandler,
66
+ },
67
+ ];
68
+ if (displayerMode === '1D') {
69
+ lefButtons = lefButtons.concat([
70
+ {
71
+ icon: _jsx(SvgNmrOverlay, {}),
72
+ title: 'Spectra calibration',
73
+ onClick: handleSpectraCalibration,
74
+ active: calibration,
75
+ },
76
+ {
77
+ icon: _jsx(IoPulseOutline, {}),
78
+ title: 'Y spectra tracker',
79
+ onClick: showTrackerHandler,
80
+ active: showLegend,
81
+ },
82
+ {
83
+ icon: _jsx(FaChartBar, {}),
84
+ title: `${booleanToString(!showAnalysisChart)} analysis chart`,
85
+ onClick: toggleAnalysisChart,
86
+ active: showAnalysisChart,
87
+ },
88
+ ]);
89
+ }
61
90
  return (_jsxs("div", { css: [
62
91
  tablePanelStyle,
63
92
  isFlipped &&
@@ -66,7 +95,7 @@ function MultipleSpectraAnalysisPanelInner({ activeTab, spectra, showLegend, dis
66
95
  position: relative;
67
96
  }
68
97
  `,
69
- ], children: [!isFlipped && (_jsx(DefaultPanelHeader, { deleteToolTip: "Delete All Peaks", showSettingButton: true, canDelete: false, onSettingClick: settingsPanelHandler, children: _jsxs(Toolbar, { children: [_jsx(Toolbar.Item, { icon: _jsx(FaFileExport, {}), title: "Copy To Clipboard", onClick: copyToClipboardHandler }), displayerMode === '1D' && (_jsxs(_Fragment, { children: [_jsx(Toolbar.Item, { icon: _jsx(SvgNmrOverlay, {}), title: "Spectra calibration", onClick: handleSpectraCalibration, active: calibration }), _jsx(Toolbar.Item, { icon: _jsx(IoPulseOutline, {}), title: "Y spectra tracker", onClick: showTrackerHandler, active: showLegend }), _jsx(Toolbar.Item, { icon: _jsx(FaChartBar, {}), title: `${!showAnalysisChart ? 'Show' : 'Hide'} analysis chart`, onClick: toggleAnalysisChart, active: showAnalysisChart })] }))] }) })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: isFlipped ? (_jsx(MultipleSpectraAnalysisPreferences, { data: spectraAnalysis, activeTab: activeTab, onAfterSave: afterSaveHandler, ref: settingRef })) : calibration ? (_jsx(AlignSpectra, { nucleus: activeTab, onClose: () => setCalibration(false) })) : (_jsxs("div", { style: { overflow: 'auto', maxHeight: '100%' }, children: [showAnalysisChart && (_jsx(AnalysisChart, { spectraAnalysisData: spectraAnalysis })), _jsx(MultipleSpectraAnalysisTable, { data: spectraAnalysis, resortSpectra: preferences.analysisOptions.resortSpectra, activeTab: activeTab })] })) }), _jsx(ClipboardFallbackModal, { mode: shouldFallback, onDismiss: cleanShouldFallback, text: text, label: "Spectra Analysis" })] }));
98
+ ], children: [!isFlipped && (_jsx(DefaultPanelHeader, { deleteToolTip: "Delete All Peaks", onSettingClick: settingsPanelHandler, leftButtons: lefButtons })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: isFlipped ? (_jsx(MultipleSpectraAnalysisPreferences, { data: spectraAnalysis, activeTab: activeTab, onAfterSave: afterSaveHandler, ref: settingRef })) : calibration ? (_jsx(AlignSpectra, { nucleus: activeTab, onClose: () => setCalibration(false) })) : (_jsxs("div", { style: { overflow: 'auto', maxHeight: '100%' }, children: [showAnalysisChart && (_jsx(AnalysisChart, { spectraAnalysisData: spectraAnalysis })), _jsx(MultipleSpectraAnalysisTable, { data: spectraAnalysis, resortSpectra: preferences.analysisOptions.resortSpectra, activeTab: activeTab })] })) }), _jsx(ClipboardFallbackModal, { mode: shouldFallback, onDismiss: cleanShouldFallback, text: text, label: "Spectra Analysis" })] }));
70
99
  }
71
100
  const MemoizedMultipleSpectraAnalysisPanel = memo(MultipleSpectraAnalysisPanelInner);
72
101
  export default function MultipleSpectraAnalysisPanel() {
@@ -7,6 +7,7 @@ import { usePreferences } from '../../../context/PreferencesContext';
7
7
  import { GroupPane } from '../../../elements/GroupPane';
8
8
  import Label from '../../../elements/Label';
9
9
  import FormikCheckBox from '../../../elements/formik/FormikCheckBox';
10
+ import useCheckExperimentalFeature from '../../../hooks/useCheckExperimentalFeature';
10
11
  import { usePanelPreferences } from '../../../hooks/usePanelPreferences';
11
12
  import { PreferencesContainer } from '../../extra/preferences/PreferencesContainer';
12
13
  import { AnalysisTablePreferences } from './AnalysisTablePreferences';
@@ -34,6 +35,7 @@ function MultipleSpectraAnalysisPreferences({ data, activeTab, onAfterSave }, re
34
35
  const panelPreferences = usePanelPreferences('multipleSpectraAnalysis', activeTab);
35
36
  const preferences = usePreferences();
36
37
  const columns = getMultipleSpectraAnalysisData(panelPreferences);
38
+ const isExperimental = useCheckExperimentalFeature();
37
39
  useImperativeHandle(ref, () => ({
38
40
  saveSetting() {
39
41
  refForm.current.submitForm();
@@ -58,10 +60,10 @@ function MultipleSpectraAnalysisPreferences({ data, activeTab, onAfterSave }, re
58
60
  }, children: _jsx(Label, { title: "Enable resort spectra", htmlFor: "resortSpectra", children: _jsx(FormikCheckBox, { name: "resortSpectra" }) }) }), _jsx(GroupPane, { text: "Columns Settings ", style: {
59
61
  header: { color: 'black' },
60
62
  container: { padding: '5px' },
61
- }, children: _jsx(AnalysisTablePreferences, {}) }), _jsx(GroupPane, { text: "Execute code ", style: {
63
+ }, children: _jsx(AnalysisTablePreferences, {}) }), isExperimental && (_jsx(GroupPane, { text: "Execute code ", style: {
62
64
  header: { color: 'black' },
63
65
  container: { padding: '5px' },
64
- }, children: _jsx(MultipleAnalysisCodeEditor, { data: data }) })] }) }) }));
66
+ }, children: _jsx(MultipleAnalysisCodeEditor, { data: data }) }))] }) }) }));
65
67
  }
66
68
  function columnSchema(columns) {
67
69
  return Yup.object().shape({
@@ -7,9 +7,9 @@ import { predictSpectra } from '../../../data/PredictionManager';
7
7
  import { useChartData } from '../../context/ChartContext';
8
8
  import { useDispatch } from '../../context/DispatchContext';
9
9
  import { useLogger } from '../../context/LoggerContext';
10
+ import { useToaster } from '../../context/ToasterContext';
10
11
  import Button from '../../elements/Button';
11
12
  import NextPrev from '../../elements/NextPrev';
12
- import { useAlert } from '../../elements/popup/Alert';
13
13
  import { usePanelPreferences } from '../../hooks/usePanelPreferences';
14
14
  import { useMoleculeEditor } from '../../modal/MoleculeStructureEditorModal';
15
15
  import MoleculeHeader from '../MoleculesPanel/MoleculeHeader';
@@ -31,7 +31,7 @@ const styles = {
31
31
  export default function PredictionPanel() {
32
32
  const { molecules, view: { molecules: moleculesView, predictions }, } = useChartData();
33
33
  const dispatch = useDispatch();
34
- const alert = useAlert();
34
+ const toaster = useToaster();
35
35
  const { logger } = useLogger();
36
36
  const [currentIndex, setCurrentIndex] = useState(0);
37
37
  const [molfile, setMolfile] = useState(null);
@@ -70,7 +70,9 @@ export default function PredictionPanel() {
70
70
  predictedSpectra.push(key);
71
71
  }
72
72
  }
73
- const hideLoading = await alert.showLoading(`Predict ${predictedSpectra.join(',')} in progress`);
73
+ const hideLoading = toaster.showLoading({
74
+ message: `Predict ${predictedSpectra.join(',')} in progress`,
75
+ });
74
76
  try {
75
77
  const data = await predictSpectra(molfile, predictionPreferences.spectra);
76
78
  dispatch({
@@ -88,14 +90,14 @@ export default function PredictionPanel() {
88
90
  }
89
91
  }
90
92
  catch (error) {
91
- alert.error(error.message);
93
+ toaster.show({ message: error.message, intent: 'danger' });
92
94
  }
93
95
  finally {
94
96
  hideLoading();
95
97
  }
96
98
  }
97
99
  else {
98
- alert.error('No Molecule selected');
100
+ toaster.show({ message: 'No Molecule selected', intent: 'danger' });
99
101
  }
100
102
  })();
101
103
  }
@@ -35,6 +35,7 @@ function PredictionSimpleOptions() {
35
35
  // eslint-disable-next-line @typescript-eslint/no-empty-function
36
36
  onSubmit: () => { }, children: _jsxs("div", { style: {
37
37
  display: 'flex',
38
+ flexWrap: 'wrap',
38
39
  justifyContent: 'flex-end',
39
40
  flex: '1',
40
41
  height: '100%',
@@ -90,7 +90,11 @@ export default function SpectrumSimulation() {
90
90
  }
91
91
  }
92
92
  `,
93
- ], children: [!isFlipped && (_jsxs(DefaultPanelHeader, { showSettingButton: true, onSettingClick: settingsPanelHandler, canDelete: false, children: [_jsx(AboutSpectrumSimulationModal, {}), _jsx(SpectrumSimulationSimpleOptions, { onSpinSystemChange: spinSystemChangeHandler, spinSystem: spinSystem })] })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: !isFlipped ? (_jsxs("div", { style: {
93
+ ], children: [!isFlipped && (_jsx(DefaultPanelHeader, { onSettingClick: settingsPanelHandler, leftButtons: [
94
+ {
95
+ component: _jsx(AboutSpectrumSimulationModal, {}),
96
+ },
97
+ ], children: _jsx(SpectrumSimulationSimpleOptions, { onSpinSystemChange: spinSystemChangeHandler, spinSystem: spinSystem }) })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: !isFlipped ? (_jsxs("div", { style: {
94
98
  display: 'flex',
95
99
  flexDirection: 'column',
96
100
  height: '100%',
@@ -1,4 +1,3 @@
1
- import { NmrData1D } from 'cheminfo-types';
2
1
  import { WebSource as Source } from 'filelist-utils';
3
2
  import { CorrelationData } from 'nmr-correlation';
4
3
  import { Spectrum, ViewState } from 'nmr-load-save';
@@ -25,7 +24,6 @@ export type SpectraDirection = 'RTL' | 'LTR';
25
24
  export type TraceDirection = 'vertical' | 'horizontal';
26
25
  export interface SpectrumTrace {
27
26
  id: string;
28
- data: NmrData1D;
29
27
  x: number;
30
28
  y: number;
31
29
  }
@@ -39,7 +37,9 @@ export interface PhaseCorrectionTraceData {
39
37
  export interface TwoDimensionPhaseCorrection {
40
38
  traces: Record<TraceDirection, PhaseCorrectionTraceData>;
41
39
  activeTraceDirection: TraceDirection;
40
+ addTracesToBothDirections: boolean;
42
41
  }
42
+ export declare const getDefaultTwoDimensionsPhaseCorrectionTraceOptions: () => TwoDimensionPhaseCorrection['traces'];
43
43
  export declare function getDefaultViewState(): ViewState;
44
44
  export declare const getInitialState: () => State;
45
45
  export declare const initialState: State;
@@ -18,6 +18,23 @@ import * as SpectraAnalysisActions from './actions/SpectraAnalysisAction';
18
18
  import * as SpectrumsActions from './actions/SpectrumsActions';
19
19
  import * as ToolsActions from './actions/ToolsActions';
20
20
  import * as ZonesActions from './actions/ZonesActions';
21
+ export const getDefaultTwoDimensionsPhaseCorrectionTraceOptions = () => {
22
+ const directions = [
23
+ 'horizontal',
24
+ 'vertical',
25
+ ];
26
+ const result = {};
27
+ for (const direction of directions) {
28
+ result[direction] = {
29
+ ph0: 0,
30
+ ph1: 0,
31
+ pivot: null,
32
+ spectra: [],
33
+ scaleRatio: 1,
34
+ };
35
+ }
36
+ return result;
37
+ };
21
38
  export function getDefaultViewState() {
22
39
  return {
23
40
  molecules: {},
@@ -93,22 +110,8 @@ export const getInitialState = () => ({
93
110
  apodizationOptions: {},
94
111
  twoDimensionPhaseCorrection: {
95
112
  activeTraceDirection: 'horizontal',
96
- traces: {
97
- horizontal: {
98
- ph0: 0,
99
- ph1: 0,
100
- pivot: null,
101
- spectra: [],
102
- scaleRatio: 1,
103
- },
104
- vertical: {
105
- ph0: 0,
106
- ph1: 0,
107
- pivot: null,
108
- spectra: [],
109
- scaleRatio: 1,
110
- },
111
- },
113
+ addTracesToBothDirections: true,
114
+ traces: getDefaultTwoDimensionsPhaseCorrectionTraceOptions(),
112
115
  },
113
116
  pivot: { value: 0, index: 0 },
114
117
  zonesNoiseFactor: 1,
@@ -230,6 +233,8 @@ function innerSpectrumReducer(draft, action) {
230
233
  return FiltersActions.handleAddPhaseCorrectionTrace(draft, action);
231
234
  case 'CHANGE_PHASE_CORRECTION_DIRECTION':
232
235
  return FiltersActions.handleChangePhaseCorrectionDirection(draft, action);
236
+ case 'TOGGLE_ADD_PHASE_CORRECTION_TRACE_TO_BOTH_DIRECTIONS':
237
+ return FiltersActions.handleToggleAddTracesToBothDirections(draft);
233
238
  case 'DELETE_PHASE_CORRECTION_TRACE':
234
239
  return FiltersActions.handleDeletePhaseCorrectionTrace(draft, action);
235
240
  case 'SET_ONE_DIMENSION_PIVOT_POINT':
@@ -238,6 +243,8 @@ function innerSpectrumReducer(draft, action) {
238
243
  return FiltersActions.handleSetTwoDimensionPhaseCorrectionPivotPoint(draft, action);
239
244
  case 'CALCULATE_TOW_DIMENSIONS_MANUAL_PHASE_CORRECTION_FILTER':
240
245
  return FiltersActions.handleCalculateManualTwoDimensionPhaseCorrection(draft, action);
246
+ case 'APPLY_MANUAL_PHASE_CORRECTION_TOW_DIMENSION_FILTER':
247
+ return FiltersActions.handleApplyManualTowDimensionsPhaseCorrectionFilter(draft);
241
248
  case 'CHANGE_SPECTRUM_VISIBILITY':
242
249
  return SpectrumsActions.handleChangeSpectrumVisibilityById(draft, action);
243
250
  case 'CHANGE_SPECTRA_VISIBILITY_BY_NUCLEUS':
@@ -26,10 +26,15 @@ type ZeroFillingFilterLiveAction = ActionType<'CALCULATE_ZERO_FILLING_FILTER', {
26
26
  };
27
27
  livePreview: boolean;
28
28
  }>;
29
- type ManualPhaseCorrectionFilterAction = ActionType<'APPLY_MANUAL_PHASE_CORRECTION_FILTER' | 'CALCULATE_MANUAL_PHASE_CORRECTION_FILTER' | 'APPLY_MANUAL_PHASE_CORRECTION_TOW_DIMENSION_FILTER' | 'CALCULATE_TOW_DIMENSIONS_MANUAL_PHASE_CORRECTION_FILTER', {
29
+ type ManualPhaseCorrectionFilterAction = ActionType<'APPLY_MANUAL_PHASE_CORRECTION_FILTER' | 'CALCULATE_MANUAL_PHASE_CORRECTION_FILTER', {
30
30
  ph0: number;
31
31
  ph1: number;
32
32
  }>;
33
+ type ManualTwoDimensionsPhaseCorrectionFilterAction = ActionType<'CALCULATE_TOW_DIMENSIONS_MANUAL_PHASE_CORRECTION_FILTER', {
34
+ ph0: number;
35
+ ph1: number;
36
+ applyOn2D?: boolean;
37
+ }>;
33
38
  type BaselineCorrectionFilterOptions = Omit<BaselineCorrectionOptions, 'zones'>;
34
39
  interface BaselineCorrectionFilterProps {
35
40
  options: BaselineCorrectionFilterOptions;
@@ -81,7 +86,7 @@ type SetTwoDimensionPhaseCorrectionPivotPoint = ActionType<'SET_TWO_DIMENSION_PI
81
86
  x: number;
82
87
  y: number;
83
88
  }>;
84
- export type FiltersActions = ShiftSpectrumAlongXAxisAction | ApodizationFilterAction | ApodizationFilterLiveAction | ZeroFillingFilterAction | ZeroFillingFilterLiveAction | ManualPhaseCorrectionFilterAction | BaselineCorrectionFilterAction | BaselineCorrectionFilterLiveAction | EnableFilterAction | DeleteFilterAction | DeleteSpectraFilterAction | SetFilterSnapshotAction | AddExclusionZoneAction | DeleteExclusionZoneAction | ApplySignalProcessingAction | AddPhaseCorrectionTraceAction | ChangePhaseCorrectionDirectionAction | DeletePhaseCorrectionTrace | SetOneDimensionPhaseCorrectionPivotPoint | SetTwoDimensionPhaseCorrectionPivotPoint | ActionType<'APPLY_FFT_FILTER' | 'APPLY_FFT_DIMENSION_1_FILTER' | 'APPLY_FFT_DIMENSION_2_FILTER' | 'APPLY_AUTO_PHASE_CORRECTION_FILTER' | 'APPLY_ABSOLUTE_FILTER'>;
89
+ export type FiltersActions = ShiftSpectrumAlongXAxisAction | ApodizationFilterAction | ApodizationFilterLiveAction | ZeroFillingFilterAction | ZeroFillingFilterLiveAction | ManualPhaseCorrectionFilterAction | BaselineCorrectionFilterAction | BaselineCorrectionFilterLiveAction | EnableFilterAction | DeleteFilterAction | DeleteSpectraFilterAction | SetFilterSnapshotAction | AddExclusionZoneAction | DeleteExclusionZoneAction | ApplySignalProcessingAction | AddPhaseCorrectionTraceAction | ChangePhaseCorrectionDirectionAction | DeletePhaseCorrectionTrace | SetOneDimensionPhaseCorrectionPivotPoint | SetTwoDimensionPhaseCorrectionPivotPoint | ManualTwoDimensionsPhaseCorrectionFilterAction | ActionType<'APPLY_FFT_FILTER' | 'APPLY_FFT_DIMENSION_1_FILTER' | 'APPLY_FFT_DIMENSION_2_FILTER' | 'APPLY_AUTO_PHASE_CORRECTION_FILTER' | 'APPLY_ABSOLUTE_FILTER' | 'APPLY_MANUAL_PHASE_CORRECTION_TOW_DIMENSION_FILTER' | 'TOGGLE_ADD_PHASE_CORRECTION_TRACE_TO_BOTH_DIRECTIONS'>;
85
90
  export interface RollbackSpectrumByFilterOptions {
86
91
  applyFilter?: boolean;
87
92
  reset?: boolean;
@@ -106,6 +111,7 @@ declare function handleApplyFFtDimension1Filter(draft: Draft<State>): void;
106
111
  declare function handleApplyFFtDimension2Filter(draft: Draft<State>): void;
107
112
  declare function handleApplyManualPhaseCorrectionFilter(draft: Draft<State>, action: ManualPhaseCorrectionFilterAction): void;
108
113
  declare function handleAddPhaseCorrectionTrace(draft: Draft<State>, action: AddPhaseCorrectionTraceAction): void;
114
+ declare function handleToggleAddTracesToBothDirections(draft: Draft<State>): void;
109
115
  declare function handleChangePhaseCorrectionDirection(draft: Draft<State>, action: ChangePhaseCorrectionDirectionAction): void;
110
116
  declare function handleDeletePhaseCorrectionTrace(draft: Draft<State>, action: DeletePhaseCorrectionTrace): void;
111
117
  declare function handleCalculateManualPhaseCorrection(draft: Draft<State>, action: ManualPhaseCorrectionFilterAction): void;
@@ -123,5 +129,6 @@ declare function handleAddExclusionZone(draft: Draft<State>, action: AddExclusio
123
129
  declare function handleDeleteExclusionZone(draft: Draft<State>, action: DeleteExclusionZoneAction): void;
124
130
  declare function handleSetOneDimensionPhaseCorrectionPivotPoint(draft: Draft<State>, action: SetOneDimensionPhaseCorrectionPivotPoint): void;
125
131
  declare function handleSetTwoDimensionPhaseCorrectionPivotPoint(draft: Draft<State>, action: SetTwoDimensionPhaseCorrectionPivotPoint): void;
126
- declare function handleCalculateManualTwoDimensionPhaseCorrection(draft: Draft<State>, action: ManualPhaseCorrectionFilterAction): void;
127
- export { handleShiftSpectrumAlongXAxis, handleApplyZeroFillingFilter, handleApplyApodizationFilter, handleApplyFFTFilter, handleApplyFFtDimension1Filter, handleApplyFFtDimension2Filter, handleApplyManualPhaseCorrectionFilter, handleApplyAutoPhaseCorrectionFilter, handleApplyAbsoluteFilter, handleCalculateManualPhaseCorrection, calculateBaseLineCorrection, handleCalculateBaseLineCorrection, handleCalculateApodizationFilter, handleCalculateZeroFillingFilter, handleEnableFilter, handleDeleteFilter, handleDeleteSpectraFilter, handleBaseLineCorrectionFilter, handleSetFilterSnapshotHandler, handleAddExclusionZone, handleDeleteExclusionZone, handleSignalProcessingFilter, rollbackSpectrum, rollbackSpectrumByFilter, handleAddPhaseCorrectionTrace, handleChangePhaseCorrectionDirection, handleDeletePhaseCorrectionTrace, handleSetOneDimensionPhaseCorrectionPivotPoint, handleSetTwoDimensionPhaseCorrectionPivotPoint, handleCalculateManualTwoDimensionPhaseCorrection, };
132
+ declare function handleCalculateManualTwoDimensionPhaseCorrection(draft: Draft<State>, action: ManualTwoDimensionsPhaseCorrectionFilterAction): void;
133
+ declare function handleApplyManualTowDimensionsPhaseCorrectionFilter(draft: Draft<State>): void;
134
+ export { handleShiftSpectrumAlongXAxis, handleApplyZeroFillingFilter, handleApplyApodizationFilter, handleApplyFFTFilter, handleApplyFFtDimension1Filter, handleApplyFFtDimension2Filter, handleApplyManualPhaseCorrectionFilter, handleApplyManualTowDimensionsPhaseCorrectionFilter, handleApplyAutoPhaseCorrectionFilter, handleApplyAbsoluteFilter, handleCalculateManualPhaseCorrection, calculateBaseLineCorrection, handleCalculateBaseLineCorrection, handleCalculateApodizationFilter, handleCalculateZeroFillingFilter, handleEnableFilter, handleDeleteFilter, handleDeleteSpectraFilter, handleBaseLineCorrectionFilter, handleSetFilterSnapshotHandler, handleAddExclusionZone, handleDeleteExclusionZone, handleSignalProcessingFilter, rollbackSpectrum, rollbackSpectrumByFilter, handleAddPhaseCorrectionTrace, handleChangePhaseCorrectionDirection, handleDeletePhaseCorrectionTrace, handleSetOneDimensionPhaseCorrectionPivotPoint, handleSetTwoDimensionPhaseCorrectionPivotPoint, handleCalculateManualTwoDimensionPhaseCorrection, handleToggleAddTracesToBothDirections, };