nmrium 0.62.1 → 0.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/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 +142 -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 +8 -8
- 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/Spectrum1D/ranges/resurrectSpectrum.js +21 -3
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.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 +280 -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 +16 -15
- 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 +28 -4
- 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,13 @@
|
|
|
1
|
-
import type { Draft } from 'immer';
|
|
2
|
-
import { original } from 'immer';
|
|
3
|
-
import cloneDeep from 'lodash/cloneDeep.js';
|
|
4
|
-
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
5
1
|
import type {
|
|
6
2
|
BoundingBox,
|
|
7
3
|
RangesViewState,
|
|
8
4
|
Spectrum,
|
|
9
5
|
Spectrum1D,
|
|
10
|
-
} from '
|
|
6
|
+
} from '@zakodium/nmrium-core';
|
|
7
|
+
import type { Draft } from 'immer';
|
|
8
|
+
import { original } from 'immer';
|
|
9
|
+
import cloneDeep from 'lodash/cloneDeep.js';
|
|
10
|
+
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
11
11
|
import type { Signal1D, Range } from 'nmr-processing';
|
|
12
12
|
import { Filters1DManager } from 'nmr-processing';
|
|
13
13
|
|
|
@@ -48,6 +48,7 @@ import { setDomain } from './DomainActions.js';
|
|
|
48
48
|
import { rollbackSpectrumByFilter } from './FiltersActions.js';
|
|
49
49
|
import { toggleDisplayingPeaks } from './PeaksActions.js';
|
|
50
50
|
import { resetSelectedTool } from './ToolsActions.js';
|
|
51
|
+
import type { TargetAssignKeys } from '../../panels/MoleculesPanel/Utilities.js';
|
|
51
52
|
|
|
52
53
|
type AutoRangesDetectionAction = ActionType<
|
|
53
54
|
'AUTO_RANGES_DETECTION',
|
|
@@ -89,12 +90,12 @@ interface UnlinkRangeProps {
|
|
|
89
90
|
signalIndex?: number;
|
|
90
91
|
}
|
|
91
92
|
type UnlinkRangeAction = ActionType<'UNLINK_RANGE', UnlinkRangeProps>;
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
|
|
94
|
+
type AssignRangeAction = ActionType<
|
|
95
|
+
'ASSIGN_RANGE',
|
|
94
96
|
{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
} & Pick<Range, 'diaIDs' | 'nbAtoms'>
|
|
97
|
+
keys: TargetAssignKeys;
|
|
98
|
+
} & Required<Pick<Range, 'diaIDs' | 'nbAtoms'>>
|
|
98
99
|
>;
|
|
99
100
|
type ResizeRangeAction = ActionType<
|
|
100
101
|
'RESIZE_RANGE',
|
|
@@ -145,7 +146,7 @@ type DeleteRangePeakAction = ActionType<
|
|
|
145
146
|
>;
|
|
146
147
|
type ChangeRangeAssignmentLabelAction = ActionType<
|
|
147
148
|
'CHANGE_RANGE_ASSIGNMENT_LABEL',
|
|
148
|
-
{
|
|
149
|
+
{ rangeId: string; value: string; spectrumId?: string }
|
|
149
150
|
>;
|
|
150
151
|
|
|
151
152
|
type ChangeRangesViewFloatingBoxBoundingAction = ActionType<
|
|
@@ -167,7 +168,7 @@ export type RangesActions =
|
|
|
167
168
|
| SaveEditedRangeAction
|
|
168
169
|
| DeleteSignalAction
|
|
169
170
|
| UnlinkRangeAction
|
|
170
|
-
|
|
|
171
|
+
| AssignRangeAction
|
|
171
172
|
| ResizeRangeAction
|
|
172
173
|
| ChangeRangeSumAction
|
|
173
174
|
| AddRangeAction
|
|
@@ -431,26 +432,39 @@ function handleUnlinkRange(draft: Draft<State>, action: UnlinkRangeAction) {
|
|
|
431
432
|
}
|
|
432
433
|
|
|
433
434
|
//action
|
|
434
|
-
function
|
|
435
|
+
function handleAssignRange(draft: Draft<State>, action: AssignRangeAction) {
|
|
435
436
|
const activeSpectrum = getActiveSpectrum(draft);
|
|
436
|
-
if (activeSpectrum?.id)
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
437
|
+
if (!activeSpectrum?.id) return;
|
|
438
|
+
const { index } = activeSpectrum;
|
|
439
|
+
const spectrum = draft.data[index];
|
|
440
|
+
|
|
441
|
+
if (!isSpectrum1D(spectrum)) return;
|
|
442
|
+
|
|
443
|
+
const { keys, diaIDs, nbAtoms } = action.payload;
|
|
444
|
+
|
|
445
|
+
if (keys.length === 1) {
|
|
446
|
+
const [{ index }] = keys;
|
|
447
|
+
const range = spectrum.ranges.values[index];
|
|
448
|
+
|
|
449
|
+
if (!range) return;
|
|
450
|
+
|
|
451
|
+
range.diaIDs = diaIDs;
|
|
452
|
+
range.nbAtoms = nbAtoms + (range.nbAtoms || 0);
|
|
453
|
+
} else {
|
|
454
|
+
const [{ index: rangeIndex }, { index: signalIndex }] = keys;
|
|
455
|
+
const range = spectrum.ranges.values[rangeIndex];
|
|
456
|
+
|
|
457
|
+
if (!range) return;
|
|
458
|
+
|
|
459
|
+
const signal = range.signals[signalIndex];
|
|
460
|
+
|
|
461
|
+
if (!signal) return;
|
|
462
|
+
|
|
463
|
+
signal.diaIDs = diaIDs;
|
|
464
|
+
signal.nbAtoms = nbAtoms + (signal.nbAtoms || 0);
|
|
453
465
|
}
|
|
466
|
+
|
|
467
|
+
// _range.nbAtoms = getNbAtoms(_range);
|
|
454
468
|
}
|
|
455
469
|
|
|
456
470
|
//action
|
|
@@ -658,29 +672,22 @@ function handleChangeRangeAssignmentLabel(
|
|
|
658
672
|
draft: Draft<State>,
|
|
659
673
|
action: ChangeRangeAssignmentLabelAction,
|
|
660
674
|
) {
|
|
661
|
-
const {
|
|
662
|
-
const
|
|
675
|
+
const { rangeId, value, spectrumId } = action.payload;
|
|
676
|
+
const spectrum = getSpectrum(draft, spectrumId);
|
|
663
677
|
|
|
664
|
-
if (
|
|
665
|
-
const { index } = activeSpectrum;
|
|
666
|
-
const spectrum = draft.data[index];
|
|
678
|
+
if (!spectrum || !isSpectrum1D(spectrum)) return;
|
|
667
679
|
|
|
668
|
-
|
|
669
|
-
return;
|
|
670
|
-
}
|
|
680
|
+
initializeRangeViewObject(draft, spectrum.id);
|
|
671
681
|
|
|
672
|
-
|
|
682
|
+
const rangesView = draft.view.ranges[spectrum.id];
|
|
673
683
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
rangesView.showAssignmentsLabels = true;
|
|
678
|
-
}
|
|
684
|
+
if (!rangesView.showAssignmentsLabels) {
|
|
685
|
+
rangesView.showAssignmentsLabels = true;
|
|
686
|
+
}
|
|
679
687
|
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
}
|
|
688
|
+
const range = spectrum.ranges.values.find((range) => range.id === rangeId);
|
|
689
|
+
if (range) {
|
|
690
|
+
range.assignment = value;
|
|
684
691
|
}
|
|
685
692
|
}
|
|
686
693
|
|
|
@@ -715,7 +722,7 @@ export {
|
|
|
715
722
|
handleSaveEditedRange,
|
|
716
723
|
handleUnlinkRange,
|
|
717
724
|
unlinkRange,
|
|
718
|
-
|
|
725
|
+
handleAssignRange,
|
|
719
726
|
handleChangeRangesSumFlag,
|
|
720
727
|
handleUpdateRange,
|
|
721
728
|
handleAutoSpectraRangesDetection,
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import type { NmrData2DFid, NmrData2DFt } from 'cheminfo-types';
|
|
2
|
-
import dlv from 'dlv';
|
|
3
|
-
import type { Draft } from 'immer';
|
|
4
|
-
import { original } from 'immer';
|
|
5
1
|
import type {
|
|
6
2
|
Color2D,
|
|
7
3
|
Display1D,
|
|
@@ -10,7 +6,11 @@ import type {
|
|
|
10
6
|
Spectrum,
|
|
11
7
|
Spectrum1D,
|
|
12
8
|
Spectrum2D,
|
|
13
|
-
} from '
|
|
9
|
+
} from '@zakodium/nmrium-core';
|
|
10
|
+
import type { NmrData2DFid, NmrData2DFt } from 'cheminfo-types';
|
|
11
|
+
import dlv from 'dlv';
|
|
12
|
+
import type { Draft } from 'immer';
|
|
13
|
+
import { original } from 'immer';
|
|
14
14
|
import type { NMRRange } from 'nmr-processing';
|
|
15
15
|
import { Filters1DManager } from 'nmr-processing';
|
|
16
16
|
|
|
@@ -411,9 +411,9 @@ function handleChangeActiveSpectrum(
|
|
|
411
411
|
*/
|
|
412
412
|
|
|
413
413
|
if (toolOptions.data.activeFilterID) {
|
|
414
|
-
const previousActiveSpectrum = spectra?.length === 1 ? spectra[0] : null;
|
|
415
414
|
rollbackSpectrumByFilter(draft, {
|
|
416
|
-
|
|
415
|
+
targetSpectrum:
|
|
416
|
+
spectra?.length === 1 ? { index: spectra[0].index } : undefined,
|
|
417
417
|
reset: true,
|
|
418
418
|
});
|
|
419
419
|
} else if (refreshDomain) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Spectrum, Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
|
|
1
2
|
import { zoomIdentity } from 'd3';
|
|
2
3
|
import type { Draft } from 'immer';
|
|
3
|
-
import type { Spectrum, Spectrum1D, Spectrum2D } from 'nmr-load-save';
|
|
4
4
|
import type { BaselineCorrectionZone } from 'nmr-processing';
|
|
5
5
|
|
|
6
6
|
import { contoursManager } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
@@ -58,6 +58,7 @@ interface ResetToolOptions {
|
|
|
58
58
|
resetFiltersOptionPanel?: boolean;
|
|
59
59
|
reset?: boolean;
|
|
60
60
|
toolId?: string;
|
|
61
|
+
tempRollback?: boolean;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
interface SetActiveTabOptions {
|
|
@@ -124,6 +125,7 @@ function resetTool(draft: Draft<State>, options: ResetToolOptions = {}) {
|
|
|
124
125
|
defaultToolId = 'zoom',
|
|
125
126
|
reset,
|
|
126
127
|
toolId,
|
|
128
|
+
tempRollback,
|
|
127
129
|
} = options;
|
|
128
130
|
// reset temp range
|
|
129
131
|
if (resetFiltersOptionPanel) {
|
|
@@ -133,10 +135,10 @@ function resetTool(draft: Draft<State>, options: ResetToolOptions = {}) {
|
|
|
133
135
|
draft.toolOptions.selectedTool = defaultToolId;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
|
-
let rollOptions: RollbackSpectrumOptions = { reset: true };
|
|
138
|
+
let rollOptions: RollbackSpectrumOptions = { reset: true, tempRollback };
|
|
137
139
|
|
|
138
140
|
if (toolId && Tools?.[toolId]?.isFilter) {
|
|
139
|
-
rollOptions = { filterKey: toolId, reset };
|
|
141
|
+
rollOptions = { filterKey: toolId, reset, tempRollback };
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
rollbackSpectrum(draft, rollOptions);
|
|
@@ -157,18 +159,24 @@ function resetSelectedTool(draft: Draft<State>) {
|
|
|
157
159
|
interface ActivateToolOptions {
|
|
158
160
|
toolId: Tool;
|
|
159
161
|
reset?: boolean;
|
|
162
|
+
tempRollback?: boolean;
|
|
160
163
|
}
|
|
161
164
|
|
|
162
165
|
//utility
|
|
163
166
|
function activateTool(draft: Draft<State>, options: ActivateToolOptions) {
|
|
164
|
-
const { toolId, reset = false } = options;
|
|
167
|
+
const { toolId, reset = false, tempRollback } = options;
|
|
165
168
|
|
|
166
169
|
if (draft?.data.length === 0) {
|
|
167
170
|
return;
|
|
168
171
|
}
|
|
169
172
|
|
|
170
173
|
if (!toolId || toolId !== draft.toolOptions.selectedTool || reset) {
|
|
171
|
-
resetTool(draft, {
|
|
174
|
+
resetTool(draft, {
|
|
175
|
+
resetToDefaultTool: false,
|
|
176
|
+
toolId,
|
|
177
|
+
reset,
|
|
178
|
+
tempRollback,
|
|
179
|
+
});
|
|
172
180
|
}
|
|
173
181
|
|
|
174
182
|
if (!toolId || reset) {
|
|
@@ -310,6 +318,7 @@ function zoomWithScroll(
|
|
|
310
318
|
options: ZoomWithScroll1DOptions | ZoomWithScroll2DOptions,
|
|
311
319
|
) {
|
|
312
320
|
const { zoomOptions, direction = 'Horizontal', dimension } = options;
|
|
321
|
+
const { x, deltaX, invertScroll } = zoomOptions;
|
|
313
322
|
|
|
314
323
|
let scaleX;
|
|
315
324
|
let scaleY;
|
|
@@ -320,11 +329,9 @@ function zoomWithScroll(
|
|
|
320
329
|
scaleX = get2DXScale(draft);
|
|
321
330
|
scaleY = get2DYScale(draft);
|
|
322
331
|
}
|
|
323
|
-
|
|
324
|
-
const scaleRatio = toScaleRatio(zoomOptions, { invert: true });
|
|
332
|
+
const scaleRatio = toScaleRatio({ delta: deltaX, invertScroll });
|
|
325
333
|
|
|
326
334
|
if (direction === 'Both' || direction === 'Horizontal') {
|
|
327
|
-
const { x } = zoomOptions;
|
|
328
335
|
const domain = zoomIdentity
|
|
329
336
|
.translate(x, 0)
|
|
330
337
|
.scale(scaleRatio)
|
|
@@ -366,8 +373,10 @@ function handleZoom(draft: Draft<State>, action: ZoomAction) {
|
|
|
366
373
|
yDomains,
|
|
367
374
|
toolOptions: { selectedTool },
|
|
368
375
|
} = draft;
|
|
369
|
-
const
|
|
370
|
-
|
|
376
|
+
const { altKey, shiftKey, invertScroll, deltaY, isBidirectionalZoom } =
|
|
377
|
+
options;
|
|
378
|
+
|
|
379
|
+
const scaleRatio = toScaleRatio({ delta: deltaY, invertScroll });
|
|
371
380
|
|
|
372
381
|
switch (displayerMode) {
|
|
373
382
|
case '2D': {
|
|
@@ -380,7 +389,7 @@ function handleZoom(draft: Draft<State>, action: ZoomAction) {
|
|
|
380
389
|
}
|
|
381
390
|
|
|
382
391
|
//zoom in/out in 2d
|
|
383
|
-
if (shiftKey) {
|
|
392
|
+
if (shiftKey || isBidirectionalZoom) {
|
|
384
393
|
zoomWithScroll(draft, {
|
|
385
394
|
zoomOptions: options,
|
|
386
395
|
dimension: '2D',
|
|
@@ -407,9 +416,11 @@ function handleZoom(draft: Draft<State>, action: ZoomAction) {
|
|
|
407
416
|
const activeSpectra = getActiveSpectra(draft);
|
|
408
417
|
|
|
409
418
|
// Horizontal zoom in/out 1d spectra by mouse wheel
|
|
410
|
-
if (shiftKey) {
|
|
419
|
+
if (shiftKey || isBidirectionalZoom) {
|
|
411
420
|
zoomWithScroll(draft, { zoomOptions: options, dimension: '1D' });
|
|
412
|
-
|
|
421
|
+
if (!isBidirectionalZoom) {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
413
424
|
}
|
|
414
425
|
|
|
415
426
|
// rescale the integral in ranges and integrals
|
|
@@ -439,10 +450,14 @@ function handleZoom(draft: Draft<State>, action: ZoomAction) {
|
|
|
439
450
|
const keys = !activeSpectra
|
|
440
451
|
? Object.keys(yDomains)
|
|
441
452
|
: activeSpectra.map(({ id }) => id);
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
453
|
+
|
|
454
|
+
const yArray = keys.flatMap((key) => {
|
|
455
|
+
const updatedDomain = wheelZoom(options, yDomains[key]);
|
|
456
|
+
yDomains[key] = updatedDomain;
|
|
457
|
+
return updatedDomain;
|
|
458
|
+
});
|
|
459
|
+
|
|
460
|
+
draft.yDomain = [Math.min(...yArray), Math.max(...yArray)];
|
|
446
461
|
|
|
447
462
|
break;
|
|
448
463
|
}
|
|
@@ -472,16 +487,22 @@ function zoomOut(draft: Draft<State>, action: ZoomOutAction) {
|
|
|
472
487
|
case ZOOM_TYPES.VERTICAL:
|
|
473
488
|
setZoom(draft, { scale: 0.8 });
|
|
474
489
|
break;
|
|
475
|
-
case ZOOM_TYPES.
|
|
490
|
+
case ZOOM_TYPES.BIDIRECTIONAL: {
|
|
476
491
|
const zoomValue = zoomHistory.pop();
|
|
477
492
|
if (zoomValue) {
|
|
478
493
|
draft.xDomain = zoomValue.xDomain;
|
|
494
|
+
draft.yDomain = zoomValue.yDomain;
|
|
495
|
+
const ids = Object.keys(draft.yDomains);
|
|
496
|
+
for (const id of ids) {
|
|
497
|
+
draft.yDomains[id] = zoomValue.yDomain;
|
|
498
|
+
}
|
|
479
499
|
} else {
|
|
480
500
|
draft.xDomain = xDomain;
|
|
481
501
|
setZoom(draft, { scale: 0.8 });
|
|
482
502
|
}
|
|
483
503
|
break;
|
|
484
504
|
}
|
|
505
|
+
|
|
485
506
|
default: {
|
|
486
507
|
draft.xDomain = xDomain;
|
|
487
508
|
setZoom(draft, { scale: 0.8 });
|
|
@@ -667,7 +688,7 @@ function handleSetActiveTab(draft: Draft<State>, action: SetActiveTabAction) {
|
|
|
667
688
|
}
|
|
668
689
|
|
|
669
690
|
function levelChangeHandler(draft: Draft<State>, action: LevelChangeAction) {
|
|
670
|
-
const { deltaY, altKey } = action.payload.options;
|
|
691
|
+
const { deltaY, altKey, invertScroll } = action.payload.options;
|
|
671
692
|
const {
|
|
672
693
|
data,
|
|
673
694
|
view: {
|
|
@@ -690,7 +711,7 @@ function levelChangeHandler(draft: Draft<State>, action: LevelChangeAction) {
|
|
|
690
711
|
try {
|
|
691
712
|
for (const spectrum of spectra as Spectrum2D[]) {
|
|
692
713
|
const zoom = contoursManager(spectrum);
|
|
693
|
-
zoom.wheel(deltaY, altKey);
|
|
714
|
+
zoom.wheel(deltaY, { altKey, invertScroll });
|
|
694
715
|
}
|
|
695
716
|
} catch (error) {
|
|
696
717
|
// TODO: handle error.
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Spectrum,
|
|
3
|
+
Spectrum2D,
|
|
4
|
+
ZonesViewState,
|
|
5
|
+
} from '@zakodium/nmrium-core';
|
|
1
6
|
import type { FromTo, NmrData2DFt } from 'cheminfo-types';
|
|
2
7
|
import type { Draft } from 'immer';
|
|
3
8
|
import { original } from 'immer';
|
|
4
9
|
import lodashCloneDeep from 'lodash/cloneDeep.js';
|
|
5
10
|
import { setPathLength } from 'nmr-correlation';
|
|
6
|
-
import type { Spectrum, Spectrum2D, ZonesViewState } from 'nmr-load-save';
|
|
7
11
|
import type { Filter2DEntry, Signal2D, Zone } from 'nmr-processing';
|
|
8
12
|
import { Filters2DManager } from 'nmr-processing';
|
|
9
13
|
|
|
@@ -19,9 +23,9 @@ import {
|
|
|
19
23
|
} from '../../../data/data2d/Spectrum2D/index.js';
|
|
20
24
|
import type { DetectionZonesOptions } from '../../../data/data2d/Spectrum2D/zones/getDetectionZones.js';
|
|
21
25
|
import { unlink } from '../../../data/utilities/ZoneUtilities.js';
|
|
22
|
-
import { isNumber } from '../../../data/utilities/isNumber.js';
|
|
23
26
|
import type { Axis } from '../../assignment/AssignmentsContext.js';
|
|
24
27
|
import { defaultZonesViewState } from '../../hooks/useActiveSpectrumZonesViewState.js';
|
|
28
|
+
import type { TargetAssignKeys } from '../../panels/MoleculesPanel/Utilities.js';
|
|
25
29
|
import type { ZoneData } from '../../panels/ZonesPanel/hooks/useMapZones.js';
|
|
26
30
|
import type { FilterType } from '../../utility/filterType.js';
|
|
27
31
|
import type { State } from '../Reducer.js';
|
|
@@ -70,13 +74,12 @@ type SetSignalPathLengthAction = ActionType<
|
|
|
70
74
|
}
|
|
71
75
|
>;
|
|
72
76
|
|
|
73
|
-
type
|
|
74
|
-
'
|
|
77
|
+
type AssignZoneAction = ActionType<
|
|
78
|
+
'ASSIGN_ZONE',
|
|
75
79
|
{
|
|
76
|
-
|
|
80
|
+
keys: TargetAssignKeys;
|
|
77
81
|
axis?: Axis;
|
|
78
|
-
|
|
79
|
-
} & Pick<Zone['x'], 'diaIDs' | 'nbAtoms'>
|
|
82
|
+
} & Required<Pick<Zone['x'], 'diaIDs' | 'nbAtoms'>>
|
|
80
83
|
>;
|
|
81
84
|
type SaveEditedZoneAction = ActionType<
|
|
82
85
|
'SAVE_EDITED_ZONE',
|
|
@@ -119,7 +122,7 @@ export type ZonesActions =
|
|
|
119
122
|
| DeleteZoneAction
|
|
120
123
|
| DeleteSignal2DAction
|
|
121
124
|
| SetSignalPathLengthAction
|
|
122
|
-
|
|
|
125
|
+
| AssignZoneAction
|
|
123
126
|
| SaveEditedZoneAction
|
|
124
127
|
| UnlinkZoneAction
|
|
125
128
|
| ToggleZonesViewAction
|
|
@@ -386,26 +389,32 @@ function handleUnlinkZone(draft: Draft<State>, action: UnlinkZoneAction) {
|
|
|
386
389
|
}
|
|
387
390
|
|
|
388
391
|
//action
|
|
389
|
-
function
|
|
392
|
+
function handleAssignZone(draft: Draft<State>, action: AssignZoneAction) {
|
|
390
393
|
const state = original(draft) as State;
|
|
391
394
|
|
|
392
395
|
const activeSpectrum = getActiveSpectrum(state);
|
|
393
|
-
const {
|
|
396
|
+
const { keys, diaIDs, axis, nbAtoms } = action.payload;
|
|
394
397
|
|
|
395
|
-
if (activeSpectrum
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
398
|
+
if (!activeSpectrum || !axis) return;
|
|
399
|
+
|
|
400
|
+
const { index } = activeSpectrum;
|
|
401
|
+
const spectrum = draft.data[index];
|
|
402
|
+
|
|
403
|
+
if (!isSpectrum2D(spectrum)) return;
|
|
404
|
+
|
|
405
|
+
const [{ index: zoneIndex }] = keys;
|
|
406
|
+
|
|
407
|
+
const zone = spectrum.zones.values[zoneIndex];
|
|
408
|
+
if (keys.length === 1) {
|
|
409
|
+
const zoneByAxis = zone[axis];
|
|
410
|
+
zoneByAxis.diaIDs = diaIDs;
|
|
411
|
+
zoneByAxis.nbAtoms = nbAtoms + (zoneByAxis?.nbAtoms || 0);
|
|
412
|
+
} else {
|
|
413
|
+
const [, { index: signalIndex }] = keys;
|
|
414
|
+
|
|
415
|
+
const signalByAxis = zone.signals[signalIndex][axis];
|
|
416
|
+
signalByAxis.diaIDs = diaIDs;
|
|
417
|
+
signalByAxis.nbAtoms = nbAtoms + (signalByAxis?.nbAtoms || 0);
|
|
409
418
|
}
|
|
410
419
|
}
|
|
411
420
|
|
|
@@ -532,7 +541,7 @@ export {
|
|
|
532
541
|
handleUnlinkZone,
|
|
533
542
|
unlinkZone,
|
|
534
543
|
handleSaveEditedZone,
|
|
535
|
-
|
|
544
|
+
handleAssignZone,
|
|
536
545
|
handleSetSignalPathLength,
|
|
537
546
|
handleChangeZonesFactor,
|
|
538
547
|
handleAutoSpectraZonesDetection,
|
|
@@ -9,21 +9,22 @@ import { getActiveSpectrum } from './getActiveSpectrum.js';
|
|
|
9
9
|
export const ZOOM_TYPES = {
|
|
10
10
|
HORIZONTAL: 'HORIZONTAL',
|
|
11
11
|
VERTICAL: 'VERTICAL',
|
|
12
|
-
|
|
12
|
+
BIDIRECTIONAL: 'BIDIRECTIONAL',
|
|
13
13
|
FULL: 'FULL',
|
|
14
14
|
} as const;
|
|
15
15
|
|
|
16
16
|
export type ZoomType = keyof typeof ZOOM_TYPES;
|
|
17
17
|
|
|
18
18
|
function toScaleRatio(
|
|
19
|
-
options:
|
|
19
|
+
options: { invertScroll?: boolean; delta: number },
|
|
20
20
|
zoomOptions: ScaleRationOptions = {},
|
|
21
21
|
) {
|
|
22
|
-
const {
|
|
22
|
+
const { invertScroll = false } = options;
|
|
23
|
+
const { factor = 1 } = zoomOptions;
|
|
23
24
|
|
|
24
|
-
const
|
|
25
|
-
Math.abs(options.
|
|
26
|
-
const delta =
|
|
25
|
+
const normalizeDelta =
|
|
26
|
+
Math.abs(options.delta) < 100 ? options.delta * 100 : options.delta;
|
|
27
|
+
const delta = normalizeDelta * (invertScroll ? -0.001 : 0.001) * factor;
|
|
27
28
|
const ratio = delta < 0 ? -1 / (delta - 1) : 1 + delta;
|
|
28
29
|
|
|
29
30
|
return ratio;
|
|
@@ -31,14 +32,14 @@ function toScaleRatio(
|
|
|
31
32
|
|
|
32
33
|
interface ScaleRationOptions {
|
|
33
34
|
factor?: number;
|
|
34
|
-
invert?: boolean;
|
|
35
35
|
}
|
|
36
36
|
function wheelZoom(
|
|
37
37
|
options: ZoomOptions,
|
|
38
38
|
domain: number[],
|
|
39
39
|
scaleOptions: ScaleRationOptions = {},
|
|
40
40
|
): number[] {
|
|
41
|
-
const
|
|
41
|
+
const { deltaY, invertScroll } = options;
|
|
42
|
+
const ratio = toScaleRatio({ delta: deltaY, invertScroll }, scaleOptions);
|
|
42
43
|
const [min, max] = domain;
|
|
43
44
|
return [min * ratio, max * ratio];
|
|
44
45
|
}
|
|
@@ -67,14 +68,9 @@ function setZoom(
|
|
|
67
68
|
const maxPoint = Math.max(Math.abs(max), Math.abs(min));
|
|
68
69
|
const scalePoint = maxPoint === Math.abs(max) ? 0 : min;
|
|
69
70
|
const t = zoomIdentity
|
|
70
|
-
.translate(
|
|
71
|
-
0,
|
|
72
|
-
Math.sign(scalePoint) >= 0
|
|
73
|
-
? _scale(scalePoint)
|
|
74
|
-
: _scale(scalePoint),
|
|
75
|
-
)
|
|
71
|
+
.translate(0, _scale(scalePoint))
|
|
76
72
|
.scale(scale)
|
|
77
|
-
.translate(0, -_scale(
|
|
73
|
+
.translate(0, -_scale(scalePoint));
|
|
78
74
|
const newYDomain = t.rescaleY(_scale).domain();
|
|
79
75
|
return [id, newYDomain];
|
|
80
76
|
}),
|
|
@@ -69,34 +69,40 @@ export function addToBrushHistory(
|
|
|
69
69
|
options: { axis?: BrushAxis | null; xDomain: number[]; yDomain: number[] },
|
|
70
70
|
) {
|
|
71
71
|
const { displayerMode } = draft;
|
|
72
|
-
const { axis
|
|
72
|
+
const { axis } = options;
|
|
73
|
+
let { xDomain, yDomain } = options;
|
|
74
|
+
|
|
73
75
|
const brushHistory = zoomHistoryManager(
|
|
74
76
|
draft.zoom.history,
|
|
75
77
|
|
|
76
78
|
draft.view.spectra.activeTab,
|
|
77
79
|
);
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
80
|
+
switch (axis) {
|
|
81
|
+
case 'XY':
|
|
82
|
+
draft.xDomain = xDomain;
|
|
83
|
+
draft.yDomain = yDomain;
|
|
84
|
+
break;
|
|
85
|
+
case 'X':
|
|
86
|
+
draft.xDomain = xDomain;
|
|
87
|
+
yDomain = draft.yDomain;
|
|
88
|
+
break;
|
|
89
|
+
case 'Y':
|
|
90
|
+
draft.yDomain = yDomain;
|
|
91
|
+
xDomain = draft.xDomain;
|
|
92
|
+
|
|
93
|
+
break;
|
|
94
|
+
default:
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (displayerMode === '1D' && axis && ['XY', 'Y'].includes(axis)) {
|
|
99
|
+
const ids = Object.keys(draft.yDomains);
|
|
100
|
+
for (const id of ids) {
|
|
101
|
+
draft.yDomains[id] = yDomain;
|
|
100
102
|
}
|
|
101
103
|
}
|
|
104
|
+
|
|
105
|
+
if (brushHistory) {
|
|
106
|
+
brushHistory.push({ xDomain, yDomain });
|
|
107
|
+
}
|
|
102
108
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { IntegralsViewState } from '@zakodium/nmrium-core';
|
|
1
2
|
import type { Draft } from 'immer';
|
|
2
|
-
import type { IntegralsViewState } from 'nmr-load-save';
|
|
3
3
|
|
|
4
4
|
import { defaultIntegralsViewState } from '../../hooks/useActiveSpectrumIntegralsViewState.js';
|
|
5
5
|
import type { State } from '../Reducer.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { RangesViewState } from '@zakodium/nmrium-core';
|
|
1
2
|
import type { Draft } from 'immer';
|
|
2
|
-
import type { RangesViewState } from 'nmr-load-save';
|
|
3
3
|
|
|
4
4
|
import { defaultRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
5
5
|
import type { State } from '../Reducer.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { MatrixGenerationOptions } from '@zakodium/nmrium-core';
|
|
1
2
|
import type { Draft } from 'immer';
|
|
2
|
-
import type { MatrixGenerationOptions } from 'nmr-load-save';
|
|
3
3
|
import type { MatrixOptions } from 'nmr-processing';
|
|
4
4
|
|
|
5
5
|
import type { ZoomOptions } from '../../../EventsTrackers/BrushTracker.js';
|
|
@@ -148,8 +148,8 @@ function changeMatrixGenerationScale(
|
|
|
148
148
|
const matrixGeneration = getMatrixGenerationPanelOptions(draft, nucleus);
|
|
149
149
|
|
|
150
150
|
if (!matrixGeneration) return;
|
|
151
|
-
|
|
152
|
-
const scaleRatio = toScaleRatio(
|
|
151
|
+
const { deltaY, invertScroll } = zoomOptions;
|
|
152
|
+
const scaleRatio = toScaleRatio({ delta: deltaY, invertScroll });
|
|
153
153
|
|
|
154
154
|
matrixGeneration.scaleRatio *= scaleRatio;
|
|
155
155
|
}
|