nmrium 0.63.2 → 0.65.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/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +20 -5
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +1 -1
- 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/PredictionErrorsNotations.d.ts +2 -0
- package/lib/component/1d/PredictionErrorsNotations.d.ts.map +1 -0
- package/lib/component/1d/PredictionErrorsNotations.js +112 -0
- package/lib/component/1d/PredictionErrorsNotations.js.map +1 -0
- package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +2 -1
- package/lib/component/1d/SVGContent1D.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/integral/IntegralResizable.d.ts +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.d.ts +1 -1
- package/lib/component/1d/integral/IntegralsSeries.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/jCouplingGraph/JsCouplings.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.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/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +2 -4
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +1 -1
- package/lib/component/1d/peaks/Peaks.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 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/Atoms.d.ts +1 -1
- package/lib/component/1d/ranges/Atoms.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +1 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +2 -4
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts +10 -7
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +177 -16
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +15 -4
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/Viewer2D.d.ts.map +1 -1
- package/lib/component/2d/Viewer2D.js +1 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/ft/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.js +3 -4
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +5 -3
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js +3 -3
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/zones/Signal.d.ts +1 -1
- package/lib/component/2d/zones/Signal.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +74 -6
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +5 -0
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +106 -31
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/SVGTable.js +1 -4
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/assignment/AssignmentProvider.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentProvider.js +2 -1
- package/lib/component/assignment/AssignmentProvider.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +5 -2
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +2 -1
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.d.ts.map +1 -1
- package/lib/component/elements/ArrowBox.d.ts +16 -0
- package/lib/component/elements/ArrowBox.d.ts.map +1 -0
- package/lib/component/elements/ArrowBox.js +55 -0
- package/lib/component/elements/ArrowBox.js.map +1 -0
- package/lib/component/elements/DraggableDialog.js +2 -0
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input.js +2 -2
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/Input2.js +2 -2
- package/lib/component/elements/Input2.js.map +1 -1
- package/lib/component/elements/NextPrev.d.ts.map +1 -1
- package/lib/component/elements/NextPrev.js +2 -4
- package/lib/component/elements/NextPrev.js.map +1 -1
- package/lib/component/elements/NumberInput2.js +1 -1
- package/lib/component/elements/NumberInput2.js.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +3 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +6 -5
- package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
- package/lib/component/elements/SVGGroup.js +1 -1
- package/lib/component/elements/SVGGroup.js.map +1 -1
- package/lib/component/elements/Sections.d.ts +1 -0
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +42 -7
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +3 -1
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/pdnd.cjs +12 -0
- package/lib/component/elements/pdnd.cjs.map +1 -0
- package/lib/component/elements/pdnd.d.cts +2 -0
- package/lib/component/elements/pdnd.d.cts.map +1 -0
- package/lib/component/highlight/index.d.ts +2 -2
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +1 -1
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
- package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +2 -0
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts.map +1 -1
- package/lib/component/hooks/useFilter.d.ts +1 -1
- package/lib/component/hooks/useFilter.d.ts.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js +1 -1
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/InnerNMRiumContents.js +6 -3
- package/lib/component/main/InnerNMRiumContents.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -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.js.map +1 -1
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts +1 -1
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts.map +1 -1
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts +1 -1
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts.map +1 -1
- package/lib/component/modal/editRange/utils/mapRange.d.ts +1 -1
- package/lib/component/modal/editRange/utils/mapRange.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +7 -4
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +3 -3
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts +2 -2
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +11 -11
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +21 -15
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +17 -9
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/Panels.d.ts +0 -4
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +8 -14
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/PanelsBar.d.ts.map +1 -1
- package/lib/component/panels/PanelsBar.js +2 -4
- package/lib/component/panels/PanelsBar.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +5 -8
- package/lib/component/panels/RangesPanel/RangesHeader.js.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/TableColumns/SignalDeltaHzColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +4 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +7 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.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 +3 -3
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +15 -17
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.js +4 -3
- package/lib/component/panels/hooks/useTogglePanel.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +2 -2
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts +1 -1
- package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/simulationValidation.js +4 -8
- package/lib/component/panels/spectrumSimulation/simulationValidation.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 +2 -0
- 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/AssignmentsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +10 -5
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +9 -4
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +58 -28
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +1 -5
- 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 +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js +4 -2
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +2 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +1 -1
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +5 -3
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +8 -15
- 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.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +2 -2
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +6 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +44 -37
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +3 -2
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +17 -8
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.d.ts.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -0
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +2 -2
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.js +11 -6
- package/lib/component/reducer/preferences/actions/togglePanel.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.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/workspaces/prediction.js +1 -1
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +1 -0
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +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/generateJGraphData.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +2 -2
- 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/isRangeAssigned.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.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.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +1 -1
- 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/detectSignals.d.ts +30 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +3 -3
- 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 +1 -1
- 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.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.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +19 -12
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +6 -4
- package/lib/data/data2d/Spectrum2D/contours.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/getMissingProjection.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +22 -10
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js.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/matrixGeneration.js +1 -1
- package/lib/data/matrixGeneration.js.map +1 -1
- package/lib/data/types/common/FilterEntry.d.ts +1 -1
- package/lib/data/types/common/FilterEntry.d.ts.map +1 -1
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +1 -1
- package/lib/data/types/data1d/RangeDetectionResult.d.ts.map +1 -1
- package/lib/data/types/data1d/index.js +1 -1
- package/lib/data/types/data1d/index.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/RangeUtilities.d.ts +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +32 -31
- package/src/component/1d/BrushTracker1D.tsx +39 -17
- package/src/component/1d/FloatPublicationString.tsx +2 -2
- package/src/component/1d/FloatingRanges.tsx +4 -4
- package/src/component/1d/PredictionErrorsNotations.tsx +209 -0
- package/src/component/1d/SVGContent1D.tsx +2 -0
- package/src/component/1d/Viewer1D.tsx +1 -1
- package/src/component/1d/integral/IntegralResizable.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/jCouplingGraph/JsCouplings.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTrees.tsx +1 -1
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -6
- package/src/component/1d/peaks/Peaks.tsx +1 -1
- package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +1 -1
- package/src/component/1d/ranges/Atoms.tsx +1 -1
- package/src/component/1d/ranges/Range.tsx +1 -1
- package/src/component/1d/ranges/Ranges.tsx +4 -1
- package/src/component/1d/tool/BaseLineZones.tsx +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +4 -6
- package/src/component/1d-2d/tools/BrushXY.tsx +319 -30
- package/src/component/2d/BrushTracker2D.tsx +18 -4
- package/src/component/2d/Viewer2D.tsx +6 -1
- package/src/component/2d/ft/Contours.tsx +3 -11
- package/src/component/2d/utilities/extractSpectrumSignals.ts +12 -9
- package/src/component/2d/zones/Signal.tsx +1 -1
- package/src/component/2d/zones/SignalCrosshair.tsx +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +108 -12
- package/src/component/2d/zones/Zone.tsx +2 -2
- package/src/component/2d/zones/Zones.tsx +1 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +3 -3
- package/src/component/EventsTrackers/BrushTracker.tsx +124 -30
- package/src/component/SVGTable.tsx +4 -6
- package/src/component/assignment/AssignmentProvider.tsx +2 -1
- package/src/component/assignment/AssignmentsContext.ts +7 -2
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/elements/ArrowBox.tsx +77 -0
- package/src/component/elements/DraggableDialog.tsx +2 -0
- package/src/component/elements/Input.tsx +3 -3
- package/src/component/elements/Input2.tsx +4 -4
- package/src/component/elements/NextPrev.tsx +2 -6
- package/src/component/elements/NumberInput2.tsx +1 -1
- package/src/component/elements/ReactTable/Elements/ReactTableRow.tsx +3 -1
- package/src/component/elements/ReactTable/ReactTable.tsx +6 -7
- package/src/component/elements/SVGGroup.tsx +2 -2
- package/src/component/elements/Sections.tsx +103 -19
- package/src/component/elements/Tab/Tabs.tsx +3 -1
- package/src/component/elements/pdnd.cts +9 -0
- package/src/component/highlight/index.tsx +5 -5
- package/src/component/hooks/useCheckToolsVisibility.ts +1 -1
- package/src/component/hooks/useCombinedRefs.ts +6 -4
- package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
- package/src/component/hooks/useFilter.ts +1 -1
- package/src/component/hooks/useToolsFunctions.ts +1 -1
- package/src/component/main/InnerNMRiumContents.tsx +6 -3
- package/src/component/modal/EditPeakShapeModal.tsx +7 -2
- package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +1 -1
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +1 -1
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +1 -1
- package/src/component/modal/editRange/utils/couplingsToMultiplicity.ts +1 -1
- package/src/component/modal/editRange/utils/mapCouplings.ts +1 -1
- package/src/component/modal/editRange/utils/mapRange.ts +1 -1
- package/src/component/modal/editZone/EditZoneModal.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +12 -7
- package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +3 -3
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +1 -1
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +1 -1
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +22 -19
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +53 -48
- package/src/component/panels/MoleculesPanel/Utilities.ts +1 -1
- package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +29 -8
- package/src/component/panels/Panels.tsx +9 -24
- package/src/component/panels/PanelsBar.tsx +2 -6
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -1
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesHeader.tsx +15 -22
- package/src/component/panels/RangesPanel/RangesPanel.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTable.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.tsx +1 -1
- package/src/component/panels/RangesPanel/hooks/useMapRanges.ts +1 -1
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +11 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
- package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +9 -0
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +14 -4
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +17 -19
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
- package/src/component/panels/hooks/useTogglePanel.ts +4 -3
- package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +2 -2
- package/src/component/panels/spectrumSimulation/simulationValidation.ts +9 -13
- package/src/component/reducer/Reducer.ts +3 -1
- package/src/component/reducer/actions/AssignmentsActions.ts +2 -1
- package/src/component/reducer/actions/DatabaseActions.ts +2 -1
- package/src/component/reducer/actions/DomainActions.ts +11 -7
- package/src/component/reducer/actions/FiltersActions.ts +101 -56
- package/src/component/reducer/actions/InsetActions.ts +1 -5
- package/src/component/reducer/actions/IntegralsActions.ts +2 -2
- package/src/component/reducer/actions/LoadActions.ts +4 -2
- package/src/component/reducer/actions/PeaksActions.ts +5 -4
- package/src/component/reducer/actions/RangesActions.ts +14 -17
- package/src/component/reducer/actions/SpectraActions.ts +1 -1
- package/src/component/reducer/actions/ToolsActions.ts +2 -3
- package/src/component/reducer/actions/ZonesActions.ts +1 -1
- package/src/component/reducer/helper/Zoom1DManager.ts +67 -41
- package/src/component/reducer/helper/ZoomHistoryManager.ts +20 -9
- package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -0
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +2 -2
- package/src/component/reducer/preferences/actions/togglePanel.ts +10 -6
- package/src/component/reducer/preferences/preferencesReducer.ts +12 -2
- package/src/component/toolbar/ToolTypes.ts +1 -1
- package/src/component/workspaces/prediction.ts +1 -1
- package/src/data/PredictionManager.ts +2 -2
- package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
- package/src/data/data1d/Spectrum1D/generateJGraphData.ts +1 -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/isRangeAssigned.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/createRange.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 +3 -2
- package/src/data/data1d/multipleSpectraAnalysis.ts +25 -18
- package/src/data/data2d/Spectrum2D/contours.ts +8 -4
- package/src/data/data2d/Spectrum2D/getMissingProjection.ts +1 -2
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +34 -16
- package/src/data/data2d/Spectrum2D/zones/detectZones.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/detectZonesManual.ts +2 -2
- package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
- package/src/data/matrixGeneration.ts +1 -1
- package/src/data/types/common/FilterEntry.ts +1 -1
- package/src/data/types/data1d/RangeDetectionResult.ts +1 -1
- package/src/data/utilities/FindUtilities.ts +1 -1
- package/src/data/utilities/RangeUtilities.ts +1 -1
- package/src/data/utilities/ZoneUtilities.ts +1 -1
- package/src/index.tsx +3 -0
- package/src/versionInfo.ts +1 -1
|
@@ -218,7 +218,7 @@ function initData(
|
|
|
218
218
|
setData(initialDraft, action.payload);
|
|
219
219
|
setActiveTab(initialDraft, {
|
|
220
220
|
tab: viewState?.spectra?.activeTab || '',
|
|
221
|
-
domainOptions: { domainSpectraScope: 'all' },
|
|
221
|
+
domainOptions: { domainSpectraScope: 'all', isYDomainShared: false },
|
|
222
222
|
});
|
|
223
223
|
initialDraft.width = draft.width;
|
|
224
224
|
initialDraft.height = draft.height;
|
|
@@ -262,7 +262,9 @@ function handleLoadDropFiles(draft: Draft<State>, action: LoadDropFilesAction) {
|
|
|
262
262
|
return initData(draft, action);
|
|
263
263
|
} else {
|
|
264
264
|
setData(draft, payload);
|
|
265
|
-
setActiveTab(draft, {
|
|
265
|
+
setActiveTab(draft, {
|
|
266
|
+
domainOptions: { domainSpectraScope: 'all', isYDomainShared: false },
|
|
267
|
+
});
|
|
266
268
|
changeSpectrumVerticalAlignment(draft, { verticalAlign: 'auto-check' });
|
|
267
269
|
|
|
268
270
|
// set source undefined when dragging and dropping a spectra file to prevent export spectra with the data source.
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
import type { Peak1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type {
|
|
2
|
-
Spectrum1D,
|
|
3
3
|
PeaksViewState,
|
|
4
|
-
ViewState,
|
|
5
4
|
RangesViewState,
|
|
5
|
+
Spectrum1D,
|
|
6
|
+
ViewState,
|
|
6
7
|
} from '@zakodium/nmrium-core';
|
|
7
8
|
import type { Draft } from 'immer';
|
|
8
9
|
import { original } from 'immer';
|
|
9
10
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
10
|
-
import type {
|
|
11
|
+
import type { OptionsXYAutoPeaksPicking } from 'nmr-processing';
|
|
11
12
|
import { mapPeaks } from 'nmr-processing';
|
|
12
13
|
|
|
13
14
|
import {
|
|
14
|
-
getShiftX,
|
|
15
15
|
autoPeakPicking,
|
|
16
|
+
getShiftX,
|
|
16
17
|
optimizePeaks,
|
|
17
18
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
18
19
|
import { defaultPeaksViewState } from '../../hooks/useActiveSpectrumPeaksViewState.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Range, Signal1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type {
|
|
2
3
|
BoundingBox,
|
|
3
4
|
RangesViewState,
|
|
@@ -8,7 +9,6 @@ import type { Draft } from 'immer';
|
|
|
8
9
|
import { original } from 'immer';
|
|
9
10
|
import cloneDeep from 'lodash/cloneDeep.js';
|
|
10
11
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
11
|
-
import type { Signal1D, Range } from 'nmr-processing';
|
|
12
12
|
import { Filters1DManager } from 'nmr-processing';
|
|
13
13
|
|
|
14
14
|
import {
|
|
@@ -24,14 +24,15 @@ import {
|
|
|
24
24
|
setSumOptions,
|
|
25
25
|
} from '../../../data/data1d/Spectrum1D/SumManager.js';
|
|
26
26
|
import {
|
|
27
|
+
changeRangeRelativeValue,
|
|
27
28
|
changeRangeSignal,
|
|
28
29
|
detectRanges,
|
|
29
|
-
updateRangesRelativeValues,
|
|
30
|
-
changeRangeRelativeValue,
|
|
31
30
|
isSpectrum1D,
|
|
31
|
+
updateRangesRelativeValues,
|
|
32
32
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
33
33
|
import type { ChangeRangeRelativeValueProps } from '../../../data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js';
|
|
34
34
|
import { unlink } from '../../../data/utilities/RangeUtilities.js';
|
|
35
|
+
import type { TargetAssignKeys } from '../../panels/MoleculesPanel/Utilities.js';
|
|
35
36
|
import type { RangeData } from '../../panels/RangesPanel/hooks/useMapRanges.js';
|
|
36
37
|
import type { FilterType } from '../../utility/filterType.js';
|
|
37
38
|
import type { State } from '../Reducer.js';
|
|
@@ -48,7 +49,6 @@ import { setDomain } from './DomainActions.js';
|
|
|
48
49
|
import { rollbackSpectrumByFilter } from './FiltersActions.js';
|
|
49
50
|
import { toggleDisplayingPeaks } from './PeaksActions.js';
|
|
50
51
|
import { resetSelectedTool } from './ToolsActions.js';
|
|
51
|
-
import type { TargetAssignKeys } from '../../panels/MoleculesPanel/Utilities.js';
|
|
52
52
|
|
|
53
53
|
type AutoRangesDetectionAction = ActionType<
|
|
54
54
|
'AUTO_RANGES_DETECTION',
|
|
@@ -87,6 +87,7 @@ type DeleteSignalAction = ActionType<'DELETE_1D_SIGNAL', DeleteSignalProps>;
|
|
|
87
87
|
|
|
88
88
|
interface UnlinkRangeProps {
|
|
89
89
|
rangeKey?: string;
|
|
90
|
+
spectrumId?: string; // If not specified, the currently active spectrum will be used by default.
|
|
90
91
|
signalIndex?: number;
|
|
91
92
|
}
|
|
92
93
|
type UnlinkRangeAction = ActionType<'UNLINK_RANGE', UnlinkRangeProps>;
|
|
@@ -95,6 +96,7 @@ type AssignRangeAction = ActionType<
|
|
|
95
96
|
'ASSIGN_RANGE',
|
|
96
97
|
{
|
|
97
98
|
keys: TargetAssignKeys;
|
|
99
|
+
spectrumId?: string;
|
|
98
100
|
} & Required<Pick<Range, 'diaIDs' | 'nbAtoms'>>
|
|
99
101
|
>;
|
|
100
102
|
type ResizeRangeAction = ActionType<
|
|
@@ -191,6 +193,7 @@ function getRangeByIndex(draft: Draft<State>, spectrumIndex, rangeID) {
|
|
|
191
193
|
(range) => range.id === rangeID,
|
|
192
194
|
);
|
|
193
195
|
}
|
|
196
|
+
|
|
194
197
|
function getRange(spectrum: Spectrum1D, rangeID: string) {
|
|
195
198
|
return spectrum.ranges.values.findIndex((range) => range.id === rangeID);
|
|
196
199
|
}
|
|
@@ -399,12 +402,9 @@ function handleDeleteSignal(draft: Draft<State>, action: DeleteSignalAction) {
|
|
|
399
402
|
deleteSignal1D(draft, action.payload);
|
|
400
403
|
}
|
|
401
404
|
|
|
402
|
-
function unlinkRange(draft: Draft<State>, options
|
|
403
|
-
const
|
|
404
|
-
|
|
405
|
-
if (!activeSpectrum) return null;
|
|
406
|
-
const { index } = activeSpectrum;
|
|
407
|
-
const spectrum = draft.data[index];
|
|
405
|
+
function unlinkRange(draft: Draft<State>, options: UnlinkRangeProps = {}) {
|
|
406
|
+
const { spectrumId } = options;
|
|
407
|
+
const spectrum = getSpectrum(draft, spectrumId);
|
|
408
408
|
|
|
409
409
|
if (!isSpectrum1D(spectrum)) return;
|
|
410
410
|
|
|
@@ -412,7 +412,7 @@ function unlinkRange(draft: Draft<State>, options?: UnlinkRangeProps) {
|
|
|
412
412
|
const ranges = spectrum.ranges.values;
|
|
413
413
|
|
|
414
414
|
if (rangeKey) {
|
|
415
|
-
const rangeIndex =
|
|
415
|
+
const rangeIndex = getRange(spectrum, rangeKey);
|
|
416
416
|
const unlinkType = signalIndex === -1 ? 'range' : 'signal';
|
|
417
417
|
ranges[rangeIndex] = unlink(ranges[rangeIndex], {
|
|
418
418
|
unlinkType,
|
|
@@ -433,14 +433,11 @@ function handleUnlinkRange(draft: Draft<State>, action: UnlinkRangeAction) {
|
|
|
433
433
|
|
|
434
434
|
//action
|
|
435
435
|
function handleAssignRange(draft: Draft<State>, action: AssignRangeAction) {
|
|
436
|
-
const
|
|
437
|
-
if (!activeSpectrum?.id) return;
|
|
438
|
-
const { index } = activeSpectrum;
|
|
439
|
-
const spectrum = draft.data[index];
|
|
436
|
+
const { keys, diaIDs, nbAtoms, spectrumId } = action.payload;
|
|
440
437
|
|
|
441
|
-
|
|
438
|
+
const spectrum = getSpectrum(draft, spectrumId);
|
|
442
439
|
|
|
443
|
-
|
|
440
|
+
if (!spectrum || !isSpectrum1D(spectrum)) return;
|
|
444
441
|
|
|
445
442
|
if (keys.length === 1) {
|
|
446
443
|
const [{ index }] = keys;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NMRRange } from '@zakodium/nmr-types';
|
|
1
2
|
import type {
|
|
2
3
|
Color2D,
|
|
3
4
|
Display1D,
|
|
@@ -11,7 +12,6 @@ import type { NmrData2DFid, NmrData2DFt } from 'cheminfo-types';
|
|
|
11
12
|
import dlv from 'dlv';
|
|
12
13
|
import type { Draft } from 'immer';
|
|
13
14
|
import { original } from 'immer';
|
|
14
|
-
import type { NMRRange } from 'nmr-processing';
|
|
15
15
|
import { Filters1DManager } from 'nmr-processing';
|
|
16
16
|
|
|
17
17
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { BaselineCorrectionZone } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum, Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
3
|
import { zoomIdentity } from 'd3';
|
|
3
4
|
import type { Draft } from 'immer';
|
|
4
|
-
import type { BaselineCorrectionZone } from 'nmr-processing';
|
|
5
5
|
|
|
6
6
|
import { contoursManager } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
7
7
|
import { getXScale } from '../../1d/utilities/scale.js';
|
|
@@ -470,11 +470,10 @@ function handleZoom(draft: Draft<State>, action: ZoomAction) {
|
|
|
470
470
|
function zoomOut(draft: Draft<State>, action: ZoomOutAction) {
|
|
471
471
|
if (draft?.data.length > 0) {
|
|
472
472
|
const { zoomType, trackID } = action?.payload || {};
|
|
473
|
-
const { xDomain
|
|
473
|
+
const { xDomain } = draft.originDomain;
|
|
474
474
|
const zoomHistory = zoomHistoryManager(
|
|
475
475
|
draft.zoom.history,
|
|
476
476
|
draft.view.spectra.activeTab,
|
|
477
|
-
{ xDomain, yDomain },
|
|
478
477
|
);
|
|
479
478
|
|
|
480
479
|
if (draft.displayerMode === '1D') {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Filter2DEntry, Signal2D, Zone } from '@zakodium/nmr-types';
|
|
1
2
|
import type {
|
|
2
3
|
Spectrum,
|
|
3
4
|
Spectrum2D,
|
|
@@ -8,7 +9,6 @@ import type { Draft } from 'immer';
|
|
|
8
9
|
import { original } from 'immer';
|
|
9
10
|
import lodashCloneDeep from 'lodash/cloneDeep.js';
|
|
10
11
|
import { setPathLength } from 'nmr-correlation';
|
|
11
|
-
import type { Filter2DEntry, Signal2D, Zone } from 'nmr-processing';
|
|
12
12
|
import { Filters2DManager } from 'nmr-processing';
|
|
13
13
|
|
|
14
14
|
import {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { scaleLinear, zoomIdentity } from 'd3';
|
|
2
1
|
import type { Draft } from 'immer';
|
|
3
2
|
|
|
4
3
|
import type { ZoomOptions } from '../../EventsTrackers/BrushTracker.js';
|
|
@@ -44,6 +43,19 @@ function wheelZoom(
|
|
|
44
43
|
return [min * ratio, max * ratio];
|
|
45
44
|
}
|
|
46
45
|
|
|
46
|
+
function mapSharedDomain(draft: Draft<State>) {
|
|
47
|
+
const {
|
|
48
|
+
originDomain: { yDomain },
|
|
49
|
+
} = draft;
|
|
50
|
+
|
|
51
|
+
const targetDomain = {};
|
|
52
|
+
|
|
53
|
+
for (const spectrumKey of Object.keys(draft.yDomains)) {
|
|
54
|
+
targetDomain[spectrumKey] = yDomain;
|
|
55
|
+
}
|
|
56
|
+
return targetDomain;
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
function setZoom(
|
|
48
60
|
draft: Draft<State>,
|
|
49
61
|
options: {
|
|
@@ -51,49 +63,63 @@ function setZoom(
|
|
|
51
63
|
spectrumID?: string;
|
|
52
64
|
} = {},
|
|
53
65
|
) {
|
|
54
|
-
const {
|
|
66
|
+
const { originDomain, yDomains } = draft;
|
|
55
67
|
const activeSpectrum = getActiveSpectrum(draft);
|
|
56
68
|
const { scale = 1, spectrumID = null } = options;
|
|
57
69
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
70
|
+
const rescaleAllSpectra = activeSpectrum === null && spectrumID === null;
|
|
71
|
+
|
|
72
|
+
if (rescaleAllSpectra) {
|
|
73
|
+
const { shareYDomain, yDomains } = originDomain;
|
|
74
|
+
const targetDomain = shareYDomain ? mapSharedDomain(draft) : yDomains;
|
|
75
|
+
draft.yDomains = rescaleToSameTop(targetDomain, {
|
|
76
|
+
scale,
|
|
77
|
+
useZeroAsPivot: shareYDomain,
|
|
78
|
+
});
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const spectrumId = spectrumID || activeSpectrum?.id;
|
|
83
|
+
|
|
84
|
+
if (!spectrumId) return;
|
|
85
|
+
|
|
86
|
+
const yDomain = rescaleDomain(originDomain.yDomains[spectrumId], { scale });
|
|
87
|
+
|
|
88
|
+
draft.yDomains = {
|
|
89
|
+
...yDomains,
|
|
90
|
+
[spectrumId]: yDomain,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface RescaleOptions {
|
|
95
|
+
scale?: number;
|
|
96
|
+
useZeroAsPivot?: boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function rescaleDomain(domain: number[], options: RescaleOptions = {}) {
|
|
100
|
+
const { scale: externalScale = 0.8, useZeroAsPivot = false } = options;
|
|
101
|
+
const scale = 1 / externalScale;
|
|
102
|
+
|
|
103
|
+
const [min, max] = domain;
|
|
104
|
+
|
|
105
|
+
const pivot = Math.abs(max) > Math.abs(min) || useZeroAsPivot ? 0 : min;
|
|
106
|
+
const distMin = min - pivot;
|
|
107
|
+
const distMax = max - pivot;
|
|
108
|
+
const newMin = distMin * scale;
|
|
109
|
+
const newMax = distMax * scale;
|
|
110
|
+
|
|
111
|
+
return [newMin, newMax];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function rescaleToSameTop(
|
|
115
|
+
yDomains: Record<string, number[]>,
|
|
116
|
+
options: RescaleOptions = {},
|
|
117
|
+
) {
|
|
118
|
+
const newYDomains = {};
|
|
119
|
+
for (const spectrumId of Object.keys(yDomains)) {
|
|
120
|
+
newYDomains[spectrumId] = rescaleDomain(yDomains[spectrumId], options);
|
|
96
121
|
}
|
|
122
|
+
return newYDomains;
|
|
97
123
|
}
|
|
98
124
|
|
|
99
|
-
export { setZoom, wheelZoom, toScaleRatio };
|
|
125
|
+
export { setZoom, wheelZoom, toScaleRatio, rescaleToSameTop };
|
|
@@ -12,6 +12,7 @@ export type ZoomHistory = Record<string, HistoryItem[]>;
|
|
|
12
12
|
interface BaseZoomHistoryManager {
|
|
13
13
|
historyStack: HistoryItem[];
|
|
14
14
|
push: (value: HistoryItem) => void;
|
|
15
|
+
setBase: (value: HistoryItem) => void;
|
|
15
16
|
pop: () => HistoryItem;
|
|
16
17
|
getLast: () => HistoryItem;
|
|
17
18
|
}
|
|
@@ -22,19 +23,19 @@ interface ZoomHistoryManager extends BaseZoomHistoryManager {
|
|
|
22
23
|
export default function zoomHistoryManager(
|
|
23
24
|
zoomHistory: ZoomHistory,
|
|
24
25
|
nucleus: string,
|
|
25
|
-
baseZoom?: HistoryItem,
|
|
26
26
|
): ZoomHistoryManager {
|
|
27
27
|
if (!zoomHistory[nucleus] && !Array.isArray(zoomHistory[nucleus])) {
|
|
28
28
|
zoomHistory[nucleus] = [];
|
|
29
29
|
}
|
|
30
30
|
const history = zoomHistory[nucleus];
|
|
31
31
|
|
|
32
|
+
const setBase = prepareSetBase(history);
|
|
32
33
|
const push = preparePush(history);
|
|
33
|
-
const pop = preparePop(history
|
|
34
|
+
const pop = preparePop(history);
|
|
34
35
|
const getLast = prepareGetLast(history);
|
|
35
36
|
const clear = () => (zoomHistory[nucleus] = []);
|
|
36
37
|
|
|
37
|
-
return { historyStack: history, push, pop, getLast, clear };
|
|
38
|
+
return { historyStack: history, push, pop, getLast, clear, setBase };
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
function preparePush(historyStack) {
|
|
@@ -43,18 +44,26 @@ function preparePush(historyStack) {
|
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
function
|
|
47
|
+
function prepareSetBase(historyStack) {
|
|
48
|
+
return (val: HistoryItem) => {
|
|
49
|
+
if (historyStack.length === 0) {
|
|
50
|
+
historyStack[0] = val;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function popZoomHistory(historyStack) {
|
|
47
56
|
const val = historyStack.pop();
|
|
48
57
|
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
58
|
+
if (historyStack.length === 0) {
|
|
59
|
+
return null;
|
|
51
60
|
}
|
|
52
61
|
|
|
53
62
|
return val ? historyStack.at(-1) : null;
|
|
54
63
|
}
|
|
55
64
|
|
|
56
|
-
export function preparePop(historyStack
|
|
57
|
-
return () => popZoomHistory(historyStack
|
|
65
|
+
export function preparePop(historyStack) {
|
|
66
|
+
return () => popZoomHistory(historyStack);
|
|
58
67
|
}
|
|
59
68
|
|
|
60
69
|
function prepareGetLast(historyStack) {
|
|
@@ -74,9 +83,11 @@ export function addToBrushHistory(
|
|
|
74
83
|
|
|
75
84
|
const brushHistory = zoomHistoryManager(
|
|
76
85
|
draft.zoom.history,
|
|
77
|
-
|
|
78
86
|
draft.view.spectra.activeTab,
|
|
79
87
|
);
|
|
88
|
+
|
|
89
|
+
brushHistory.setBase({ xDomain: draft.xDomain, yDomain: draft.yDomain });
|
|
90
|
+
|
|
80
91
|
switch (axis) {
|
|
81
92
|
case 'XY':
|
|
82
93
|
draft.xDomain = xDomain;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { MatrixOptions } from '@zakodium/nmr-types';
|
|
1
2
|
import type { MatrixGenerationOptions } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Draft } from 'immer';
|
|
3
|
-
import type { MatrixOptions } from 'nmr-processing';
|
|
4
4
|
|
|
5
5
|
import type { ZoomOptions } from '../../../EventsTrackers/BrushTracker.js';
|
|
6
6
|
import type { FilterType } from '../../../utility/filterType.js';
|
|
@@ -12,7 +12,7 @@ import { getActiveWorkspace } from '../utilities/getActiveWorkspace.js';
|
|
|
12
12
|
|
|
13
13
|
type setMatrixGenerationOptionsAction = ActionType<
|
|
14
14
|
'SET_MATRIX_GENERATION_OPTIONS',
|
|
15
|
-
{ nucleus: string; options: MatrixOptions }
|
|
15
|
+
{ nucleus: string; options: MatrixOptions<object> }
|
|
16
16
|
>;
|
|
17
17
|
type addMatrixGenerationExclusionZoneAction = ActionType<
|
|
18
18
|
'ADD_MATRIX_GENERATION_EXCLUSION_ZONE',
|
|
@@ -12,19 +12,23 @@ export function togglePanel(
|
|
|
12
12
|
action: TogglePanelAction,
|
|
13
13
|
) {
|
|
14
14
|
const currentWorkspacePreferences = getActiveWorkspace(draft);
|
|
15
|
-
const { id } = action.payload || {};
|
|
15
|
+
const { id, options } = action.payload || {};
|
|
16
16
|
|
|
17
17
|
if (!id) return;
|
|
18
18
|
|
|
19
19
|
const panels = currentWorkspacePreferences.display.panels || {};
|
|
20
20
|
|
|
21
|
-
const existingPanel: PanelPreferencesType = panels[id];
|
|
21
|
+
const existingPanel: PanelPreferencesType = { ...panels[id] };
|
|
22
22
|
|
|
23
|
+
for (const [key, value] of Object.entries(options)) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
existingPanel[key] = !existingPanel[key];
|
|
26
|
+
} else {
|
|
27
|
+
existingPanel[key] = value;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
23
30
|
currentWorkspacePreferences.display.panels = {
|
|
24
31
|
...panels,
|
|
25
|
-
[id]:
|
|
26
|
-
...existingPanel,
|
|
27
|
-
display: existingPanel ? !existingPanel.display : true,
|
|
28
|
-
},
|
|
32
|
+
[id]: existingPanel,
|
|
29
33
|
};
|
|
30
34
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { CURRENT_EXPORT_VERSION, migrateSettings } from '@zakodium/nmrium-core';
|
|
2
1
|
import type {
|
|
3
2
|
ExportPreferences,
|
|
4
3
|
ExportSettings,
|
|
5
4
|
MultipleSpectraAnalysisPreferences,
|
|
5
|
+
PanelPreferencesType,
|
|
6
6
|
PrintPageOptions,
|
|
7
7
|
Workspace,
|
|
8
8
|
WorkSpaceSource,
|
|
9
9
|
} from '@zakodium/nmrium-core';
|
|
10
|
+
import { CURRENT_EXPORT_VERSION, migrateSettings } from '@zakodium/nmrium-core';
|
|
10
11
|
import type { Draft } from 'immer';
|
|
11
12
|
import { produce } from 'immer';
|
|
12
13
|
import type { Reducer } from 'react';
|
|
@@ -14,6 +15,7 @@ import type { SplitPaneSize } from 'react-science/ui';
|
|
|
14
15
|
|
|
15
16
|
import type { NMRiumPreferences, NMRiumWorkspace } from '../../main/index.js';
|
|
16
17
|
import { getLocalStorage, storeData } from '../../utility/LocalStorage.js';
|
|
18
|
+
import type { FilterType } from '../../utility/filterType.js';
|
|
17
19
|
import Workspaces from '../../workspaces/index.js';
|
|
18
20
|
import type { ActionType } from '../types/ActionType.js';
|
|
19
21
|
|
|
@@ -148,7 +150,15 @@ export type ChangePeaksLabelPositionAction = ActionType<
|
|
|
148
150
|
}
|
|
149
151
|
>;
|
|
150
152
|
|
|
151
|
-
export type TogglePanelAction = ActionType<
|
|
153
|
+
export type TogglePanelAction = ActionType<
|
|
154
|
+
'TOGGLE_PANEL',
|
|
155
|
+
{
|
|
156
|
+
id: string;
|
|
157
|
+
options: Partial<
|
|
158
|
+
Record<keyof FilterType<Required<PanelPreferencesType>, boolean>, boolean>
|
|
159
|
+
>;
|
|
160
|
+
}
|
|
161
|
+
>;
|
|
152
162
|
|
|
153
163
|
type PreferencesActions =
|
|
154
164
|
| InitPreferencesAction
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Info1D, Info2D } from '@zakodium/nmr-types';
|
|
1
2
|
import type { NMRiumToolBarPreferences } from '@zakodium/nmrium-core';
|
|
2
|
-
import type { Info1D, Info2D } from 'nmr-processing';
|
|
3
3
|
import { Filters1D, Filters2D } from 'nmr-processing';
|
|
4
4
|
|
|
5
5
|
import type { DisplayerMode } from '../reducer/Reducer.js';
|
|
@@ -19,7 +19,7 @@ export const prediction: InnerWorkspace = {
|
|
|
19
19
|
hideWorkspaces: true,
|
|
20
20
|
},
|
|
21
21
|
panels: {
|
|
22
|
-
spectraPanel: { display: true, visible: true },
|
|
22
|
+
spectraPanel: { display: true, visible: true, open: false },
|
|
23
23
|
rangesPanel: { display: true, visible: true },
|
|
24
24
|
zonesPanel: { display: true, visible: true },
|
|
25
25
|
predictionPanel: { display: true, visible: true, open: true },
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Signal2D, Zone } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Logger } from 'cheminfo-types';
|
|
3
4
|
import { xMinMaxValues } from 'ml-spectra-processing';
|
|
@@ -7,8 +8,6 @@ import type {
|
|
|
7
8
|
Prediction2D,
|
|
8
9
|
PredictionBase1D,
|
|
9
10
|
PredictionBase2D,
|
|
10
|
-
Signal2D,
|
|
11
|
-
Zone,
|
|
12
11
|
} from 'nmr-processing';
|
|
13
12
|
import {
|
|
14
13
|
getFrequency,
|
|
@@ -80,6 +79,7 @@ export const FREQUENCIES: Array<{ value: number; label: string }> = [
|
|
|
80
79
|
{ value: 90, label: '90 MHz' },
|
|
81
80
|
{ value: 100, label: '100 MHz' },
|
|
82
81
|
{ value: 200, label: '200 MHz' },
|
|
82
|
+
{ value: 250, label: '250 MHz' },
|
|
83
83
|
{ value: 300, label: '300 MHz' },
|
|
84
84
|
{ value: 400, label: '400 MHz' },
|
|
85
85
|
{ value: 500, label: '500 MHz' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Integrals, Ranges, SumOptions } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Draft } from 'immer';
|
|
3
4
|
import { MF } from 'mf-parser';
|
|
4
|
-
import type { Integrals, Ranges, SumOptions } from 'nmr-processing';
|
|
5
5
|
|
|
6
6
|
import type { State } from '../../../component/reducer/Reducer.js';
|
|
7
7
|
import type { StateMoleculeExtended } from '../../molecules/Molecule.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Integrals } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import merge from 'lodash/merge.js';
|
|
3
|
-
import type { Integrals } from 'nmr-processing';
|
|
4
4
|
import { mapIntegrals } from 'nmr-processing';
|
|
5
5
|
|
|
6
6
|
export function initiateIntegrals(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Peak1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import median from 'ml-array-median';
|
|
3
|
-
import type { Peak1D } from 'nmr-processing';
|
|
4
4
|
import { mapPeaks, xyAutoPeaksPicking } from 'nmr-processing';
|
|
5
5
|
|
|
6
6
|
export function autoPeakPicking(spectrum: Spectrum1D, options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Peaks } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import merge from 'lodash/merge.js';
|
|
3
|
-
import type { Peaks } from 'nmr-processing';
|
|
4
4
|
import { mapPeaks } from 'nmr-processing';
|
|
5
5
|
|
|
6
6
|
export function initiatePeaks(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Peak1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
3
|
-
import type { Peak1D } from 'nmr-processing';
|
|
4
4
|
import { mapPeaks, xyPeaksOptimization } from 'nmr-processing';
|
|
5
5
|
|
|
6
6
|
interface OptimizePeaksOptions {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Range, Signal1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Logger } from 'cheminfo-types';
|
|
3
4
|
import { xyIntegration } from 'ml-spectra-processing';
|
|
4
|
-
import type { Range, Signal1D } from 'nmr-processing';
|
|
5
5
|
import { mapRanges } from 'nmr-processing';
|
|
6
6
|
|
|
7
7
|
import detectSignals from './detectSignals.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Ranges } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import merge from 'lodash/merge.js';
|
|
3
|
-
import type { Ranges } from 'nmr-processing';
|
|
4
4
|
import { mapRanges } from 'nmr-processing';
|
|
5
5
|
|
|
6
6
|
export function initiateRanges(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { Range, Signal1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Logger } from 'cheminfo-types';
|
|
3
4
|
import { xyIntegration } from 'ml-spectra-processing';
|
|
4
|
-
import type { Range, Signal1D } from 'nmr-processing';
|
|
5
5
|
import { mapRanges } from 'nmr-processing';
|
|
6
6
|
|
|
7
7
|
import detectSignals from './detectSignals.js';
|