nmrium 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/lib/component/1d/ApodizationLine.d.ts +3 -0
- package/lib/component/1d/ApodizationLine.js +49 -0
- package/lib/component/1d/Chart1D.js +4 -2
- package/lib/component/1d/ExclusionZoneAnnotation.d.ts +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +14 -7
- package/lib/component/1d/FooterBanner.js +3 -1
- package/lib/component/1d/IntegralResizable.js +5 -4
- package/lib/component/1d/IntegralsSeries.js +3 -1
- package/lib/component/1d/LinesSeries.js +7 -5
- package/lib/component/1d/SpectraTracker.js +1 -1
- package/lib/component/1d/Viewer1D.js +10 -13
- package/lib/component/1d/database/DatabaseElements.js +2 -2
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +3 -3
- package/lib/component/1d/jCouplingGraph/JGraph.js +5 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +16 -14
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +6 -5
- package/lib/component/1d/{PeakAnnotation.d.ts → peaks/PeakAnnotation.d.ts} +1 -2
- package/lib/component/1d/{PeakAnnotation.js → peaks/PeakAnnotation.js} +8 -9
- package/lib/component/1d/{PeakAnnotations.d.ts → peaks/PeakAnnotations.d.ts} +0 -0
- package/lib/component/1d/peaks/PeakAnnotations.js +28 -0
- package/lib/component/1d/peaks/PeaksShapes.d.ts +3 -0
- package/lib/component/1d/peaks/PeaksShapes.js +37 -0
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +13 -0
- package/lib/component/1d/peaks/usePeakShapesPath.js +49 -0
- package/lib/component/1d/ranges/Range.js +4 -4
- package/lib/component/1d/ranges/Ranges.js +8 -2
- package/lib/component/1d/tool/PeakPointer.js +3 -1
- package/lib/component/1d/tool/XLabelPointer.js +3 -1
- package/lib/component/2d/Contours.js +3 -1
- package/lib/component/2d/FooterBanner.js +5 -3
- package/lib/component/2d/Viewer2D.js +6 -6
- package/lib/component/2d/XAxis.js +2 -2
- package/lib/component/2d/YAxis.js +2 -2
- package/lib/component/2d/tools/XYLabelPointer.js +3 -1
- package/lib/component/2d/tools/slicing/SlicingView.js +3 -1
- package/lib/component/2d/zones/IndicationLines.js +1 -1
- package/lib/component/2d/zones/Signal.d.ts +3 -2
- package/lib/component/2d/zones/Signal.js +3 -3
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.js +4 -4
- package/lib/component/2d/zones/Zones.js +14 -19
- package/lib/component/EventsTrackers/KeysListenerTracker.js +91 -52
- package/lib/component/NMRium.d.ts +2 -0
- package/lib/component/NMRium.js +14 -3
- package/lib/component/assignment/AssignmentsContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.js +3 -3
- package/lib/component/elements/ActiveButton.d.ts +17 -0
- package/lib/component/elements/ActiveButton.js +28 -0
- package/lib/component/elements/Button.d.ts +6 -6
- package/lib/component/elements/Button.js +5 -5
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBox.d.ts +2 -6
- package/lib/component/elements/CheckBox.js +4 -6
- package/lib/component/elements/Input.d.ts +5 -4
- package/lib/component/elements/Input.js +1 -1
- package/lib/component/elements/Label.d.ts +8 -6
- package/lib/component/elements/Label.js +3 -3
- package/lib/component/elements/MoleculeSelection.d.ts +2 -2
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/NextPrev.js +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +2 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +2 -2
- package/lib/component/elements/ReactTable/ReactTable.d.ts +2 -2
- package/lib/component/elements/Select.d.ts +7 -11
- package/lib/component/elements/Select.js +6 -8
- package/lib/component/elements/Tab/Tab.js +1 -1
- package/lib/component/elements/Table/Table.d.ts +1 -2
- package/lib/component/elements/Table/Table.js +2 -2
- package/lib/component/elements/ToggleButton.d.ts +1 -2
- package/lib/component/elements/ToggleButton.js +3 -2
- package/lib/component/elements/accordion/AccordionItem.js +2 -2
- package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -1
- package/lib/component/elements/formik/FormikOnChange.d.ts +3 -2
- package/lib/component/elements/formik/FormikOnChange.js +11 -5
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib/component/elements/popup/Modal/Provider.d.ts +3 -3
- package/lib/component/elements/popup/Modal/Provider.js +8 -11
- package/lib/component/elements/resizer/DivResizer.js +3 -3
- package/lib/component/elements/resizer/Resizer.d.ts +1 -0
- package/lib/component/elements/resizer/SVGResizer.js +3 -3
- package/lib/component/header/ApodizationOptionsPanel.d.ts +2 -0
- package/lib/component/header/ApodizationOptionsPanel.js +81 -0
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts +2 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +40 -36
- package/lib/component/header/BaseLineCorrectionPanel.d.ts +1 -2
- package/lib/component/header/BaseLineCorrectionPanel.js +84 -52
- package/lib/component/header/Header.js +5 -2
- package/lib/component/header/HeaderContainer.d.ts +7 -0
- package/lib/component/header/HeaderContainer.js +10 -0
- package/lib/component/header/ManualPhaseCorrectionPanel.js +27 -29
- package/lib/component/header/RangesPickingOptionPanel.js +19 -21
- package/lib/component/header/ZeroFillingOptionsPanel.js +52 -47
- package/lib/component/header/Zones2DOptionPanel.js +11 -13
- package/lib/component/highlight/index.d.ts +27 -10
- package/lib/component/highlight/index.js +19 -17
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +2 -2
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +10 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +31 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.js +3 -1
- package/lib/component/hooks/useExport.d.ts +0 -1
- package/lib/component/hooks/useExport.js +1 -17
- package/lib/component/hooks/useFilter.d.ts +1 -0
- package/lib/component/hooks/useFilter.js +7 -0
- package/lib/component/hooks/useIntegralPath.js +5 -2
- package/lib/component/hooks/useNucleus.js +4 -4
- package/lib/component/hooks/useSpectraPerNucleus.js +1 -1
- package/lib/component/hooks/useSpectrum.js +3 -1
- package/lib/component/hooks/useToolsFunctions.js +1 -1
- package/lib/component/loader/DropZone.js +8 -148
- package/lib/component/modal/AlignSpectraModal.js +1 -2
- package/lib/component/modal/EditPeakShapeModal.d.ts +9 -0
- package/lib/component/modal/EditPeakShapeModal.js +85 -0
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts +3 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js +2 -3
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +1 -2
- package/lib/component/modal/PredictSpectraModal.js +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.js +9 -11
- package/lib/component/modal/changeSum/SelectMolecule.js +2 -2
- package/lib/component/modal/editRange/EditRangeModal.js +3 -3
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +4 -9
- package/lib/component/modal/setting/DatabasesTabContent.js +2 -2
- package/lib/component/modal/setting/DisplayTabContent.js +1 -1
- package/lib/component/modal/setting/FormattingTabContent.js +2 -2
- package/lib/component/modal/setting/GeneralSettings.js +1 -1
- package/lib/component/modal/setting/ToolsTabContent.js +17 -13
- package/lib/component/modal/setting/WorkspaceItem.d.ts +2 -2
- package/lib/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts +5 -4
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +13 -10
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +4 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +1 -2
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +5 -3
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +12 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/Panels.js +3 -3
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +47 -22
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +17 -0
- package/lib/component/panels/PeaksPanel/PeaksTable.js +44 -13
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +2 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +10 -9
- package/lib/component/panels/RangesPanel/RangesPanel.js +7 -3
- package/lib/component/panels/RangesPanel/RangesTableRow.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +3 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +3 -3
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +3 -3
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +3 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -1
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +4 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +4 -4
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +2 -3
- package/lib/component/panels/SummaryPanel/utilities/useInView.js +3 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +19 -10
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -13
- package/lib/component/panels/databasePanel/DatabaseTable.js +3 -3
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib/component/panels/header/DefaultPanelHeader.js +3 -12
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.d.ts +2 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.js +2 -2
- package/lib/component/panels/predictionPanel/PredictionPanel.js +15 -3
- package/lib/component/reducer/IgnoreActions.js +5 -0
- package/lib/component/reducer/Reducer.d.ts +141 -51
- package/lib/component/reducer/Reducer.js +69 -45
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -1
- package/lib/component/reducer/actions/DomainActions.js +11 -9
- package/lib/component/reducer/actions/FiltersActions.d.ts +13 -7
- package/lib/component/reducer/actions/FiltersActions.js +326 -204
- package/lib/component/reducer/actions/IntegralsActions.js +15 -10
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -5
- package/lib/component/reducer/actions/LoadActions.js +19 -34
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -1
- package/lib/component/reducer/actions/MoleculeActions.js +48 -19
- package/lib/component/reducer/actions/PeaksActions.d.ts +4 -1
- package/lib/component/reducer/actions/PeaksActions.js +52 -13
- package/lib/component/reducer/actions/PreferencesActions.js +8 -10
- package/lib/component/reducer/actions/RangesActions.d.ts +3 -3
- package/lib/component/reducer/actions/RangesActions.js +87 -29
- package/lib/component/reducer/actions/SpectraAnalysisAction.js +5 -5
- package/lib/component/reducer/actions/SpectrumsActions.js +14 -11
- package/lib/component/reducer/actions/ToolsActions.js +47 -95
- package/lib/component/reducer/actions/ZonesActions.d.ts +4 -1
- package/lib/component/reducer/actions/ZonesActions.js +68 -17
- package/lib/component/reducer/helper/Zoom1DManager.js +2 -1
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.d.ts +3 -0
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.js +6 -0
- package/lib/component/reducer/helper/getSpectrum.js +3 -2
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +7 -0
- package/lib/component/reducer/helper/getStrongestPeak.js +15 -0
- package/lib/component/reducer/preferences/actions/addWorkspace.js +2 -2
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +3 -0
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +23 -15
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib/component/reducer/types/Types.d.ts +12 -0
- package/lib/component/reducer/types/Types.js +12 -0
- package/lib/component/tool/BrushX.js +1 -1
- package/lib/component/tool/BrushXY.js +4 -3
- package/lib/component/tool/CrossLinePointer.js +5 -4
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.d.ts +8 -2
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.js +22 -7
- package/lib/component/tool/FloatMoleculeStructures/index.d.ts +3 -2
- package/lib/component/tool/FloatMoleculeStructures/index.js +19 -6
- package/lib/component/toolbar/BasicToolBar.js +7 -14
- package/lib/component/toolbar/FunctionToolBar.js +13 -23
- package/lib/component/toolbar/ToolTypes.d.ts +7 -1
- package/lib/component/toolbar/ToolTypes.js +119 -9
- package/lib/component/utility/assert.d.ts +1 -0
- package/lib/component/utility/assert.js +5 -0
- package/lib/component/workspaces/Workspace.d.ts +4 -1
- package/lib/component/workspaces/basic.js +12 -11
- package/lib/component/workspaces/embedded.js +14 -13
- package/lib/component/workspaces/exercise.js +10 -6
- package/lib/component/workspaces/prediction.js +14 -13
- package/lib/component/workspaces/process1D.js +20 -19
- package/lib/component/workspaces/workspaceDefaultProperties.js +14 -15
- package/lib/constants.js +1 -1
- package/lib/data/Filters.d.ts +2 -2
- package/lib/data/Filters.js +2 -2
- package/lib/data/FiltersManager.js +3 -3
- package/lib/data/PredictionManager.d.ts +0 -1
- package/lib/data/PredictionManager.js +15 -15
- package/lib/data/SpectraManager.d.ts +2 -5
- package/lib/data/SpectraManager.js +4 -95
- package/lib/data/constants/SignalsKinds.d.ts +0 -1
- package/lib/data/constants/SignalsKinds.js +0 -8
- package/lib/data/data1d/Data1DManager.js +5 -5
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +5 -5
- package/lib/data/data1d/Spectrum1D/SumManager.js +18 -12
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +2 -2
- package/lib/data/data1d/Spectrum1D/index.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/index.js +2 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +3 -3
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -2
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +15 -16
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +8 -0
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +24 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +3 -3
- package/lib/data/data1d/database.js +4 -6
- package/lib/data/data1d/filter1d/apodization.d.ts +25 -0
- package/lib/data/data1d/filter1d/apodization.js +63 -0
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +24 -7
- package/lib/data/data1d/filter1d/baselineCorrection.js +10 -17
- package/lib/data/data1d/filter1d/fft.js +11 -0
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.d.ts +2 -0
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +35 -0
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.d.ts +9 -0
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.js +24 -0
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +3 -2
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +3 -3
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +3 -3
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +3 -3
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -1
- package/lib/data/molecules/Molecule.d.ts +20 -6
- package/lib/data/molecules/Molecule.js +5 -8
- package/lib/data/molecules/MoleculeManager.d.ts +4 -4
- package/lib/data/molecules/MoleculeManager.js +5 -5
- package/lib/data/types/data1d/SumOptions.d.ts +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.d.ts +0 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js +0 -1
- package/lib/data/utilities/isInRange.d.ts +7 -0
- package/lib/data/utilities/isInRange.js +4 -0
- package/lib/types/NMRiumDataReturn.d.ts +2 -2
- package/lib/types/NMRiumGeneralPreferences.d.ts +0 -2
- package/lib/types/NMRiumToolBarPreferences.d.ts +14 -13
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +77 -0
- package/lib-cjs/component/1d/Chart1D.js +4 -2
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +15 -8
- package/lib-cjs/component/1d/FooterBanner.js +3 -1
- package/lib-cjs/component/1d/IntegralResizable.js +4 -3
- package/lib-cjs/component/1d/IntegralsSeries.js +3 -1
- package/lib-cjs/component/1d/LinesSeries.js +6 -4
- package/lib-cjs/component/1d/SpectraTracker.js +1 -1
- package/lib-cjs/component/1d/Viewer1D.js +10 -13
- package/lib-cjs/component/1d/database/DatabaseElements.js +1 -1
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +2 -2
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +5 -1
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +15 -13
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +4 -3
- package/lib-cjs/component/1d/{PeakAnnotation.js → peaks/PeakAnnotation.js} +8 -9
- package/lib-cjs/component/1d/peaks/PeakAnnotations.js +33 -0
- package/lib-cjs/component/1d/peaks/PeaksShapes.js +42 -0
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +53 -0
- package/lib-cjs/component/1d/ranges/Range.js +3 -3
- package/lib-cjs/component/1d/ranges/Ranges.js +7 -1
- package/lib-cjs/component/1d/tool/PeakPointer.js +3 -1
- package/lib-cjs/component/1d/tool/XLabelPointer.js +3 -1
- package/lib-cjs/component/2d/Contours.js +3 -1
- package/lib-cjs/component/2d/FooterBanner.js +5 -3
- package/lib-cjs/component/2d/Viewer2D.js +6 -6
- package/lib-cjs/component/2d/XAxis.js +2 -2
- package/lib-cjs/component/2d/YAxis.js +2 -2
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +3 -1
- package/lib-cjs/component/2d/tools/slicing/SlicingView.js +3 -1
- package/lib-cjs/component/2d/zones/IndicationLines.js +1 -1
- package/lib-cjs/component/2d/zones/Signal.js +3 -3
- package/lib-cjs/component/2d/zones/Zone.js +3 -3
- package/lib-cjs/component/2d/zones/Zones.js +13 -18
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +89 -50
- package/lib-cjs/component/NMRium.js +14 -3
- package/lib-cjs/component/context/GlobalContext.js +4 -4
- package/lib-cjs/component/elements/ActiveButton.js +33 -0
- package/lib-cjs/component/elements/Button.js +5 -5
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBox.js +3 -5
- package/lib-cjs/component/elements/Input.js +1 -1
- package/lib-cjs/component/elements/Label.js +3 -3
- package/lib-cjs/component/elements/MoleculeSelection.js +1 -1
- package/lib-cjs/component/elements/NextPrev.js +1 -1
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +1 -1
- package/lib-cjs/component/elements/Select.js +6 -8
- package/lib-cjs/component/elements/Tab/Tab.js +1 -1
- package/lib-cjs/component/elements/Table/Table.js +2 -2
- package/lib-cjs/component/elements/ToggleButton.js +3 -2
- package/lib-cjs/component/elements/accordion/AccordionItem.js +2 -2
- package/lib-cjs/component/elements/formik/FormikOnChange.js +10 -4
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +8 -11
- package/lib-cjs/component/elements/resizer/DivResizer.js +3 -3
- package/lib-cjs/component/elements/resizer/SVGResizer.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +110 -0
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +39 -35
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +82 -49
- package/lib-cjs/component/header/Header.js +5 -2
- package/lib-cjs/component/header/HeaderContainer.js +14 -0
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +26 -28
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +19 -21
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +73 -45
- package/lib-cjs/component/header/Zones2DOptionPanel.js +11 -13
- package/lib-cjs/component/highlight/index.js +20 -18
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +2 -2
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +31 -1
- package/lib-cjs/component/hooks/useDatumWithSpectraStatistics.js +3 -1
- package/lib-cjs/component/hooks/useExport.js +0 -16
- package/lib-cjs/component/hooks/useFilter.js +14 -0
- package/lib-cjs/component/hooks/useIntegralPath.js +5 -2
- package/lib-cjs/component/hooks/useNucleus.js +4 -4
- package/lib-cjs/component/hooks/useSpectraPerNucleus.js +1 -1
- package/lib-cjs/component/hooks/useSpectrum.js +3 -1
- package/lib-cjs/component/hooks/useToolsFunctions.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +7 -150
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -2
- package/lib-cjs/component/modal/EditPeakShapeModal.js +113 -0
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +2 -3
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +1 -2
- package/lib-cjs/component/modal/PredictSpectraModal.js +1 -1
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +9 -11
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +2 -2
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +3 -3
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +3 -8
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +1 -1
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/GeneralSettings.js +1 -1
- package/lib-cjs/component/modal/setting/ToolsTabContent.js +17 -13
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +1 -1
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +3 -3
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +12 -9
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +11 -3
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib-cjs/component/panels/Panels.js +3 -3
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +45 -20
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +17 -0
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +42 -11
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +10 -9
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +7 -3
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -1
- package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +3 -6
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +3 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +4 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +4 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -2
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +2 -3
- package/lib-cjs/component/panels/SummaryPanel/utilities/useInView.js +3 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +18 -9
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +5 -13
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +2 -2
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +3 -12
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +1 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +2 -2
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +15 -3
- package/lib-cjs/component/reducer/IgnoreActions.js +5 -0
- package/lib-cjs/component/reducer/Reducer.js +72 -50
- package/lib-cjs/component/reducer/actions/DomainActions.js +11 -9
- package/lib-cjs/component/reducer/actions/FiltersActions.js +332 -205
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +15 -10
- package/lib-cjs/component/reducer/actions/LoadActions.js +18 -36
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +49 -19
- package/lib-cjs/component/reducer/actions/PeaksActions.js +54 -12
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +8 -10
- package/lib-cjs/component/reducer/actions/RangesActions.js +87 -29
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +5 -5
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +14 -11
- package/lib-cjs/component/reducer/actions/ToolsActions.js +46 -94
- package/lib-cjs/component/reducer/actions/ZonesActions.js +71 -17
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +2 -1
- package/lib-cjs/component/reducer/helper/getActiveSpectrumOrFail.js +10 -0
- package/lib-cjs/component/reducer/helper/getSpectrum.js +3 -2
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +19 -0
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +2 -5
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +3 -0
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib-cjs/component/reducer/types/Types.js +15 -3
- package/lib-cjs/component/tool/BrushX.js +1 -1
- package/lib-cjs/component/tool/BrushXY.js +4 -3
- package/lib-cjs/component/tool/CrossLinePointer.js +5 -4
- package/lib-cjs/component/tool/FloatMoleculeStructures/DraggableStructure.js +21 -6
- package/lib-cjs/component/tool/FloatMoleculeStructures/index.js +19 -6
- package/lib-cjs/component/toolbar/BasicToolBar.js +7 -14
- package/lib-cjs/component/toolbar/FunctionToolBar.js +12 -22
- package/lib-cjs/component/toolbar/ToolTypes.js +119 -9
- package/lib-cjs/component/utility/assert.js +9 -0
- package/lib-cjs/component/workspaces/basic.js +12 -11
- package/lib-cjs/component/workspaces/embedded.js +14 -13
- package/lib-cjs/component/workspaces/exercise.js +10 -6
- package/lib-cjs/component/workspaces/prediction.js +14 -13
- package/lib-cjs/component/workspaces/process1D.js +20 -19
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +14 -15
- package/lib-cjs/constants.js +1 -1
- package/lib-cjs/data/Filters.js +3 -3
- package/lib-cjs/data/FiltersManager.js +3 -6
- package/lib-cjs/data/PredictionManager.js +15 -15
- package/lib-cjs/data/SpectraManager.js +5 -100
- package/lib-cjs/data/constants/SignalsKinds.js +0 -8
- package/lib-cjs/data/data1d/Data1DManager.js +5 -5
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +18 -12
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +2 -5
- package/lib-cjs/data/data1d/Spectrum1D/index.js +3 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +15 -19
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +28 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +2 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +2 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +3 -6
- package/lib-cjs/data/data1d/database.js +4 -6
- package/lib-cjs/data/data1d/filter1d/apodization.js +70 -0
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +11 -18
- package/lib-cjs/data/data1d/filter1d/fft.js +11 -0
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +39 -0
- package/lib-cjs/data/data1d/filter1d/zeroFillingAndApodization.js +30 -0
- package/lib-cjs/data/data2d/Processing2D.js +3 -2
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +3 -6
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +3 -6
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +3 -6
- package/lib-cjs/data/molecules/Molecule.js +5 -8
- package/lib-cjs/data/molecules/MoleculeManager.js +5 -5
- package/lib-cjs/data/utilities/generateNumbersPowerOfX.js +0 -1
- package/lib-cjs/data/utilities/isInRange.js +7 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +36 -35
- package/lib/component/1d/PeakAnnotations.js +0 -41
- package/lib/component/utility/nmredataToNmrium.d.ts +0 -4
- package/lib/component/utility/nmredataToNmrium.js +0 -66
- package/lib/component/utility/nmriumToNmredata.d.ts +0 -2
- package/lib/component/utility/nmriumToNmredata.js +0 -80
- package/lib/component/utility/util/nmredata/addRanges.d.ts +0 -1
- package/lib/component/utility/util/nmredata/addRanges.js +0 -52
- package/lib/component/utility/util/nmredata/addSource.d.ts +0 -6
- package/lib/component/utility/util/nmredata/addSource.js +0 -54
- package/lib/component/utility/util/nmredata/addZones.d.ts +0 -1
- package/lib/component/utility/util/nmredata/addZones.js +0 -41
- package/lib/component/utility/util/nmredata/flat2DSignals.d.ts +0 -1
- package/lib/component/utility/util/nmredata/flat2DSignals.js +0 -7
- package/lib/component/utility/util/nmredata/get1DSignals.d.ts +0 -10
- package/lib/component/utility/util/nmredata/get1DSignals.js +0 -96
- package/lib/component/utility/util/nmredata/get2DSignals.d.ts +0 -8
- package/lib/component/utility/util/nmredata/get2DSignals.js +0 -59
- package/lib/component/utility/util/nmredata/getCouplingObserved.d.ts +0 -1
- package/lib/component/utility/util/nmredata/getCouplingObserved.js +0 -11
- package/lib/component/utility/util/nmredata/getLabels.d.ts +0 -9
- package/lib/component/utility/util/nmredata/getLabels.js +0 -66
- package/lib/component/utility/util/nmredata/getToFix.d.ts +0 -1
- package/lib/component/utility/util/nmredata/getToFix.js +0 -19
- package/lib/data/data1d/filter1d/lineBroadening.d.ts +0 -14
- package/lib/data/data1d/filter1d/lineBroadening.js +0 -57
- package/lib/data/migration/MigrationManager.d.ts +0 -2
- package/lib/data/migration/MigrationManager.js +0 -17
- package/lib/data/migration/changeKeys.d.ts +0 -1
- package/lib/data/migration/changeKeys.js +0 -9
- package/lib/data/migration/migrateToVersion1.d.ts +0 -11
- package/lib/data/migration/migrateToVersion1.js +0 -32
- package/lib/data/migration/migrateToVersion2.d.ts +0 -1
- package/lib/data/migration/migrateToVersion2.js +0 -111
- package/lib/data/utilities/generateID.d.ts +0 -1
- package/lib/data/utilities/generateID.js +0 -9
- package/lib-cjs/component/1d/PeakAnnotations.js +0 -46
- package/lib-cjs/component/utility/nmredataToNmrium.js +0 -73
- package/lib-cjs/component/utility/nmriumToNmredata.js +0 -87
- package/lib-cjs/component/utility/util/nmredata/addRanges.js +0 -56
- package/lib-cjs/component/utility/util/nmredata/addSource.js +0 -61
- package/lib-cjs/component/utility/util/nmredata/addZones.js +0 -48
- package/lib-cjs/component/utility/util/nmredata/flat2DSignals.js +0 -11
- package/lib-cjs/component/utility/util/nmredata/get1DSignals.js +0 -100
- package/lib-cjs/component/utility/util/nmredata/get2DSignals.js +0 -63
- package/lib-cjs/component/utility/util/nmredata/getCouplingObserved.js +0 -15
- package/lib-cjs/component/utility/util/nmredata/getLabels.js +0 -70
- package/lib-cjs/component/utility/util/nmredata/getToFix.js +0 -23
- package/lib-cjs/data/data1d/filter1d/lineBroadening.js +0 -63
- package/lib-cjs/data/migration/MigrationManager.js +0 -24
- package/lib-cjs/data/migration/changeKeys.js +0 -13
- package/lib-cjs/data/migration/migrateToVersion1.js +0 -35
- package/lib-cjs/data/migration/migrateToVersion2.js +0 -114
- package/lib-cjs/data/utilities/generateID.js +0 -12
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { v4 } from '@lukeed/uuid';
|
|
1
2
|
import { original } from 'immer';
|
|
2
3
|
import { xyIntegration } from 'ml-spectra-processing';
|
|
3
4
|
import { updateIntegralsRelativeValues, changeIntegralsRelative, getShiftX, } from '../../../data/data1d/Spectrum1D';
|
|
4
5
|
import { initSumOptions, setSumOptions, } from '../../../data/data1d/Spectrum1D/SumManager';
|
|
5
|
-
import generateID from '../../../data/utilities/generateID';
|
|
6
6
|
import getRange from '../helper/getRange';
|
|
7
7
|
import { setIntegralsYDomain } from './DomainActions';
|
|
8
8
|
function handleChangeIntegralSum(draft, options) {
|
|
9
|
-
const { data,
|
|
9
|
+
const { data, view: { spectra: { activeTab: nucleus }, }, } = draft;
|
|
10
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
10
11
|
if (activeSpectrum?.id) {
|
|
11
12
|
const { index } = activeSpectrum;
|
|
12
13
|
const datum = data[index];
|
|
@@ -16,14 +17,15 @@ function handleChangeIntegralSum(draft, options) {
|
|
|
16
17
|
}
|
|
17
18
|
function addIntegral(draft, action) {
|
|
18
19
|
const { startX, endX } = action;
|
|
19
|
-
const { data, molecules, activeTab: nucleus,
|
|
20
|
+
const { data, molecules, view: { spectra: { activeTab: nucleus }, }, } = draft;
|
|
21
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
20
22
|
const [from, to] = getRange(draft, { startX, endX });
|
|
21
23
|
if (activeSpectrum?.id) {
|
|
22
24
|
const datum = data[activeSpectrum.index];
|
|
23
25
|
const { x, re } = datum.data;
|
|
24
26
|
const shiftX = getShiftX(datum);
|
|
25
27
|
const integral = {
|
|
26
|
-
id:
|
|
28
|
+
id: v4(),
|
|
27
29
|
originFrom: from - shiftX,
|
|
28
30
|
originTo: to - shiftX,
|
|
29
31
|
from,
|
|
@@ -41,9 +43,10 @@ function addIntegral(draft, action) {
|
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
function deleteIntegral(draft, action) {
|
|
44
|
-
|
|
46
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
47
|
+
if (activeSpectrum) {
|
|
45
48
|
const state = original(draft);
|
|
46
|
-
const { index } =
|
|
49
|
+
const { index } = activeSpectrum;
|
|
47
50
|
const { integralID } = action;
|
|
48
51
|
const datum = draft.data[index];
|
|
49
52
|
if (integralID == null) {
|
|
@@ -57,10 +60,11 @@ function deleteIntegral(draft, action) {
|
|
|
57
60
|
}
|
|
58
61
|
}
|
|
59
62
|
function changeIntegral(draft, action) {
|
|
63
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
60
64
|
const state = original(draft);
|
|
61
65
|
const integral = action.payload.data;
|
|
62
|
-
if (
|
|
63
|
-
const { index } =
|
|
66
|
+
if (activeSpectrum?.id) {
|
|
67
|
+
const { index } = activeSpectrum;
|
|
64
68
|
const originalDatum = state.data[index];
|
|
65
69
|
const datum = draft.data[index];
|
|
66
70
|
const { x, re } = originalDatum.data;
|
|
@@ -77,9 +81,10 @@ function changeIntegral(draft, action) {
|
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
83
|
function handleChangeIntegralsRelativeValue(draft, action) {
|
|
84
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
80
85
|
const data = action.payload.data;
|
|
81
|
-
if (
|
|
82
|
-
const { index } =
|
|
86
|
+
if (activeSpectrum?.id) {
|
|
87
|
+
const { index } = activeSpectrum;
|
|
83
88
|
changeIntegralsRelative(draft.data[index], data);
|
|
84
89
|
}
|
|
85
90
|
}
|
|
@@ -2,10 +2,7 @@ import { Draft } from 'immer';
|
|
|
2
2
|
import { State } from '../Reducer';
|
|
3
3
|
declare function setIsLoading(draft: Draft<State>, isLoading: boolean): void;
|
|
4
4
|
declare function initiate(draft: Draft<State>, action: any): State;
|
|
5
|
-
declare function loadJDFFile(draft: Draft<State>, actions: any): void;
|
|
6
5
|
declare function loadJcampFile(draft: Draft<State>, actions: any): void;
|
|
7
6
|
declare function handleLoadJsonFile(draft: Draft<State>, action: any): State;
|
|
8
|
-
declare function
|
|
9
|
-
|
|
10
|
-
declare function handleLoadNmredata(draft: Draft<State>, action: any): State;
|
|
11
|
-
export { setIsLoading, initiate, loadJcampFile, loadJDFFile, handleLoadJsonFile, handleLoadNmredata, handleLoadMOLFile, handleLoadZIPFile, };
|
|
7
|
+
declare function loadDropFiles(draft: Draft<State>, actions: any): void;
|
|
8
|
+
export { setIsLoading, initiate, loadJcampFile, loadDropFiles, handleLoadJsonFile, };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { buildCorrelationData } from 'nmr-correlation';
|
|
2
|
-
import { addJcamps
|
|
2
|
+
import { addJcamps } from '../../../data/SpectraManager';
|
|
3
|
+
import { initiateDatum1D } from '../../../data/data1d/Spectrum1D';
|
|
4
|
+
import { initiateDatum2D } from '../../../data/data2d/Spectrum2D';
|
|
3
5
|
import * as MoleculeManager from '../../../data/molecules/MoleculeManager';
|
|
4
6
|
import { DefaultTolerance } from '../../panels/SummaryPanel/CorrelationTable/Constants';
|
|
5
7
|
import { getInitialState } from '../Reducer';
|
|
6
|
-
import { INITIATE, LOAD_JSON_FILE
|
|
8
|
+
import { INITIATE, LOAD_JSON_FILE } from '../types/Types';
|
|
7
9
|
import { changeSpectrumVerticalAlignment } from './PreferencesActions';
|
|
8
10
|
import { setActiveTab } from './ToolsActions';
|
|
9
11
|
function setIsLoading(draft, isLoading) {
|
|
@@ -80,15 +82,6 @@ function initiate(draft, action) {
|
|
|
80
82
|
state.actionType = INITIATE;
|
|
81
83
|
return state;
|
|
82
84
|
}
|
|
83
|
-
function loadJDFFile(draft, actions) {
|
|
84
|
-
const { files } = actions;
|
|
85
|
-
const spectra = addJDFs(files, draft.usedColors);
|
|
86
|
-
for (const spectrum of spectra) {
|
|
87
|
-
draft.data.push(spectrum);
|
|
88
|
-
}
|
|
89
|
-
setActiveTab(draft);
|
|
90
|
-
draft.isLoading = false;
|
|
91
|
-
}
|
|
92
85
|
function loadJcampFile(draft, actions) {
|
|
93
86
|
const { files } = actions;
|
|
94
87
|
const spectra = addJcamps(files, draft.usedColors);
|
|
@@ -111,30 +104,22 @@ function handleLoadJsonFile(draft, action) {
|
|
|
111
104
|
state.actionType = LOAD_JSON_FILE;
|
|
112
105
|
return state;
|
|
113
106
|
}
|
|
114
|
-
function
|
|
115
|
-
const {
|
|
116
|
-
|
|
117
|
-
|
|
107
|
+
function loadDropFiles(draft, actions) {
|
|
108
|
+
const { data, usedColors } = actions;
|
|
109
|
+
const { spectra, molecules } = data;
|
|
110
|
+
for (let spectrum of spectra) {
|
|
111
|
+
const { info } = spectrum;
|
|
112
|
+
if (info.dimension === 1) {
|
|
113
|
+
draft.data.push(initiateDatum1D(spectrum, usedColors));
|
|
114
|
+
}
|
|
115
|
+
else if (info.dimension === 2) {
|
|
116
|
+
draft.data.push(initiateDatum2D(spectrum, usedColors));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
for (let molecule of molecules) {
|
|
120
|
+
MoleculeManager.addMolfile(draft.molecules, molecule.molfile);
|
|
118
121
|
}
|
|
119
|
-
draft.isLoading = false;
|
|
120
|
-
}
|
|
121
|
-
function handleLoadZIPFile(draft, action) {
|
|
122
|
-
const { data, usedColors } = action.payload;
|
|
123
|
-
draft.data = draft.data.concat(data);
|
|
124
|
-
setColors(draft, usedColors);
|
|
125
122
|
setActiveTab(draft);
|
|
126
|
-
changeSpectrumVerticalAlignment(draft, { align: 'auto-check' });
|
|
127
123
|
draft.isLoading = false;
|
|
128
124
|
}
|
|
129
|
-
|
|
130
|
-
const state = getInitialState();
|
|
131
|
-
setData(state, action.payload);
|
|
132
|
-
setActiveTab(state);
|
|
133
|
-
changeSpectrumVerticalAlignment(state, { align: 'auto-check' });
|
|
134
|
-
state.isLoading = false;
|
|
135
|
-
state.width = draft.width;
|
|
136
|
-
state.height = draft.height;
|
|
137
|
-
state.actionType = LOAD_NMREDATA_FILE;
|
|
138
|
-
return state;
|
|
139
|
-
}
|
|
140
|
-
export { setIsLoading, initiate, loadJcampFile, loadJDFFile, handleLoadJsonFile, handleLoadNmredata, handleLoadMOLFile, handleLoadZIPFile, };
|
|
125
|
+
export { setIsLoading, initiate, loadJcampFile, loadDropFiles, handleLoadJsonFile, };
|
|
@@ -5,5 +5,6 @@ declare function setMoleculeHandler(draft: Draft<State>, action: any): void;
|
|
|
5
5
|
declare function deleteMoleculeHandler(draft: Draft<State>, action: any): void;
|
|
6
6
|
declare function predictSpectraFromMoleculeHandler(draft: Draft<State>, action: any): void;
|
|
7
7
|
declare function floatMoleculeOverSpectrum(draft: Draft<State>, action: any): void;
|
|
8
|
+
declare function changeFloatMoleculePosition(draft: Draft<State>, action: any): void;
|
|
8
9
|
declare function changeMoleculeLabel(draft: Draft<State>, action: any): void;
|
|
9
|
-
export { addMoleculeHandler, setMoleculeHandler, deleteMoleculeHandler, predictSpectraFromMoleculeHandler, floatMoleculeOverSpectrum, changeMoleculeLabel, };
|
|
10
|
+
export { addMoleculeHandler, setMoleculeHandler, deleteMoleculeHandler, predictSpectraFromMoleculeHandler, floatMoleculeOverSpectrum, changeFloatMoleculePosition, changeMoleculeLabel, };
|
|
@@ -2,6 +2,7 @@ import { generateSpectra } from '../../../data/PredictionManager';
|
|
|
2
2
|
import { changeSpectraRelativeSum } from '../../../data/data1d/Spectrum1D/SumManager';
|
|
3
3
|
import * as MoleculeManager from '../../../data/molecules/MoleculeManager';
|
|
4
4
|
import getColor from '../../../data/utilities/getColor';
|
|
5
|
+
import { DRAGGABLE_STRUCTURE_INITIAL_POSITION } from '../../tool/FloatMoleculeStructures/DraggableStructure';
|
|
5
6
|
import nucleusToString from '../../utility/nucleusToString';
|
|
6
7
|
import { DISPLAYER_MODE } from '../core/Constants';
|
|
7
8
|
import { handleUnlinkRange } from './RangesActions';
|
|
@@ -16,17 +17,21 @@ function addMoleculeHandler(draft, molfile) {
|
|
|
16
17
|
*/
|
|
17
18
|
const molecule = draft.molecules[0] || null;
|
|
18
19
|
if (isEmpty && molecule) {
|
|
19
|
-
changeSpectraRelativeSum(draft, molecule.
|
|
20
|
+
changeSpectraRelativeSum(draft, molecule.id, molecule);
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
function setMoleculeHandler(draft, action) {
|
|
23
|
-
const {
|
|
24
|
-
MoleculeManager.setMolfile(draft.molecules, {
|
|
24
|
+
const { id, label, molfile } = action.payload;
|
|
25
|
+
MoleculeManager.setMolfile(draft.molecules, {
|
|
26
|
+
id,
|
|
27
|
+
label,
|
|
28
|
+
molfile,
|
|
29
|
+
});
|
|
25
30
|
/**
|
|
26
31
|
* update all spectra that its sum was based on this molecule with the new molecule
|
|
27
32
|
*/
|
|
28
|
-
const index = draft.molecules.findIndex((molecule) => molecule.
|
|
29
|
-
changeSpectraRelativeSum(draft,
|
|
33
|
+
const index = draft.molecules.findIndex((molecule) => molecule.id === id);
|
|
34
|
+
changeSpectraRelativeSum(draft, id, index !== -1 ? draft.molecules[index] : draft.molecules[0] || null);
|
|
30
35
|
}
|
|
31
36
|
function removeAssignments(draft, assignmentData) {
|
|
32
37
|
if (draft.displayerMode === DISPLAYER_MODE.DM_1D) {
|
|
@@ -37,16 +42,20 @@ function removeAssignments(draft, assignmentData) {
|
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
function deleteMoleculeHandler(draft, action) {
|
|
40
|
-
const {
|
|
45
|
+
const { id, assignmentData } = action.payload;
|
|
41
46
|
// remove Assignments links of the active spectrum
|
|
42
47
|
removeAssignments(draft, assignmentData);
|
|
43
|
-
const moleculeIndex = draft.molecules.findIndex((molecule) => molecule.
|
|
48
|
+
const moleculeIndex = draft.molecules.findIndex((molecule) => molecule.id === id);
|
|
44
49
|
draft.molecules.splice(moleculeIndex, 1);
|
|
50
|
+
const floatingMoleculesIndex = draft.view.floatingMolecules.findIndex((m) => m.id === id);
|
|
51
|
+
if (floatingMoleculesIndex !== -1) {
|
|
52
|
+
draft.view.floatingMolecules.splice(floatingMoleculesIndex, 1);
|
|
53
|
+
}
|
|
45
54
|
/**
|
|
46
55
|
* update all spectra that its sum was based on this molecule with the first molecule
|
|
47
56
|
* from molecules list and if no remains molecules it sum will be 100
|
|
48
57
|
*/
|
|
49
|
-
changeSpectraRelativeSum(draft,
|
|
58
|
+
changeSpectraRelativeSum(draft, id, draft.molecules[0] || null);
|
|
50
59
|
}
|
|
51
60
|
function predictSpectraFromMoleculeHandler(draft, action) {
|
|
52
61
|
const { data, options } = action.payload;
|
|
@@ -57,10 +66,11 @@ function predictSpectraFromMoleculeHandler(draft, action) {
|
|
|
57
66
|
const color = getColor(false, draft.usedColors['1d']);
|
|
58
67
|
for (const spectrum of generateSpectra(data, options, color)) {
|
|
59
68
|
draft.data.push(spectrum);
|
|
60
|
-
draft.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
69
|
+
draft.view.spectra.activeSpectra[nucleusToString(spectrum.info.nucleus)] =
|
|
70
|
+
{
|
|
71
|
+
id: spectrum.id,
|
|
72
|
+
index: draft.data.length - 1,
|
|
73
|
+
};
|
|
64
74
|
}
|
|
65
75
|
draft.usedColors['1d'].push(color);
|
|
66
76
|
}
|
|
@@ -69,14 +79,33 @@ function predictSpectraFromMoleculeHandler(draft, action) {
|
|
|
69
79
|
draft.isLoading = false;
|
|
70
80
|
}
|
|
71
81
|
function floatMoleculeOverSpectrum(draft, action) {
|
|
72
|
-
const {
|
|
73
|
-
const moleculeIndex = draft.
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
const { id } = action.payload;
|
|
83
|
+
const moleculeIndex = draft.view.floatingMolecules.findIndex((m) => m.id === id);
|
|
84
|
+
if (moleculeIndex !== -1) {
|
|
85
|
+
draft.view.floatingMolecules[moleculeIndex].visible =
|
|
86
|
+
!draft.view.floatingMolecules[moleculeIndex].visible;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
draft.view.floatingMolecules.push({
|
|
90
|
+
id,
|
|
91
|
+
visible: true,
|
|
92
|
+
position: DRAGGABLE_STRUCTURE_INITIAL_POSITION,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function changeFloatMoleculePosition(draft, action) {
|
|
97
|
+
const { id, position } = action.payload;
|
|
98
|
+
const molecule = draft.view.floatingMolecules.find((m) => m.id === id);
|
|
99
|
+
if (molecule) {
|
|
100
|
+
molecule.position = position;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
throw new Error(`Molecule ${id} does not exist`);
|
|
104
|
+
}
|
|
76
105
|
}
|
|
77
106
|
function changeMoleculeLabel(draft, action) {
|
|
78
|
-
const {
|
|
79
|
-
const moleculeIndex = draft.molecules.findIndex((molecule) => molecule.
|
|
107
|
+
const { id, label } = action.payload;
|
|
108
|
+
const moleculeIndex = draft.molecules.findIndex((molecule) => molecule.id === id);
|
|
80
109
|
draft.molecules[moleculeIndex].label = label;
|
|
81
110
|
}
|
|
82
|
-
export { addMoleculeHandler, setMoleculeHandler, deleteMoleculeHandler, predictSpectraFromMoleculeHandler, floatMoleculeOverSpectrum, changeMoleculeLabel, };
|
|
111
|
+
export { addMoleculeHandler, setMoleculeHandler, deleteMoleculeHandler, predictSpectraFromMoleculeHandler, floatMoleculeOverSpectrum, changeFloatMoleculePosition, changeMoleculeLabel, };
|
|
@@ -3,5 +3,8 @@ import { State } from '../Reducer';
|
|
|
3
3
|
declare function addPeak(draft: Draft<State>, mouseCoordinates: any): void;
|
|
4
4
|
declare function addPeaks(draft: Draft<State>, action: any): void;
|
|
5
5
|
declare function deletePeak(draft: Draft<State>, peakData: any): void;
|
|
6
|
+
declare function handleOptimizePeaks(draft: Draft<State>, action: any): void;
|
|
6
7
|
declare function handleAutoPeakPicking(draft: Draft<State>, autOptions: any): void;
|
|
7
|
-
|
|
8
|
+
declare function changePeakShapeHandler(draft: Draft<State>, action: any): void;
|
|
9
|
+
declare function handleShowPeaksShapes(draft: Draft<State>, action: any): void;
|
|
10
|
+
export { addPeak, addPeaks, deletePeak, handleAutoPeakPicking, handleOptimizePeaks, changePeakShapeHandler, handleShowPeaksShapes, };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { v4 } from '@lukeed/uuid';
|
|
1
2
|
import { original } from 'immer';
|
|
2
3
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
3
|
-
import { getShiftX, lookupPeak, autoPeakPicking, } from '../../../data/data1d/Spectrum1D';
|
|
4
|
-
import generateID from '../../../data/utilities/generateID';
|
|
4
|
+
import { getShiftX, lookupPeak, autoPeakPicking, optimizePeaks, } from '../../../data/data1d/Spectrum1D';
|
|
5
5
|
import { options } from '../../toolbar/ToolTypes';
|
|
6
6
|
import getRange from '../helper/getRange';
|
|
7
7
|
function addPeak(draft, mouseCoordinates) {
|
|
8
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
8
9
|
const state = original(draft);
|
|
9
|
-
if (
|
|
10
|
-
const { index } =
|
|
10
|
+
if (activeSpectrum?.id && state) {
|
|
11
|
+
const { index } = activeSpectrum;
|
|
11
12
|
const xShift = 10;
|
|
12
13
|
const startX = mouseCoordinates.x - xShift;
|
|
13
14
|
const endX = mouseCoordinates.x + xShift;
|
|
@@ -19,7 +20,7 @@ function addPeak(draft, mouseCoordinates) {
|
|
|
19
20
|
const shiftX = getShiftX(draft.data[index]);
|
|
20
21
|
if (candidatePeak) {
|
|
21
22
|
const peak = {
|
|
22
|
-
id:
|
|
23
|
+
id: v4(),
|
|
23
24
|
originalX: candidatePeak.x - shiftX,
|
|
24
25
|
x: candidatePeak.x,
|
|
25
26
|
y: candidatePeak.y,
|
|
@@ -31,8 +32,9 @@ function addPeak(draft, mouseCoordinates) {
|
|
|
31
32
|
}
|
|
32
33
|
function addPeaks(draft, action) {
|
|
33
34
|
const state = original(draft);
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
36
|
+
if (activeSpectrum) {
|
|
37
|
+
const { index } = activeSpectrum;
|
|
36
38
|
const datumOriginal = state.data[index];
|
|
37
39
|
const { startX, endX } = action;
|
|
38
40
|
const [from, to] = getRange(draft, { startX, endX });
|
|
@@ -41,7 +43,7 @@ function addPeaks(draft, action) {
|
|
|
41
43
|
const shiftX = getShiftX(draft.data[index]);
|
|
42
44
|
if (peak && !datumOriginal.peaks.values.some((p) => p.x === peak.x)) {
|
|
43
45
|
const newPeak = {
|
|
44
|
-
id:
|
|
46
|
+
id: v4(),
|
|
45
47
|
originalX: peak.x - shiftX,
|
|
46
48
|
x: peak.x,
|
|
47
49
|
y: peak.y,
|
|
@@ -53,8 +55,9 @@ function addPeaks(draft, action) {
|
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
function deletePeak(draft, peakData) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
59
|
+
if (activeSpectrum) {
|
|
60
|
+
const { index } = activeSpectrum;
|
|
58
61
|
const state = original(draft);
|
|
59
62
|
if (peakData == null) {
|
|
60
63
|
draft.data[index].peaks.values = [];
|
|
@@ -65,11 +68,27 @@ function deletePeak(draft, peakData) {
|
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
}
|
|
71
|
+
function handleOptimizePeaks(draft, action) {
|
|
72
|
+
const { peaks } = action.payload;
|
|
73
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
74
|
+
if (activeSpectrum?.id) {
|
|
75
|
+
const { index } = activeSpectrum;
|
|
76
|
+
const datum = draft.data[index];
|
|
77
|
+
const [from, to] = draft.xDomain;
|
|
78
|
+
const newPeaks = optimizePeaks(draft.data[index], {
|
|
79
|
+
from,
|
|
80
|
+
to,
|
|
81
|
+
peaks,
|
|
82
|
+
});
|
|
83
|
+
datum.peaks.values = newPeaks;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
68
86
|
function handleAutoPeakPicking(draft, autOptions) {
|
|
69
|
-
|
|
87
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
88
|
+
if (activeSpectrum?.id) {
|
|
70
89
|
draft.toolOptions.selectedTool = options.zoom.id;
|
|
71
90
|
draft.toolOptions.selectedOptionPanel = null;
|
|
72
|
-
const { index } =
|
|
91
|
+
const { index } = activeSpectrum;
|
|
73
92
|
const datum = draft.data[index];
|
|
74
93
|
const [from, to] = draft.xDomain;
|
|
75
94
|
const windowFromIndex = xFindClosestIndex(datum.data.x, from);
|
|
@@ -82,4 +101,24 @@ function handleAutoPeakPicking(draft, autOptions) {
|
|
|
82
101
|
datum.peaks.values = datum.peaks.values.concat(peaks);
|
|
83
102
|
}
|
|
84
103
|
}
|
|
85
|
-
|
|
104
|
+
function changePeakShapeHandler(draft, action) {
|
|
105
|
+
const { shape, id } = action.payload;
|
|
106
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
107
|
+
if (activeSpectrum?.id) {
|
|
108
|
+
const { index } = activeSpectrum;
|
|
109
|
+
const datum = draft.data[index];
|
|
110
|
+
const peakIndex = datum.peaks.values.findIndex((peak) => peak.id === id);
|
|
111
|
+
if (peakIndex !== -1) {
|
|
112
|
+
datum.peaks.values[peakIndex].shape = shape;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function handleShowPeaksShapes(draft, action) {
|
|
117
|
+
const { key } = action.payload;
|
|
118
|
+
const peaksOptions = draft.toolOptions.data.peaksOptions;
|
|
119
|
+
draft.toolOptions.data.peaksOptions = {
|
|
120
|
+
...peaksOptions,
|
|
121
|
+
[key]: !peaksOptions[key],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
export { addPeak, addPeaks, deletePeak, handleAutoPeakPicking, handleOptimizePeaks, changePeakShapeHandler, handleShowPeaksShapes, };
|
|
@@ -25,7 +25,7 @@ function changeSpectrumVerticalAlignment(draft, options) {
|
|
|
25
25
|
if (['auto-check', 'stack'].includes(options.align || '')) {
|
|
26
26
|
dataPerNucleus = draft.data.filter((datum) => datum.info.nucleus === options?.activeTab
|
|
27
27
|
? options.activeTab
|
|
28
|
-
: draft.activeTab && datum.info.dimension === 1);
|
|
28
|
+
: draft.view.spectra.activeTab && datum.info.dimension === 1);
|
|
29
29
|
}
|
|
30
30
|
switch (options.align) {
|
|
31
31
|
case 'auto-check': {
|
|
@@ -53,21 +53,21 @@ function changeSpectrumVerticalAlignment(draft, options) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function setKeyPreferencesHandler(draft, keyCode) {
|
|
56
|
-
const {
|
|
57
|
-
|
|
56
|
+
const { data, zoom, xDomain, xDomains, yDomain, yDomains, originDomain, margin, displayerMode, view, } = draft;
|
|
57
|
+
const activeSpectrum = draft.view.spectra.activeSpectra[draft.view.spectra.activeTab];
|
|
58
|
+
if (view.spectra.activeTab) {
|
|
58
59
|
const groupByNucleus = groupByInfoKey('nucleus');
|
|
59
60
|
const spectrumsGroupsList = groupByNucleus(data);
|
|
60
61
|
const level = displayerMode === DISPLAYER_MODE.DM_2D
|
|
61
|
-
? spectrumsGroupsList[activeTab].reduce((acc, datum) => {
|
|
62
|
+
? spectrumsGroupsList[view.spectra.activeTab].reduce((acc, datum) => {
|
|
62
63
|
acc[datum.id] = datum.processingController.getLevel();
|
|
63
64
|
return acc;
|
|
64
65
|
}, {})
|
|
65
66
|
: null;
|
|
66
67
|
draft.keysPreferences[keyCode] = {
|
|
67
|
-
activeTab,
|
|
68
68
|
activeSpectrum,
|
|
69
69
|
displayerMode,
|
|
70
|
-
|
|
70
|
+
view,
|
|
71
71
|
zoom,
|
|
72
72
|
xDomain,
|
|
73
73
|
xDomains,
|
|
@@ -76,7 +76,7 @@ function setKeyPreferencesHandler(draft, keyCode) {
|
|
|
76
76
|
originDomain,
|
|
77
77
|
level,
|
|
78
78
|
margin,
|
|
79
|
-
data: spectrumsGroupsList[activeTab].reduce((acc, datum) => {
|
|
79
|
+
data: spectrumsGroupsList[view.spectra.activeTab].reduce((acc, datum) => {
|
|
80
80
|
acc[datum.id] = {
|
|
81
81
|
display: {
|
|
82
82
|
color: datum.display.color,
|
|
@@ -92,15 +92,13 @@ function setKeyPreferencesHandler(draft, keyCode) {
|
|
|
92
92
|
function applyKeyPreferencesHandler(draft, keyCode) {
|
|
93
93
|
const preferences = draft.keysPreferences[keyCode];
|
|
94
94
|
if (preferences) {
|
|
95
|
-
draft.activeTab = preferences.activeTab;
|
|
96
95
|
draft.data.forEach((datum, index) => {
|
|
97
96
|
if (nucleusToString(datum.info.nucleus) === preferences.activeTab) {
|
|
98
97
|
draft.data[index].display = Object.assign(cloneDeep(datum.display), preferences.data[datum.id].display);
|
|
99
98
|
}
|
|
100
99
|
});
|
|
100
|
+
draft.view = preferences.view;
|
|
101
101
|
draft.displayerMode = preferences.displayerMode;
|
|
102
|
-
draft.tabActiveSpectrum = preferences.tabActiveSpectrum;
|
|
103
|
-
draft.activeSpectrum = preferences.activeSpectrum;
|
|
104
102
|
draft.margin = preferences.margin;
|
|
105
103
|
setDomain(draft);
|
|
106
104
|
draft.xDomain = preferences.xDomain;
|
|
@@ -15,7 +15,7 @@ declare function handleChangeRangeRelativeValue(draft: any, action: any): void;
|
|
|
15
15
|
declare function handleChangeRangeSignalValue(draft: any, action: any): void;
|
|
16
16
|
declare function handleChangeRangesSumFlag(draft: any, action: any): void;
|
|
17
17
|
declare function handleUpdateRange(draft: Draft<State>, action: any): void;
|
|
18
|
-
declare function handleShowMultiplicityTrees(draft: Draft<State
|
|
19
|
-
declare function handleShowRangesIntegrals(draft: Draft<State
|
|
20
|
-
declare function handleShowJGraph(draft: Draft<State
|
|
18
|
+
declare function handleShowMultiplicityTrees(draft: Draft<State>, action: any): void;
|
|
19
|
+
declare function handleShowRangesIntegrals(draft: Draft<State>, action: any): void;
|
|
20
|
+
declare function handleShowJGraph(draft: Draft<State>, action: any): void;
|
|
21
21
|
export { handleAutoRangesDetection, handleDeleteRange, handleDeleteSignal, handleChangeRangeSum, handleAddRange, handleResizeRange, handleChangeRangeRelativeValue, handleChangeRangeSignalValue, handleChangeRangeSignalKind, handleSaveEditedRange, handleUnlinkRange, handleSetDiaIDRange, handleChangeRangesSumFlag, handleUpdateRange, handleShowMultiplicityTrees, handleShowRangesIntegrals, handleAutoSpectraRangesDetection, handleShowJGraph, };
|