nmrium 0.37.0 → 0.38.1
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/FooterBanner.js +1 -1
- package/lib/component/1d/Viewer1D.js +26 -21
- package/lib/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib/component/1d/integral/Integral.d.ts +2 -6
- package/lib/component/1d/integral/IntegralResizable.d.ts +2 -6
- package/lib/component/1d/integral/IntegralResizable.js +2 -3
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +7 -9
- package/lib/component/1d/peaks/PeakAnnotation.js +1 -2
- package/lib/component/1d/ranges/Range.js +9 -8
- package/lib/component/1d/ranges/Ranges.js +5 -7
- package/lib/component/1d/tool/BaseLineZones.js +1 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -5
- package/lib/component/1d-2d/components/FloatMoleculeStructures/index.js +13 -17
- package/lib/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
- package/lib/component/2d/Chart2D.js +1 -1
- package/lib/component/2d/Viewer2D.js +10 -9
- package/lib/component/2d/fid/FidCanvas.js +4 -6
- package/lib/component/2d/ft/Contours.js +1 -1
- package/lib/component/2d/utilities/DimensionLayout.d.ts +9 -24
- package/lib/component/2d/utilities/scale.d.ts +2 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/zones/Zones.js +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +28 -21
- package/lib/component/NMRium.js +15 -7
- package/lib/component/assignment/AssignmentsReducer.d.ts +1 -1
- package/lib/component/context/DispatchContext.d.ts +23 -3
- package/lib/component/context/DispatchContext.js +1 -1
- package/lib/component/context/LoggerContext.js +1 -1
- package/lib/component/elements/Button.js +7 -9
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +1 -2
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorInput.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.js +1 -1
- package/lib/component/elements/formik/FormikInput.js +1 -1
- package/lib/component/elements/formik/FormikSelect.js +2 -2
- package/lib/component/elements/formik/FormikSlider.js +1 -1
- package/lib/component/elements/formik/FormikTextarea.js +2 -2
- package/lib/component/header/ApodizationOptionsPanel.js +4 -5
- package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -2
- package/lib/component/header/BaseLineCorrectionPanel.js +4 -5
- package/lib/component/header/Header.js +4 -6
- package/lib/component/header/PhaseCorrectionPanel.js +7 -8
- package/lib/component/header/RangesPickingOptionPanel.js +1 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +3 -11
- package/lib/component/header/Zones2DOptionPanel.js +5 -6
- package/lib/component/hooks/useExport.js +1 -0
- package/lib/component/hooks/useToolsFunctions.js +8 -10
- package/lib/component/loader/DropZone.js +4 -5
- package/lib/component/loader/NoData.js +1 -1
- package/lib/component/modal/AlignSpectraModal.js +1 -2
- package/lib/component/modal/EditPeakShapeModal.js +1 -2
- package/lib/component/modal/ImportPublicationStringModal.js +1 -2
- package/lib/component/modal/LoadJCAMPModal.js +2 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js +24 -19
- package/lib/component/modal/PredictSpectraModal.d.ts +1 -1
- package/lib/component/modal/PredictSpectraModal.js +24 -21
- package/lib/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +3 -4
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +2 -3
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +4 -4
- package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +1 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +7 -6
- package/lib/component/panels/InformationPanel.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +11 -20
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +10 -10
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +4 -4
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +1 -2
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +1 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +10 -13
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +5 -6
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +4 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +2 -2
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +8 -9
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +3 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +1 -1
- package/lib/component/panels/Panels.js +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +4 -5
- package/lib/component/panels/PeaksPanel/PeaksTable.js +4 -5
- package/lib/component/panels/RangesPanel/RangesHeader.js +12 -15
- package/lib/component/panels/RangesPanel/RangesPanel.js +24 -29
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +3 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -2
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +16 -14
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +16 -16
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +7 -5
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +4 -5
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -7
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +4 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -8
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +39 -34
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +2 -13
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +22 -20
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +15 -18
- package/lib/component/panels/ZonesPanel/ZonesTable.js +2 -51
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +3 -3
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +16 -0
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js +52 -0
- package/lib/component/panels/databasePanel/DatabasePanel.js +15 -11
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +8 -9
- package/lib/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +2 -3
- package/lib/component/panels/predictionPanel/PredictionPanel.js +4 -5
- package/lib/component/reducer/IgnoreActions.d.ts +2 -1
- package/lib/component/reducer/IgnoreActions.js +35 -32
- package/lib/component/reducer/Reducer.d.ts +8 -5
- package/lib/component/reducer/Reducer.js +202 -220
- package/lib/component/reducer/actions/AssignmentsActions.d.ts +7 -6
- package/lib/component/reducer/actions/AssignmentsActions.js +2 -2
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +21 -13
- package/lib/component/reducer/actions/CorrelationsActions.js +25 -20
- package/lib/component/reducer/actions/DatabaseActions.d.ts +15 -2
- package/lib/component/reducer/actions/DatabaseActions.js +5 -2
- package/lib/component/reducer/actions/DimensionsActions.d.ts +8 -3
- package/lib/component/reducer/actions/DimensionsActions.js +3 -5
- package/lib/component/reducer/actions/DomainActions.d.ts +11 -5
- package/lib/component/reducer/actions/DomainActions.js +13 -19
- package/lib/component/reducer/actions/FiltersActions.d.ts +70 -23
- package/lib/component/reducer/actions/FiltersActions.js +250 -255
- package/lib/component/reducer/actions/GlobalActions.d.ts +7 -2
- package/lib/component/reducer/actions/GlobalActions.js +3 -3
- package/lib/component/reducer/actions/IntegralsActions.d.ts +28 -7
- package/lib/component/reducer/actions/IntegralsActions.js +16 -15
- package/lib/component/reducer/actions/LoadActions.d.ts +23 -5
- package/lib/component/reducer/actions/LoadActions.js +52 -52
- package/lib/component/reducer/actions/MoleculeActions.d.ts +38 -9
- package/lib/component/reducer/actions/MoleculeActions.js +27 -18
- package/lib/component/reducer/actions/PeaksActions.d.ts +39 -8
- package/lib/component/reducer/actions/PeaksActions.js +19 -11
- package/lib/component/reducer/actions/PreferencesActions.d.ts +8 -3
- package/lib/component/reducer/actions/PreferencesActions.js +5 -3
- package/lib/component/reducer/actions/RangesActions.d.ts +85 -18
- package/lib/component/reducer/actions/RangesActions.js +80 -65
- package/lib/component/reducer/actions/SpectraAnalysisAction.d.ts +7 -1
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +57 -24
- package/lib/component/reducer/actions/SpectrumsActions.js +69 -60
- package/lib/component/reducer/actions/ToolsActions.d.ts +59 -21
- package/lib/component/reducer/actions/ToolsActions.js +54 -32
- package/lib/component/reducer/actions/ZonesActions.d.ts +79 -15
- package/lib/component/reducer/actions/ZonesActions.js +68 -49
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +6 -5
- package/lib/component/reducer/helper/Zoom1DManager.js +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +2 -2
- package/lib/component/reducer/helper/get2DRange.d.ts +7 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/types/ActionType.d.ts +6 -0
- package/lib/component/reducer/types/ActionType.js +1 -0
- package/lib/component/toolbar/BasicToolBar.js +6 -9
- package/lib/component/toolbar/FunctionToolBar.js +4 -9
- package/lib/component/toolbar/ToolBar.js +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +2 -2
- package/lib/component/utility/Events.d.ts +4 -4
- package/lib/component/utility/Events.js +2 -2
- package/lib/component/utility/GroupByInfoKey.js +1 -1
- package/lib/component/utility/getSpectraObjectPaths.js +1 -1
- package/lib/data/PredictionManager.d.ts +7 -9
- package/lib/data/PredictionManager.js +3 -3
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +5 -4
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +5 -3
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +1 -35
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +2 -35
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +7 -10
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +5 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +6 -8
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +2 -0
- package/lib/data/matrixGeneration.js +4 -2
- package/lib/data/molecules/Molecule.d.ts +3 -3
- package/lib/data/molecules/MoleculeManager.d.ts +5 -5
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/utilities/generateColor.js +1 -1
- package/lib/data/utilities/isNumber.d.ts +1 -0
- package/lib/data/utilities/isNumber.js +3 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/FooterBanner.js +1 -1
- package/lib-cjs/component/1d/Viewer1D.js +25 -20
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib-cjs/component/1d/integral/IntegralResizable.js +2 -3
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +7 -9
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +1 -2
- package/lib-cjs/component/1d/ranges/Range.js +9 -8
- package/lib-cjs/component/1d/ranges/Ranges.js +5 -7
- package/lib-cjs/component/1d/tool/BaseLineZones.js +1 -2
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +4 -5
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/index.js +13 -17
- package/lib-cjs/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib-cjs/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
- package/lib-cjs/component/2d/Chart2D.js +1 -1
- package/lib-cjs/component/2d/Viewer2D.js +10 -9
- package/lib-cjs/component/2d/fid/FidCanvas.js +4 -6
- package/lib-cjs/component/2d/ft/Contours.js +1 -1
- package/lib-cjs/component/2d/utilities/scale.js +1 -1
- package/lib-cjs/component/2d/zones/Zones.js +1 -1
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +28 -21
- package/lib-cjs/component/NMRium.js +15 -7
- package/lib-cjs/component/context/DispatchContext.js +1 -1
- package/lib-cjs/component/context/LoggerContext.js +1 -1
- package/lib-cjs/component/elements/Button.js +7 -9
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +1 -2
- package/lib-cjs/component/elements/Tab/Tabs.js +1 -1
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +1 -1
- package/lib-cjs/component/elements/formik/FormikInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSelect.js +2 -2
- package/lib-cjs/component/elements/formik/FormikSlider.js +1 -1
- package/lib-cjs/component/elements/formik/FormikTextarea.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +3 -4
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +1 -2
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +4 -5
- package/lib-cjs/component/header/Header.js +4 -6
- package/lib-cjs/component/header/PhaseCorrectionPanel.js +7 -8
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +1 -2
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +3 -11
- package/lib-cjs/component/header/Zones2DOptionPanel.js +5 -6
- package/lib-cjs/component/highlight/index.js +1 -1
- package/lib-cjs/component/hooks/useExport.js +1 -0
- package/lib-cjs/component/hooks/useTableSortBy.js +1 -1
- package/lib-cjs/component/hooks/useToolsFunctions.js +8 -10
- package/lib-cjs/component/hooks/useXYReduce.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +4 -5
- package/lib-cjs/component/loader/NoData.js +1 -1
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -2
- package/lib-cjs/component/modal/EditPeakShapeModal.js +1 -2
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +1 -2
- package/lib-cjs/component/modal/LoadJCAMPModal.js +2 -3
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +24 -19
- package/lib-cjs/component/modal/PredictSpectraModal.js +24 -21
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +3 -4
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +1 -1
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +2 -3
- package/lib-cjs/component/modal/setting/settings-tabs/DatabasesTabContent.js +4 -4
- package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +1 -2
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +7 -6
- package/lib-cjs/component/panels/InformationPanel.js +6 -6
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +11 -20
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +10 -10
- package/lib-cjs/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +1 -1
- package/lib-cjs/component/panels/MatrixGenerationPanel/FiltersOptions.js +4 -4
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +1 -2
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +1 -2
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +10 -13
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +5 -6
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +2 -2
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +8 -9
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +3 -4
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +1 -1
- package/lib-cjs/component/panels/Panels.js +1 -1
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +4 -5
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +4 -5
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +12 -15
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +24 -29
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +16 -14
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +16 -16
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +7 -5
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +4 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -7
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +4 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +4 -8
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +39 -34
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +22 -20
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +15 -18
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +2 -51
- package/lib-cjs/component/panels/ZonesPanel/hooks/useMapZones.js +56 -0
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +14 -10
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +1 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +8 -9
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +2 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +4 -5
- package/lib-cjs/component/reducer/IgnoreActions.js +35 -55
- package/lib-cjs/component/reducer/Reducer.js +202 -220
- package/lib-cjs/component/reducer/actions/AssignmentsActions.js +3 -3
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +23 -18
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +4 -1
- package/lib-cjs/component/reducer/actions/DimensionsActions.js +3 -6
- package/lib-cjs/component/reducer/actions/DomainActions.js +15 -23
- package/lib-cjs/component/reducer/actions/FiltersActions.js +267 -272
- package/lib-cjs/component/reducer/actions/GlobalActions.js +4 -4
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +19 -18
- package/lib-cjs/component/reducer/actions/LoadActions.js +55 -55
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +31 -22
- package/lib-cjs/component/reducer/actions/PeaksActions.js +23 -15
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +7 -5
- package/lib-cjs/component/reducer/actions/RangesActions.js +81 -64
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +77 -67
- package/lib-cjs/component/reducer/actions/ToolsActions.js +54 -31
- package/lib-cjs/component/reducer/actions/ZonesActions.js +73 -52
- package/lib-cjs/component/reducer/core/Constants.js +1 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +2 -2
- package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +2 -2
- package/lib-cjs/component/reducer/types/ActionType.js +2 -0
- package/lib-cjs/component/toolbar/BasicToolBar.js +6 -9
- package/lib-cjs/component/toolbar/FunctionToolBar.js +4 -9
- package/lib-cjs/component/toolbar/ToolBar.js +1 -1
- package/lib-cjs/component/utility/GroupByInfoKey.js +1 -1
- package/lib-cjs/component/utility/getSpectraObjectPaths.js +1 -1
- package/lib-cjs/data/PredictionManager.js +3 -3
- package/lib-cjs/data/SpectraManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +5 -4
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +2 -2
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +1 -1
- package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +6 -8
- package/lib-cjs/data/matrixGeneration.js +4 -2
- package/lib-cjs/data/molecules/MoleculeManager.js +1 -1
- package/lib-cjs/data/utilities/generateColor.js +1 -1
- package/lib-cjs/data/utilities/isNumber.js +7 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +24 -23
- package/lib/component/reducer/actions/HistoryActions.d.ts +0 -4
- package/lib/component/reducer/actions/HistoryActions.js +0 -40
- package/lib/component/reducer/types/HistoryTypes.d.ts +0 -4
- package/lib/component/reducer/types/HistoryTypes.js +0 -4
- package/lib/component/reducer/types/Types.d.ts +0 -132
- package/lib/component/reducer/types/Types.js +0 -126
- package/lib/component/toolbar/HistoryToolBar.d.ts +0 -8
- package/lib/component/toolbar/HistoryToolBar.js +0 -30
- package/lib/data/utilities/isMolFileEmpty.d.ts +0 -1
- package/lib/data/utilities/isMolFileEmpty.js +0 -6
- package/lib-cjs/component/reducer/actions/HistoryActions.js +0 -45
- package/lib-cjs/component/reducer/types/HistoryTypes.js +0 -7
- package/lib-cjs/component/reducer/types/Types.js +0 -131
- package/lib-cjs/component/toolbar/HistoryToolBar.js +0 -35
- package/lib-cjs/data/utilities/isMolFileEmpty.js +0 -10
|
@@ -33,26 +33,6 @@ function setVisible(datum, flag) {
|
|
|
33
33
|
datum.display.isVisible = flag;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function handleSpectrumVisibility(draft, action) {
|
|
37
|
-
const { id, key, nucleus, flag } = action.payload;
|
|
38
|
-
if (nucleus) {
|
|
39
|
-
const activeSpectra = getActiveSpectraAsObject(draft);
|
|
40
|
-
for (const datum of getSpectraByNucleus(nucleus, draft.data)) {
|
|
41
|
-
if (activeSpectra && datum.id in activeSpectra) {
|
|
42
|
-
setVisible(datum, flag);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
const spectrum = draft.data.find((d) => d.id === id);
|
|
48
|
-
if (spectrum) {
|
|
49
|
-
spectrum.display[key] = !spectrum.display[key];
|
|
50
|
-
if (spectrum.info.dimension === 2) {
|
|
51
|
-
spectrum.display.isVisible = checkIsVisible2D(spectrum);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
36
|
function multipleSelect(spectraIds, options) {
|
|
57
37
|
const { spectra, nexId, referenceId, append = false } = options;
|
|
58
38
|
const startIndex = spectra.findIndex((s) => s.id === referenceId);
|
|
@@ -71,6 +51,53 @@ function multipleSelect(spectraIds, options) {
|
|
|
71
51
|
}
|
|
72
52
|
}
|
|
73
53
|
}
|
|
54
|
+
function removeActiveSpectra(draft, relatedTargets) {
|
|
55
|
+
const activeSpectra = getActiveSpectraAsObject(draft);
|
|
56
|
+
// remove the active spectra
|
|
57
|
+
relatedTargets.unshift({ jpath: 'data', key: 'id' });
|
|
58
|
+
for (const target of relatedTargets) {
|
|
59
|
+
const { jpath } = target;
|
|
60
|
+
const targetObj = lodashGet(draft, jpath);
|
|
61
|
+
if (Array.isArray(targetObj)) {
|
|
62
|
+
const data = targetObj.filter((datum) => !isActiveSpectrum(activeSpectra, datum[target.key]));
|
|
63
|
+
lodashSet(draft, jpath, data);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const data = omitBy(draft.view.peaks, (_, id) => isActiveSpectrum(activeSpectra, id));
|
|
67
|
+
lodashSet(draft, jpath, data);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function setSpectraMetaInfo(draft, spectraMetaInfo) {
|
|
72
|
+
const { data } = draft;
|
|
73
|
+
for (const spectrum of data) {
|
|
74
|
+
if (spectraMetaInfo[spectrum.id]) {
|
|
75
|
+
spectrum.customInfo = spectraMetaInfo[spectrum.id];
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//action
|
|
80
|
+
function handleChangeSpectrumVisibilityById(draft, action) {
|
|
81
|
+
const { id, key } = action.payload;
|
|
82
|
+
const spectrum = draft.data.find((d) => d.id === id);
|
|
83
|
+
if (spectrum) {
|
|
84
|
+
spectrum.display[key] = !spectrum.display[key];
|
|
85
|
+
if (spectrum.info.dimension === 2) {
|
|
86
|
+
spectrum.display.isVisible = checkIsVisible2D(spectrum);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//action
|
|
91
|
+
function handleChangeSpectraVisibilityByNucleus(draft, action) {
|
|
92
|
+
const { nucleus, flag } = action.payload;
|
|
93
|
+
const activeSpectra = getActiveSpectraAsObject(draft);
|
|
94
|
+
for (const datum of getSpectraByNucleus(nucleus, draft.data)) {
|
|
95
|
+
if (activeSpectra && datum.id in activeSpectra) {
|
|
96
|
+
setVisible(datum, flag);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//action
|
|
74
101
|
function handleChangeActiveSpectrum(draft, action) {
|
|
75
102
|
const { view: { spectra: { activeTab, selectReferences, activeSpectra }, }, data, toolOptions, } = draft;
|
|
76
103
|
const { modifier, id } = action.payload;
|
|
@@ -182,7 +209,9 @@ function handleChangeActiveSpectrum(draft, action) {
|
|
|
182
209
|
resetSelectedTool(draft);
|
|
183
210
|
}
|
|
184
211
|
}
|
|
185
|
-
|
|
212
|
+
//action
|
|
213
|
+
function handleChangeSpectrumSetting(draft, action) {
|
|
214
|
+
const { id, display } = action.payload;
|
|
186
215
|
const index = draft.data.findIndex((d) => d.id === id);
|
|
187
216
|
if (index !== -1) {
|
|
188
217
|
const spectrum = draft.data[index];
|
|
@@ -194,38 +223,16 @@ function changeSpectrumSetting(draft, { id, display }) {
|
|
|
194
223
|
}
|
|
195
224
|
}
|
|
196
225
|
}
|
|
197
|
-
|
|
198
|
-
const state = original(draft);
|
|
199
|
-
const index = state.data.findIndex((d) => d.id === id);
|
|
200
|
-
if (index !== -1) {
|
|
201
|
-
draft.data[index].display[key] = color;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
function removeActiveSpectra(draft, relatedTargets) {
|
|
205
|
-
const activeSpectra = getActiveSpectraAsObject(draft);
|
|
206
|
-
// remove the active spectra
|
|
207
|
-
relatedTargets.unshift({ jpath: 'data', key: 'id' });
|
|
208
|
-
for (const target of relatedTargets) {
|
|
209
|
-
const { jpath } = target;
|
|
210
|
-
const targetObj = lodashGet(draft, jpath);
|
|
211
|
-
if (Array.isArray(targetObj)) {
|
|
212
|
-
const data = targetObj.filter((datum) => !isActiveSpectrum(activeSpectra, datum[target.key]));
|
|
213
|
-
lodashSet(draft, jpath, data);
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
const data = omitBy(draft.view.peaks, (_, id) => isActiveSpectrum(activeSpectra, id));
|
|
217
|
-
lodashSet(draft, jpath, data);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
226
|
+
//action
|
|
221
227
|
function handleDeleteSpectra(draft, action) {
|
|
222
228
|
const state = original(draft);
|
|
223
|
-
|
|
224
|
-
|
|
229
|
+
const { id: spectraId } = action?.payload || {};
|
|
230
|
+
if (spectraId) {
|
|
231
|
+
const index = state.data.findIndex((d) => d.id === spectraId);
|
|
225
232
|
draft.data.splice(index, 1);
|
|
226
233
|
// remove peaks State
|
|
227
234
|
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
228
|
-
delete draft.view.peaks[
|
|
235
|
+
delete draft.view.peaks[spectraId];
|
|
229
236
|
}
|
|
230
237
|
else {
|
|
231
238
|
// remove spectra and it related data in the view object
|
|
@@ -241,9 +248,10 @@ function handleDeleteSpectra(draft, action) {
|
|
|
241
248
|
refreshActiveTab: true,
|
|
242
249
|
});
|
|
243
250
|
}
|
|
244
|
-
|
|
251
|
+
//action
|
|
252
|
+
function handleAddMissingProjectionHandler(draft, action) {
|
|
245
253
|
const state = original(draft);
|
|
246
|
-
const { nucleus } = action;
|
|
254
|
+
const { nucleus } = action.payload;
|
|
247
255
|
const activeSpectrum = getActiveSpectrum(draft);
|
|
248
256
|
if (activeSpectrum?.id) {
|
|
249
257
|
const { index } = activeSpectrum;
|
|
@@ -260,7 +268,8 @@ function addMissingProjectionHandler(draft, action) {
|
|
|
260
268
|
setMode(draft);
|
|
261
269
|
}
|
|
262
270
|
}
|
|
263
|
-
|
|
271
|
+
//action
|
|
272
|
+
function handleAlignSpectraHandler(draft, action) {
|
|
264
273
|
if (draft.data && draft.data.length > 0) {
|
|
265
274
|
for (let datum of draft.data) {
|
|
266
275
|
if (datum.info?.dimension === 1 &&
|
|
@@ -279,25 +288,24 @@ function alignSpectraHandler(draft, action) {
|
|
|
279
288
|
setDomain(draft);
|
|
280
289
|
setMode(draft);
|
|
281
290
|
}
|
|
282
|
-
|
|
291
|
+
//action
|
|
292
|
+
function handleGenerateSpectrumFromPublicationStringHandler(draft, action) {
|
|
283
293
|
const publicationString = action.payload.publicationText;
|
|
284
294
|
const spectrum = generateSpectrumFromPublicationString(publicationString, draft.usedColors);
|
|
285
295
|
draft.data.push(spectrum);
|
|
286
296
|
setActiveTab(draft);
|
|
287
297
|
setZoom(draft, { scale: 0.8, spectrumID: spectrum.id });
|
|
288
298
|
}
|
|
289
|
-
|
|
290
|
-
|
|
299
|
+
//action
|
|
300
|
+
function handleImportSpectraMetaInfo(draft, action) {
|
|
291
301
|
const metaSpectra = action.payload.spectraMeta;
|
|
292
|
-
|
|
293
|
-
if (metaSpectra[spectrum.id]) {
|
|
294
|
-
spectrum.metaInfo = metaSpectra[spectrum.id];
|
|
295
|
-
}
|
|
296
|
-
}
|
|
302
|
+
setSpectraMetaInfo(draft, metaSpectra);
|
|
297
303
|
}
|
|
304
|
+
//action
|
|
298
305
|
function handleToggleSpectraLegend(draft) {
|
|
299
306
|
draft.view.spectra.showLegend = !draft.view.spectra.showLegend;
|
|
300
307
|
}
|
|
308
|
+
//action
|
|
301
309
|
function handleRecolorSpectraBasedOnDistinctValue(draft, action) {
|
|
302
310
|
const { data, view: { spectra: { activeTab }, }, } = draft;
|
|
303
311
|
const { jpath = null } = action.payload;
|
|
@@ -339,6 +347,7 @@ function handleRecolorSpectraBasedOnDistinctValue(draft, action) {
|
|
|
339
347
|
}
|
|
340
348
|
}
|
|
341
349
|
}
|
|
350
|
+
//action
|
|
342
351
|
function handleOrderSpectra(draft, action) {
|
|
343
352
|
const { data } = action.payload;
|
|
344
353
|
const spectraIndexes = {};
|
|
@@ -358,4 +367,4 @@ function handleOrderSpectra(draft, action) {
|
|
|
358
367
|
.filter((s) => !sortedSpectraKey[s.id])
|
|
359
368
|
.concat(sortedSpectra);
|
|
360
369
|
}
|
|
361
|
-
export {
|
|
370
|
+
export { handleChangeSpectrumVisibilityById, handleChangeSpectraVisibilityByNucleus, handleChangeActiveSpectrum, handleChangeSpectrumSetting, handleDeleteSpectra, handleAddMissingProjectionHandler, handleAlignSpectraHandler, handleGenerateSpectrumFromPublicationStringHandler, handleImportSpectraMetaInfo, handleToggleSpectraLegend, handleRecolorSpectraBasedOnDistinctValue, handleOrderSpectra, setSpectraMetaInfo, };
|
|
@@ -1,38 +1,76 @@
|
|
|
1
1
|
import { Draft } from 'immer';
|
|
2
|
+
import { Nucleus } from '../../../data/types/common/Nucleus';
|
|
3
|
+
import { Layout } from '../../2d/utilities/DimensionLayout';
|
|
4
|
+
import { Tool } from '../../toolbar/ToolTypes';
|
|
2
5
|
import { State } from '../Reducer';
|
|
6
|
+
import { ZoomType } from '../helper/Zoom1DManager';
|
|
7
|
+
import { ActionType } from '../types/ActionType';
|
|
3
8
|
import { SetDomainOptions } from './DomainActions';
|
|
9
|
+
interface BrushBoundary {
|
|
10
|
+
startX: number;
|
|
11
|
+
startY: number;
|
|
12
|
+
endX: number;
|
|
13
|
+
endY: number;
|
|
14
|
+
trackID?: Layout;
|
|
15
|
+
}
|
|
16
|
+
interface SetActiveTabOptions {
|
|
17
|
+
tab?: string | null;
|
|
18
|
+
refreshActiveTab?: boolean;
|
|
19
|
+
domainOptions?: SetDomainOptions;
|
|
20
|
+
}
|
|
21
|
+
type SetSelectedToolAction = ActionType<'SET_SELECTED_TOOL', {
|
|
22
|
+
selectedTool: Tool;
|
|
23
|
+
}>;
|
|
24
|
+
type AddBaseLineZoneAction = ActionType<'ADD_BASE_LINE_ZONE', {
|
|
25
|
+
startX: number;
|
|
26
|
+
endX: number;
|
|
27
|
+
}>;
|
|
28
|
+
type DeleteBaseLineZoneAction = ActionType<'DELETE_BASE_LINE_ZONE', {
|
|
29
|
+
id: string;
|
|
30
|
+
}>;
|
|
31
|
+
type BrushEndAction = ActionType<'BRUSH_END', BrushBoundary>;
|
|
32
|
+
type SetVerticalIndicatorXPositionAction = ActionType<'SET_VERTICAL_INDICATOR_X_POSITION', {
|
|
33
|
+
position: number;
|
|
34
|
+
}>;
|
|
35
|
+
type ZoomAction = ActionType<'SET_ZOOM', {
|
|
36
|
+
event: any;
|
|
37
|
+
trackID?: Layout;
|
|
38
|
+
selectedTool?: Tool;
|
|
39
|
+
}>;
|
|
40
|
+
type ZoomOutAction = ActionType<'FULL_ZOOM_OUT', {
|
|
41
|
+
zoomType?: ZoomType;
|
|
42
|
+
trackID?: Layout;
|
|
43
|
+
}>;
|
|
44
|
+
type SetActiveTabAction = ActionType<'SET_ACTIVE_TAB', {
|
|
45
|
+
tab?: Nucleus;
|
|
46
|
+
}>;
|
|
47
|
+
type LevelChangeAction = ActionType<'SET_2D_LEVEL', {
|
|
48
|
+
deltaY: number;
|
|
49
|
+
shiftKey: boolean;
|
|
50
|
+
}>;
|
|
51
|
+
export type ToolsActions = ActionType<'TOGGLE_REAL_IMAGINARY_VISIBILITY' | 'RESET_SELECTED_TOOL' | 'SET_SPECTRUMS_VERTICAL_ALIGN' | 'CHANGE_SPECTRUM_DISPLAY_VIEW_MODE' | 'SET_SPECTRA_SAME_TOP' | 'RESET_SPECTRA_SCALE'> | SetSelectedToolAction | AddBaseLineZoneAction | DeleteBaseLineZoneAction | BrushEndAction | SetVerticalIndicatorXPositionAction | ZoomAction | ZoomOutAction | SetActiveTabAction | LevelChangeAction;
|
|
52
|
+
declare function handleResetSelectedTool(draft: Draft<State>): void;
|
|
4
53
|
declare function resetSelectedTool(draft: Draft<State>, filterOnly?: boolean): void;
|
|
5
54
|
interface ActivateToolOptions {
|
|
6
55
|
toolId: string;
|
|
7
56
|
reset?: boolean;
|
|
8
57
|
}
|
|
9
58
|
declare function activateTool(draft: any, options: ActivateToolOptions): void;
|
|
10
|
-
declare function setSelectedTool(draft: Draft<State>, action:
|
|
59
|
+
declare function setSelectedTool(draft: Draft<State>, action: SetSelectedToolAction): void;
|
|
11
60
|
declare function setSpectrumsVerticalAlign(draft: Draft<State>): void;
|
|
12
61
|
declare function handleChangeSpectrumDisplayMode(draft: Draft<State>): void;
|
|
13
|
-
declare function handleAddBaseLineZone(draft: Draft<State>,
|
|
14
|
-
|
|
15
|
-
to: any;
|
|
16
|
-
}): void;
|
|
17
|
-
declare function handleDeleteBaseLineZone(draft: Draft<State>, id: any): void;
|
|
62
|
+
declare function handleAddBaseLineZone(draft: Draft<State>, action: AddBaseLineZoneAction): void;
|
|
63
|
+
declare function handleDeleteBaseLineZone(draft: Draft<State>, action: DeleteBaseLineZoneAction): void;
|
|
18
64
|
declare function handleToggleRealImaginaryVisibility(draft: Draft<State>): void;
|
|
19
|
-
declare function handleBrushEnd(draft: Draft<State>, action:
|
|
20
|
-
declare function setVerticalIndicatorXPosition(draft: Draft<State>,
|
|
21
|
-
declare function handleZoom(draft: Draft<State>, action:
|
|
22
|
-
declare function zoomOut(draft: Draft<State>, action:
|
|
65
|
+
declare function handleBrushEnd(draft: Draft<State>, action: BrushEndAction): void;
|
|
66
|
+
declare function setVerticalIndicatorXPosition(draft: Draft<State>, action: SetVerticalIndicatorXPositionAction): void;
|
|
67
|
+
declare function handleZoom(draft: Draft<State>, action: ZoomAction): void;
|
|
68
|
+
declare function zoomOut(draft: Draft<State>, action: ZoomOutAction): void;
|
|
23
69
|
declare function setMargin(draft: Draft<State>): void;
|
|
24
70
|
declare function setTab(draft: Draft<State>, dataGroupByTab: any, tab: any, refresh?: boolean): void;
|
|
25
|
-
interface SetActiveTabOptions {
|
|
26
|
-
tab?: string | null;
|
|
27
|
-
refreshActiveTab?: boolean;
|
|
28
|
-
domainOptions?: SetDomainOptions;
|
|
29
|
-
}
|
|
30
71
|
declare function setActiveTab(draft: Draft<State>, options?: SetActiveTabOptions): void;
|
|
31
|
-
declare function handelSetActiveTab(draft: Draft<State>,
|
|
32
|
-
declare function levelChangeHandler(draft: Draft<State>,
|
|
33
|
-
deltaY: any;
|
|
34
|
-
shiftKey: any;
|
|
35
|
-
}): void;
|
|
72
|
+
declare function handelSetActiveTab(draft: Draft<State>, action: SetActiveTabAction): void;
|
|
73
|
+
declare function levelChangeHandler(draft: Draft<State>, action: LevelChangeAction): void;
|
|
36
74
|
declare function setSpectraSameTopHandler(draft: Draft<State>): void;
|
|
37
75
|
declare function resetSpectraScale(draft: Draft<State>): void;
|
|
38
|
-
export { resetSelectedTool, setSelectedTool, activateTool, setSpectrumsVerticalAlign, handleChangeSpectrumDisplayMode, handleAddBaseLineZone, handleDeleteBaseLineZone, handleToggleRealImaginaryVisibility, handleBrushEnd, setVerticalIndicatorXPosition, handleZoom, zoomOut, handelSetActiveTab, levelChangeHandler, setActiveTab, setTab, setSpectraSameTopHandler, resetSpectraScale, setMargin, };
|
|
76
|
+
export { handleResetSelectedTool, resetSelectedTool, setSelectedTool, activateTool, setSpectrumsVerticalAlign, handleChangeSpectrumDisplayMode, handleAddBaseLineZone, handleDeleteBaseLineZone, handleToggleRealImaginaryVisibility, handleBrushEnd, setVerticalIndicatorXPosition, handleZoom, zoomOut, handelSetActiveTab, levelChangeHandler, setActiveTab, setTab, setSpectraSameTopHandler, resetSpectraScale, setMargin, };
|
|
@@ -10,7 +10,7 @@ import groupByInfoKey from '../../utility/GroupByInfoKey';
|
|
|
10
10
|
import { getSpectraByNucleus } from '../../utility/getSpectraByNucleus';
|
|
11
11
|
import { rangeStateInit } from '../Reducer';
|
|
12
12
|
import { DISPLAYER_MODE, MARGIN } from '../core/Constants';
|
|
13
|
-
import { setZoom, wheelZoom,
|
|
13
|
+
import { setZoom, wheelZoom, ZOOM_TYPES, } from '../helper/Zoom1DManager';
|
|
14
14
|
import zoomHistoryManager from '../helper/ZoomHistoryManager';
|
|
15
15
|
import { getActiveSpectra } from '../helper/getActiveSpectra';
|
|
16
16
|
import { getActiveSpectrum } from '../helper/getActiveSpectrum';
|
|
@@ -19,7 +19,7 @@ import { setDomain, setIntegralsYDomain, setMode, } from './DomainActions';
|
|
|
19
19
|
import { calculateBaseLineCorrection, rollbackSpectrumByFilter, rollbackSpectrum, } from './FiltersActions';
|
|
20
20
|
import { changeSpectrumVerticalAlignment } from './PreferencesActions';
|
|
21
21
|
function resetTool(draft, options = {}) {
|
|
22
|
-
const { resetToDefaultTool = true, resetFiltersOptionPanel = true, defaultToolId =
|
|
22
|
+
const { resetToDefaultTool = true, resetFiltersOptionPanel = true, defaultToolId = 'zoom', resetSpectrum = false, } = options;
|
|
23
23
|
// reset temp range
|
|
24
24
|
if (resetFiltersOptionPanel) {
|
|
25
25
|
draft.toolOptions.selectedOptionPanel = null;
|
|
@@ -32,6 +32,9 @@ function resetTool(draft, options = {}) {
|
|
|
32
32
|
rollbackSpectrumByFilter(draft, { reset: true });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
function handleResetSelectedTool(draft) {
|
|
36
|
+
resetSelectedTool(draft);
|
|
37
|
+
}
|
|
35
38
|
function resetSelectedTool(draft, filterOnly = false) {
|
|
36
39
|
if ((draft.toolOptions.selectedTool &&
|
|
37
40
|
Tools[draft.toolOptions.selectedTool].isFilter) ||
|
|
@@ -39,6 +42,7 @@ function resetSelectedTool(draft, filterOnly = false) {
|
|
|
39
42
|
resetTool(draft, { resetSpectrum: true });
|
|
40
43
|
}
|
|
41
44
|
}
|
|
45
|
+
//utility
|
|
42
46
|
function activateTool(draft, options) {
|
|
43
47
|
const { toolId, reset = false } = options;
|
|
44
48
|
if (draft?.data.length > 0) {
|
|
@@ -81,6 +85,15 @@ function setSelectedTool(draft, action) {
|
|
|
81
85
|
const { selectedTool } = action.payload;
|
|
82
86
|
activateTool(draft, { toolId: selectedTool });
|
|
83
87
|
}
|
|
88
|
+
//utility
|
|
89
|
+
function getSpectrumID(draft, index) {
|
|
90
|
+
const { activeSpectra, activeTab } = draft.view.spectra;
|
|
91
|
+
const spectra = activeSpectra[activeTab.split(',')[index]];
|
|
92
|
+
if (spectra?.length === 1) {
|
|
93
|
+
return spectra[0].id;
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
84
97
|
function setSpectrumsVerticalAlign(draft) {
|
|
85
98
|
const currentVerticalAlign = getVerticalAlign(draft);
|
|
86
99
|
const verticalAlign = ['stack', 'bottom'].includes(currentVerticalAlign)
|
|
@@ -93,10 +106,11 @@ function handleChangeSpectrumDisplayMode(draft) {
|
|
|
93
106
|
const verticalAlign = currentVerticalAlign === 'stack' ? 'bottom' : 'stack';
|
|
94
107
|
changeSpectrumVerticalAlignment(draft, { verticalAlign });
|
|
95
108
|
}
|
|
96
|
-
function handleAddBaseLineZone(draft,
|
|
109
|
+
function handleAddBaseLineZone(draft, action) {
|
|
97
110
|
const scaleX = getXScale(draft);
|
|
98
|
-
|
|
99
|
-
const
|
|
111
|
+
const { startX, endX } = action.payload;
|
|
112
|
+
const start = scaleX.invert(startX);
|
|
113
|
+
const end = scaleX.invert(endX);
|
|
100
114
|
let zone = [];
|
|
101
115
|
if (start > end) {
|
|
102
116
|
zone = [end, start];
|
|
@@ -113,7 +127,8 @@ function handleAddBaseLineZone(draft, { from, to }) {
|
|
|
113
127
|
draft.toolOptions.data.baselineCorrection.zones = zones.slice();
|
|
114
128
|
calculateBaseLineCorrection(draft);
|
|
115
129
|
}
|
|
116
|
-
function handleDeleteBaseLineZone(draft,
|
|
130
|
+
function handleDeleteBaseLineZone(draft, action) {
|
|
131
|
+
const { id } = action.payload;
|
|
117
132
|
const state = original(draft);
|
|
118
133
|
draft.toolOptions.data.baselineCorrection.zones =
|
|
119
134
|
state.toolOptions.data.baselineCorrection.zones.filter((zone) => zone.id !== id);
|
|
@@ -136,10 +151,11 @@ function handleBrushEnd(draft, action) {
|
|
|
136
151
|
const yScale = is2D
|
|
137
152
|
? get2DYScale(draft)
|
|
138
153
|
: getYScale({ height, margin, yDomain, yDomains, verticalAlign });
|
|
139
|
-
const startX =
|
|
140
|
-
const
|
|
141
|
-
const
|
|
142
|
-
const
|
|
154
|
+
const { startX: _startX, endX: _endX, startY: _startY, endY: _endY, trackID, } = action.payload;
|
|
155
|
+
const startX = xScale.invert(_startX);
|
|
156
|
+
const endX = xScale.invert(_endX);
|
|
157
|
+
const startY = yScale.invert(_startY);
|
|
158
|
+
const endY = yScale.invert(_endY);
|
|
143
159
|
const domainX = startX > endX ? [endX, startX] : [startX, endX];
|
|
144
160
|
const domainY = startY > endY ? [endY, startY] : [startY, endY];
|
|
145
161
|
const brushHistory = zoomHistoryManager(
|
|
@@ -148,15 +164,15 @@ function handleBrushEnd(draft, action) {
|
|
|
148
164
|
// eslint-disable-next-line unicorn/consistent-destructuring
|
|
149
165
|
draft.view.spectra.activeTab);
|
|
150
166
|
if (displayerMode === DISPLAYER_MODE.DM_2D) {
|
|
151
|
-
switch (
|
|
152
|
-
case
|
|
167
|
+
switch (trackID) {
|
|
168
|
+
case 'CENTER_2D':
|
|
153
169
|
draft.xDomain = domainX;
|
|
154
170
|
draft.yDomain = domainY;
|
|
155
171
|
break;
|
|
156
|
-
case
|
|
172
|
+
case 'TOP_1D':
|
|
157
173
|
draft.xDomain = domainX;
|
|
158
174
|
break;
|
|
159
|
-
case
|
|
175
|
+
case 'LEFT_1D':
|
|
160
176
|
draft.yDomain = domainY;
|
|
161
177
|
break;
|
|
162
178
|
default:
|
|
@@ -173,7 +189,8 @@ function handleBrushEnd(draft, action) {
|
|
|
173
189
|
}
|
|
174
190
|
}
|
|
175
191
|
}
|
|
176
|
-
function setVerticalIndicatorXPosition(draft,
|
|
192
|
+
function setVerticalIndicatorXPosition(draft, action) {
|
|
193
|
+
const { position } = action.payload;
|
|
177
194
|
const activeSpectrum = getActiveSpectrum(draft);
|
|
178
195
|
if (activeSpectrum?.id) {
|
|
179
196
|
const scaleX = getXScale(draft);
|
|
@@ -183,16 +200,8 @@ function setVerticalIndicatorXPosition(draft, position) {
|
|
|
183
200
|
draft.toolOptions.data.pivot = { value, index };
|
|
184
201
|
}
|
|
185
202
|
}
|
|
186
|
-
function getSpectrumID(draft, index) {
|
|
187
|
-
const { activeSpectra, activeTab } = draft.view.spectra;
|
|
188
|
-
const spectra = activeSpectra[activeTab.split(',')[index]];
|
|
189
|
-
if (spectra?.length === 1) {
|
|
190
|
-
return spectra[0].id;
|
|
191
|
-
}
|
|
192
|
-
return null;
|
|
193
|
-
}
|
|
194
203
|
function handleZoom(draft, action) {
|
|
195
|
-
const { event, trackID, selectedTool } = action;
|
|
204
|
+
const { event, trackID, selectedTool } = action.payload;
|
|
196
205
|
const { view: { ranges: rangeState }, displayerMode, yDomains, integralsYDomains, } = draft;
|
|
197
206
|
const activeSpectra = getActiveSpectra(draft);
|
|
198
207
|
if (displayerMode === DISPLAYER_MODE.DM_2D) {
|
|
@@ -238,20 +247,20 @@ function handleZoom(draft, action) {
|
|
|
238
247
|
}
|
|
239
248
|
function zoomOut(draft, action) {
|
|
240
249
|
if (draft?.data.length > 0) {
|
|
241
|
-
const { zoomType, trackID } = action;
|
|
250
|
+
const { zoomType, trackID } = action?.payload || {};
|
|
242
251
|
const { xDomain, yDomain } = draft.originDomain;
|
|
243
252
|
const zoomHistory = zoomHistoryManager(draft.zoom.history, draft.view.spectra.activeTab, { xDomain, yDomain });
|
|
244
253
|
if (draft.displayerMode === DISPLAYER_MODE.DM_1D) {
|
|
245
254
|
switch (zoomType) {
|
|
246
|
-
case
|
|
255
|
+
case ZOOM_TYPES.HORIZONTAL: {
|
|
247
256
|
draft.xDomain = xDomain;
|
|
248
257
|
zoomHistory.clear();
|
|
249
258
|
break;
|
|
250
259
|
}
|
|
251
|
-
case
|
|
260
|
+
case ZOOM_TYPES.VERTICAL:
|
|
252
261
|
setZoom(draft, { scale: 0.8 });
|
|
253
262
|
break;
|
|
254
|
-
case
|
|
263
|
+
case ZOOM_TYPES.STEP_HORIZONTAL: {
|
|
255
264
|
const zoomValue = zoomHistory.pop();
|
|
256
265
|
if (zoomValue) {
|
|
257
266
|
draft.xDomain = zoomValue.xDomain;
|
|
@@ -270,7 +279,7 @@ function zoomOut(draft, action) {
|
|
|
270
279
|
}
|
|
271
280
|
else {
|
|
272
281
|
const { xDomain, yDomain, yDomains } = draft.originDomain;
|
|
273
|
-
if (
|
|
282
|
+
if (trackID) {
|
|
274
283
|
const zoomValue = zoomHistory.pop();
|
|
275
284
|
draft.xDomain = zoomValue ? zoomValue.xDomain : xDomain;
|
|
276
285
|
draft.yDomain = zoomValue ? zoomValue.yDomain : yDomain;
|
|
@@ -284,6 +293,7 @@ function zoomOut(draft, action) {
|
|
|
284
293
|
}
|
|
285
294
|
}
|
|
286
295
|
}
|
|
296
|
+
//utility
|
|
287
297
|
function hasAcceptedSpectrum(draft, index) {
|
|
288
298
|
const { activeTab, activeSpectra } = draft.view.spectra;
|
|
289
299
|
const nuclei = activeTab.split(',');
|
|
@@ -295,6 +305,7 @@ function hasAcceptedSpectrum(draft, index) {
|
|
|
295
305
|
}
|
|
296
306
|
return false;
|
|
297
307
|
}
|
|
308
|
+
//utility
|
|
298
309
|
function setMargin(draft) {
|
|
299
310
|
const activeSpectrum = getActiveSpectrum(draft);
|
|
300
311
|
const spectrum = (activeSpectrum?.id && draft.data[activeSpectrum.index]) || null;
|
|
@@ -316,12 +327,14 @@ function setMargin(draft) {
|
|
|
316
327
|
draft.margin = MARGIN['1D'];
|
|
317
328
|
}
|
|
318
329
|
}
|
|
330
|
+
//utility
|
|
319
331
|
function setDisplayerMode(draft, data) {
|
|
320
332
|
draft.displayerMode =
|
|
321
333
|
data && data.some((d) => d.info.dimension === 2)
|
|
322
334
|
? DISPLAYER_MODE.DM_2D
|
|
323
335
|
: DISPLAYER_MODE.DM_1D;
|
|
324
336
|
}
|
|
337
|
+
//utility
|
|
325
338
|
function setTabActiveSpectrum(draft, dataGroupByTab) {
|
|
326
339
|
let tabs2D = [];
|
|
327
340
|
const tabActiveSpectrum = {};
|
|
@@ -347,6 +360,11 @@ function setTabActiveSpectrum(draft, dataGroupByTab) {
|
|
|
347
360
|
const index = draft.data.findIndex((datum) => datum.id === FTSpectrums[0].id);
|
|
348
361
|
tabActiveSpectrum[tabKey] = [{ id: FTSpectrums[0].id, index }];
|
|
349
362
|
}
|
|
363
|
+
else if (tabSpectraLength - FTSpectrums > 0) {
|
|
364
|
+
const id = tabSpectra[0].id;
|
|
365
|
+
const index = draft.data.findIndex((datum) => datum.id === id);
|
|
366
|
+
tabActiveSpectrum[tabKey] = [{ id, index }];
|
|
367
|
+
}
|
|
350
368
|
else {
|
|
351
369
|
tabActiveSpectrum[tabKey] = null;
|
|
352
370
|
}
|
|
@@ -359,6 +377,7 @@ function setTabActiveSpectrum(draft, dataGroupByTab) {
|
|
|
359
377
|
draft.view.spectra.activeSpectra = tabActiveSpectrum;
|
|
360
378
|
return tabs2D;
|
|
361
379
|
}
|
|
380
|
+
//utility
|
|
362
381
|
function setTab(draft, dataGroupByTab, tab, refresh = false) {
|
|
363
382
|
const groupByTab = Object.keys(dataGroupByTab).sort((a, b) => a.split(',').length > b.split(',').length ? -1 : 1);
|
|
364
383
|
if (JSON.stringify(groupByTab) !==
|
|
@@ -380,6 +399,7 @@ function setTab(draft, dataGroupByTab, tab, refresh = false) {
|
|
|
380
399
|
setDisplayerMode(draft, dataGroupByTab[draft.view.spectra.activeTab]);
|
|
381
400
|
setMargin(draft);
|
|
382
401
|
}
|
|
402
|
+
//utility
|
|
383
403
|
function setActiveTab(draft, options) {
|
|
384
404
|
const { tab = null, refreshActiveTab = false, domainOptions = {}, } = options || {};
|
|
385
405
|
const groupByNucleus = groupByInfoKey('nucleus');
|
|
@@ -396,12 +416,14 @@ function setActiveTab(draft, options) {
|
|
|
396
416
|
}
|
|
397
417
|
setMode(draft);
|
|
398
418
|
}
|
|
399
|
-
function handelSetActiveTab(draft,
|
|
419
|
+
function handelSetActiveTab(draft, action) {
|
|
420
|
+
const { tab } = action.payload;
|
|
400
421
|
if (tab) {
|
|
401
422
|
setActiveTab(draft, { tab });
|
|
402
423
|
}
|
|
403
424
|
}
|
|
404
|
-
function levelChangeHandler(draft,
|
|
425
|
+
function levelChangeHandler(draft, action) {
|
|
426
|
+
const { deltaY, shiftKey } = action.payload;
|
|
405
427
|
const { data, view: { spectra: { activeTab }, zoom: { levels }, }, } = draft;
|
|
406
428
|
const activeSpectra = getActiveSpectra(draft) || [];
|
|
407
429
|
const activeSpectraObj = {};
|
|
@@ -434,4 +456,4 @@ function resetSpectraScale(draft) {
|
|
|
434
456
|
draft.yDomain = draft.originDomain.yDomain;
|
|
435
457
|
setZoom(draft, { scale: 0.8 });
|
|
436
458
|
}
|
|
437
|
-
export { resetSelectedTool, setSelectedTool, activateTool, setSpectrumsVerticalAlign, handleChangeSpectrumDisplayMode, handleAddBaseLineZone, handleDeleteBaseLineZone, handleToggleRealImaginaryVisibility, handleBrushEnd, setVerticalIndicatorXPosition, handleZoom, zoomOut, handelSetActiveTab, levelChangeHandler, setActiveTab, setTab, setSpectraSameTopHandler, resetSpectraScale, setMargin, };
|
|
459
|
+
export { handleResetSelectedTool, resetSelectedTool, setSelectedTool, activateTool, setSpectrumsVerticalAlign, handleChangeSpectrumDisplayMode, handleAddBaseLineZone, handleDeleteBaseLineZone, handleToggleRealImaginaryVisibility, handleBrushEnd, setVerticalIndicatorXPosition, handleZoom, zoomOut, handelSetActiveTab, levelChangeHandler, setActiveTab, setTab, setSpectraSameTopHandler, resetSpectraScale, setMargin, };
|
|
@@ -1,18 +1,82 @@
|
|
|
1
|
+
import { FromTo } from 'cheminfo-types';
|
|
1
2
|
import { Draft } from 'immer';
|
|
3
|
+
import { Spectrum2D, Signal2D, Spectrum, Zone } from 'nmr-load-save';
|
|
4
|
+
import { AssignmentContext, Axis } from '../../assignment/AssignmentsContext';
|
|
5
|
+
import { ZoneData } from '../../panels/ZonesPanel/hooks/useMapZones';
|
|
2
6
|
import { State } from '../Reducer';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
import { ZoneBoundary } from '../helper/get2DRange';
|
|
8
|
+
import { ActionType } from '../types/ActionType';
|
|
9
|
+
interface DeleteSignal2DProps {
|
|
10
|
+
spectrum: Spectrum;
|
|
11
|
+
zone: Zone;
|
|
12
|
+
signal: Signal2D;
|
|
13
|
+
assignmentData: AssignmentContext;
|
|
14
|
+
}
|
|
15
|
+
type ChangeZonesFactorAction = ActionType<'CHANGE_ZONES_NOISE_FACTOR', {
|
|
16
|
+
zonesNoiseFactor: number;
|
|
17
|
+
}>;
|
|
18
|
+
type Add2dZoneAction = ActionType<'ADD_2D_ZONE', ZoneBoundary>;
|
|
19
|
+
type AutoZonesDetectionAction = ActionType<'AUTO_ZONES_DETECTION', {
|
|
20
|
+
zonesNoiseFactor: number;
|
|
21
|
+
}>;
|
|
22
|
+
type ChangeZoneSignalDeltaAction = ActionType<'CHANGE_ZONE_SIGNAL_VALUE', {
|
|
23
|
+
zoneId: string;
|
|
24
|
+
signal: {
|
|
25
|
+
id?: string;
|
|
26
|
+
deltaX?: number;
|
|
27
|
+
deltaY?: number;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
type ChangeZoneSignalKindAction = ActionType<'CHANGE_ZONE_SIGNAL_KIND', {
|
|
31
|
+
zoneData: ZoneData;
|
|
32
|
+
kind: string;
|
|
33
|
+
}>;
|
|
34
|
+
type DeleteZoneAction = ActionType<'DELETE_2D_ZONE', {
|
|
35
|
+
id?: string;
|
|
36
|
+
assignmentData: AssignmentContext;
|
|
37
|
+
}>;
|
|
38
|
+
type DeleteSignal2DAction = ActionType<'DELETE_2D_SIGNAL', DeleteSignal2DProps>;
|
|
39
|
+
type SetSignalPathLengthAction = ActionType<'SET_2D_SIGNAL_PATH_LENGTH', {
|
|
40
|
+
spectrum: Spectrum2D;
|
|
41
|
+
zone: Zone;
|
|
42
|
+
signal: Signal2D;
|
|
43
|
+
pathLength: number | FromTo | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
type ToggleZoneViewPropertyAction = ActionType<'SHOW_ZONES' | 'SHOW_ZONES_SIGNALS' | 'SHOW_ZONES_PEAKS', {
|
|
46
|
+
id: string;
|
|
47
|
+
}>;
|
|
48
|
+
type SetZoneDiaIDAction = ActionType<'SET_ZONE_DIAID', {
|
|
49
|
+
zone: Zone;
|
|
50
|
+
axis?: Axis;
|
|
51
|
+
signalIndex?: number;
|
|
52
|
+
} & Pick<Zone['x'], 'diaIDs' | 'nbAtoms'>>;
|
|
53
|
+
type SaveEditedZoneAction = ActionType<'SAVE_EDITED_ZONE', {
|
|
54
|
+
zone: ZoneData;
|
|
55
|
+
}>;
|
|
56
|
+
interface UnlinkZoneProps {
|
|
57
|
+
zone?: ZoneData;
|
|
58
|
+
assignmentData: AssignmentContext;
|
|
59
|
+
isOnZoneLevel?: boolean;
|
|
60
|
+
signalIndex?: number;
|
|
61
|
+
axis?: Axis;
|
|
62
|
+
}
|
|
63
|
+
type UnlinkZoneAction = ActionType<'UNLINK_ZONE', UnlinkZoneProps>;
|
|
64
|
+
export type ZonesActions = AutoZonesDetectionAction | ChangeZonesFactorAction | Add2dZoneAction | ChangeZoneSignalDeltaAction | ChangeZoneSignalKindAction | DeleteZoneAction | DeleteSignal2DAction | SetSignalPathLengthAction | ToggleZoneViewPropertyAction | SetZoneDiaIDAction | SaveEditedZoneAction | UnlinkZoneAction | ActionType<'AUTO_ZONES_SPECTRA_PICKING'>;
|
|
65
|
+
declare function handleChangeZonesFactor(draft: Draft<State>, action: ChangeZonesFactorAction): void;
|
|
66
|
+
declare function handleAdd2dZone(draft: Draft<State>, action: Add2dZoneAction): void;
|
|
67
|
+
declare function handleAutoZonesDetection(draft: Draft<State>, action: AutoZonesDetectionAction): void;
|
|
6
68
|
declare function handleAutoSpectraZonesDetection(draft: Draft<State>): void;
|
|
7
|
-
declare function
|
|
8
|
-
declare function handleChangeZoneSignalKind(draft: Draft<State>, action:
|
|
9
|
-
declare function handleDeleteZone(draft: Draft<State>, action:
|
|
10
|
-
declare function
|
|
11
|
-
declare function
|
|
12
|
-
declare function
|
|
13
|
-
declare function
|
|
14
|
-
declare function
|
|
15
|
-
declare function
|
|
16
|
-
declare function
|
|
17
|
-
declare function
|
|
18
|
-
|
|
69
|
+
declare function handleChangeZoneSignalDelta(draft: Draft<State>, action: ChangeZoneSignalDeltaAction): void;
|
|
70
|
+
declare function handleChangeZoneSignalKind(draft: Draft<State>, action: ChangeZoneSignalKindAction): void;
|
|
71
|
+
declare function handleDeleteZone(draft: Draft<State>, action: DeleteZoneAction): void;
|
|
72
|
+
declare function deleteSignal2D(draft: Draft<State>, options: DeleteSignal2DProps): void;
|
|
73
|
+
declare function handleDeleteSignal(draft: Draft<State>, action: DeleteSignal2DAction): void;
|
|
74
|
+
declare function handleSetSignalPathLength(draft: Draft<State>, action: SetSignalPathLengthAction): void;
|
|
75
|
+
declare function unlinkZone(draft: Draft<State>, props: UnlinkZoneProps): void;
|
|
76
|
+
declare function handleUnlinkZone(draft: Draft<State>, action: UnlinkZoneAction): void;
|
|
77
|
+
declare function handleSetDiaIDZone(draft: Draft<State>, action: SetZoneDiaIDAction): void;
|
|
78
|
+
declare function handleSaveEditedZone(draft: Draft<State>, action: SaveEditedZoneAction): void;
|
|
79
|
+
declare function handleShowZones(draft: Draft<State>, action: ToggleZoneViewPropertyAction): void;
|
|
80
|
+
declare function handleShowSignals(draft: Draft<State>, action: ToggleZoneViewPropertyAction): void;
|
|
81
|
+
declare function handleShowPeaks(draft: Draft<State>, action: ToggleZoneViewPropertyAction): void;
|
|
82
|
+
export { handleAdd2dZone, handleAutoZonesDetection, handleDeleteSignal, deleteSignal2D, handleDeleteZone, handleChangeZoneSignalDelta, handleChangeZoneSignalKind, handleUnlinkZone, unlinkZone, handleSaveEditedZone, handleSetDiaIDZone, handleSetSignalPathLength, handleChangeZonesFactor, handleAutoSpectraZonesDetection, handleShowZones, handleShowSignals, handleShowPeaks, };
|