nmrium 0.62.1 → 0.63.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/ApodizationLine.d.ts.map +1 -1
- package/lib/component/1d/ApodizationLine.js +46 -30
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +31 -10
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +8 -9
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FloatingRanges.js +1 -1
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/SpectraLegends.js.map +1 -1
- package/lib/component/1d/Viewer1D.js +1 -1
- package/lib/component/1d/Viewer1D.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -2
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
- package/lib/component/1d/matrix/useMatrix.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts +1 -0
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +6 -4
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +2 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +14 -6
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +31 -8
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js.map +1 -1
- package/lib/component/1d/utilities/scale.js +1 -1
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +0 -6
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -4
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +7 -2
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +21 -4
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +1 -1
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js +2 -2
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/fid/FidCanvas.js.map +1 -1
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts +7 -1
- package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.js +18 -14
- package/lib/component/2d/useTracesSpectra.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +14 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.js +41 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -0
- package/lib/component/2d/zones/SignalsGuideLines.d.ts +2 -0
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -0
- package/lib/component/2d/zones/SignalsGuideLines.js +146 -0
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -0
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js +17 -21
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +64 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +38 -3
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +136 -38
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/assignment/utilities/filterAssignedIDs.d.ts +3 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.d.ts.map +1 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.js +4 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.js.map +1 -0
- package/lib/component/assignment/utilities/getAssignments.d.ts +1 -1
- package/lib/component/assignment/utilities/getAssignments.d.ts.map +1 -1
- package/lib/component/context/CoreContext.d.ts +4 -0
- package/lib/component/context/CoreContext.d.ts.map +1 -0
- package/lib/component/context/CoreContext.js +11 -0
- package/lib/component/context/CoreContext.js.map +1 -0
- package/lib/component/context/SortSpectraContext.d.ts +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/context/TopicMoleculeContext.js +2 -2
- package/lib/component/context/TopicMoleculeContext.js.map +1 -1
- package/lib/component/elements/ContainerQueryWrapper.d.ts.map +1 -1
- package/lib/component/elements/Footer.d.ts.map +1 -1
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/MoleculeSelection.js.map +1 -1
- package/lib/component/elements/ReactTable/BaseReactTable.d.ts.map +1 -1
- package/lib/component/elements/TabsProvider.d.ts +14 -0
- package/lib/component/elements/TabsProvider.d.ts.map +1 -0
- package/lib/component/elements/TabsProvider.js +22 -0
- package/lib/component/elements/TabsProvider.js.map +1 -0
- package/lib/component/elements/export/ExportContent.d.ts +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/units.d.ts +1 -1
- package/lib/component/elements/export/units.d.ts.map +1 -1
- package/lib/component/elements/export/units.js +1 -1
- package/lib/component/elements/export/units.js.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +2 -2
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/getSizeInPixel.d.ts +1 -1
- package/lib/component/elements/export/utilities/getSizeInPixel.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/pageSize.d.ts +1 -1
- package/lib/component/elements/print/pageSize.d.ts.map +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +2 -3
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrum.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useCanvasContext.d.ts +2 -0
- package/lib/component/hooks/useCanvasContext.d.ts.map +1 -0
- package/lib/component/hooks/useCanvasContext.js +13 -0
- package/lib/component/hooks/useCanvasContext.js.map +1 -0
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +6 -4
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/usePeaksLabelSettings.d.ts +1 -1
- package/lib/component/hooks/usePeaksLabelSettings.d.ts.map +1 -1
- package/lib/component/hooks/useResizerStatus.d.ts +1 -1
- package/lib/component/hooks/useResizerStatus.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSpectraPerNucleus.d.ts +1 -1
- package/lib/component/hooks/useSpectraPerNucleus.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.d.ts +1 -2
- package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.js +2 -17
- package/lib/component/hooks/useSpectrum.js.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts +3 -0
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts.map +1 -0
- package/lib/component/hooks/useSpectrumWithDataSource.js +22 -0
- package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -0
- package/lib/component/hooks/useTempSpectrum.d.ts +1 -2
- package/lib/component/hooks/useTempSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useTempSpectrum.js +2 -11
- package/lib/component/hooks/useTempSpectrum.js.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/hooks/useWorkspaceAction.d.ts +1 -1
- package/lib/component/hooks/useWorkspaceAction.d.ts.map +1 -1
- package/lib/component/hooks/useWorkspaceAction.js.map +1 -1
- package/lib/component/hooks/useWorkspaceExportSettings.d.ts +1 -1
- package/lib/component/hooks/useWorkspaceExportSettings.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +4 -2
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +15 -7
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +2 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +7 -4
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.js +3 -2
- package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
- package/lib/component/main/index.d.ts +0 -1
- package/lib/component/main/index.d.ts.map +1 -1
- package/lib/component/main/index.js +0 -1
- package/lib/component/main/index.js.map +1 -1
- package/lib/component/main/types.d.ts +1 -1
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +3 -2
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +7 -5
- package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +16 -20
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +3 -2
- package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/InfoBlock.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/InfoBlock.js +2 -2
- package/lib/component/modal/editRange/forms/components/InfoBlock.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +4 -2
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.js +7 -10
- package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +2 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +3 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +3 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +3 -2
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settingsValidation.js +1 -1
- package/lib/component/modal/setting/settingsValidation.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +2 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +12 -17
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +4 -12
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +4 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +20 -7
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +35 -27
- package/lib/component/panels/MoleculesPanel/Utilities.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +1 -10
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +127 -137
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/Panels.d.ts +4 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +35 -9
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +6 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts +1 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +33 -15
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts +2 -3
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +6 -4
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +3 -2
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/BasicPanelStyle.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +2 -3
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +4 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/InnerFilterHeader.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +20 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +3 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js +10 -4
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +14 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +0 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +8 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.d.ts +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.js +4 -2
- package/lib/component/panels/hooks/useTogglePanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +5 -3
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -3
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +19 -17
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +8 -7
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +4 -4
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts +2 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +7 -1
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +27 -5
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +134 -68
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +10 -4
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +3 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +5 -5
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +10 -9
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +40 -34
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +1 -2
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -0
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +33 -19
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +8 -8
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +21 -19
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +5 -3
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +9 -9
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +24 -23
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +1 -1
- package/lib/component/reducer/helper/getActiveSpectra.d.ts.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts +1 -1
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts.map +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.d.ts +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +2 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +4 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +16 -10
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/useWatchForm.d.ts +8 -0
- package/lib/component/useWatchForm.d.ts.map +1 -0
- package/lib/component/useWatchForm.js +24 -0
- package/lib/component/useWatchForm.js.map +1 -0
- package/lib/component/utility/export.d.ts +1 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/getClosePeak.d.ts +1 -1
- package/lib/component/utility/getClosePeak.d.ts.map +1 -1
- package/lib/component/utility/getSpectraByNucleus.d.ts +1 -1
- package/lib/component/utility/getSpectraByNucleus.d.ts.map +1 -1
- package/lib/component/utility/getSpectraObjectPaths.d.ts +1 -1
- package/lib/component/utility/getSpectraObjectPaths.d.ts.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.d.ts +17 -0
- package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -0
- package/lib/component/utility/stackOverlappingLabels.js +59 -0
- package/lib/component/utility/stackOverlappingLabels.js.map +1 -0
- package/lib/component/workspaces/assignment.d.ts +1 -1
- package/lib/component/workspaces/assignment.d.ts.map +1 -1
- package/lib/component/workspaces/basic.d.ts +1 -1
- package/lib/component/workspaces/basic.d.ts.map +1 -1
- package/lib/component/workspaces/embedded.d.ts +1 -1
- package/lib/component/workspaces/embedded.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.d.ts +1 -1
- package/lib/component/workspaces/exercise.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.js +1 -0
- package/lib/component/workspaces/exercise.js.map +1 -1
- package/lib/component/workspaces/index.d.ts +7 -7
- package/lib/component/workspaces/prediction.d.ts +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/process1D.d.ts +1 -1
- package/lib/component/workspaces/process1D.d.ts.map +1 -1
- package/lib/component/workspaces/simulation.d.ts +1 -1
- package/lib/component/workspaces/simulation.d.ts.map +1 -1
- package/lib/component/workspaces/simulation.js +1 -0
- package/lib/component/workspaces/simulation.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +11 -2
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +5 -3
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +11 -8
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +2 -39
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +1 -31
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +2 -39
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +2 -39
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
- package/lib/data/data1d/database.js +1 -1
- package/lib/data/data1d/database.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +6 -2
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +12 -11
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js +6 -2
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +4 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +6 -0
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js.map +1 -1
- package/lib/data/molecules/Molecule.js +2 -2
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +2 -2
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +7 -6
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/FindUtilities.d.ts +1 -1
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/data/utilities/convertSpectraListToObject.d.ts +1 -1
- package/lib/data/utilities/convertSpectraListToObject.d.ts.map +1 -1
- package/lib/data/utilities/getCustomColor.d.ts +1 -1
- package/lib/data/utilities/getCustomColor.d.ts.map +1 -1
- package/lib/data/utilities/getCustomColor.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +32 -34
- package/src/component/1d/ApodizationLine.tsx +57 -32
- package/src/component/1d/BrushTracker1D.tsx +43 -7
- package/src/component/1d/ExclusionZonesAnnotations.tsx +1 -1
- package/src/component/1d/FloatPublicationString.tsx +11 -12
- package/src/component/1d/FloatingRanges.tsx +3 -3
- package/src/component/1d/FooterBanner.tsx +1 -1
- package/src/component/1d/LinesSeries.tsx +1 -1
- package/src/component/1d/SpectraLegends.tsx +3 -3
- package/src/component/1d/Viewer1D.tsx +1 -1
- package/src/component/1d/database/DatabaseSpectrum.tsx +4 -3
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +1 -1
- package/src/component/1d/inset/DraggableInset.tsx +5 -5
- package/src/component/1d/inset/SpectraInsets.tsx +1 -1
- package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraph.tsx +1 -1
- package/src/component/1d/matrix/useMatrix.ts +1 -1
- package/src/component/1d/multiAnalysis/MultiAnalysisRanges.tsx +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTrees.tsx +1 -1
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
- package/src/component/1d/peaks/Peaks.tsx +1 -1
- package/src/component/1d/peaks/PeaksShapes.tsx +1 -1
- package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +7 -4
- package/src/component/1d/ranges/Range.tsx +29 -11
- package/src/component/1d/ranges/Ranges.tsx +51 -13
- package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
- package/src/component/1d/tool/PeakPointer.tsx +1 -1
- package/src/component/1d/tool/XLabelPointer.tsx +1 -1
- package/src/component/1d/utilities/scale.ts +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +2 -20
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +1 -1
- package/src/component/1d-2d/tools/BrushXY.tsx +7 -2
- package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +1 -1
- package/src/component/2d/1d-tracer/Left1DChart.tsx +1 -1
- package/src/component/2d/1d-tracer/Top1DChart.tsx +1 -1
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +1 -1
- package/src/component/2d/BrushTracker2D.tsx +27 -4
- package/src/component/2d/SVGContent2D.tsx +3 -4
- package/src/component/2d/SlicingView.tsx +1 -1
- package/src/component/2d/XAxis.tsx +1 -1
- package/src/component/2d/fid/FidCanvas.tsx +1 -1
- package/src/component/2d/fid/FidContainer.tsx +1 -1
- package/src/component/2d/ft/Contours.tsx +1 -1
- package/src/component/2d/ft/FTContainer.tsx +1 -1
- package/src/component/2d/useTracesSpectra.ts +35 -20
- package/src/component/2d/utilities/extractSpectrumSignals.ts +60 -0
- package/src/component/2d/zones/SignalsGuideLines.tsx +284 -0
- package/src/component/2d/zones/Zone.tsx +43 -63
- package/src/component/2d/zones/Zones.tsx +1 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +89 -2
- package/src/component/EventsTrackers/BrushTracker.tsx +211 -64
- package/src/component/assignment/utilities/filterAssignedIDs.ts +8 -0
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/context/CoreContext.tsx +14 -0
- package/src/component/context/SortSpectraContext.tsx +1 -1
- package/src/component/context/TopicMoleculeContext.tsx +2 -2
- package/src/component/elements/MoleculeSelection.tsx +1 -1
- package/src/component/elements/TabsProvider.tsx +42 -0
- package/src/component/elements/export/ExportContent.tsx +1 -1
- package/src/component/elements/export/ExportManager.tsx +1 -1
- package/src/component/elements/export/ExportOptionsModal.tsx +2 -2
- package/src/component/elements/export/units.ts +2 -2
- package/src/component/elements/export/useExportConfigurer.tsx +1 -1
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +6 -1
- package/src/component/elements/export/utilities/getExportOptions.ts +1 -1
- package/src/component/elements/export/utilities/getSizeInPixel.ts +1 -1
- package/src/component/elements/print/PrintContent.tsx +1 -1
- package/src/component/elements/print/pageSize.ts +1 -1
- package/src/component/header/Header.tsx +2 -2
- package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +20 -21
- package/src/component/highlight/index.tsx +1 -1
- package/src/component/hooks/useActiveSpectrumIntegralsViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumPeaksViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumZonesViewState.ts +1 -1
- package/src/component/hooks/useCanvasContext.ts +15 -0
- package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +1 -1
- package/src/component/hooks/useExport.tsx +6 -4
- package/src/component/hooks/useFilter.ts +1 -1
- package/src/component/hooks/usePanelPreferences.ts +2 -2
- package/src/component/hooks/usePeaksLabelSettings.ts +1 -1
- package/src/component/hooks/useResizerStatus.ts +1 -1
- package/src/component/hooks/useSaveSettings.tsx +1 -1
- package/src/component/hooks/useSpectraPerNucleus.ts +1 -1
- package/src/component/hooks/useSpectrum.ts +2 -27
- package/src/component/hooks/useSpectrumWithDataSource.ts +36 -0
- package/src/component/hooks/useTempSpectrum.ts +2 -15
- package/src/component/hooks/useToolsFunctions.ts +1 -1
- package/src/component/hooks/useWorkspaceAction.ts +1 -1
- package/src/component/loader/useLoadFiles.ts +4 -2
- package/src/component/main/InnerNMRium.tsx +69 -56
- package/src/component/main/InnerNMRiumContents.tsx +1 -1
- package/src/component/main/NMRium.tsx +3 -1
- package/src/component/main/NMRiumStateProvider.tsx +8 -4
- package/src/component/main/NMRiumViewerWrapper.tsx +5 -1
- package/src/component/main/index.ts +0 -2
- package/src/component/main/types.ts +3 -3
- package/src/component/modal/ExportAsJcampModal.tsx +1 -1
- package/src/component/modal/LoadJCAMPModal.tsx +3 -2
- package/src/component/modal/MoleculeStructureEditorModal.tsx +13 -9
- package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
- package/src/component/modal/changeSum/ChangeSumModalContents.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +52 -58
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +3 -2
- package/src/component/modal/editRange/forms/components/InfoBlock.tsx +4 -2
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +4 -2
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +6 -15
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +3 -1
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +5 -2
- package/src/component/modal/setting/GeneralSettings.tsx +1 -1
- package/src/component/modal/setting/WorkspaceItem.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +3 -3
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +5 -11
- package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +2 -2
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +6 -3
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +3 -3
- package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +5 -4
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +1 -1
- package/src/component/modal/setting/settingsValidation.ts +2 -2
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +3 -3
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +1 -1
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +15 -23
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -26
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +5 -5
- package/src/component/panels/MoleculesPanel/Utilities.ts +63 -29
- package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +193 -194
- package/src/component/panels/Panels.tsx +72 -34
- package/src/component/panels/PanelsBar.tsx +1 -1
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesPanel.tsx +4 -1
- package/src/component/panels/RangesPanel/RangesTable.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +4 -4
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.tsx +1 -1
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +5 -1
- package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +1 -1
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +3 -3
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/ColorIndicator.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/ShowHideSpectrumButton.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +1 -1
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +5 -1
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.tsx +2 -0
- package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +6 -0
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +1 -1
- package/src/component/panels/accordionItems.tsx +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +60 -22
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +19 -0
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +2 -2
- package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +15 -10
- package/src/component/panels/databasePanel/DatabaseTable.tsx +4 -2
- package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +20 -21
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +4 -1
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +32 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +13 -5
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +0 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +1 -1
- package/src/component/panels/hooks/useGetPanelOptions.ts +1 -1
- package/src/component/panels/hooks/useTogglePanel.ts +7 -4
- package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +9 -7
- package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +1 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +12 -9
- package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +55 -41
- package/src/component/panels/spectrumSimulation/SpectrumSimulation.tsx +8 -7
- package/src/component/reducer/Reducer.ts +5 -5
- package/src/component/reducer/actions/AssignmentsActions.ts +1 -1
- package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
- package/src/component/reducer/actions/DatabaseActions.ts +11 -2
- package/src/component/reducer/actions/DomainActions.ts +5 -5
- package/src/component/reducer/actions/FiltersActions.ts +207 -85
- package/src/component/reducer/actions/InsetActions.ts +13 -7
- package/src/component/reducer/actions/IntegralsActions.ts +1 -1
- package/src/component/reducer/actions/LoadActions.ts +6 -6
- package/src/component/reducer/actions/MoleculeActions.ts +6 -4
- package/src/component/reducer/actions/PeaksActions.ts +4 -4
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +56 -49
- package/src/component/reducer/actions/SpectraActions.ts +7 -7
- package/src/component/reducer/actions/ToolsActions.ts +41 -20
- package/src/component/reducer/actions/ZonesActions.ts +34 -25
- package/src/component/reducer/helper/Zoom1DManager.ts +11 -15
- package/src/component/reducer/helper/ZoomHistoryManager.ts +29 -23
- package/src/component/reducer/helper/setIntegralsViewProperty.ts +1 -1
- package/src/component/reducer/helper/setRangesViewProperty.ts +1 -1
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +3 -3
- package/src/component/reducer/preferences/actions/togglePanel.ts +1 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +5 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
- package/src/component/reducer/preferences/utilities/getActiveWorkspace.ts +1 -1
- package/src/component/reducer/preferences/utilities/getPreferencesByWorkspace.ts +4 -1
- package/src/component/reducer/preferences/utilities/initWorkspace.ts +1 -1
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +1 -1
- package/src/component/toolbar/ToolBar.tsx +18 -10
- package/src/component/toolbar/ToolTypes.ts +1 -1
- package/src/component/useWatchForm.tsx +37 -0
- package/src/component/utility/export.ts +4 -1
- package/src/component/utility/getClosePeak.ts +1 -1
- package/src/component/utility/getSpectraByNucleus.ts +1 -1
- package/src/component/utility/getSpectraObjectPaths.ts +1 -1
- package/src/component/utility/stackOverlappingLabels.ts +92 -0
- package/src/component/workspaces/assignment.ts +1 -1
- package/src/component/workspaces/basic.ts +1 -1
- package/src/component/workspaces/embedded.ts +1 -1
- package/src/component/workspaces/exercise.ts +2 -1
- package/src/component/workspaces/prediction.ts +2 -1
- package/src/component/workspaces/process1D.ts +1 -1
- package/src/component/workspaces/simulation.ts +2 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +2 -1
- package/src/data/PredictionManager.ts +15 -3
- package/src/data/SpectraManager.ts +20 -14
- package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
- package/src/data/data1d/Spectrum1D/get1DColor.ts +1 -1
- package/src/data/data1d/Spectrum1D/get1DDataXY.ts +1 -1
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +4 -1
- package/src/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.ts +1 -1
- package/src/data/data1d/Spectrum1D/integrals/initiateIntegrals.ts +1 -1
- package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/initiatePeaks.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/createRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/initiateRanges.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/resizeRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +1 -1
- package/src/data/data1d/database.ts +1 -1
- package/src/data/data1d/multipleSpectraAnalysis.ts +6 -6
- package/src/data/data2d/Spectrum2D/contours.ts +20 -15
- package/src/data/data2d/Spectrum2D/get2DColor.ts +10 -3
- package/src/data/data2d/Spectrum2D/getSlice.ts +1 -1
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +4 -1
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +9 -1
- package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
- package/src/data/molecules/Molecule.ts +2 -2
- package/src/data/molecules/MoleculeManager.ts +7 -5
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -1
- package/src/data/utilities/FindUtilities.ts +1 -1
- package/src/data/utilities/convertSpectraListToObject.ts +1 -1
- package/src/data/utilities/getCustomColor.ts +2 -2
- package/src/versionInfo.ts +1 -1
- package/lib/component/2d/zones/IndicationLines.d.ts +0 -7
- package/lib/component/2d/zones/IndicationLines.d.ts.map +0 -1
- package/lib/component/2d/zones/IndicationLines.js +0 -50
- package/lib/component/2d/zones/IndicationLines.js.map +0 -1
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts +0 -3
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts.map +0 -1
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.js +0 -4
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.js.map +0 -1
- package/src/component/2d/zones/IndicationLines.tsx +0 -94
- package/src/component/assignment/utilities/filterForIDsWithAssignment.ts +0 -10
|
@@ -1,13 +1,8 @@
|
|
|
1
|
+
import type { Spectrum, Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
|
|
1
2
|
import type { NmrData1D, NmrData2DFt } from 'cheminfo-types';
|
|
2
3
|
import type { Draft } from 'immer';
|
|
3
4
|
import { current } from 'immer';
|
|
4
5
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
5
|
-
import type {
|
|
6
|
-
ActiveSpectrum,
|
|
7
|
-
Spectrum,
|
|
8
|
-
Spectrum1D,
|
|
9
|
-
Spectrum2D,
|
|
10
|
-
} from 'nmr-load-save';
|
|
11
6
|
import {
|
|
12
7
|
getBaselineZonesByDietrich,
|
|
13
8
|
Filters1DManager,
|
|
@@ -23,6 +18,8 @@ import type {
|
|
|
23
18
|
FilterDomainUpdateRules,
|
|
24
19
|
MatrixOptions,
|
|
25
20
|
Filter2DEntry,
|
|
21
|
+
Filter2DOptions,
|
|
22
|
+
Filter1DOptions,
|
|
26
23
|
} from 'nmr-processing';
|
|
27
24
|
|
|
28
25
|
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
@@ -106,7 +103,11 @@ type ApodizationDimensionTwoFilterAction = ActionType<
|
|
|
106
103
|
>;
|
|
107
104
|
type ApodizationFilterLiveAction = ActionType<
|
|
108
105
|
'CALCULATE_APODIZATION_FILTER',
|
|
109
|
-
{
|
|
106
|
+
{
|
|
107
|
+
options: Apodization1DOptions;
|
|
108
|
+
livePreview: boolean;
|
|
109
|
+
tempRollback?: boolean;
|
|
110
|
+
}
|
|
110
111
|
>;
|
|
111
112
|
type ApodizationDimensionOneFilterLiveAction = ActionType<
|
|
112
113
|
'CALCULATE_APODIZATION_DIMENSION_ONE_FILTER',
|
|
@@ -178,7 +179,11 @@ type DeleteSpectraFilterAction = ActionType<
|
|
|
178
179
|
>;
|
|
179
180
|
type SetFilterSnapshotAction = ActionType<
|
|
180
181
|
'SET_FILTER_SNAPSHOT',
|
|
181
|
-
{
|
|
182
|
+
{
|
|
183
|
+
filter: { name: string; id: string };
|
|
184
|
+
tempRollback: boolean;
|
|
185
|
+
triggerSource?: 'none' | 'processedToggle';
|
|
186
|
+
}
|
|
182
187
|
>;
|
|
183
188
|
type ExclusionZoneFilterAction = ActionType<
|
|
184
189
|
'APPLY_EXCLUSION_ZONE',
|
|
@@ -276,13 +281,80 @@ function getFilterUpdateDomainRules(
|
|
|
276
281
|
return filterDomainUpdateRules || defaultRule;
|
|
277
282
|
}
|
|
278
283
|
|
|
284
|
+
interface SpectrumByObjectOptions {
|
|
285
|
+
target?: 'current';
|
|
286
|
+
spectrum: Spectrum | null;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
interface ActiveSpectrumOptions {
|
|
290
|
+
target: 'active';
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
interface SpectrumByIndexOptions {
|
|
294
|
+
target?: 'index';
|
|
295
|
+
index: number;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
interface SpectrumByIdOptions {
|
|
299
|
+
target?: 'id';
|
|
300
|
+
id: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
type SpectrumOptions =
|
|
304
|
+
| SpectrumByObjectOptions
|
|
305
|
+
| ActiveSpectrumOptions
|
|
306
|
+
| SpectrumByIndexOptions
|
|
307
|
+
| SpectrumByIdOptions;
|
|
308
|
+
|
|
309
|
+
function findSpectrum(
|
|
310
|
+
draft: Draft<State> | State,
|
|
311
|
+
options: SpectrumOptions,
|
|
312
|
+
): { index: number; spectrum: Spectrum } | null {
|
|
313
|
+
const { target } = options;
|
|
314
|
+
const spectra = current(draft).data;
|
|
315
|
+
if (target === 'active') {
|
|
316
|
+
const activeSpectrum = getActiveSpectrum(draft);
|
|
317
|
+
|
|
318
|
+
if (!activeSpectrum) return null;
|
|
319
|
+
const { index } = activeSpectrum;
|
|
320
|
+
return { index, spectrum: structuredClone(spectra[index]) };
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (target === 'current') {
|
|
324
|
+
const { spectrum } = options;
|
|
325
|
+
|
|
326
|
+
if (!spectrum) return null;
|
|
327
|
+
|
|
328
|
+
const index = spectra.findIndex((datum) => datum.id === spectrum.id);
|
|
329
|
+
return { index, spectrum: structuredClone(spectrum) };
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
if (target === 'id') {
|
|
333
|
+
const { id } = options;
|
|
334
|
+
const index = spectra.findIndex((spectrum) => spectrum.id === id);
|
|
335
|
+
|
|
336
|
+
if (index === -1) return null;
|
|
337
|
+
|
|
338
|
+
return { index, spectrum: structuredClone(spectra[index]) };
|
|
339
|
+
}
|
|
340
|
+
if (target === 'index') {
|
|
341
|
+
const { index } = options;
|
|
342
|
+
const spectrum = spectra?.[index];
|
|
343
|
+
if (spectrum) return null;
|
|
344
|
+
|
|
345
|
+
return { index, spectrum: structuredClone(spectrum) };
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
return null;
|
|
349
|
+
}
|
|
350
|
+
|
|
279
351
|
interface RollbackSpectrumByFilterOptions {
|
|
280
352
|
applyFilter?: boolean;
|
|
281
353
|
reset?: boolean;
|
|
282
354
|
searchBy?: 'id' | 'name';
|
|
283
355
|
key?: string | null;
|
|
284
|
-
|
|
285
|
-
|
|
356
|
+
targetSpectrum?: SpectrumOptions;
|
|
357
|
+
tempRollback?: boolean;
|
|
286
358
|
}
|
|
287
359
|
|
|
288
360
|
function getFilterDomain(
|
|
@@ -311,6 +383,30 @@ function getFilterDomain(
|
|
|
311
383
|
return updateDomainOptions;
|
|
312
384
|
}
|
|
313
385
|
|
|
386
|
+
function reapplyFilters(
|
|
387
|
+
spectrum: Spectrum,
|
|
388
|
+
inputFilters?: Array<Filter1DOptions | Filter2DOptions>,
|
|
389
|
+
) {
|
|
390
|
+
if (isSpectrum1D(spectrum)) {
|
|
391
|
+
const filters = inputFilters as Filter1DOptions[];
|
|
392
|
+
Filters1DManager.reapplyFilters(spectrum, { filters });
|
|
393
|
+
} else {
|
|
394
|
+
const filters = inputFilters as Filter2DOptions[];
|
|
395
|
+
Filters2DManager.reapplyFilters(spectrum, { filters });
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
function executeFilter(
|
|
399
|
+
spectrum: Spectrum,
|
|
400
|
+
filter: Filter1DOptions | Filter2DOptions,
|
|
401
|
+
) {
|
|
402
|
+
const { name, value } = filter;
|
|
403
|
+
if (isSpectrum1D(spectrum)) {
|
|
404
|
+
Filters1D[name].apply(spectrum, value);
|
|
405
|
+
} else {
|
|
406
|
+
Filters2D[name].apply(spectrum, value);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
314
410
|
function rollbackSpectrumByFilter(
|
|
315
411
|
draft: Draft<State>,
|
|
316
412
|
options?: RollbackSpectrumByFilterOptions,
|
|
@@ -320,102 +416,104 @@ function rollbackSpectrumByFilter(
|
|
|
320
416
|
searchBy = 'id',
|
|
321
417
|
reset = false,
|
|
322
418
|
key,
|
|
323
|
-
|
|
324
|
-
|
|
419
|
+
targetSpectrum = { target: 'active' },
|
|
420
|
+
tempRollback,
|
|
325
421
|
} = options || {};
|
|
326
422
|
|
|
327
|
-
const
|
|
423
|
+
const currentSpectrum = findSpectrum(draft, targetSpectrum);
|
|
424
|
+
|
|
328
425
|
let updateDomainOptions: Partial<FilterDomainUpdateRules> = {
|
|
329
426
|
updateXDomain: false,
|
|
330
427
|
updateYDomain: false,
|
|
331
428
|
};
|
|
332
429
|
let previousIsFid = false;
|
|
333
430
|
let currentIsFid = false;
|
|
431
|
+
const toolData = draft.toolOptions.data;
|
|
432
|
+
if (currentSpectrum) {
|
|
433
|
+
const { index } = currentSpectrum;
|
|
434
|
+
let { spectrum } = currentSpectrum;
|
|
435
|
+
previousIsFid = isFid1DSpectrum(spectrum) || isFid2DSpectrum(spectrum);
|
|
436
|
+
const filterIndex = spectrum.filters.findIndex((f) => f[searchBy] === key);
|
|
437
|
+
if (filterIndex === -1 || reset) {
|
|
438
|
+
if (draft.tempData) {
|
|
439
|
+
reapplyFilters(spectrum);
|
|
440
|
+
}
|
|
441
|
+
//if the filter is not exists, create a clone of the current data
|
|
442
|
+
draft.tempData = structuredClone(current(draft).data);
|
|
443
|
+
draft.tempData[index] = spectrum;
|
|
444
|
+
spectrum = structuredClone(spectrum);
|
|
334
445
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
446
|
+
if (tempRollback) {
|
|
447
|
+
reapplyFilters(spectrum);
|
|
448
|
+
}
|
|
449
|
+
draft.data[index] = spectrum;
|
|
450
|
+
}
|
|
340
451
|
|
|
341
452
|
if (filterIndex !== -1 && !reset) {
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
: datum.filters.length - 1;
|
|
453
|
+
const activeFilterIndex = toolData.activeFilterID
|
|
454
|
+
? spectrum.filters.findIndex((f) => f.id === toolData.activeFilterID)
|
|
455
|
+
: spectrum.filters.length - 1;
|
|
346
456
|
//set active filter
|
|
347
|
-
|
|
348
|
-
datum.filters?.[filterIndex]?.id || null;
|
|
457
|
+
toolData.activeFilterID = spectrum.filters?.[filterIndex]?.id || null;
|
|
349
458
|
|
|
350
|
-
const filters: any[] =
|
|
459
|
+
const filters: any[] = spectrum.filters.slice(0, filterIndex);
|
|
351
460
|
|
|
352
|
-
updateDomainOptions = getFilterDomain(
|
|
461
|
+
updateDomainOptions = getFilterDomain(spectrum, {
|
|
353
462
|
startIndex: Math.min(activeFilterIndex, filterIndex),
|
|
354
463
|
lastIndex: Math.max(activeFilterIndex, filterIndex),
|
|
355
464
|
});
|
|
356
465
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
466
|
+
reapplyFilters(spectrum, filters);
|
|
467
|
+
|
|
468
|
+
draft.tempData = current(draft).data.slice();
|
|
469
|
+
draft.tempData[index] = spectrum;
|
|
362
470
|
|
|
363
|
-
draft.tempData = current(draft).data;
|
|
364
471
|
// apply the current Filters
|
|
365
472
|
if (applyFilter) {
|
|
366
|
-
|
|
367
|
-
if (datum.info.dimension === 1) {
|
|
368
|
-
Filters1D[name].apply(datum, value);
|
|
369
|
-
} else {
|
|
370
|
-
Filters2D[name].apply(datum, value);
|
|
371
|
-
}
|
|
473
|
+
executeFilter(spectrum, spectrum.filters[filterIndex]);
|
|
372
474
|
}
|
|
373
475
|
|
|
374
|
-
|
|
476
|
+
spectrum = structuredClone(spectrum);
|
|
375
477
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
draft.toolOptions.selectedTool = 'zoom';
|
|
478
|
+
if (tempRollback) {
|
|
479
|
+
reapplyFilters(spectrum);
|
|
480
|
+
updateDomainOptions = getFilterDomain(spectrum, {
|
|
481
|
+
startIndex: Math.min(activeFilterIndex, filterIndex),
|
|
482
|
+
lastIndex: spectrum.filters.length - 1,
|
|
483
|
+
});
|
|
383
484
|
}
|
|
384
|
-
}
|
|
385
485
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}
|
|
486
|
+
draft.data[index] = spectrum;
|
|
487
|
+
|
|
488
|
+
currentIsFid = isFid1DSpectrum(spectrum) || isFid2DSpectrum(spectrum);
|
|
489
|
+
|
|
490
|
+
// Update the X and Y domains when switching from FT to FID spectrum,
|
|
491
|
+
if (!previousIsFid && currentIsFid) {
|
|
492
|
+
updateDomainOptions = { updateXDomain: true, updateYDomain: true };
|
|
393
493
|
}
|
|
394
|
-
//if the filter is not exists, create a clone of the current data
|
|
395
|
-
draft.tempData = current(draft).data;
|
|
396
494
|
}
|
|
397
495
|
|
|
398
496
|
// re-implement all filters and rest all view property that related to filters
|
|
399
497
|
if (reset) {
|
|
400
|
-
if (filterIndex !== -1 &&
|
|
401
|
-
updateDomainOptions = getFilterDomain(
|
|
498
|
+
if (filterIndex !== -1 && spectrum.filters.length > 0) {
|
|
499
|
+
updateDomainOptions = getFilterDomain(spectrum, {
|
|
402
500
|
startIndex: filterIndex,
|
|
403
|
-
lastIndex:
|
|
501
|
+
lastIndex: spectrum.filters.length - 1,
|
|
404
502
|
});
|
|
405
|
-
} else if (
|
|
503
|
+
} else if (toolData.activeFilterID) {
|
|
406
504
|
updateDomainOptions = { updateXDomain: true, updateYDomain: true };
|
|
407
505
|
} else {
|
|
408
506
|
updateDomainOptions = { updateXDomain: false, updateYDomain: false };
|
|
409
507
|
}
|
|
410
508
|
|
|
411
|
-
|
|
509
|
+
toolData.activeFilterID = null;
|
|
412
510
|
draft.tempData = null;
|
|
413
511
|
|
|
414
512
|
const {
|
|
415
513
|
toolOptions: { data },
|
|
416
514
|
} = getInitialState();
|
|
417
515
|
draft.toolOptions.data = data;
|
|
418
|
-
currentIsFid = isFid1DSpectrum(
|
|
516
|
+
currentIsFid = isFid1DSpectrum(spectrum) || isFid2DSpectrum(spectrum);
|
|
419
517
|
}
|
|
420
518
|
}
|
|
421
519
|
setDomain(draft, updateDomainOptions);
|
|
@@ -428,15 +526,15 @@ function rollbackSpectrumByFilter(
|
|
|
428
526
|
export interface RollbackSpectrumOptions {
|
|
429
527
|
filterKey?: string;
|
|
430
528
|
reset?: boolean;
|
|
529
|
+
tempRollback?: boolean;
|
|
431
530
|
}
|
|
432
531
|
|
|
433
532
|
function rollbackSpectrum(
|
|
434
533
|
draft: Draft<State>,
|
|
435
534
|
options: RollbackSpectrumOptions,
|
|
436
535
|
) {
|
|
437
|
-
const { filterKey, reset = false } = options;
|
|
536
|
+
const { filterKey, reset = false, tempRollback = false } = options;
|
|
438
537
|
//return back the spectra data to point of time before applying a specific filter
|
|
439
|
-
|
|
440
538
|
const applyFilter = !filterKey
|
|
441
539
|
? true
|
|
442
540
|
: [
|
|
@@ -458,6 +556,7 @@ function rollbackSpectrum(
|
|
|
458
556
|
key: filterKey,
|
|
459
557
|
applyFilter,
|
|
460
558
|
reset,
|
|
559
|
+
tempRollback,
|
|
461
560
|
});
|
|
462
561
|
|
|
463
562
|
afterRollback(draft, filterKey);
|
|
@@ -667,23 +766,25 @@ function handleShiftSpectrumAlongXAxis(
|
|
|
667
766
|
const options = action.payload;
|
|
668
767
|
|
|
669
768
|
const index = activeSpectrum?.index;
|
|
670
|
-
const
|
|
769
|
+
const isOneDimensionSpectrum = isSpectrum1D(draft.data[index]);
|
|
770
|
+
const isOneDimensionShiftFilter = isOneDimensionShift(options);
|
|
671
771
|
|
|
672
|
-
if (
|
|
772
|
+
if (isOneDimensionShiftFilter && isOneDimensionSpectrum) {
|
|
673
773
|
const { shift } = options;
|
|
674
774
|
rollbackSpectrumByFilter(draft, {
|
|
675
775
|
key: 'shiftX',
|
|
676
776
|
searchBy: 'name',
|
|
677
777
|
applyFilter: false,
|
|
678
778
|
});
|
|
679
|
-
|
|
779
|
+
|
|
780
|
+
Filters1DManager.applyFilters(draft.data[index] as Spectrum1D, [
|
|
680
781
|
{ name: 'shiftX', value: { shift } },
|
|
681
782
|
]);
|
|
682
783
|
|
|
683
784
|
updateView(draft, shiftX.domainUpdateRules);
|
|
684
785
|
}
|
|
685
786
|
|
|
686
|
-
if (!
|
|
787
|
+
if (!isOneDimensionShiftFilter && !isOneDimensionSpectrum) {
|
|
687
788
|
const { shiftX, shiftY } = options;
|
|
688
789
|
|
|
689
790
|
if (shiftX) {
|
|
@@ -692,7 +793,7 @@ function handleShiftSpectrumAlongXAxis(
|
|
|
692
793
|
searchBy: 'name',
|
|
693
794
|
applyFilter: false,
|
|
694
795
|
});
|
|
695
|
-
Filters2DManager.applyFilters(
|
|
796
|
+
Filters2DManager.applyFilters(draft.data[index] as Spectrum2D, [
|
|
696
797
|
{ name: 'shift2DX', value: { shift: shiftX } },
|
|
697
798
|
]);
|
|
698
799
|
updateView(draft, shift2DX.domainUpdateRules);
|
|
@@ -704,7 +805,7 @@ function handleShiftSpectrumAlongXAxis(
|
|
|
704
805
|
searchBy: 'name',
|
|
705
806
|
applyFilter: false,
|
|
706
807
|
});
|
|
707
|
-
Filters2DManager.applyFilters(
|
|
808
|
+
Filters2DManager.applyFilters(draft.data[index] as Spectrum2D, [
|
|
708
809
|
{ name: 'shift2DY', value: { shift: shiftY } },
|
|
709
810
|
]);
|
|
710
811
|
|
|
@@ -920,24 +1021,38 @@ function handleCalculateApodizationFilter(
|
|
|
920
1021
|
}
|
|
921
1022
|
|
|
922
1023
|
const index = activeSpectrum.index;
|
|
923
|
-
const { livePreview, options } = action.payload;
|
|
1024
|
+
const { livePreview, options, tempRollback } = action.payload;
|
|
1025
|
+
|
|
924
1026
|
if (livePreview) {
|
|
925
1027
|
const {
|
|
926
1028
|
data: { x, re, im },
|
|
927
1029
|
info,
|
|
928
1030
|
} = draft.tempData[index];
|
|
929
1031
|
|
|
930
|
-
const _data = { data: { x, re, im }, info } as Spectrum1D;
|
|
931
|
-
|
|
932
|
-
apodization.apply(_data, options);
|
|
933
|
-
const { im: newIm, re: newRe } = _data.data;
|
|
934
1032
|
const datum = draft.data[index];
|
|
935
1033
|
|
|
936
1034
|
if (!isSpectrum1D(datum)) {
|
|
937
1035
|
return;
|
|
938
1036
|
}
|
|
939
|
-
|
|
940
|
-
|
|
1037
|
+
|
|
1038
|
+
if (!tempRollback) {
|
|
1039
|
+
const _data = { data: { x, re, im }, info } as Spectrum1D;
|
|
1040
|
+
|
|
1041
|
+
apodization.apply(_data, options);
|
|
1042
|
+
const { im: newIm, re: newRe } = _data.data;
|
|
1043
|
+
|
|
1044
|
+
datum.data.im = newIm;
|
|
1045
|
+
datum.data.re = newRe;
|
|
1046
|
+
} else {
|
|
1047
|
+
const spectrum = structuredClone(current(draft).tempData[index]);
|
|
1048
|
+
Filters1DManager.applyFilters(spectrum, [
|
|
1049
|
+
{
|
|
1050
|
+
name: 'apodization',
|
|
1051
|
+
value: action.payload.options,
|
|
1052
|
+
},
|
|
1053
|
+
]);
|
|
1054
|
+
draft.data[index] = spectrum;
|
|
1055
|
+
}
|
|
941
1056
|
} else {
|
|
942
1057
|
disableLivePreview(draft, apodization.name);
|
|
943
1058
|
}
|
|
@@ -1477,12 +1592,12 @@ function deleteFilter(datum: Spectrum, id?: string) {
|
|
|
1477
1592
|
if (!id) {
|
|
1478
1593
|
datum.filters = filters.filter((filter) =>
|
|
1479
1594
|
nonRemovableFilters.has(filter.name),
|
|
1480
|
-
) as
|
|
1595
|
+
) as Filter1DEntry[] | Filter2DEntry[];
|
|
1481
1596
|
} else {
|
|
1482
1597
|
removedFilter = datum.filters.find((filter) => filter.id === id);
|
|
1483
|
-
datum.filters = filters.filter(
|
|
1484
|
-
|
|
1485
|
-
|
|
1598
|
+
datum.filters = filters.filter((filter) => filter.id !== id) as
|
|
1599
|
+
| Filter1DEntry[]
|
|
1600
|
+
| Filter2DEntry[];
|
|
1486
1601
|
}
|
|
1487
1602
|
|
|
1488
1603
|
// do not reprocess the filters when the deleted filter is inactive
|
|
@@ -1551,16 +1666,23 @@ function handleSetFilterSnapshotHandler(
|
|
|
1551
1666
|
draft: Draft<State>,
|
|
1552
1667
|
action: SetFilterSnapshotAction,
|
|
1553
1668
|
) {
|
|
1554
|
-
const {
|
|
1669
|
+
const {
|
|
1670
|
+
filter: { name: filterKey, id },
|
|
1671
|
+
tempRollback,
|
|
1672
|
+
triggerSource = 'none',
|
|
1673
|
+
} = action.payload;
|
|
1674
|
+
|
|
1675
|
+
if (triggerSource === 'processedToggle') {
|
|
1676
|
+
return rollbackSpectrum(draft, { filterKey, tempRollback });
|
|
1677
|
+
}
|
|
1555
1678
|
|
|
1556
1679
|
const reset = draft.toolOptions.data.activeFilterID === id;
|
|
1557
1680
|
if (Tools?.[filterKey]?.isFilter) {
|
|
1558
|
-
activateTool(draft, { toolId: filterKey as Tool, reset });
|
|
1681
|
+
activateTool(draft, { toolId: filterKey as Tool, reset, tempRollback });
|
|
1559
1682
|
} else {
|
|
1560
1683
|
draft.toolOptions.selectedOptionPanel = null;
|
|
1561
1684
|
draft.toolOptions.selectedTool = 'zoom';
|
|
1562
|
-
|
|
1563
|
-
rollbackSpectrum(draft, { filterKey, reset });
|
|
1685
|
+
rollbackSpectrum(draft, { filterKey, reset, tempRollback });
|
|
1564
1686
|
}
|
|
1565
1687
|
}
|
|
1566
1688
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { scaleLinear, zoomIdentity } from 'd3';
|
|
2
|
-
import type { Draft } from 'immer';
|
|
3
1
|
import type {
|
|
4
2
|
IntegralsViewState,
|
|
5
3
|
PeaksViewState,
|
|
6
4
|
RangesViewState,
|
|
7
|
-
} from '
|
|
5
|
+
} from '@zakodium/nmrium-core';
|
|
6
|
+
import { scaleLinear, zoomIdentity } from 'd3';
|
|
7
|
+
import type { Draft } from 'immer';
|
|
8
8
|
|
|
9
9
|
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
10
10
|
import { insetMargin } from '../../1d/inset/InsetProvider.js';
|
|
@@ -261,8 +261,9 @@ function zoomWithScroll(draft: Draft<State>, options: ZoomWithScroll1DOptions) {
|
|
|
261
261
|
|
|
262
262
|
const { originDomain, mode } = draft;
|
|
263
263
|
const scaleX = getXScale(inset, { baseSize, mode });
|
|
264
|
+
const { invertScroll, deltaX, deltaY } = zoomOptions;
|
|
264
265
|
|
|
265
|
-
const scaleRatio = toScaleRatio(
|
|
266
|
+
const scaleRatio = toScaleRatio({ delta: deltaY || deltaX, invertScroll });
|
|
266
267
|
|
|
267
268
|
const { x } = zoomOptions;
|
|
268
269
|
const domain = zoomIdentity
|
|
@@ -280,7 +281,7 @@ function handleInsetZoom(draft: Draft<State>, action: ZoomInsetAction) {
|
|
|
280
281
|
const {
|
|
281
282
|
toolOptions: { selectedTool },
|
|
282
283
|
} = draft;
|
|
283
|
-
const { altKey, shiftKey } = options;
|
|
284
|
+
const { altKey, shiftKey, deltaX, deltaY, invertScroll } = options;
|
|
284
285
|
const inset = getInset(draft, insetKey);
|
|
285
286
|
|
|
286
287
|
if (!inset) return;
|
|
@@ -294,7 +295,7 @@ function handleInsetZoom(draft: Draft<State>, action: ZoomInsetAction) {
|
|
|
294
295
|
if (altKey) {
|
|
295
296
|
// rescale the integral in ranges and integrals
|
|
296
297
|
const { view } = inset;
|
|
297
|
-
const scaleRatio = toScaleRatio(
|
|
298
|
+
const scaleRatio = toScaleRatio({ delta: deltaY | deltaX, invertScroll });
|
|
298
299
|
|
|
299
300
|
if (selectedTool === 'rangePicking') {
|
|
300
301
|
view.ranges.integralsScaleRatio *= scaleRatio;
|
|
@@ -359,10 +360,15 @@ function handleInsetZoomOut(draft: Draft<State>, action: ZoomOutInsetAction) {
|
|
|
359
360
|
case ZOOM_TYPES.VERTICAL:
|
|
360
361
|
setZoom(draft, { scale: 0.8, inset });
|
|
361
362
|
break;
|
|
362
|
-
case ZOOM_TYPES.
|
|
363
|
+
case ZOOM_TYPES.BIDIRECTIONAL: {
|
|
363
364
|
const zoomValue = pop();
|
|
364
365
|
if (zoomValue) {
|
|
365
366
|
inset.xDomain = zoomValue.xDomain;
|
|
367
|
+
draft.yDomain = zoomValue.yDomain;
|
|
368
|
+
const ids = Object.keys(draft.yDomains);
|
|
369
|
+
for (const id of ids) {
|
|
370
|
+
draft.yDomains[id] = zoomValue.yDomain;
|
|
371
|
+
}
|
|
366
372
|
} else {
|
|
367
373
|
inset.xDomain = originXDomain;
|
|
368
374
|
setZoom(draft, { scale: 0.8, inset });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { IntegralsViewState, Spectrum1D } from '@zakodium/nmrium-core';
|
|
1
2
|
import type { Draft } from 'immer';
|
|
2
3
|
import { original } from 'immer';
|
|
3
4
|
import { xyIntegration } from 'ml-spectra-processing';
|
|
4
|
-
import type { IntegralsViewState, Spectrum1D } from 'nmr-load-save';
|
|
5
5
|
import type { Integral } from 'nmr-processing';
|
|
6
6
|
|
|
7
7
|
import type {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
NmriumState,
|
|
3
|
+
SpectraColors,
|
|
4
|
+
Spectrum,
|
|
5
|
+
ViewState,
|
|
6
|
+
} from '@zakodium/nmrium-core';
|
|
1
7
|
import type { Draft } from 'immer';
|
|
2
8
|
import { produce } from 'immer';
|
|
3
9
|
import lodashMerge from 'lodash/merge.js';
|
|
4
10
|
import lodashMergeWith from 'lodash/mergeWith.js';
|
|
5
11
|
import type { CorrelationData } from 'nmr-correlation';
|
|
6
12
|
import { buildCorrelationData } from 'nmr-correlation';
|
|
7
|
-
import type {
|
|
8
|
-
NmriumState,
|
|
9
|
-
SpectraColors,
|
|
10
|
-
Spectrum,
|
|
11
|
-
ViewState,
|
|
12
|
-
} from 'nmr-load-save';
|
|
13
13
|
import type { ParseResult } from 'papaparse';
|
|
14
14
|
|
|
15
15
|
import { initiateDatum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Logger } from 'cheminfo-types';
|
|
2
2
|
import type { FifoLogger } from 'fifo-logger';
|
|
3
3
|
import type { Draft } from 'immer';
|
|
4
|
-
import
|
|
4
|
+
import { Molecule } from 'openchemlib';
|
|
5
5
|
import type { TopicMolecule } from 'openchemlib-utils';
|
|
6
6
|
import { nbLabileH, getAtoms } from 'openchemlib-utils';
|
|
7
7
|
|
|
@@ -30,6 +30,7 @@ import { deepReplaceDiaIDs } from './utilities/deepReplaceDiaIDs.js';
|
|
|
30
30
|
|
|
31
31
|
interface AddMoleculeProps {
|
|
32
32
|
molfile: string;
|
|
33
|
+
id?: string;
|
|
33
34
|
floatMoleculeOnSave?: boolean;
|
|
34
35
|
}
|
|
35
36
|
type AddMoleculeAction = ActionType<'ADD_MOLECULE', AddMoleculeProps>;
|
|
@@ -78,9 +79,9 @@ export type MoleculeActions =
|
|
|
78
79
|
| ChangeMoleculeLabelAction;
|
|
79
80
|
|
|
80
81
|
function addMolecule(draft: Draft<State>, props: AddMoleculeProps) {
|
|
81
|
-
const { molfile, floatMoleculeOnSave } = props;
|
|
82
|
+
const { molfile, id, floatMoleculeOnSave } = props;
|
|
82
83
|
const isEmpty = draft.molecules.length === 0;
|
|
83
|
-
MoleculeManager.addMolfile(draft.molecules, molfile);
|
|
84
|
+
MoleculeManager.addMolfile(draft.molecules, molfile, id);
|
|
84
85
|
|
|
85
86
|
/**
|
|
86
87
|
* if it's the first creation of a molecule after the molecules list was empty,
|
|
@@ -231,7 +232,7 @@ function checkPredictions(
|
|
|
231
232
|
) {
|
|
232
233
|
const { spectra } = inputOptions;
|
|
233
234
|
const missing2DPrediction: string[] = [];
|
|
234
|
-
const molecule =
|
|
235
|
+
const molecule = Molecule.fromMolfile(molfile);
|
|
235
236
|
const { atoms } = getAtoms(molecule);
|
|
236
237
|
for (const [experiment, required] of Object.entries(spectra)) {
|
|
237
238
|
if (!required || predictedSpectra[experiment]) continue;
|
|
@@ -409,6 +410,7 @@ function handleChangeMoleculeLabel(
|
|
|
409
410
|
}
|
|
410
411
|
|
|
411
412
|
export {
|
|
413
|
+
addMolecule,
|
|
412
414
|
handleAddMolecule,
|
|
413
415
|
handleAddMolecules,
|
|
414
416
|
handleSetMolecule,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Draft } from 'immer';
|
|
2
|
-
import { original } from 'immer';
|
|
3
|
-
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
4
1
|
import type {
|
|
5
2
|
Spectrum1D,
|
|
6
3
|
PeaksViewState,
|
|
7
4
|
ViewState,
|
|
8
5
|
RangesViewState,
|
|
9
|
-
} from '
|
|
6
|
+
} from '@zakodium/nmrium-core';
|
|
7
|
+
import type { Draft } from 'immer';
|
|
8
|
+
import { original } from 'immer';
|
|
9
|
+
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
10
10
|
import type { Peak1D, OptionsXYAutoPeaksPicking } from 'nmr-processing';
|
|
11
11
|
import { mapPeaks } from 'nmr-processing';
|
|
12
12
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
1
2
|
import type { Draft } from 'immer';
|
|
2
|
-
import type { Spectrum1D } from 'nmr-load-save';
|
|
3
3
|
|
|
4
4
|
import groupByInfoKey from '../../utility/GroupByInfoKey.js';
|
|
5
5
|
import nucleusToString from '../../utility/nucleusToString.js';
|