nmrium 0.37.0 → 0.38.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/lib/component/1d/FooterBanner.js +1 -1
- package/lib/component/1d/Viewer1D.js +26 -21
- 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.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 +4 -5
- 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 +9 -7
- 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 +199 -221
- 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 +5 -8
- 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/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 +4 -5
- 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 +8 -6
- 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 +199 -221
- 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
|
@@ -77,12 +77,12 @@ const columns = [
|
|
|
77
77
|
}, children: `${row.original.value}` })),
|
|
78
78
|
},
|
|
79
79
|
];
|
|
80
|
-
function InformationPanelInner({ info, meta,
|
|
80
|
+
function InformationPanelInner({ info, meta, customInfo, }) {
|
|
81
81
|
const [searchKey, setSearchKey] = (0, react_1.useState)();
|
|
82
82
|
const [panelsStatus, openPanel] = (0, react_1.useState)({
|
|
83
83
|
info: true,
|
|
84
84
|
meta: true,
|
|
85
|
-
|
|
85
|
+
customInfo: true,
|
|
86
86
|
});
|
|
87
87
|
function handleSearch(e) {
|
|
88
88
|
const searchKey = e.target.value.toLowerCase();
|
|
@@ -90,7 +90,7 @@ function InformationPanelInner({ info, meta, metaInfo, }) {
|
|
|
90
90
|
}
|
|
91
91
|
const matchesInfo = filter(searchKey, info);
|
|
92
92
|
const matchesMeta = filter(searchKey, meta);
|
|
93
|
-
const matchesMetaInfo = filter(searchKey,
|
|
93
|
+
const matchesMetaInfo = filter(searchKey, customInfo);
|
|
94
94
|
function handleOpen(key) {
|
|
95
95
|
openPanel((prevPanelsStatus) => ({
|
|
96
96
|
...prevPanelsStatus,
|
|
@@ -100,12 +100,12 @@ function InformationPanelInner({ info, meta, metaInfo, }) {
|
|
|
100
100
|
return ((0, jsx_runtime_1.jsxs)("div", { style: styles.container, children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Input_1.default, { placeholder: "Search for parameter...", onChange: handleSearch, debounceTime: 250, style: {
|
|
101
101
|
inputWrapper: { width: '100%' },
|
|
102
102
|
input: { textAlign: 'left', padding: '5px' },
|
|
103
|
-
} }) }), (0, jsx_runtime_1.jsxs)("div", { style: styles.tableContainer, children: [(0, jsx_runtime_1.jsx)(InformationTable, { data:
|
|
103
|
+
} }) }), (0, jsx_runtime_1.jsxs)("div", { style: styles.tableContainer, children: [(0, jsx_runtime_1.jsx)(InformationTable, { data: matchesMetaInfo, columns: columns, title: "Custom information", onClick: () => handleOpen('customInfo'), isOpen: panelsStatus.customInfo }), (0, jsx_runtime_1.jsx)(InformationTable, { data: matchesInfo, columns: columns, title: "Spectrum information", onClick: () => handleOpen('info'), isOpen: panelsStatus.info }), (0, jsx_runtime_1.jsx)(InformationTable, { data: matchesMeta, columns: columns, title: "Other spectrum parameters", onClick: () => handleOpen('meta'), isOpen: panelsStatus.meta })] })] }));
|
|
104
104
|
}
|
|
105
105
|
const MemoizedInformationPanel = (0, react_1.memo)(InformationPanelInner);
|
|
106
106
|
const emptyData = { info: {}, meta: {} };
|
|
107
107
|
function InformationPanel() {
|
|
108
|
-
const { info, meta,
|
|
109
|
-
return (0, jsx_runtime_1.jsx)(MemoizedInformationPanel, {
|
|
108
|
+
const { info, meta, customInfo } = (0, useSpectrum_1.default)(emptyData);
|
|
109
|
+
return (0, jsx_runtime_1.jsx)(MemoizedInformationPanel, { info, meta, customInfo });
|
|
110
110
|
}
|
|
111
111
|
exports.default = InformationPanel;
|
|
@@ -12,12 +12,11 @@ const react_2 = require("react");
|
|
|
12
12
|
const im_1 = require("react-icons/im");
|
|
13
13
|
const ChartContext_1 = require("../../context/ChartContext");
|
|
14
14
|
const DispatchContext_1 = require("../../context/DispatchContext");
|
|
15
|
-
const
|
|
15
|
+
const ActiveButton_1 = __importDefault(require("../../elements/ActiveButton"));
|
|
16
16
|
const ToolTip_1 = __importDefault(require("../../elements/ToolTip/ToolTip"));
|
|
17
17
|
const Modal_1 = require("../../elements/popup/Modal");
|
|
18
18
|
const useSpectrum_1 = __importDefault(require("../../hooks/useSpectrum"));
|
|
19
19
|
const ChangeSumModal_1 = __importDefault(require("../../modal/changeSum/ChangeSumModal"));
|
|
20
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
21
20
|
const BasicPanelStyle_1 = require("../extra/BasicPanelStyle");
|
|
22
21
|
const DefaultPanelHeader_1 = __importDefault(require("../header/DefaultPanelHeader"));
|
|
23
22
|
const PreferencesHeader_1 = __importDefault(require("../header/PreferencesHeader"));
|
|
@@ -31,12 +30,6 @@ const style = (0, react_1.css) `
|
|
|
31
30
|
align-items: center;
|
|
32
31
|
justify-content: center;
|
|
33
32
|
}
|
|
34
|
-
|
|
35
|
-
.fix-integral-toggle-btn {
|
|
36
|
-
svg {
|
|
37
|
-
font-size: 12px !important;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
33
|
`;
|
|
41
34
|
function IntegralPanelInner({ integrals, info, activeTab, xDomain, }) {
|
|
42
35
|
const [filterIsActive, setFilterIsActive] = (0, react_2.useState)(false);
|
|
@@ -45,7 +38,7 @@ function IntegralPanelInner({ integrals, info, activeTab, xDomain, }) {
|
|
|
45
38
|
const [isFlipped, setFlipStatus] = (0, react_2.useState)(false);
|
|
46
39
|
const settingRef = (0, react_2.useRef)();
|
|
47
40
|
const yesHandler = (0, react_2.useCallback)(() => {
|
|
48
|
-
dispatch({ type:
|
|
41
|
+
dispatch({ type: 'DELETE_INTEGRAL', payload: {} });
|
|
49
42
|
}, [dispatch]);
|
|
50
43
|
const handleDeleteAll = (0, react_2.useCallback)(() => {
|
|
51
44
|
modal.showConfirmDialog({
|
|
@@ -53,8 +46,8 @@ function IntegralPanelInner({ integrals, info, activeTab, xDomain, }) {
|
|
|
53
46
|
buttons: [{ text: 'Yes', handler: yesHandler }, { text: 'No' }],
|
|
54
47
|
});
|
|
55
48
|
}, [modal, yesHandler]);
|
|
56
|
-
const changeIntegralSumHandler = (0, react_2.useCallback)((
|
|
57
|
-
dispatch({ type:
|
|
49
|
+
const changeIntegralSumHandler = (0, react_2.useCallback)((options) => {
|
|
50
|
+
dispatch({ type: 'CHANGE_INTEGRAL_SUM', payload: { options } });
|
|
58
51
|
modal.close();
|
|
59
52
|
}, [dispatch, modal]);
|
|
60
53
|
const currentSum = (0, react_2.useMemo)(() => {
|
|
@@ -75,8 +68,8 @@ function IntegralPanelInner({ integrals, info, activeTab, xDomain, }) {
|
|
|
75
68
|
const handleOnFilter = (0, react_2.useCallback)(() => {
|
|
76
69
|
setFilterIsActive(!filterIsActive);
|
|
77
70
|
}, [filterIsActive]);
|
|
78
|
-
const toggleConstantSumHandler = (0, react_2.useCallback)((
|
|
79
|
-
dispatch({ type:
|
|
71
|
+
const toggleConstantSumHandler = (0, react_2.useCallback)(() => {
|
|
72
|
+
dispatch({ type: 'CHANGE_INTEGRALS_SUM_FLAG' });
|
|
80
73
|
}, [dispatch]);
|
|
81
74
|
const filteredData = (0, react_2.useMemo)(() => {
|
|
82
75
|
function isInRange(from, to) {
|
|
@@ -110,18 +103,16 @@ function IntegralPanelInner({ integrals, info, activeTab, xDomain, }) {
|
|
|
110
103
|
`,
|
|
111
104
|
], children: [!isFlipped && ((0, jsx_runtime_1.jsxs)(DefaultPanelHeader_1.default, { counter: integrals?.values?.length, onDelete: handleDeleteAll, deleteToolTip: "Delete All Integrals", onFilter: handleOnFilter, filterToolTip: filterIsActive ? 'Show all integrals' : 'Hide integrals out of view', filterIsActive: filterIsActive, counterFiltered: filteredData.length, showSettingButton: true, onSettingClick: settingsPanelHandler, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { title: currentSum
|
|
112
105
|
? `Change Integrals Sum (${Number(currentSum).toFixed(2)})`
|
|
113
|
-
: 'Change Integrals Sum', popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { className: "sum-button", type: "button", onClick: showChangeIntegralSumModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrSum, {}) }) }), (0, jsx_runtime_1.jsx)(
|
|
106
|
+
: 'Change Integrals Sum', popupPlacement: "right", children: (0, jsx_runtime_1.jsx)("button", { className: "sum-button", type: "button", onClick: showChangeIntegralSumModal, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrSum, {}) }) }), (0, jsx_runtime_1.jsx)(ActiveButton_1.default, { className: "icon", popupTitle: "Fix integral values", popupPlacement: "right", onClick: toggleConstantSumHandler, value: integrals?.options?.isSumConstant || false, children: (0, jsx_runtime_1.jsx)(im_1.ImLink, {}) })] })), isFlipped && ((0, jsx_runtime_1.jsx)(PreferencesHeader_1.default, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), (0, jsx_runtime_1.jsx)("div", { className: "inner-container", children: !isFlipped ? ((0, jsx_runtime_1.jsx)(IntegralTable_1.default, { data: filteredData, activeTab: activeTab })) : ((0, jsx_runtime_1.jsx)(IntegralsPreferences_1.default, { ref: settingRef })) })] }));
|
|
114
107
|
}
|
|
115
108
|
const MemoizedIntegralPanel = (0, react_2.memo)(IntegralPanelInner);
|
|
116
109
|
const emptyData = { integrals: {}, info: {} };
|
|
117
110
|
function IntegralPanel() {
|
|
118
111
|
const { xDomain, view: { spectra: { activeTab }, }, } = (0, ChartContext_1.useChartData)();
|
|
119
112
|
const { integrals, info } = (0, useSpectrum_1.default)(emptyData);
|
|
120
|
-
return ((0, jsx_runtime_1.jsx)(MemoizedIntegralPanel, {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
activeTab,
|
|
125
|
-
} }));
|
|
113
|
+
return ((0, jsx_runtime_1.jsx)(MemoizedIntegralPanel, { integrals,
|
|
114
|
+
info,
|
|
115
|
+
xDomain,
|
|
116
|
+
activeTab }));
|
|
126
117
|
}
|
|
127
118
|
exports.default = IntegralPanel;
|
|
@@ -15,7 +15,6 @@ const ReactTable_1 = __importDefault(require("../../elements/ReactTable/ReactTab
|
|
|
15
15
|
const addCustomColumn_1 = __importDefault(require("../../elements/ReactTable/utility/addCustomColumn"));
|
|
16
16
|
const Select_1 = __importDefault(require("../../elements/Select"));
|
|
17
17
|
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
18
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
19
18
|
const formatNumber_1 = require("../../utility/formatNumber");
|
|
20
19
|
const NoTableData_1 = __importDefault(require("../extra/placeholder/NoTableData"));
|
|
21
20
|
const selectStyle = { width: '100%', border: 'none' };
|
|
@@ -24,17 +23,19 @@ function IntegralTable({ activeTab, data }) {
|
|
|
24
23
|
const deleteIntegralHandler = (0, react_1.useCallback)((e, row) => {
|
|
25
24
|
e.preventDefault();
|
|
26
25
|
e.stopPropagation();
|
|
27
|
-
const
|
|
26
|
+
const { id } = row.original;
|
|
28
27
|
dispatch({
|
|
29
|
-
type:
|
|
30
|
-
|
|
28
|
+
type: 'DELETE_INTEGRAL',
|
|
29
|
+
payload: {
|
|
30
|
+
id,
|
|
31
|
+
},
|
|
31
32
|
});
|
|
32
33
|
}, [dispatch]);
|
|
33
34
|
const changeIntegralDataHandler = (0, react_1.useCallback)((value, row) => {
|
|
34
|
-
const
|
|
35
|
+
const integral = { ...row.original, kind: value };
|
|
35
36
|
dispatch({
|
|
36
|
-
type:
|
|
37
|
-
payload: {
|
|
37
|
+
type: 'CHANGE_INTEGRAL',
|
|
38
|
+
payload: { integral },
|
|
38
39
|
});
|
|
39
40
|
}, [dispatch]);
|
|
40
41
|
const initialColumns = (0, react_1.useMemo)(() => [
|
|
@@ -64,10 +65,9 @@ function IntegralTable({ activeTab, data }) {
|
|
|
64
65
|
},
|
|
65
66
|
], [deleteIntegralHandler]);
|
|
66
67
|
const saveRelativeHandler = (0, react_1.useCallback)((event, row) => {
|
|
67
|
-
const data = { value: event.target.value, id: row.id };
|
|
68
68
|
dispatch({
|
|
69
|
-
type:
|
|
70
|
-
payload: {
|
|
69
|
+
type: 'CHANGE_INTEGRAL_RELATIVE',
|
|
70
|
+
payload: { value: event.target.value, id: row.id },
|
|
71
71
|
});
|
|
72
72
|
}, [dispatch]);
|
|
73
73
|
const integralsPreferences = (0, usePanelPreferences_1.usePanelPreferences)('integrals', activeTab);
|
|
@@ -24,7 +24,7 @@ function ExclusionsZonesTable() {
|
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
26
|
function handleDelete(index) {
|
|
27
|
-
setFieldValue('exclusionsZones', values.exclusionsZones.filter((_, i) => i !== index));
|
|
27
|
+
void setFieldValue('exclusionsZones', values.exclusionsZones.filter((_, i) => i !== index));
|
|
28
28
|
}
|
|
29
29
|
const exclusionsZonesColumns = [
|
|
30
30
|
{
|
|
@@ -28,7 +28,7 @@ function FiltersOptions() {
|
|
|
28
28
|
return values.filters.map((filter, index) => {
|
|
29
29
|
return ((0, jsx_runtime_1.jsx)(GroupPane_1.GroupPane
|
|
30
30
|
// eslint-disable-next-line react/no-array-index-key
|
|
31
|
-
, { text: `${index + 1} - ${(0, matrixGeneration_1.normalCase)(filter.name)} options`, style: { ...MatrixGenerationPanel_1.GroupPanelStyle, container: { padding: 0 } }, renderHeader: (text) => ((0, jsx_runtime_1.jsx)(FiltersPanelGroupHeader, {
|
|
31
|
+
, { text: `${index + 1} - ${(0, matrixGeneration_1.normalCase)(filter.name)} options`, style: { ...MatrixGenerationPanel_1.GroupPanelStyle, container: { padding: 0 } }, renderHeader: (text) => ((0, jsx_runtime_1.jsx)(FiltersPanelGroupHeader, { index, text, name: filter.name })), children: (0, jsx_runtime_1.jsx)(Fields, { filter: filter, basePath: `filters.${index}` }) }, `${index}`));
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
exports.FiltersOptions = FiltersOptions;
|
|
@@ -89,11 +89,11 @@ function FiltersPanelGroupHeader({ index, name }) {
|
|
|
89
89
|
function handelSelectFilter(value, index) {
|
|
90
90
|
const filters = values.filters.slice(0);
|
|
91
91
|
filters.splice(index, 1, value);
|
|
92
|
-
setFieldValue('filters', filters);
|
|
92
|
+
void setFieldValue('filters', filters);
|
|
93
93
|
}
|
|
94
94
|
function handleAdd(index) {
|
|
95
95
|
if (values.filters) {
|
|
96
|
-
setFieldValue('filters', [
|
|
96
|
+
void setFieldValue('filters', [
|
|
97
97
|
...values.filters.slice(0, index),
|
|
98
98
|
MatrixGenerationPanel_1.DEFAULT_MATRIX_FILTERS[0],
|
|
99
99
|
...values.filters.slice(index),
|
|
@@ -101,7 +101,7 @@ function FiltersPanelGroupHeader({ index, name }) {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
function handleDelete(index) {
|
|
104
|
-
setFieldValue('filters', values.filters.filter((_, i) => i !== index));
|
|
104
|
+
void setFieldValue('filters', values.filters.filter((_, i) => i !== index));
|
|
105
105
|
}
|
|
106
106
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "section-header", style: { display: 'flex', padding: '5px 0px' }, children: [(0, jsx_runtime_1.jsxs)("p", { style: { flex: 1, ...MatrixGenerationPanel_1.GroupPanelStyle.header }, children: [index + 1, "-"] }), (0, jsx_runtime_1.jsx)(Select_1.default, { value: name, items: MatrixGenerationPanel_1.DEFAULT_MATRIX_FILTERS, onChange: (value) => handelSelectFilter(value, index), style: { width: '100%' }, returnValue: false, itemTextField: "name", itemValueField: "name", textRender: (text) => (0, matrixGeneration_1.normalCase)(text) }), (0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex' }, children: [(0, jsx_runtime_1.jsx)(Button_1.default.Danger, { fill: "outline", onClick: () => handleDelete(index), children: (0, jsx_runtime_1.jsx)(fa_1.FaTimes, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default.Done, { fill: "outline", onClick: () => handleAdd(index + 1), style: { marginLeft: '5px' }, children: (0, jsx_runtime_1.jsx)(fa_1.FaPlus, {}) })] })] }));
|
|
107
107
|
}
|
|
@@ -47,7 +47,6 @@ const FormikInput_1 = __importDefault(require("../../elements/formik/FormikInput
|
|
|
47
47
|
const FormikOnChange_1 = __importDefault(require("../../elements/formik/FormikOnChange"));
|
|
48
48
|
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
49
49
|
const useToolsFunctions_1 = __importDefault(require("../../hooks/useToolsFunctions"));
|
|
50
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
51
50
|
const ToolTypes_1 = require("../../toolbar/ToolTypes");
|
|
52
51
|
const export_1 = require("../../utility/export");
|
|
53
52
|
const BasicPanelStyle_1 = require("../extra/BasicPanelStyle");
|
|
@@ -96,7 +95,7 @@ function MatrixGenerationPanel() {
|
|
|
96
95
|
(0, export_1.exportAsMatrix)(data, 'Spectra Matrix');
|
|
97
96
|
}
|
|
98
97
|
function handleSave(options) {
|
|
99
|
-
dispatch({ type:
|
|
98
|
+
dispatch({ type: 'APPLY_SIGNAL_PROCESSING_FILTER', payload: { options } });
|
|
100
99
|
}
|
|
101
100
|
function handleOnChange(options) {
|
|
102
101
|
preferences.dispatch({
|
|
@@ -9,7 +9,6 @@ const react_mf_1 = require("react-mf");
|
|
|
9
9
|
const MoleculeManager_1 = require("../../../data/molecules/MoleculeManager");
|
|
10
10
|
const DispatchContext_1 = require("../../context/DispatchContext");
|
|
11
11
|
const EditableColumn_1 = __importDefault(require("../../elements/EditableColumn"));
|
|
12
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
13
12
|
const styles = {
|
|
14
13
|
toolbar: {
|
|
15
14
|
display: 'flex',
|
|
@@ -37,7 +36,7 @@ function MoleculeHeader(props) {
|
|
|
37
36
|
}, [molecules]);
|
|
38
37
|
const saveLabelHandler = (0, react_1.useCallback)((id, event) => {
|
|
39
38
|
const label = event.target.value;
|
|
40
|
-
dispatch({ type:
|
|
39
|
+
dispatch({ type: 'CHANGE_MOLECULE_LABEL', payload: { label, id } });
|
|
41
40
|
}, [dispatch]);
|
|
42
41
|
return ((0, jsx_runtime_1.jsxs)("div", { style: styles.toolbar, children: [(0, jsx_runtime_1.jsxs)("div", { style: { display: 'flex' }, children: [(0, jsx_runtime_1.jsx)("span", { children: "Label" }), (0, jsx_runtime_1.jsx)(EditableColumn_1.default, { value: currentMolecule.label, style: styles.labelInput, validate: validateLabel, onSave: (event) => saveLabelHandler(currentMolecule.id, event), textOverFlowEllipses: true })] }), (0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)(react_mf_1.MF, { mf: currentMolecule.mf }), " - ", currentMolecule.mw?.toFixed(2)] })] }));
|
|
43
42
|
}
|
|
@@ -15,7 +15,6 @@ const DispatchContext_1 = require("../../context/DispatchContext");
|
|
|
15
15
|
const NextPrev_1 = __importDefault(require("../../elements/NextPrev"));
|
|
16
16
|
const useSpectrum_1 = __importDefault(require("../../hooks/useSpectrum"));
|
|
17
17
|
const MoleculeStructureEditorModal_1 = require("../../modal/MoleculeStructureEditorModal");
|
|
18
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
19
18
|
const MoleculeHeader_1 = __importDefault(require("./MoleculeHeader"));
|
|
20
19
|
const MoleculePanelHeader_1 = __importDefault(require("./MoleculePanelHeader"));
|
|
21
20
|
const useAtomAssignment_1 = __importDefault(require("./useAtomAssignment"));
|
|
@@ -70,7 +69,7 @@ function MoleculePanelInner({ zones, ranges, molecules: moleculesProp, molecules
|
|
|
70
69
|
const handleReplaceMolecule = (0, react_2.useCallback)((molecule, molfile) => {
|
|
71
70
|
const { id, label } = molecule;
|
|
72
71
|
dispatch({
|
|
73
|
-
type:
|
|
72
|
+
type: 'SET_MOLECULE',
|
|
74
73
|
payload: { molfile, id, label },
|
|
75
74
|
});
|
|
76
75
|
}, [dispatch]);
|
|
@@ -96,16 +95,14 @@ function MoleculePanel({ onMoleculeChange, children, actionsOptions, emptyTextSt
|
|
|
96
95
|
const data = (0, useSpectrum_1.default)(emptyData);
|
|
97
96
|
const ranges = data?.ranges || {};
|
|
98
97
|
const zones = data?.zones || {};
|
|
99
|
-
return ((0, jsx_runtime_1.jsx)(MemoizedMoleculePanel, {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
emptyTextStyle,
|
|
109
|
-
}, children: children }));
|
|
98
|
+
return ((0, jsx_runtime_1.jsx)(MemoizedMoleculePanel, { molecules,
|
|
99
|
+
moleculesView,
|
|
100
|
+
displayerMode,
|
|
101
|
+
activeTab,
|
|
102
|
+
ranges,
|
|
103
|
+
zones,
|
|
104
|
+
onMoleculeChange,
|
|
105
|
+
actionsOptions,
|
|
106
|
+
emptyTextStyle, children: children }));
|
|
110
107
|
}
|
|
111
108
|
exports.default = MoleculePanel;
|
|
@@ -22,7 +22,6 @@ const Alert_1 = require("../../elements/popup/Alert");
|
|
|
22
22
|
const Modal_1 = require("../../elements/popup/Modal");
|
|
23
23
|
const AboutPredictionModal_1 = __importDefault(require("../../modal/AboutPredictionModal"));
|
|
24
24
|
const PredictSpectraModal_1 = __importDefault(require("../../modal/PredictSpectraModal"));
|
|
25
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
26
25
|
const export_1 = require("../../utility/export");
|
|
27
26
|
const toolbarStyle = (0, react_1.css) `
|
|
28
27
|
display: flex;
|
|
@@ -136,14 +135,14 @@ function MoleculePanelHeader({ currentIndex, molecules, moleculesView, onMolecul
|
|
|
136
135
|
]);
|
|
137
136
|
const handlePaste = (0, react_2.useCallback)(() => {
|
|
138
137
|
void navigator.clipboard.readText().then((molfile) => {
|
|
139
|
-
dispatch({ type:
|
|
138
|
+
dispatch({ type: 'ADD_MOLECULE', payload: { molfile } });
|
|
140
139
|
});
|
|
141
140
|
}, [dispatch]);
|
|
142
141
|
const handleDelete = (0, react_2.useCallback)(() => {
|
|
143
142
|
if (molecules[currentIndex]?.id) {
|
|
144
143
|
onMoleculeIndexChange(0);
|
|
145
144
|
dispatch({
|
|
146
|
-
type:
|
|
145
|
+
type: 'DELETE_MOLECULE',
|
|
147
146
|
payload: { id: molecules[currentIndex].id, assignmentData },
|
|
148
147
|
});
|
|
149
148
|
}
|
|
@@ -163,13 +162,13 @@ function MoleculePanelHeader({ currentIndex, molecules, moleculesView, onMolecul
|
|
|
163
162
|
}, [modal, molecules, currentIndex]);
|
|
164
163
|
function floatMoleculeHandler() {
|
|
165
164
|
dispatch({
|
|
166
|
-
type:
|
|
165
|
+
type: 'FLOAT_MOLECULE_OVER_SPECTRUM',
|
|
167
166
|
payload: { id: moleculeKey },
|
|
168
167
|
});
|
|
169
168
|
}
|
|
170
169
|
function showAtomNumbersHandler() {
|
|
171
170
|
dispatch({
|
|
172
|
-
type:
|
|
171
|
+
type: 'TOGGLE_MOLECULE_ATOM_NUMBER',
|
|
173
172
|
payload: { id: moleculeKey },
|
|
174
173
|
});
|
|
175
174
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.toggleDiaIDs = exports.getCurrentDiaIDsToHighlight = exports.getHighlightsOnHover = exports.findDatumAndSignalIndex = exports.extractFromAtom = void 0;
|
|
4
4
|
function getElements(activeTab) {
|
|
5
5
|
const nuclei = activeTab.split(',');
|
|
6
|
-
return nuclei.map((nucleus) => nucleus.
|
|
6
|
+
return nuclei.map((nucleus) => nucleus.replaceAll(/\d/g, ''));
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Returns the OCL id(s) and number of atoms of an atom when hovering over
|
|
@@ -106,6 +106,6 @@ function toggleDiaIDs(diaIDs, atomInformation) {
|
|
|
106
106
|
_diaIDs.push(oclID);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return { diaIDs: _diaIDs, nbAtoms: tempNbAtoms };
|
|
110
110
|
}
|
|
111
111
|
exports.toggleDiaIDs = toggleDiaIDs;
|
|
@@ -12,7 +12,6 @@ const DispatchContext_1 = require("../../context/DispatchContext");
|
|
|
12
12
|
const Alert_1 = require("../../elements/popup/Alert");
|
|
13
13
|
const highlight_1 = require("../../highlight");
|
|
14
14
|
const Constants_1 = require("../../reducer/core/Constants");
|
|
15
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
16
15
|
const Utilities_1 = require("./Utilities");
|
|
17
16
|
function useAtomAssignment({ displayerMode, activeTab: nucleus, zones, ranges, }) {
|
|
18
17
|
const alert = (0, Alert_1.useAlert)();
|
|
@@ -132,13 +131,13 @@ function useAtomAssignment({ displayerMode, activeTab: nucleus, zones, ranges, }
|
|
|
132
131
|
else {
|
|
133
132
|
_diaIDs = range?.signals[signalIndex]?.diaIDs || [];
|
|
134
133
|
}
|
|
135
|
-
const
|
|
134
|
+
const { diaIDs, nbAtoms } = toggleAssignment(_diaIDs, atomInformation);
|
|
136
135
|
dispatch({
|
|
137
|
-
type:
|
|
136
|
+
type: 'SET_DIAID_RANGE',
|
|
138
137
|
payload: {
|
|
139
138
|
nbAtoms,
|
|
140
|
-
|
|
141
|
-
diaIDs
|
|
139
|
+
range,
|
|
140
|
+
diaIDs,
|
|
142
141
|
signalIndex,
|
|
143
142
|
},
|
|
144
143
|
});
|
|
@@ -152,13 +151,13 @@ function useAtomAssignment({ displayerMode, activeTab: nucleus, zones, ranges, }
|
|
|
152
151
|
else {
|
|
153
152
|
_diaIDs = zone?.signals[signalIndex][axis]?.diaIDs || [];
|
|
154
153
|
}
|
|
155
|
-
const
|
|
154
|
+
const { diaIDs, nbAtoms } = toggleAssignment(_diaIDs, atomInformation);
|
|
156
155
|
dispatch({
|
|
157
|
-
type:
|
|
156
|
+
type: 'SET_ZONE_DIAID',
|
|
158
157
|
payload: {
|
|
159
158
|
nbAtoms,
|
|
160
|
-
|
|
161
|
-
diaIDs
|
|
159
|
+
zone,
|
|
160
|
+
diaIDs,
|
|
162
161
|
axis,
|
|
163
162
|
signalIndex,
|
|
164
163
|
},
|
package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js
CHANGED
|
@@ -19,7 +19,6 @@ const Alert_1 = require("../../elements/popup/Alert");
|
|
|
19
19
|
const Modal_1 = require("../../elements/popup/Modal");
|
|
20
20
|
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
21
21
|
const AlignSpectraModal_1 = __importDefault(require("../../modal/AlignSpectraModal"));
|
|
22
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
23
22
|
const export_1 = require("../../utility/export");
|
|
24
23
|
const getSpectraByNucleus_1 = require("../../utility/getSpectraByNucleus");
|
|
25
24
|
const BasicPanelStyle_1 = require("../extra/BasicPanelStyle");
|
|
@@ -46,10 +45,10 @@ function MultipleSpectraAnalysisPanelInner({ activeTab, spectra, showLegend, })
|
|
|
46
45
|
setFlipStatus(false);
|
|
47
46
|
}, []);
|
|
48
47
|
const showTrackerHandler = (0, react_2.useCallback)(() => {
|
|
49
|
-
dispatch({ type:
|
|
48
|
+
dispatch({ type: 'TOGGLE_SPECTRA_LEGEND' });
|
|
50
49
|
}, [dispatch]);
|
|
51
50
|
const openAlignSpectra = (0, react_2.useCallback)(() => {
|
|
52
|
-
dispatch({ type:
|
|
51
|
+
dispatch({ type: 'RESET_SELECTED_TOOL' });
|
|
53
52
|
modal.show((0, jsx_runtime_1.jsx)(AlignSpectraModal_1.default, { nucleus: activeTab }), {
|
|
54
53
|
isBackgroundBlur: false,
|
|
55
54
|
position: Alert_1.positions.TOP_CENTER,
|
|
@@ -85,6 +84,6 @@ function MultipleSpectraAnalysisPanel() {
|
|
|
85
84
|
if (!activeTab) {
|
|
86
85
|
return (0, jsx_runtime_1.jsx)("div", {});
|
|
87
86
|
}
|
|
88
|
-
return ((0, jsx_runtime_1.jsx)(MemoizedMultipleSpectraAnalysisPanel, {
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(MemoizedMultipleSpectraAnalysisPanel, { activeTab, displayerKey, spectra, showLegend }));
|
|
89
88
|
}
|
|
90
89
|
exports.default = MultipleSpectraAnalysisPanel;
|
package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js
CHANGED
|
@@ -11,7 +11,6 @@ const ReactTable_1 = __importDefault(require("../../elements/ReactTable/ReactTab
|
|
|
11
11
|
const addCustomColumn_1 = __importDefault(require("../../elements/ReactTable/utility/addCustomColumn"));
|
|
12
12
|
const useFormatNumberByNucleus_1 = require("../../hooks/useFormatNumberByNucleus");
|
|
13
13
|
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
14
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
15
14
|
const Evaluate_1 = __importDefault(require("../../utility/Evaluate"));
|
|
16
15
|
const NoTableData_1 = __importDefault(require("../extra/placeholder/NoTableData"));
|
|
17
16
|
const AnalysisCell_1 = __importDefault(require("./base/AnalysisCell"));
|
|
@@ -85,7 +84,7 @@ function MultipleSpectraAnalysisTable({ data, activeTab, resortSpectra, }) {
|
|
|
85
84
|
function handleSortEnd(data) {
|
|
86
85
|
if (resortSpectra) {
|
|
87
86
|
dispatch({
|
|
88
|
-
type:
|
|
87
|
+
type: 'ORDER_MULTIPLE_SPECTRA_ANALYSIS',
|
|
89
88
|
payload: {
|
|
90
89
|
data,
|
|
91
90
|
},
|
|
@@ -16,7 +16,7 @@ const inputStyle = { input: { width: '100%', fontSize: '1.15em' } };
|
|
|
16
16
|
function AnalysisTablePreferences() {
|
|
17
17
|
const { values: { analysisOptions: { columns }, }, setFieldValue, } = (0, formik_1.useFormikContext)();
|
|
18
18
|
const addNewColumn = (0, react_1.useCallback)((index, columns) => {
|
|
19
|
-
setFieldValue('analysisOptions.columns', [
|
|
19
|
+
void setFieldValue('analysisOptions.columns', [
|
|
20
20
|
...columns,
|
|
21
21
|
{
|
|
22
22
|
tempKey: '',
|
|
@@ -28,7 +28,7 @@ function AnalysisTablePreferences() {
|
|
|
28
28
|
]);
|
|
29
29
|
}, [setFieldValue]);
|
|
30
30
|
const handleDelete = (0, react_1.useCallback)((index, columns) => {
|
|
31
|
-
setFieldValue('analysisOptions.columns', columns.filter((_, colIndex) => colIndex !== index));
|
|
31
|
+
void setFieldValue('analysisOptions.columns', columns.filter((_, colIndex) => colIndex !== index));
|
|
32
32
|
}, [setFieldValue]);
|
|
33
33
|
const COLUMNS = (0, react_1.useMemo)(() => {
|
|
34
34
|
return [
|
package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js
CHANGED
|
@@ -44,11 +44,11 @@ function LegendsPreferences() {
|
|
|
44
44
|
else {
|
|
45
45
|
columns.push(emptyField);
|
|
46
46
|
}
|
|
47
|
-
setFieldValue('legendsFields', columns);
|
|
47
|
+
void setFieldValue('legendsFields', columns);
|
|
48
48
|
}, [setFieldValue]);
|
|
49
49
|
const deleteHandler = (0, react_1.useCallback)((data, index) => {
|
|
50
50
|
const _fields = data.filter((_, columnIndex) => columnIndex !== index);
|
|
51
|
-
setFieldValue('legendsFields', _fields);
|
|
51
|
+
void setFieldValue('legendsFields', _fields);
|
|
52
52
|
}, [setFieldValue]);
|
|
53
53
|
const COLUMNS = (0, react_1.useMemo)(() => [
|
|
54
54
|
{
|
|
@@ -152,6 +152,6 @@ function PanelsInner({ displayerMode: displayedMode }) {
|
|
|
152
152
|
const MemoizedPanels = (0, react_1.memo)(PanelsInner);
|
|
153
153
|
function Panels() {
|
|
154
154
|
const { displayerMode, toolOptions: { selectedTool }, } = (0, ChartContext_1.useChartData)();
|
|
155
|
-
return (0, jsx_runtime_1.jsx)(MemoizedPanels, {
|
|
155
|
+
return (0, jsx_runtime_1.jsx)(MemoizedPanels, { displayerMode, selectedTool });
|
|
156
156
|
}
|
|
157
157
|
exports.default = Panels;
|
|
@@ -22,7 +22,6 @@ const useActiveSpectrumPeaksViewState_1 = require("../../hooks/useActiveSpectrum
|
|
|
22
22
|
const useCheckExperimentalFeature_1 = __importDefault(require("../../hooks/useCheckExperimentalFeature"));
|
|
23
23
|
const useFormatNumberByNucleus_1 = require("../../hooks/useFormatNumberByNucleus");
|
|
24
24
|
const useSpectrum_1 = __importDefault(require("../../hooks/useSpectrum"));
|
|
25
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
26
25
|
const BasicPanelStyle_1 = require("../extra/BasicPanelStyle");
|
|
27
26
|
const DefaultPanelHeader_1 = __importDefault(require("../header/DefaultPanelHeader"));
|
|
28
27
|
const PreferencesHeader_1 = __importDefault(require("../header/PreferencesHeader"));
|
|
@@ -38,7 +37,7 @@ function PeaksPanelInner({ peaks, info, xDomain, activeTab, peaksViewState, }) {
|
|
|
38
37
|
const isExperimental = (0, useCheckExperimentalFeature_1.default)();
|
|
39
38
|
const settingRef = (0, react_2.useRef)();
|
|
40
39
|
const yesHandler = (0, react_2.useCallback)(() => {
|
|
41
|
-
dispatch({ type:
|
|
40
|
+
dispatch({ type: 'DELETE_PEAK', payload: {} });
|
|
42
41
|
}, [dispatch]);
|
|
43
42
|
const handleDeleteAll = (0, react_2.useCallback)(() => {
|
|
44
43
|
modal.showConfirmDialog({
|
|
@@ -83,14 +82,14 @@ function PeaksPanelInner({ peaks, info, xDomain, activeTab, peaksViewState, }) {
|
|
|
83
82
|
const [from, to] = xDomain;
|
|
84
83
|
const filterPeaks = peaks.values.filter((peak) => (0, isInRange_1.default)(peak.x, { from, to }));
|
|
85
84
|
if (filterPeaks.length <= 4) {
|
|
86
|
-
dispatch({ type:
|
|
85
|
+
dispatch({ type: 'OPTIMIZE_PEAKS', payload: { peaks: filterPeaks } });
|
|
87
86
|
}
|
|
88
87
|
else {
|
|
89
88
|
alert.error('optimization can be done on no more than 4 peaks');
|
|
90
89
|
}
|
|
91
90
|
};
|
|
92
91
|
function toggleViewProperty(key) {
|
|
93
|
-
dispatch({ type:
|
|
92
|
+
dispatch({ type: 'TOGGLE_PEAKS_VIEW_PROPERTY', payload: { key } });
|
|
94
93
|
}
|
|
95
94
|
return ((0, jsx_runtime_1.jsxs)("div", { css: [
|
|
96
95
|
BasicPanelStyle_1.tablePanelStyle,
|
|
@@ -116,6 +115,6 @@ function PeaksPanel() {
|
|
|
116
115
|
const { peaks, info } = (0, useSpectrum_1.default)(emptyData);
|
|
117
116
|
const preferences = (0, PreferencesContext_1.usePreferences)();
|
|
118
117
|
const peaksViewState = (0, useActiveSpectrumPeaksViewState_1.useActiveSpectrumPeaksViewState)();
|
|
119
|
-
return ((0, jsx_runtime_1.jsx)(MemoizedPeaksPanel, {
|
|
118
|
+
return ((0, jsx_runtime_1.jsx)(MemoizedPeaksPanel, { peaks, info, xDomain, activeTab, preferences, peaksViewState }));
|
|
120
119
|
}
|
|
121
120
|
exports.default = PeaksPanel;
|
|
@@ -15,7 +15,6 @@ const Modal_1 = require("../../elements/popup/Modal");
|
|
|
15
15
|
const options_1 = require("../../elements/popup/options");
|
|
16
16
|
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
17
17
|
const EditPeakShapeModal_1 = __importDefault(require("../../modal/EditPeakShapeModal"));
|
|
18
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
19
18
|
const formatNumber_1 = require("../../utility/formatNumber");
|
|
20
19
|
const NoTableData_1 = __importDefault(require("../extra/placeholder/NoTableData"));
|
|
21
20
|
function handleActiveRow(row) {
|
|
@@ -30,8 +29,8 @@ function PeaksTable({ activeTab, data }) {
|
|
|
30
29
|
e.stopPropagation();
|
|
31
30
|
const params = row.original;
|
|
32
31
|
dispatch({
|
|
33
|
-
type:
|
|
34
|
-
|
|
32
|
+
type: 'DELETE_PEAK',
|
|
33
|
+
payload: { id: params.id },
|
|
35
34
|
});
|
|
36
35
|
}, [dispatch]);
|
|
37
36
|
const editPeakHandler = (0, react_1.useCallback)((e, row) => {
|
|
@@ -44,8 +43,8 @@ function PeaksTable({ activeTab, data }) {
|
|
|
44
43
|
});
|
|
45
44
|
}, [modal, peaksPreferences]);
|
|
46
45
|
const saveDeltaPPMRefsHandler = (0, react_1.useCallback)((event, row) => {
|
|
47
|
-
const
|
|
48
|
-
dispatch({ type:
|
|
46
|
+
const shift = Number.parseFloat(event.target.value) - Number.parseFloat(row.x);
|
|
47
|
+
dispatch({ type: 'SHIFT_SPECTRUM', payload: { shift } });
|
|
49
48
|
}, [dispatch]);
|
|
50
49
|
const COLUMNS = (0, react_1.useMemo)(() => [
|
|
51
50
|
{
|