nmrium 0.64.0 → 0.65.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/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +13 -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.js +1 -1
- package/lib/component/1d/PredictionErrorsNotations.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/utilities/extractSpectrumSignals.d.ts +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.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.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 +104 -29
- 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/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/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/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/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/InnerNMRiumContents.js +7 -6
- 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/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 +10 -11
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +19 -14
- 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/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.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/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/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 +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
- 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/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +25 -20
- package/lib/component/panels/predictionPanel/PredictionPanel.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.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 +2 -2
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +22 -17
- package/lib/component/reducer/actions/FiltersActions.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 +2 -2
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +1 -1
- 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.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/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/preferencesReducer.d.ts +1 -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/data/PredictionManager.d.ts.map +1 -1
- 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/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/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/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 +37 -37
- package/src/component/1d/BrushTracker1D.tsx +31 -16
- package/src/component/1d/FloatPublicationString.tsx +2 -2
- package/src/component/1d/FloatingRanges.tsx +4 -4
- package/src/component/1d/PredictionErrorsNotations.tsx +2 -2
- 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/utilities/extractSpectrumSignals.ts +1 -1
- 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 +3 -3
- 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 +123 -28
- package/src/component/SVGTable.tsx +4 -6
- 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/Tab/Tabs.tsx +3 -1
- 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/main/InnerNMRiumContents.tsx +7 -6
- 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/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 +21 -24
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +22 -17
- package/src/component/panels/MoleculesPanel/Utilities.ts +1 -1
- 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 +1 -1
- 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/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/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 +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +64 -64
- package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +2 -2
- package/src/component/panels/spectrumSimulation/simulationValidation.ts +9 -13
- package/src/component/reducer/Reducer.ts +1 -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 +40 -36
- 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 +4 -4
- package/src/component/reducer/actions/SpectraActions.ts +1 -1
- package/src/component/reducer/actions/ToolsActions.ts +1 -1
- package/src/component/reducer/actions/ZonesActions.ts +1 -1
- package/src/component/reducer/helper/Zoom1DManager.ts +67 -41
- package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -0
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +2 -2
- package/src/component/reducer/preferences/preferencesReducer.ts +2 -2
- package/src/component/toolbar/ToolTypes.ts +1 -1
- package/src/data/PredictionManager.ts +1 -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/getMissingProjection.ts +1 -2
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import styled from '@emotion/styled';
|
|
1
2
|
import { Molecule } from 'openchemlib';
|
|
2
|
-
import type { CSSProperties } from 'react';
|
|
3
3
|
import { useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { ResponsiveChart } from 'react-d3-utils';
|
|
5
5
|
import type { CanvasEditorOnChangeMolecule } from 'react-ocl';
|
|
@@ -25,13 +25,16 @@ import PreferencesHeader from '../header/PreferencesHeader.js';
|
|
|
25
25
|
import PredictionPreferences from './PredictionPreferences.js';
|
|
26
26
|
import PredictionSimpleOptions from './PredictionSimpleOptions.js';
|
|
27
27
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
28
|
+
const Container = styled.div`
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
flex: 1;
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
const Overflow = styled.div<{ height: number }>`
|
|
35
|
+
overflow: hidden auto;
|
|
36
|
+
height: ${({ height }) => height}px;
|
|
37
|
+
`;
|
|
35
38
|
|
|
36
39
|
export default function PredictionPanel() {
|
|
37
40
|
const {
|
|
@@ -164,69 +167,66 @@ export default function PredictionPanel() {
|
|
|
164
167
|
<PredictionSimpleOptions />
|
|
165
168
|
</MoleculePanelHeader>
|
|
166
169
|
|
|
167
|
-
<
|
|
168
|
-
<
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
170
|
+
<Container>
|
|
171
|
+
<ResponsiveChart minHeight={400}>
|
|
172
|
+
{({ height, width }) => {
|
|
173
|
+
return (
|
|
174
|
+
<NextPrev
|
|
175
|
+
onChange={(slideIndex) => {
|
|
176
|
+
setCurrentIndex(slideIndex);
|
|
177
|
+
setMolfile(molecules[slideIndex].molfile);
|
|
178
|
+
}}
|
|
179
|
+
index={currentIndex}
|
|
180
|
+
style={{
|
|
181
|
+
arrowContainer: {
|
|
182
|
+
top: '40px',
|
|
183
|
+
padding: '0 10px 0 55px',
|
|
184
|
+
},
|
|
185
|
+
}}
|
|
186
|
+
>
|
|
187
|
+
{molecules && molecules.length > 0 ? (
|
|
188
|
+
molecules.map((mol: StateMoleculeExtended, molIndex) => (
|
|
189
|
+
<div key={mol.id}>
|
|
190
|
+
<MoleculeHeader
|
|
191
|
+
currentMolecule={mol}
|
|
192
|
+
molecules={molecules}
|
|
193
|
+
/>
|
|
194
|
+
<Overflow height={height}>
|
|
195
|
+
{molIndex === currentIndex && (
|
|
196
|
+
<CanvasMoleculeEditor
|
|
197
|
+
width={width}
|
|
198
|
+
inputFormat="molfile"
|
|
199
|
+
inputValue={mol.molfile}
|
|
200
|
+
fragment={false}
|
|
201
|
+
onChange={changeHandler}
|
|
202
|
+
height="80%"
|
|
195
203
|
/>
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
<CanvasMoleculeEditor
|
|
203
|
-
width={width}
|
|
204
|
-
inputFormat="molfile"
|
|
205
|
-
inputValue={mol.molfile}
|
|
206
|
-
fragment={false}
|
|
207
|
-
onChange={changeHandler}
|
|
208
|
-
/>
|
|
209
|
-
)}
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
),
|
|
213
|
-
)
|
|
214
|
-
) : (
|
|
204
|
+
)}
|
|
205
|
+
</Overflow>
|
|
206
|
+
</div>
|
|
207
|
+
))
|
|
208
|
+
) : (
|
|
209
|
+
<Overflow height={height}>
|
|
215
210
|
<CanvasMoleculeEditor
|
|
216
211
|
inputFormat="molfile"
|
|
217
212
|
inputValue={initialMolfile}
|
|
218
213
|
width={width}
|
|
219
|
-
height={height}
|
|
220
214
|
fragment={false}
|
|
221
215
|
onChange={changeHandler}
|
|
222
216
|
/>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
</
|
|
229
|
-
<div
|
|
217
|
+
</Overflow>
|
|
218
|
+
)}
|
|
219
|
+
</NextPrev>
|
|
220
|
+
);
|
|
221
|
+
}}
|
|
222
|
+
</ResponsiveChart>
|
|
223
|
+
<div
|
|
224
|
+
style={{
|
|
225
|
+
display: 'flex',
|
|
226
|
+
padding: '5px',
|
|
227
|
+
justifyContent: 'flex-end',
|
|
228
|
+
}}
|
|
229
|
+
>
|
|
230
230
|
<Button.Done
|
|
231
231
|
onClick={() => predictHandler('save')}
|
|
232
232
|
disabled={!molfile}
|
|
@@ -242,7 +242,7 @@ export default function PredictionPanel() {
|
|
|
242
242
|
</Button.Action>
|
|
243
243
|
)}
|
|
244
244
|
</div>
|
|
245
|
-
</
|
|
245
|
+
</Container>
|
|
246
246
|
</>
|
|
247
247
|
)}
|
|
248
248
|
{modal}
|
|
@@ -37,7 +37,7 @@ export function SpinSystemTable(props: SpinSystemTableProps) {
|
|
|
37
37
|
control={control}
|
|
38
38
|
name={`data.${row.index}.0`}
|
|
39
39
|
fill
|
|
40
|
-
|
|
40
|
+
debounceTime={500}
|
|
41
41
|
/>
|
|
42
42
|
),
|
|
43
43
|
},
|
|
@@ -58,7 +58,7 @@ export function SpinSystemTable(props: SpinSystemTableProps) {
|
|
|
58
58
|
control={control}
|
|
59
59
|
name={`data.${row.index}.${columnIndex}`}
|
|
60
60
|
fill
|
|
61
|
-
|
|
61
|
+
debounceTime={500}
|
|
62
62
|
/>
|
|
63
63
|
);
|
|
64
64
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as Yup from 'yup';
|
|
2
2
|
|
|
3
|
+
const numberOrNull = Yup.mixed()
|
|
4
|
+
.nullable()
|
|
5
|
+
.test(
|
|
6
|
+
'isNumberOrNull',
|
|
7
|
+
'Must be a number or null',
|
|
8
|
+
(value) => value === null || typeof value === 'number',
|
|
9
|
+
);
|
|
10
|
+
|
|
3
11
|
export const simulationValidationSchema = Yup.object({
|
|
4
12
|
options: Yup.object({
|
|
5
13
|
frequency: Yup.number().required(),
|
|
@@ -18,17 +26,5 @@ export const simulationValidationSchema = Yup.object({
|
|
|
18
26
|
nbPoints: Yup.number().required(),
|
|
19
27
|
lineWidth: Yup.number().required().moreThan(0),
|
|
20
28
|
}),
|
|
21
|
-
data: Yup.array()
|
|
22
|
-
.of(
|
|
23
|
-
Yup.array().of(
|
|
24
|
-
Yup.lazy((value) => {
|
|
25
|
-
if (value === null) {
|
|
26
|
-
return Yup.mixed().nullable();
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return Yup.number().required();
|
|
30
|
-
}),
|
|
31
|
-
),
|
|
32
|
-
)
|
|
33
|
-
.required(),
|
|
29
|
+
data: Yup.array().of(Yup.array().of(numberOrNull)).required(),
|
|
34
30
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { BaselineCorrectionZone } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum, ViewState } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { WebSource as Source } from 'filelist-utils';
|
|
3
4
|
import type { Draft } from 'immer';
|
|
4
5
|
import { original, produce } from 'immer';
|
|
5
6
|
import type { CorrelationData } from 'nmr-correlation';
|
|
6
7
|
import { buildCorrelationData } from 'nmr-correlation';
|
|
7
|
-
import type { BaselineCorrectionZone } from 'nmr-processing';
|
|
8
8
|
import type { Reducer } from 'react';
|
|
9
9
|
|
|
10
10
|
import type { StateMoleculeExtended } from '../../data/molecules/Molecule.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { Range, Zone } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Draft } from 'immer';
|
|
3
|
-
import type {
|
|
4
|
+
import type { SpectraData1D, SpectraData2D } from 'nmr-processing';
|
|
4
5
|
|
|
5
6
|
import type { State } from '../Reducer.js';
|
|
6
7
|
import type { ActionType } from '../types/ActionType.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { Info1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum, Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Draft } from 'immer';
|
|
3
|
-
import type { DatabaseNMREntry
|
|
4
|
+
import type { DatabaseNMREntry } from 'nmr-processing';
|
|
4
5
|
|
|
5
6
|
import {
|
|
6
7
|
get1DColor,
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
} from '../../../data/data2d/Spectrum2D/isSpectrum2D.js';
|
|
22
22
|
import nucleusToString from '../../utility/nucleusToString.js';
|
|
23
23
|
import type { State } from '../Reducer.js';
|
|
24
|
+
import { rescaleToSameTop } from '../helper/Zoom1DManager.js';
|
|
24
25
|
import { addToBrushHistory } from '../helper/ZoomHistoryManager.js';
|
|
25
26
|
import { getActiveSpectra } from '../helper/getActiveSpectra.js';
|
|
26
27
|
import { getActiveSpectrum } from '../helper/getActiveSpectrum.js';
|
|
@@ -243,16 +244,19 @@ function setDomain(draft: Draft<State>, options?: SetDomainOptions) {
|
|
|
243
244
|
draft.xDomain = domain.xDomain;
|
|
244
245
|
draft.xDomains = domain.xDomains;
|
|
245
246
|
}
|
|
246
|
-
// draft.originDomain = domain;
|
|
247
247
|
|
|
248
248
|
if (updateYDomain) {
|
|
249
249
|
draft.yDomain = domain.yDomain;
|
|
250
|
-
if (draft.displayerMode === '1D'
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
250
|
+
if (draft.displayerMode === '1D') {
|
|
251
|
+
if (isYDomainShared) {
|
|
252
|
+
draft.yDomains = Object.fromEntries(
|
|
253
|
+
Object.keys(domain.yDomains).map((key) => {
|
|
254
|
+
return [key, domain.yDomain];
|
|
255
|
+
}),
|
|
256
|
+
);
|
|
257
|
+
} else {
|
|
258
|
+
draft.yDomains = rescaleToSameTop(domain.yDomains);
|
|
259
|
+
}
|
|
256
260
|
} else {
|
|
257
261
|
draft.yDomains = domain.yDomains;
|
|
258
262
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Apodization1DOptions,
|
|
3
|
+
BaselineCorrectionOptions,
|
|
4
|
+
Filter1DEntry,
|
|
5
|
+
Filter1DOptions,
|
|
6
|
+
Filter2DEntry,
|
|
7
|
+
Filter2DOptions,
|
|
8
|
+
MatrixOptions,
|
|
9
|
+
} from '@zakodium/nmr-types';
|
|
1
10
|
import type { Spectrum, Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
11
|
import type { NmrData1D, NmrData2DFt } from 'cheminfo-types';
|
|
3
12
|
import type { Draft } from 'immer';
|
|
4
13
|
import { current } from 'immer';
|
|
5
14
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
15
|
+
import type { Filter1D, FilterDomainUpdateRules } from 'nmr-processing';
|
|
6
16
|
import {
|
|
7
|
-
getBaselineZonesByDietrich,
|
|
8
|
-
Filters1DManager,
|
|
9
|
-
Filters2DManager,
|
|
10
17
|
Filters1D,
|
|
18
|
+
Filters1DManager,
|
|
11
19
|
Filters2D,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
BaselineCorrectionOptions,
|
|
15
|
-
Filter1D,
|
|
16
|
-
Apodization1DOptions,
|
|
17
|
-
Filter1DEntry,
|
|
18
|
-
FilterDomainUpdateRules,
|
|
19
|
-
MatrixOptions,
|
|
20
|
-
Filter2DEntry,
|
|
21
|
-
Filter2DOptions,
|
|
22
|
-
Filter1DOptions,
|
|
20
|
+
Filters2DManager,
|
|
21
|
+
getBaselineZonesByDietrich,
|
|
23
22
|
} from 'nmr-processing';
|
|
24
23
|
|
|
25
24
|
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
26
25
|
import { isFid1DSpectrum } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
26
|
+
import { getDefaultContoursLevel } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
27
27
|
import { getProjection } from '../../../data/data2d/Spectrum2D/getMissingProjection.js';
|
|
28
28
|
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.js';
|
|
29
29
|
import {
|
|
@@ -59,7 +59,6 @@ import type { ActionType } from '../types/ActionType.js';
|
|
|
59
59
|
import { get2DDomain, setDomain, setMode } from './DomainActions.js';
|
|
60
60
|
import { changeSpectrumVerticalAlignment } from './PreferencesActions.js';
|
|
61
61
|
import { activateTool, resetSelectedTool } from './ToolsActions.js';
|
|
62
|
-
import { getDefaultContoursLevel } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
63
62
|
|
|
64
63
|
const {
|
|
65
64
|
fft,
|
|
@@ -203,7 +202,7 @@ type DeleteExclusionZoneAction = ActionType<
|
|
|
203
202
|
>;
|
|
204
203
|
type ApplySignalProcessingAction = ActionType<
|
|
205
204
|
'APPLY_SIGNAL_PROCESSING_FILTER',
|
|
206
|
-
{ options: MatrixOptions }
|
|
205
|
+
{ options: MatrixOptions<object> }
|
|
207
206
|
>;
|
|
208
207
|
type AddPhaseCorrectionTraceAction = ActionType<
|
|
209
208
|
'ADD_PHASE_CORRECTION_TRACE',
|
|
@@ -1039,35 +1038,40 @@ function handleCalculateApodizationFilter(
|
|
|
1039
1038
|
const { livePreview, options, tempRollback } = action.payload;
|
|
1040
1039
|
|
|
1041
1040
|
if (livePreview) {
|
|
1042
|
-
const {
|
|
1043
|
-
data: { x, re, im },
|
|
1044
|
-
info,
|
|
1045
|
-
} = draft.tempData[index];
|
|
1046
|
-
|
|
1047
1041
|
const datum = draft.data[index];
|
|
1048
1042
|
|
|
1049
1043
|
if (!isSpectrum1D(datum)) {
|
|
1050
1044
|
return;
|
|
1051
1045
|
}
|
|
1046
|
+
const spectrum: Spectrum1D = structuredClone(
|
|
1047
|
+
current(draft).tempData[index],
|
|
1048
|
+
);
|
|
1052
1049
|
|
|
1053
1050
|
if (!tempRollback) {
|
|
1054
|
-
|
|
1051
|
+
apodization.apply(spectrum, options);
|
|
1052
|
+
} else {
|
|
1053
|
+
for (const filter of datum.filters) {
|
|
1054
|
+
const { name, value } = filter;
|
|
1055
1055
|
|
|
1056
|
-
|
|
1057
|
-
const { im: newIm, re: newRe } = _data.data;
|
|
1056
|
+
delete filter.error;
|
|
1058
1057
|
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
name
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1058
|
+
if (!filter.enabled) {
|
|
1059
|
+
continue;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
try {
|
|
1063
|
+
const filterOptions = name === 'apodization' ? options : value;
|
|
1064
|
+
Filters1D[name].apply(spectrum, filterOptions as any);
|
|
1065
|
+
} catch (error: any) {
|
|
1066
|
+
filter.error = error.message;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1070
1069
|
}
|
|
1070
|
+
|
|
1071
|
+
const { im: newIm, re: newRe } = spectrum.data;
|
|
1072
|
+
|
|
1073
|
+
datum.data.im = newIm;
|
|
1074
|
+
datum.data.re = newRe;
|
|
1071
1075
|
} else {
|
|
1072
1076
|
disableLivePreview(draft, apodization.name);
|
|
1073
1077
|
}
|
|
@@ -1721,7 +1725,7 @@ function handleSignalProcessingFilter(
|
|
|
1721
1725
|
[
|
|
1722
1726
|
{
|
|
1723
1727
|
name: 'signalProcessing',
|
|
1724
|
-
value
|
|
1728
|
+
value,
|
|
1725
1729
|
},
|
|
1726
1730
|
],
|
|
1727
1731
|
{ forceReapply: true },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { Integral } from '@zakodium/nmr-types';
|
|
1
2
|
import type { IntegralsViewState, Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Draft } from 'immer';
|
|
3
4
|
import { original } from 'immer';
|
|
4
5
|
import { xyIntegration } from 'ml-spectra-processing';
|
|
5
|
-
import type { Integral } from 'nmr-processing';
|
|
6
6
|
|
|
7
7
|
import type {
|
|
8
8
|
SetSumOptions,
|
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
setSumOptions,
|
|
14
14
|
} from '../../../data/data1d/Spectrum1D/SumManager.js';
|
|
15
15
|
import {
|
|
16
|
-
updateIntegralsRelativeValues,
|
|
17
16
|
changeIntegralsRelative,
|
|
18
17
|
getShiftX,
|
|
18
|
+
updateIntegralsRelativeValues,
|
|
19
19
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
20
20
|
import type { FilterType } from '../../utility/filterType.js';
|
|
21
21
|
import type { State } from '../Reducer.js';
|
|
@@ -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',
|
|
@@ -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';
|
|
@@ -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 {
|