nmrium 0.65.0 → 0.65.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/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +1 -1
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/utilities/scale.d.ts +1 -1
- package/lib/component/1d/utilities/scale.d.ts.map +1 -1
- package/lib/component/1d/utilities/scale.js +1 -1
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/components/ViewerResponsiveWrapper.d.ts.map +1 -1
- package/lib/component/1d-2d/components/ViewerResponsiveWrapper.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.js +1 -1
- package/lib/component/2d/FooterBanner.js.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js.map +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts +1 -1
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/utilities/scale.js.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.js +1 -1
- package/lib/component/elements/ContextMenuBluePrint.js.map +1 -1
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/DraggableDialog.js +1 -1
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/Footer.d.ts +1 -1
- package/lib/component/elements/Footer.d.ts.map +1 -1
- package/lib/component/elements/Footer.js +1 -1
- package/lib/component/elements/Footer.js.map +1 -1
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/NextPrev.js +1 -1
- package/lib/component/elements/SVGGroup.d.ts +1 -1
- package/lib/component/elements/SVGGroup.d.ts.map +1 -1
- package/lib/component/elements/Sections.d.ts +3 -1
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +135 -25
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/TabsProvider.js +1 -1
- package/lib/component/elements/TabsProvider.js.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/export/units.d.ts.map +1 -1
- package/lib/component/elements/export/units.js.map +1 -1
- package/lib/component/elements/pdnd.cjs +12 -1
- package/lib/component/elements/pdnd.cjs.map +1 -1
- package/lib/component/elements/pdnd.d.cts +5 -0
- package/lib/component/elements/pdnd.d.cts.map +1 -1
- package/lib/component/elements/resizer/useResizer.d.ts.map +1 -1
- package/lib/component/header/base/BaseSimpleApodizationOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/base/BaseSimpleApodizationOptionsPanel.js.map +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js.map +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js +1 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/useVerticalAlign.d.ts +1 -1
- package/lib/component/main/InnerNMRium.js +2 -2
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +1 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +1 -1
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
- package/lib/component/modal/setting/settingsValidation.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +6 -6
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +32 -23
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +3 -3
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +21 -18
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +2 -2
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js +1 -1
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +2 -2
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +1 -1
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +1 -1
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +1 -1
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +2 -2
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +2 -2
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +1 -1
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/preferences/actions/changeExportSettings.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/changeExportSettings.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/changePrintPageSettings.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/changePrintPageSettings.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
- package/lib/component/reducer/preferences/actions/toggleInformationBlock.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/toggleInformationBlock.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/utility/export.d.ts +1 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +1 -1
- package/lib/component/utility/export.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.js +1 -1
- package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
- package/lib/data/parseMeta/index.d.ts +1 -1
- package/lib/data/parseMeta/index.d.ts.map +1 -1
- package/lib/data/parseMeta/index.js +1 -1
- package/lib/data/parseMeta/index.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/FindUtilities.d.ts +1 -1
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +28 -26
- package/src/component/1d/FloatPublicationString.tsx +3 -1
- package/src/component/1d/SpectraLegends.tsx +1 -1
- package/src/component/1d/inset/DraggableInset.tsx +1 -1
- package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
- package/src/component/1d/utilities/scale.ts +4 -4
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/ViewerResponsiveWrapper.tsx +1 -1
- package/src/component/1d-2d/tools/BrushXY.tsx +1 -1
- package/src/component/2d/BrushTracker2D.tsx +1 -1
- package/src/component/2d/FooterBanner.tsx +1 -1
- package/src/component/2d/tools/XYLabelPointer.tsx +1 -1
- package/src/component/2d/useTracesSpectra.ts +1 -1
- package/src/component/2d/utilities/scale.ts +3 -3
- package/src/component/EventsTrackers/MouseTracker.tsx +1 -1
- package/src/component/assignment/AssignmentProvider.tsx +1 -1
- package/src/component/elements/ContextMenuBluePrint.tsx +1 -1
- package/src/component/elements/D3Axis.tsx +1 -1
- package/src/component/elements/DraggableDialog.tsx +1 -1
- package/src/component/elements/Footer.tsx +1 -1
- package/src/component/elements/Input.tsx +1 -1
- package/src/component/elements/NextPrev.tsx +1 -1
- package/src/component/elements/SVGGroup.tsx +1 -1
- package/src/component/elements/Sections.tsx +199 -36
- package/src/component/elements/TabsProvider.tsx +1 -1
- package/src/component/elements/ToolbarPopoverItem.tsx +1 -1
- package/src/component/elements/export/units.ts +1 -1
- package/src/component/elements/pdnd.cts +8 -0
- package/src/component/elements/resizer/useResizer.tsx +1 -1
- package/src/component/header/base/BaseSimpleApodizationOptionsPanel.tsx +1 -1
- package/src/component/header/base/BaseSimpleZeroFillingOptionsPanel.tsx +1 -1
- package/src/component/hooks/usePanelPreferences.ts +5 -5
- package/src/component/main/InnerNMRium.tsx +2 -2
- package/src/component/main/NMRium.tsx +1 -1
- package/src/component/main/NMRiumStateProvider.tsx +1 -1
- package/src/component/modal/PublicationStringModal.tsx +1 -1
- package/src/component/modal/changeSum/SelectMolecule.tsx +1 -1
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +1 -1
- package/src/component/modal/setting/GeneralSettings.tsx +1 -1
- package/src/component/modal/setting/settingsValidation.ts +1 -1
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +1 -1
- package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +3 -3
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +1 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/Constants.ts +1 -1
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.tsx +1 -1
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +1 -1
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +2 -2
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +7 -6
- package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +1 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +80 -73
- package/src/component/reducer/actions/CorrelationsActions.ts +2 -2
- package/src/component/reducer/actions/DatabaseActions.ts +1 -1
- package/src/component/reducer/actions/DomainActions.ts +5 -5
- package/src/component/reducer/actions/FiltersActions.ts +53 -51
- package/src/component/reducer/actions/InsetActions.ts +7 -7
- package/src/component/reducer/actions/IntegralsActions.ts +3 -3
- package/src/component/reducer/actions/LoadActions.ts +1 -1
- package/src/component/reducer/actions/MoleculeActions.ts +5 -5
- package/src/component/reducer/actions/PeaksActions.ts +3 -3
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +17 -17
- package/src/component/reducer/actions/SpectraActions.ts +7 -7
- package/src/component/reducer/actions/ToolsActions.ts +13 -13
- package/src/component/reducer/actions/ZonesActions.ts +11 -11
- package/src/component/reducer/helper/Zoom1DManager.ts +1 -1
- package/src/component/reducer/preferences/actions/changeExportSettings.ts +1 -1
- package/src/component/reducer/preferences/actions/changePrintPageSettings.ts +1 -1
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +2 -2
- package/src/component/reducer/preferences/actions/toggleInformationBlock.ts +1 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +6 -6
- package/src/component/reducer/preferences/preferencesReducer.ts +1 -1
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +1 -1
- package/src/component/toolbar/ToolBar.tsx +1 -1
- package/src/component/utility/export.ts +3 -3
- package/src/data/data1d/Spectrum1D/index.ts +2 -2
- package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +1 -1
- package/src/data/data1d/multipleSpectraAnalysis.ts +5 -5
- package/src/data/data2d/Spectrum2D/contours.ts +2 -2
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +1 -1
- package/src/data/parseMeta/index.ts +1 -1
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -1
- package/src/data/utilities/FindUtilities.ts +1 -1
- package/src/index.tsx +1 -1
- package/src/versionInfo.ts +1 -1
|
@@ -8,8 +8,8 @@ import { FaCopy } from 'react-icons/fa';
|
|
|
8
8
|
import { isSpectrum1D } from '../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
9
9
|
import { useChartData } from '../context/ChartContext.js';
|
|
10
10
|
import { EmptyText } from '../elements/EmptyText.js';
|
|
11
|
-
import Label from '../elements/Label.js';
|
|
12
11
|
import type { LabelStyle } from '../elements/Label.js';
|
|
12
|
+
import Label from '../elements/Label.js';
|
|
13
13
|
import { Select2 } from '../elements/Select2.js';
|
|
14
14
|
import { StyledDialogBody } from '../elements/StyledDialogBody.js';
|
|
15
15
|
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
2
|
import type { CSSProperties } from 'react';
|
|
3
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
4
|
import type { ControllerProps, FieldValues } from 'react-hook-form';
|
|
5
5
|
import { useController } from 'react-hook-form';
|
|
6
6
|
|
|
@@ -9,11 +9,11 @@ import { DropZone } from 'react-science/ui';
|
|
|
9
9
|
import * as Yup from 'yup';
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
|
+
TargetPathError,
|
|
12
13
|
isMetaFile,
|
|
13
14
|
linkMetaWithSpectra,
|
|
14
15
|
mapErrors,
|
|
15
16
|
parseMetaFile,
|
|
16
|
-
TargetPathError,
|
|
17
17
|
} from '../../../data/parseMeta/index.js';
|
|
18
18
|
import { useChartData } from '../../context/ChartContext.js';
|
|
19
19
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
} from '../../context/PreferencesContext.js';
|
|
21
21
|
import { useToaster } from '../../context/ToasterContext.js';
|
|
22
22
|
import ActionButtons from '../../elements/ActionButtons.js';
|
|
23
|
-
import Label from '../../elements/Label.js';
|
|
24
23
|
import type { LabelStyle } from '../../elements/Label.js';
|
|
24
|
+
import Label from '../../elements/Label.js';
|
|
25
25
|
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
|
|
26
26
|
import type { DropDownListItem } from '../../elements/dropDownButton/DropDownButton.js';
|
|
27
27
|
import DropDownButton from '../../elements/dropDownButton/DropDownButton.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EXTERNAL_API_KEYS } from '@zakodium/nmrium-core';
|
|
2
1
|
import type { ExternalAPIKeyType } from '@zakodium/nmrium-core';
|
|
2
|
+
import { EXTERNAL_API_KEYS } from '@zakodium/nmrium-core';
|
|
3
3
|
import { array, mixed, number, object, string } from 'yup';
|
|
4
4
|
|
|
5
5
|
import { exportOptionValidationSchema } from '../../elements/export/utilities/exportOptionValidationSchema.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
|
|
2
2
|
import type { SpectraData } from 'nmr-processing';
|
|
3
3
|
import { getAssignments as getAssignmentsData } from 'nmr-processing';
|
|
4
4
|
import { Molecule } from 'openchemlib';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
|
|
2
2
|
import type { DiaIDAndInfo } from 'openchemlib-utils';
|
|
3
3
|
import type { MouseEvent } from 'react';
|
|
4
4
|
import { useMemo, useRef } from 'react';
|
|
@@ -6,16 +6,16 @@ import { useMemo, useRef } from 'react';
|
|
|
6
6
|
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
7
7
|
import { ConcatenationString } from '../../../data/utilities/Concatenation.js';
|
|
8
8
|
import checkModifierKeyActivated from '../../../data/utilities/checkModifierKeyActivated.js';
|
|
9
|
-
import { useAssignmentContext } from '../../assignment/AssignmentsContext.js';
|
|
10
9
|
import type { Assignments, Axis } from '../../assignment/AssignmentsContext.js';
|
|
10
|
+
import { useAssignmentContext } from '../../assignment/AssignmentsContext.js';
|
|
11
11
|
import { useChartData } from '../../context/ChartContext.js';
|
|
12
12
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
13
13
|
import { useToaster } from '../../context/ToasterContext.js';
|
|
14
|
+
import type { HighlightEventSourceType } from '../../highlight/index.js';
|
|
14
15
|
import {
|
|
15
16
|
HighlightEventSource,
|
|
16
17
|
useHighlightData,
|
|
17
18
|
} from '../../highlight/index.js';
|
|
18
|
-
import type { HighlightEventSourceType } from '../../highlight/index.js';
|
|
19
19
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
20
20
|
|
|
21
21
|
import type { AtomData } from './Utilities.js';
|
|
@@ -2,8 +2,8 @@ import type { RangeSliderProps } from '@blueprintjs/core';
|
|
|
2
2
|
import { RangeSlider } from '@blueprintjs/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import debounce from 'lodash/debounce.js';
|
|
5
|
-
import { useMemo } from 'react';
|
|
6
5
|
import type { CSSProperties } from 'react';
|
|
6
|
+
import { useMemo } from 'react';
|
|
7
7
|
import {
|
|
8
8
|
Controller,
|
|
9
9
|
FormProvider,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { buildID } from '../../../../data/utilities/Concatenation.js';
|
|
2
|
-
import { useAssignment } from '../../../assignment/AssignmentsContext.js';
|
|
3
2
|
import type { Axis } from '../../../assignment/AssignmentsContext.js';
|
|
3
|
+
import { useAssignment } from '../../../assignment/AssignmentsContext.js';
|
|
4
4
|
import { useHighlight } from '../../../highlight/index.js';
|
|
5
5
|
import type { AssignmentsColumnProps } from '../ZonesTableRow.js';
|
|
6
6
|
import type { ZoneData } from '../hooks/useMapZones.js';
|
|
@@ -4,7 +4,7 @@ import { useForm } from 'react-hook-form';
|
|
|
4
4
|
|
|
5
5
|
import { usePreferences } from '../../context/PreferencesContext.js';
|
|
6
6
|
import { ColorPickerDropdownController } from '../../elements/ColorPickerDropdownController.js';
|
|
7
|
-
import {
|
|
7
|
+
import { FormatField, fieldLabelStyle } from '../../elements/FormatField.js';
|
|
8
8
|
import Label from '../../elements/Label.js';
|
|
9
9
|
import { NumberInput2Controller } from '../../elements/NumberInput2Controller.js';
|
|
10
10
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
@@ -14,9 +14,9 @@ import useToolsFunctions from '../../hooks/useToolsFunctions.js';
|
|
|
14
14
|
import { options } from '../../toolbar/ToolTypes.js';
|
|
15
15
|
|
|
16
16
|
import type {
|
|
17
|
-
Databases,
|
|
18
|
-
DatabaseSearchKeywords,
|
|
19
17
|
DataBaseSearchResultEntry,
|
|
18
|
+
DatabaseSearchKeywords,
|
|
19
|
+
Databases,
|
|
20
20
|
} from './DatabasePanel.js';
|
|
21
21
|
|
|
22
22
|
interface DatabaseSearchOptionsProps {
|
|
@@ -262,12 +262,11 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
262
262
|
openSection(null);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
function handleReorderFilters(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
dispatch({ type: 'REORDER_FILTERS', payload: { sourceId, targetId } });
|
|
265
|
+
function handleReorderFilters(sourceIndex, targetIndex) {
|
|
266
|
+
dispatch({
|
|
267
|
+
type: 'REORDER_FILTERS',
|
|
268
|
+
payload: { sourceIndex, targetIndex },
|
|
269
|
+
});
|
|
271
270
|
}
|
|
272
271
|
|
|
273
272
|
return (
|
|
@@ -278,8 +277,10 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
278
277
|
const enableEdit = activeFilterID === id || filter.value === null;
|
|
279
278
|
return (
|
|
280
279
|
<Sections.Item
|
|
280
|
+
index={index}
|
|
281
281
|
key={id}
|
|
282
282
|
id={name}
|
|
283
|
+
dragLabel={getFilterLabel(name)}
|
|
283
284
|
onReorder={handleReorderFilters}
|
|
284
285
|
title={error || getFilterLabel(name)}
|
|
285
286
|
serial={index + 1}
|
|
@@ -7,11 +7,11 @@ import { Sections } from '../../../../elements/Sections.js';
|
|
|
7
7
|
import { Select2Controller } from '../../../../elements/Select2Controller.js';
|
|
8
8
|
import { FilterActionButtons } from '../FilterActionButtons.js';
|
|
9
9
|
import { StickyHeader } from '../InnerFilterHeader.js';
|
|
10
|
+
import type { ZeroFillingEntry } from '../hooks/useZeroFilling.js';
|
|
10
11
|
import {
|
|
11
12
|
getZeroFillingNbPoints,
|
|
12
13
|
useZeroFilling,
|
|
13
14
|
} from '../hooks/useZeroFilling.js';
|
|
14
|
-
import type { ZeroFillingEntry } from '../hooks/useZeroFilling.js';
|
|
15
15
|
import type { BaseFilterOptionsPanelProps } from '../index.js';
|
|
16
16
|
|
|
17
17
|
export function BaseZeroFillingOptions(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
2
|
-
import { ANALYSIS_COLUMN_TYPES } from '@zakodium/nmrium-core';
|
|
3
2
|
import type { MultipleSpectraAnalysisPreferences as MultipleSpectraAnalysisPreferencesInterface } from '@zakodium/nmrium-core';
|
|
3
|
+
import { ANALYSIS_COLUMN_TYPES } from '@zakodium/nmrium-core';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { FormProvider, useForm } from 'react-hook-form';
|
|
6
6
|
import * as Yup from 'yup';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import styled from '@emotion/styled';
|
|
1
2
|
import { Molecule } from 'openchemlib';
|
|
2
|
-
import
|
|
3
|
-
import { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { Fragment, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { ResponsiveChart } from 'react-d3-utils';
|
|
5
5
|
import type { CanvasEditorOnChangeMolecule } from 'react-ocl';
|
|
6
6
|
import { CanvasMoleculeEditor } from 'react-ocl';
|
|
7
|
-
import { useAccordionControls } from 'react-science/ui';
|
|
7
|
+
import { Button, useAccordionControls } from 'react-science/ui';
|
|
8
8
|
|
|
9
9
|
import { predictSpectra } from '../../../data/PredictionManager.js';
|
|
10
10
|
import type { StateMoleculeExtended } from '../../../data/molecules/Molecule.js';
|
|
@@ -12,7 +12,6 @@ import { useChartData } from '../../context/ChartContext.js';
|
|
|
12
12
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
13
13
|
import { useLogger } from '../../context/LoggerContext.js';
|
|
14
14
|
import { useToaster } from '../../context/ToasterContext.js';
|
|
15
|
-
import Button from '../../elements/Button.js';
|
|
16
15
|
import { NextPrev } from '../../elements/NextPrev.js';
|
|
17
16
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
18
17
|
import { useMoleculeEditor } from '../../modal/MoleculeStructureEditorModal.js';
|
|
@@ -25,13 +24,26 @@ import PreferencesHeader from '../header/PreferencesHeader.js';
|
|
|
25
24
|
import PredictionPreferences from './PredictionPreferences.js';
|
|
26
25
|
import PredictionSimpleOptions from './PredictionSimpleOptions.js';
|
|
27
26
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
const Container = styled.div`
|
|
28
|
+
position: relative;
|
|
29
|
+
height: 100%;
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
const Overflow = styled.div<{ height: number }>`
|
|
33
|
+
overflow: hidden auto;
|
|
34
|
+
height: ${({ height }) => height}px;
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
const StickyFooter = styled.div`
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
padding: 5px;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
z-index: 2;
|
|
43
|
+
position: absolute;
|
|
44
|
+
bottom: 0;
|
|
45
|
+
right: 10px;
|
|
46
|
+
`;
|
|
35
47
|
|
|
36
48
|
export default function PredictionPanel() {
|
|
37
49
|
const {
|
|
@@ -164,85 +176,80 @@ export default function PredictionPanel() {
|
|
|
164
176
|
<PredictionSimpleOptions />
|
|
165
177
|
</MoleculePanelHeader>
|
|
166
178
|
|
|
167
|
-
<
|
|
168
|
-
<
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
179
|
+
<Container>
|
|
180
|
+
<ResponsiveChart>
|
|
181
|
+
{({ height, width }) => {
|
|
182
|
+
return (
|
|
183
|
+
<NextPrev
|
|
184
|
+
onChange={(slideIndex) => {
|
|
185
|
+
setCurrentIndex(slideIndex);
|
|
186
|
+
setMolfile(molecules[slideIndex].molfile);
|
|
187
|
+
}}
|
|
188
|
+
index={currentIndex}
|
|
189
|
+
style={{
|
|
190
|
+
arrowContainer: {
|
|
191
|
+
top: '40px',
|
|
192
|
+
padding: '0 10px 0 55px',
|
|
193
|
+
},
|
|
194
|
+
}}
|
|
195
|
+
>
|
|
196
|
+
{molecules && molecules.length > 0 ? (
|
|
197
|
+
molecules.map((mol: StateMoleculeExtended, molIndex) => (
|
|
198
|
+
<Fragment key={mol.id}>
|
|
199
|
+
<MoleculeHeader
|
|
200
|
+
currentMolecule={mol}
|
|
201
|
+
molecules={molecules}
|
|
202
|
+
/>
|
|
203
|
+
|
|
204
|
+
{molIndex === currentIndex && (
|
|
205
|
+
<Overflow height={height}>
|
|
206
|
+
<CanvasMoleculeEditor
|
|
207
|
+
width={width}
|
|
208
|
+
inputFormat="molfile"
|
|
209
|
+
inputValue={mol.molfile}
|
|
210
|
+
fragment={false}
|
|
211
|
+
onChange={changeHandler}
|
|
212
|
+
height={400}
|
|
195
213
|
/>
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
<CanvasMoleculeEditor
|
|
203
|
-
width={width}
|
|
204
|
-
inputFormat="molfile"
|
|
205
|
-
inputValue={mol.molfile}
|
|
206
|
-
fragment={false}
|
|
207
|
-
onChange={changeHandler}
|
|
208
|
-
/>
|
|
209
|
-
)}
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
),
|
|
213
|
-
)
|
|
214
|
-
) : (
|
|
214
|
+
</Overflow>
|
|
215
|
+
)}
|
|
216
|
+
</Fragment>
|
|
217
|
+
))
|
|
218
|
+
) : (
|
|
219
|
+
<Overflow height={height}>
|
|
215
220
|
<CanvasMoleculeEditor
|
|
216
221
|
inputFormat="molfile"
|
|
217
222
|
inputValue={initialMolfile}
|
|
218
223
|
width={width}
|
|
219
|
-
height={height}
|
|
220
224
|
fragment={false}
|
|
221
225
|
onChange={changeHandler}
|
|
226
|
+
height={400}
|
|
222
227
|
/>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
</
|
|
229
|
-
<
|
|
230
|
-
<Button
|
|
228
|
+
</Overflow>
|
|
229
|
+
)}
|
|
230
|
+
</NextPrev>
|
|
231
|
+
);
|
|
232
|
+
}}
|
|
233
|
+
</ResponsiveChart>
|
|
234
|
+
<StickyFooter>
|
|
235
|
+
<Button
|
|
231
236
|
onClick={() => predictHandler('save')}
|
|
232
237
|
disabled={!molfile}
|
|
238
|
+
intent="success"
|
|
239
|
+
style={{ marginLeft: '5px' }}
|
|
233
240
|
>
|
|
234
241
|
{isPredictedBefore ? 'Replace prediction' : 'Predict spectra'}
|
|
235
|
-
</Button
|
|
242
|
+
</Button>
|
|
236
243
|
{isPredictedBefore && (
|
|
237
|
-
<Button
|
|
238
|
-
style={{ marginLeft: '5px' }}
|
|
244
|
+
<Button
|
|
245
|
+
style={{ marginLeft: '5px', opacity: '0.8' }}
|
|
239
246
|
onClick={() => predictHandler('add')}
|
|
240
247
|
>
|
|
241
248
|
Add prediction
|
|
242
|
-
</Button
|
|
249
|
+
</Button>
|
|
243
250
|
)}
|
|
244
|
-
</
|
|
245
|
-
</
|
|
251
|
+
</StickyFooter>
|
|
252
|
+
</Container>
|
|
246
253
|
</>
|
|
247
254
|
)}
|
|
248
255
|
{modal}
|
|
@@ -3,10 +3,10 @@ import type { Draft } from 'immer';
|
|
|
3
3
|
import { original } from 'immer';
|
|
4
4
|
import lodashCloneDeep from 'lodash/cloneDeep.js';
|
|
5
5
|
import type {
|
|
6
|
-
Tolerance,
|
|
7
|
-
Options as CorrelationOptions,
|
|
8
6
|
Correlation,
|
|
7
|
+
Options as CorrelationOptions,
|
|
9
8
|
Spectrum,
|
|
9
|
+
Tolerance,
|
|
10
10
|
Values as CorrelationValues,
|
|
11
11
|
} from 'nmr-correlation';
|
|
12
12
|
import { buildCorrelationData, setCorrelation } from 'nmr-correlation';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Info1D } from '@zakodium/nmr-types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Spectrum1D, Spectrum } from '@zakodium/nmrium-core';
|
|
3
3
|
import type { Draft } from 'immer';
|
|
4
4
|
import type { DatabaseNMREntry } from 'nmr-processing';
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
NucleiPreferences,
|
|
3
|
-
Spectrum,
|
|
4
3
|
Spectrum1D,
|
|
5
4
|
Spectrum2D,
|
|
5
|
+
Spectrum,
|
|
6
6
|
} from '@zakodium/nmrium-core';
|
|
7
7
|
import type { NmrData2DFt } from 'cheminfo-types';
|
|
8
8
|
import type { Numeric } from 'd3';
|
|
@@ -413,11 +413,11 @@ function handleMoveOverXAxis(draft: Draft<State>, action: MoveAction) {
|
|
|
413
413
|
|
|
414
414
|
export {
|
|
415
415
|
get2DDomain,
|
|
416
|
-
setDomain,
|
|
417
|
-
setMode,
|
|
418
|
-
handleSetXDomain,
|
|
419
|
-
handleSetYDomain,
|
|
420
416
|
handleMoveOverXAxis,
|
|
421
417
|
handleSetAxisDomain,
|
|
418
|
+
handleSetXDomain,
|
|
419
|
+
handleSetYDomain,
|
|
422
420
|
moveOverAxis,
|
|
421
|
+
setDomain,
|
|
422
|
+
setMode,
|
|
423
423
|
};
|
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
Filter2DOptions,
|
|
8
8
|
MatrixOptions,
|
|
9
9
|
} from '@zakodium/nmr-types';
|
|
10
|
-
import type {
|
|
10
|
+
import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
|
|
11
11
|
import type { NmrData1D, NmrData2DFt } from 'cheminfo-types';
|
|
12
12
|
import type { Draft } from 'immer';
|
|
13
13
|
import { current } from 'immer';
|
|
@@ -218,7 +218,7 @@ type DeletePhaseCorrectionTrace = ActionType<
|
|
|
218
218
|
>;
|
|
219
219
|
type ReorderFiltersAction = ActionType<
|
|
220
220
|
'REORDER_FILTERS',
|
|
221
|
-
{
|
|
221
|
+
{ sourceIndex: number; targetIndex: number }
|
|
222
222
|
>;
|
|
223
223
|
|
|
224
224
|
type SetOneDimensionPhaseCorrectionPivotPoint = ActionType<
|
|
@@ -1038,35 +1038,40 @@ function handleCalculateApodizationFilter(
|
|
|
1038
1038
|
const { livePreview, options, tempRollback } = action.payload;
|
|
1039
1039
|
|
|
1040
1040
|
if (livePreview) {
|
|
1041
|
-
const {
|
|
1042
|
-
data: { x, re, im },
|
|
1043
|
-
info,
|
|
1044
|
-
} = draft.tempData[index];
|
|
1045
|
-
|
|
1046
1041
|
const datum = draft.data[index];
|
|
1047
1042
|
|
|
1048
1043
|
if (!isSpectrum1D(datum)) {
|
|
1049
1044
|
return;
|
|
1050
1045
|
}
|
|
1046
|
+
const spectrum: Spectrum1D = structuredClone(
|
|
1047
|
+
current(draft).tempData[index],
|
|
1048
|
+
);
|
|
1051
1049
|
|
|
1052
1050
|
if (!tempRollback) {
|
|
1053
|
-
|
|
1051
|
+
apodization.apply(spectrum, options);
|
|
1052
|
+
} else {
|
|
1053
|
+
for (const filter of datum.filters) {
|
|
1054
|
+
const { name, value } = filter;
|
|
1054
1055
|
|
|
1055
|
-
|
|
1056
|
-
const { im: newIm, re: newRe } = _data.data;
|
|
1056
|
+
delete filter.error;
|
|
1057
1057
|
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
name
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1058
|
+
if (!filter.enabled) {
|
|
1059
|
+
continue;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
try {
|
|
1063
|
+
const filterOptions = name === 'apodization' ? options : value;
|
|
1064
|
+
Filters1D[name].apply(spectrum, filterOptions as any);
|
|
1065
|
+
} catch (error: any) {
|
|
1066
|
+
filter.error = error.message;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
1069
|
}
|
|
1070
|
+
|
|
1071
|
+
const { im: newIm, re: newRe } = spectrum.data;
|
|
1072
|
+
|
|
1073
|
+
datum.data.im = newIm;
|
|
1074
|
+
datum.data.re = newRe;
|
|
1070
1075
|
} else {
|
|
1071
1076
|
disableLivePreview(draft, apodization.name);
|
|
1072
1077
|
}
|
|
@@ -2017,7 +2022,7 @@ function handleReorderFilters(
|
|
|
2017
2022
|
draft: Draft<State>,
|
|
2018
2023
|
action: ReorderFiltersAction,
|
|
2019
2024
|
) {
|
|
2020
|
-
const {
|
|
2025
|
+
const { sourceIndex, targetIndex } = action.payload;
|
|
2021
2026
|
const spectrum = getSpectrum(draft);
|
|
2022
2027
|
|
|
2023
2028
|
if (!spectrum) {
|
|
@@ -2026,9 +2031,6 @@ function handleReorderFilters(
|
|
|
2026
2031
|
|
|
2027
2032
|
const filters = spectrum.filters;
|
|
2028
2033
|
|
|
2029
|
-
const sourceIndex = filters.findIndex((filter) => filter.name === sourceId);
|
|
2030
|
-
const targetIndex = filters.findIndex((filter) => filter.name === targetId);
|
|
2031
|
-
|
|
2032
2034
|
if (sourceIndex === -1 || targetIndex === -1) return;
|
|
2033
2035
|
|
|
2034
2036
|
const sourceFilter = filters[sourceIndex];
|
|
@@ -2042,47 +2044,47 @@ function handleReorderFilters(
|
|
|
2042
2044
|
}
|
|
2043
2045
|
|
|
2044
2046
|
export {
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
handleApplyApodizationFilter,
|
|
2047
|
+
calculateBaseLineCorrection,
|
|
2048
|
+
handleAddExclusionZone,
|
|
2049
|
+
handleAddPhaseCorrectionTrace,
|
|
2050
|
+
handleApplyAbsoluteFilter,
|
|
2050
2051
|
handleApplyApodizationDimensionOneFilter,
|
|
2051
2052
|
handleApplyApodizationDimensionTwoFilter,
|
|
2053
|
+
handleApplyApodizationFilter,
|
|
2054
|
+
handleApplyAutoPhaseCorrectionFilter,
|
|
2055
|
+
handleApplyAutoPhaseCorrectionTwoDimensionsFilter,
|
|
2056
|
+
handleApplyExclusionZone,
|
|
2052
2057
|
handleApplyFFTFilter,
|
|
2053
2058
|
handleApplyFFtDimension1Filter,
|
|
2054
2059
|
handleApplyFFtDimension2Filter,
|
|
2055
2060
|
handleApplyManualPhaseCorrectionFilter,
|
|
2056
2061
|
handleApplyManualTowDimensionsPhaseCorrectionFilter,
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
handleCalculateBaseLineCorrection,
|
|
2062
|
-
handleCalculateApodizationFilter,
|
|
2062
|
+
handleApplyZeroFillingDimensionOneFilter,
|
|
2063
|
+
handleApplyZeroFillingDimensionTwoFilter,
|
|
2064
|
+
handleApplyZeroFillingFilter,
|
|
2065
|
+
handleBaseLineCorrectionFilter,
|
|
2063
2066
|
handleCalculateApodizationDimensionOneFilter,
|
|
2064
2067
|
handleCalculateApodizationDimensionTwoFilter,
|
|
2065
|
-
|
|
2068
|
+
handleCalculateApodizationFilter,
|
|
2069
|
+
handleCalculateBaseLineCorrection,
|
|
2070
|
+
handleCalculateManualPhaseCorrection,
|
|
2071
|
+
handleCalculateManualTwoDimensionPhaseCorrection,
|
|
2066
2072
|
handleCalculateZeroFillingDimensionOneFilter,
|
|
2067
2073
|
handleCalculateZeroFillingDimensionTwoFilter,
|
|
2068
|
-
|
|
2074
|
+
handleCalculateZeroFillingFilter,
|
|
2075
|
+
handleChangePhaseCorrectionDirection,
|
|
2076
|
+
handleDeleteExclusionZone,
|
|
2069
2077
|
handleDeleteFilter,
|
|
2078
|
+
handleDeletePhaseCorrectionTrace,
|
|
2070
2079
|
handleDeleteSpectraFilter,
|
|
2071
|
-
|
|
2080
|
+
handleEnableFilter,
|
|
2081
|
+
handleReorderFilters,
|
|
2072
2082
|
handleSetFilterSnapshotHandler,
|
|
2073
|
-
handleAddExclusionZone,
|
|
2074
|
-
handleDeleteExclusionZone,
|
|
2075
|
-
handleSignalProcessingFilter,
|
|
2076
|
-
rollbackSpectrum,
|
|
2077
|
-
rollbackSpectrumByFilter,
|
|
2078
|
-
handleAddPhaseCorrectionTrace,
|
|
2079
|
-
handleChangePhaseCorrectionDirection,
|
|
2080
|
-
handleDeletePhaseCorrectionTrace,
|
|
2081
2083
|
handleSetOneDimensionPhaseCorrectionPivotPoint,
|
|
2082
2084
|
handleSetTwoDimensionPhaseCorrectionPivotPoint,
|
|
2083
|
-
|
|
2085
|
+
handleShiftSpectrumAlongXAxis,
|
|
2086
|
+
handleSignalProcessingFilter,
|
|
2084
2087
|
handleToggleAddTracesToBothDirections,
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
handleReorderFilters,
|
|
2088
|
+
rollbackSpectrum,
|
|
2089
|
+
rollbackSpectrumByFilter,
|
|
2088
2090
|
};
|