nmrium 2.5.0 → 2.6.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 +158 -173
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +6 -6
- package/lib/component/1d/FloatPublicationString.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/SimilarityTree.js +2 -2
- package/lib/component/1d/SimilarityTree.js.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.js +47 -22
- package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
- package/lib/component/1d/baseline/getMedianY.d.ts +5 -1
- package/lib/component/1d/baseline/getMedianY.d.ts.map +1 -1
- package/lib/component/1d/baseline/getMedianY.js +19 -5
- package/lib/component/1d/baseline/getMedianY.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +1 -1
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/matrix/useMatrix.d.ts.map +1 -1
- package/lib/component/1d/matrix/useMatrix.js +2 -2
- package/lib/component/1d/matrix/useMatrix.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.js +2 -3
- package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +3 -2
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +1 -1
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js +35 -31
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
- package/lib/component/1d-2d/components/Signals1D.d.ts.map +1 -1
- package/lib/component/1d-2d/components/Signals1D.js +10 -8
- package/lib/component/1d-2d/components/Signals1D.js.map +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.d.ts.map +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.js +1 -1
- package/lib/component/1d-2d/components/axis_unit_picker.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +40 -28
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.js +27 -22
- package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
- package/lib/component/1d-2d/tools/DistanceLine.d.ts +29 -0
- package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -0
- package/lib/component/1d-2d/tools/DistanceLine.js +132 -0
- package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -0
- package/lib/component/2d/1d-tracer/Left1DChart.js +3 -2
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +3 -2
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +20 -10
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts.map +1 -1
- package/lib/component/2d/FooterBanner.js +2 -2
- package/lib/component/2d/FooterBanner.js.map +1 -1
- package/lib/component/2d/IndirectAxis2D.js +1 -1
- package/lib/component/2d/IndirectAxis2D.js.map +1 -1
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/SignalDeltaLine.js.map +1 -1
- package/lib/component/2d/Viewer2D.d.ts.map +1 -1
- package/lib/component/2d/Viewer2D.js +2 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/fid/FidCanvas.js +2 -2
- package/lib/component/2d/fid/FidCanvas.js.map +1 -1
- package/lib/component/2d/fid/FidContainer.js +3 -3
- package/lib/component/2d/fid/FidContainer.js.map +1 -1
- package/lib/component/2d/ft/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.js +37 -1
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/ft/FTContainer.js +2 -3
- package/lib/component/2d/ft/FTContainer.js.map +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.js +5 -3
- package/lib/component/2d/useTracesSpectra.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +2 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js +26 -25
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/utilities/scale.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +15 -18
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/AnchorSVG.d.ts +1 -1
- package/lib/component/AnchorSVG.d.ts.map +1 -1
- package/lib/component/AnchorSVG.js +3 -2
- package/lib/component/AnchorSVG.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +5 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js +1 -1
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +2 -1
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.js +13 -13
- package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +4 -12
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +17 -35
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts +14 -0
- package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -0
- package/lib/component/context/processings_mutations_context.api.js +275 -0
- package/lib/component/context/processings_mutations_context.api.js.map +1 -0
- package/lib/component/context/processings_mutations_context.d.ts +5 -0
- package/lib/component/context/processings_mutations_context.d.ts.map +1 -0
- package/lib/component/context/processings_mutations_context.js +16 -0
- package/lib/component/context/processings_mutations_context.js.map +1 -0
- package/lib/component/elements/NumberInput2Controller.d.ts +1 -0
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.js +14 -3
- package/lib/component/elements/NumberInput2Controller.js.map +1 -1
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/TableHeaderLabel.d.ts +9 -0
- package/lib/component/elements/TableHeaderLabel.d.ts.map +1 -0
- package/lib/component/elements/TableHeaderLabel.js +30 -0
- package/lib/component/elements/TableHeaderLabel.js.map +1 -0
- package/lib/component/elements/print/PrintContent.d.ts +1 -0
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +77 -72
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +4 -4
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/header/Header.d.ts.map +1 -1
- package/lib/component/header/Header.js +59 -5
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js +1 -1
- package/lib/component/header/base/BaseSimpleZeroFillingOptionsPanel.js.map +1 -1
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +10 -36
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/use2DReducer.d.ts.map +1 -1
- package/lib/component/hooks/use2DReducer.js +2 -2
- package/lib/component/hooks/use2DReducer.js.map +1 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts.map +1 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +3 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +6 -1
- package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
- package/lib/component/hooks/useSpectraBottomMargin.js +1 -1
- package/lib/component/hooks/useSpectraBottomMargin.js.map +1 -1
- package/lib/component/hooks/useSpectrum.d.ts +4 -0
- package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.js +9 -1
- package/lib/component/hooks/useSpectrum.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts +2 -4
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +3 -2
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/hooks/use_axis_unit.d.ts +3 -3
- package/lib/component/hooks/use_axis_unit.d.ts.map +1 -1
- package/lib/component/hooks/use_axis_unit.js +2 -8
- package/lib/component/hooks/use_axis_unit.js.map +1 -1
- package/lib/component/hooks/use_publication_strings.d.ts.map +1 -1
- package/lib/component/hooks/use_publication_strings.js +2 -3
- package/lib/component/hooks/use_publication_strings.js.map +1 -1
- package/lib/component/hooks/use_view_spectra.d.ts +6 -0
- package/lib/component/hooks/use_view_spectra.d.ts.map +1 -0
- package/lib/component/hooks/use_view_spectra.js +13 -0
- package/lib/component/hooks/use_view_spectra.js.map +1 -0
- package/lib/component/hooks/use_visible_spectra_1d.d.ts.map +1 -1
- package/lib/component/hooks/use_visible_spectra_1d.js +4 -2
- package/lib/component/hooks/use_visible_spectra_1d.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +6 -5
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +2 -2
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +2 -1
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/types.d.ts +1 -1
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +102 -60
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +22 -21
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +3 -3
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -3
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +12 -20
- package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts +6 -0
- package/lib/component/modal/editRange/forms/components/DeltaLabel.d.ts.map +1 -0
- package/lib/component/modal/editRange/forms/components/DeltaLabel.js +12 -0
- package/lib/component/modal/editRange/forms/components/DeltaLabel.js.map +1 -0
- package/lib/component/modal/editRange/forms/components/SignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalTab.js +2 -16
- package/lib/component/modal/editRange/forms/components/SignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.js +32 -7
- package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +18 -3
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +93 -85
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +2 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +93 -85
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +93 -85
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +8 -7
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +4 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +5 -4
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +3 -4
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +49 -42
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +3 -4
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +24 -24
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +4 -3
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts +4 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js +3 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js +1 -0
- package/lib/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +44 -43
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +25 -9
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +1 -2
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +15 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +49 -27
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +3 -0
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +8 -15
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js +6 -3
- package/lib/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +8 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +12 -12
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +14 -13
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +18 -15
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +7 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +4 -4
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js.map +1 -1
- package/lib/component/panels/SummaryPanel/Overview.d.ts +3 -7
- package/lib/component/panels/SummaryPanel/Overview.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/Overview.js +2 -5
- package/lib/component/panels/SummaryPanel/Overview.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +17 -18
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +7 -7
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +34 -31
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/utilities/useInView.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +122 -101
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts +3 -0
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +14 -16
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +3 -3
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +10 -26
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +3 -4
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +4 -19
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +4 -7
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts +11 -0
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js +34 -0
- package/lib/component/panels/filtersPanel/processings/operator_edit_banner.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings/processing_item.d.ts +16 -0
- package/lib/component/panels/filtersPanel/processings/processing_item.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/processing_item.js +88 -0
- package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts +12 -0
- package/lib/component/panels/filtersPanel/processings/processing_item_extra.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/processing_item_extra.js +17 -0
- package/lib/component/panels/filtersPanel/processings/processing_item_extra.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +11 -0
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js +31 -0
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts +3 -0
- package/lib/component/panels/filtersPanel/processings/use_live_operation.d.ts.map +1 -0
- package/lib/component/panels/filtersPanel/processings/use_live_operation.js +15 -0
- package/lib/component/panels/filtersPanel/processings/use_live_operation.js.map +1 -0
- package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/processings_sections_panel.js +35 -104
- package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +18 -2
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +26 -7
- 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 +1 -2
- package/lib/component/reducer/actions/AssignmentsActions.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +4 -4
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +10 -11
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +25 -9
- 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 +25 -15
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +36 -59
- 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 -1
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +2 -1
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +3 -3
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -6
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +1 -2
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +5 -2
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +18 -3
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +5 -3
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +12 -3
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +45 -13
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +2 -8
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +6 -11
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +3 -8
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +9 -2
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +27 -12
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/actions/processings_actions.d.ts +30 -0
- package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -0
- package/lib/component/reducer/actions/processings_actions.js +50 -0
- package/lib/component/reducer/actions/processings_actions.js.map +1 -0
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -0
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +10 -0
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/preferences/actions/initPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/initPreferences.js +4 -1
- package/lib/component/reducer/preferences/actions/initPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +2 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -4
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +2 -9
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.js +15 -0
- package/lib/component/toolbar/ToolTypes.js.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
- package/lib/component/toolbar/nmr_toolbar.js +49 -22
- package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts +10 -0
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -0
- package/lib/component/utility/{CoreSlot.js → core_slots/core_operator_expanded.js} +2 -21
- package/lib/component/utility/core_slots/core_operator_expanded.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_name.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_name.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_name.js +10 -0
- package/lib/component/utility/core_slots/core_operator_name.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.js +15 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_tool.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.js +15 -0
- package/lib/component/utility/core_slots/core_operator_tool.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_topbar.d.ts +8 -0
- package/lib/component/utility/core_slots/core_operator_topbar.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_topbar.js +36 -0
- package/lib/component/utility/core_slots/core_operator_topbar.js.map +1 -0
- package/lib/component/utility/core_slots/core_slot.d.ts +17 -0
- package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_slot.js +14 -0
- package/lib/component/utility/core_slots/core_slot.js.map +1 -0
- package/lib/component/utility/formatNumber.d.ts +2 -0
- package/lib/component/utility/formatNumber.d.ts.map +1 -1
- package/lib/component/utility/formatNumber.js +9 -2
- package/lib/component/utility/formatNumber.js.map +1 -1
- package/lib/component/utility/toolbar_item_error.d.ts +3 -0
- package/lib/component/utility/toolbar_item_error.d.ts.map +1 -0
- package/lib/component/utility/toolbar_item_error.js +14 -0
- package/lib/component/utility/toolbar_item_error.js.map +1 -0
- package/lib/component/workspaces/assignment.d.ts.map +1 -1
- package/lib/component/workspaces/assignment.js +1 -0
- package/lib/component/workspaces/assignment.js.map +1 -1
- package/lib/component/workspaces/basic.d.ts.map +1 -1
- package/lib/component/workspaces/basic.js +1 -0
- package/lib/component/workspaces/basic.js.map +1 -1
- package/lib/component/workspaces/exercise.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.js +1 -0
- package/lib/component/workspaces/exercise.js.map +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/process1D.d.ts.map +1 -1
- package/lib/component/workspaces/process1D.js +1 -0
- package/lib/component/workspaces/process1D.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +2 -3
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.js +2 -1
- package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +0 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.js +0 -1
- package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +5 -2
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts +7 -0
- package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.d.ts.map +1 -0
- package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js +14 -0
- package/lib/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.js.map +1 -0
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +2 -2
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +2 -2
- 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/getSlice.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.js +3 -3
- package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.js +0 -1
- package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
- package/lib/data/get_view_spectra.d.ts +11 -0
- package/lib/data/get_view_spectra.d.ts.map +1 -0
- package/lib/data/get_view_spectra.js +10 -0
- package/lib/data/get_view_spectra.js.map +1 -0
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/data/utilities/FindUtilities.js +1 -2
- package/lib/data/utilities/FindUtilities.js.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 +3 -1
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/getPeakAbsoluteArea.d.ts +3 -0
- package/lib/data/utilities/getPeakAbsoluteArea.d.ts.map +1 -0
- package/lib/data/utilities/getPeakAbsoluteArea.js +6 -0
- package/lib/data/utilities/getPeakAbsoluteArea.js.map +1 -0
- package/lib/versionInfo.js +1 -1
- package/package.json +39 -42
- package/src/component/1d/BrushTracker1D.tsx +170 -185
- package/src/component/1d/FloatPublicationString.tsx +6 -6
- package/src/component/1d/PredictionErrorsNotations.tsx +1 -1
- package/src/component/1d/SimilarityTree.tsx +2 -2
- package/src/component/1d/baseline/BaselinePreview.tsx +43 -13
- package/src/component/1d/baseline/getMedianY.ts +23 -5
- package/src/component/1d/inset/DraggableInset.tsx +1 -1
- package/src/component/1d/matrix/useMatrix.ts +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +4 -3
- package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +1 -0
- package/src/component/1d/ranges/FloatingRanges.tsx +3 -4
- package/src/component/1d/ranges/Range.tsx +3 -5
- package/src/component/1d/ranges/Ranges.tsx +1 -1
- package/src/component/1d-2d/FieldEdition.tsx +56 -63
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/Signals1D.tsx +12 -8
- package/src/component/1d-2d/components/axis_unit_picker.tsx +1 -1
- package/src/component/1d-2d/tools/BrushXY.tsx +45 -28
- package/src/component/1d-2d/tools/CrossLinePointer.tsx +34 -22
- package/src/component/1d-2d/tools/DistanceLine.tsx +253 -0
- package/src/component/2d/1d-tracer/Left1DChart.tsx +3 -3
- package/src/component/2d/1d-tracer/Top1DChart.tsx +4 -4
- package/src/component/2d/BrushTracker2D.tsx +25 -13
- package/src/component/2d/FooterBanner.tsx +2 -5
- package/src/component/2d/IndirectAxis2D.tsx +1 -1
- package/src/component/2d/SignalDeltaLine.tsx +1 -1
- package/src/component/2d/Viewer2D.tsx +2 -0
- package/src/component/2d/fid/FidCanvas.tsx +2 -2
- package/src/component/2d/fid/FidContainer.tsx +4 -4
- package/src/component/2d/ft/Contours.tsx +93 -24
- package/src/component/2d/ft/FTContainer.tsx +3 -4
- package/src/component/2d/useTracesSpectra.ts +5 -3
- package/src/component/2d/utilities/extractSpectrumSignals.ts +34 -26
- package/src/component/2d/utilities/scale.ts +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +18 -25
- package/src/component/AnchorSVG.tsx +7 -7
- package/src/component/EventsTrackers/BrushTracker.tsx +1 -1
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -1
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/context/DispatchContext.tsx +3 -1
- package/src/component/context/FilterSyncOptionsContext.tsx +15 -15
- package/src/component/context/KeyModifierContext.tsx +36 -45
- package/src/component/context/processings_mutations_context.api.ts +371 -0
- package/src/component/context/processings_mutations_context.tsx +28 -0
- package/src/component/elements/NumberInput2Controller.tsx +20 -1
- package/src/component/elements/Sections.tsx +1 -1
- package/src/component/elements/TableHeaderLabel.tsx +50 -0
- package/src/component/elements/print/PrintContent.tsx +130 -122
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +10 -4
- package/src/component/header/Header.tsx +99 -8
- package/src/component/header/RangesPickingOptionPanel.tsx +2 -2
- package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +1 -3
- package/src/component/header/base/BaseSimpleZeroFillingOptionsPanel.tsx +7 -4
- package/src/component/highlight/index.tsx +11 -37
- package/src/component/hooks/use2DReducer.tsx +2 -2
- package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +4 -2
- package/src/component/hooks/useCheckToolsVisibility.ts +11 -1
- package/src/component/hooks/useSpectraBottomMargin.ts +1 -1
- package/src/component/hooks/useSpectrum.ts +12 -1
- package/src/component/hooks/useTextMetrics.ts +10 -9
- package/src/component/hooks/use_axis_unit.ts +2 -8
- package/src/component/hooks/use_publication_strings.ts +2 -4
- package/src/component/hooks/use_view_spectra.ts +16 -0
- package/src/component/hooks/use_visible_spectra_1d.ts +5 -2
- package/src/component/main/InnerNMRium.tsx +50 -47
- package/src/component/main/NMRium.tsx +2 -2
- package/src/component/main/NMRiumStateProvider.tsx +4 -1
- package/src/component/main/types.ts +1 -1
- package/src/component/modal/EditPeakShapeModal.tsx +179 -118
- package/src/component/modal/LoadJCAMPModal.tsx +58 -57
- package/src/component/modal/PublicationStringModal.tsx +2 -3
- package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +17 -31
- package/src/component/modal/editRange/forms/components/DeltaLabel.tsx +19 -0
- package/src/component/modal/editRange/forms/components/SignalTab.tsx +5 -21
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +40 -6
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +1 -1
- package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +75 -52
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -3
- package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +2 -1
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +10 -5
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +8 -4
- package/src/component/modal/setting/tanstack_general_settings/tabs/tools_tab.tsx +3 -0
- package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +3 -4
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +4 -3
- package/src/component/modal/setting/tanstack_general_settings/validation/nuclei_tab_validation.ts +3 -2
- package/src/component/modal/setting/tanstack_general_settings/validation/tools_tab_validation.ts +1 -0
- package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -1
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +29 -12
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +1 -1
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +1 -2
- package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +1 -2
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +15 -3
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +92 -29
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +4 -0
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +10 -18
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/ApplyToAllSelected.tsx +6 -3
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +45 -44
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +23 -21
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +1 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +33 -28
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.tsx +14 -11
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +12 -10
- package/src/component/panels/SummaryPanel/Overview.tsx +4 -12
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +32 -33
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +60 -58
- package/src/component/panels/SummaryPanel/utilities/useInView.ts +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +173 -121
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +41 -16
- package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +3 -8
- package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +2 -4
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +6 -8
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +9 -13
- package/src/component/panels/filtersPanel/processings/operator_edit_banner.tsx +73 -0
- package/src/component/panels/filtersPanel/processings/processing_item.tsx +211 -0
- package/src/component/panels/filtersPanel/processings/processing_item_extra.tsx +63 -0
- package/src/component/panels/filtersPanel/processings/use_live_edit.ts +47 -0
- package/src/component/panels/filtersPanel/processings/use_live_operation.ts +22 -0
- package/src/component/panels/filtersPanel/processings_sections_panel.tsx +87 -254
- package/src/component/reducer/Reducer.ts +50 -9
- package/src/component/reducer/actions/AssignmentsActions.ts +1 -2
- package/src/component/reducer/actions/CorrelationsActions.ts +21 -19
- package/src/component/reducer/actions/DatabaseActions.ts +29 -15
- package/src/component/reducer/actions/DomainActions.ts +35 -24
- package/src/component/reducer/actions/FiltersActions.ts +56 -77
- package/src/component/reducer/actions/InsetActions.ts +1 -1
- package/src/component/reducer/actions/IntegralsActions.ts +1 -1
- package/src/component/reducer/actions/LoadAction.ts +8 -5
- package/src/component/reducer/actions/MoleculeActions.ts +1 -2
- package/src/component/reducer/actions/PeaksActions.ts +29 -2
- package/src/component/reducer/actions/PreferencesActions.ts +7 -4
- package/src/component/reducer/actions/RangesActions.ts +72 -17
- package/src/component/reducer/actions/SpectraActions.ts +8 -25
- package/src/component/reducer/actions/ToolsActions.ts +4 -10
- package/src/component/reducer/actions/ZonesActions.ts +44 -14
- package/src/component/reducer/actions/processings_actions.ts +130 -0
- package/src/component/reducer/helper/ZoomHistoryManager.ts +17 -0
- package/src/component/reducer/preferences/actions/initPreferences.ts +4 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +2 -0
- package/src/component/reducer/preferences/preferencesReducer.ts +3 -3
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +9 -21
- package/src/component/toolbar/ToolTypes.ts +15 -0
- package/src/component/toolbar/nmr_toolbar.tsx +44 -4
- package/src/component/utility/{CoreSlot.tsx → core_slots/core_operator_expanded.tsx} +5 -57
- package/src/component/utility/core_slots/core_operator_name.tsx +21 -0
- package/src/component/utility/core_slots/core_operator_panel_tool.tsx +41 -0
- package/src/component/utility/core_slots/core_operator_tool.tsx +41 -0
- package/src/component/utility/core_slots/core_operator_topbar.tsx +65 -0
- package/src/component/utility/core_slots/core_slot.tsx +39 -0
- package/src/component/utility/formatNumber.ts +24 -2
- package/src/component/utility/toolbar_item_error.tsx +29 -0
- package/src/component/workspaces/assignment.ts +1 -0
- package/src/component/workspaces/basic.ts +1 -0
- package/src/component/workspaces/exercise.ts +1 -0
- package/src/component/workspaces/prediction.ts +1 -0
- package/src/component/workspaces/process1D.ts +1 -0
- package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
- package/src/data/SpectraManager.ts +2 -3
- package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
- package/src/data/data1d/Spectrum1D/index.ts +0 -1
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +4 -2
- package/src/data/data1d/Spectrum1D/peaks/changePeakRelativeValue.ts +26 -0
- package/src/data/data1d/multipleSpectraAnalysis.ts +2 -1
- package/src/data/data2d/Spectrum2D/contours.ts +3 -5
- package/src/data/data2d/Spectrum2D/getSlice.ts +3 -4
- package/src/data/data2d/Spectrum2D/index.ts +0 -1
- package/src/data/get_view_spectra.ts +21 -0
- package/src/data/utilities/FindUtilities.ts +1 -3
- package/src/data/utilities/RangeUtilities.ts +5 -2
- package/src/data/utilities/getPeakAbsoluteArea.ts +7 -0
- package/src/versionInfo.ts +1 -1
- package/lib/component/panels/hooks/use_processings_mutation.d.ts +0 -10
- package/lib/component/panels/hooks/use_processings_mutation.d.ts.map +0 -1
- package/lib/component/panels/hooks/use_processings_mutation.js +0 -130
- package/lib/component/panels/hooks/use_processings_mutation.js.map +0 -1
- package/lib/component/utility/CoreSlot.d.ts +0 -27
- package/lib/component/utility/CoreSlot.d.ts.map +0 -1
- package/lib/component/utility/CoreSlot.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +0 -5
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +0 -10
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -14
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +0 -22
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +0 -1
- package/src/component/panels/hooks/use_processings_mutation.ts +0 -171
- package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +0 -19
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +0 -36
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Info1D } from '@zakodium/nmr-types';
|
|
2
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
3
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
3
4
|
import type { Draft } from 'immer';
|
|
4
5
|
import type { DatabaseNMREntry } from 'nmr-processing';
|
|
5
6
|
|
|
6
7
|
import {
|
|
7
8
|
initiateDatum1D,
|
|
8
|
-
isSpectrum1D,
|
|
9
9
|
mapRanges,
|
|
10
10
|
updateRangesRelativeValues,
|
|
11
11
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
@@ -19,7 +19,7 @@ import { filterDatabaseInfoEntry } from '../../utility/filterDatabaseInfoEntry.j
|
|
|
19
19
|
import { getSpectraByNucleus } from '../../utility/getSpectraByNucleus.ts';
|
|
20
20
|
import type { State } from '../Reducer.js';
|
|
21
21
|
import { setZoom } from '../helper/Zoom1DManager.js';
|
|
22
|
-
import
|
|
22
|
+
import { restoreLastZoomDomain } from '../helper/ZoomHistoryManager.js';
|
|
23
23
|
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
24
24
|
import type { ActionType } from '../types/ActionType.js';
|
|
25
25
|
|
|
@@ -35,6 +35,20 @@ interface ResurrectSpectrumFromJCAMP extends BaseResurrectSpectrum {
|
|
|
35
35
|
spectra: Spectrum[];
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
const DEFAULT_DATABASE_SPECTRUM_DOMAINS: Record<
|
|
39
|
+
string,
|
|
40
|
+
{ from: number; to: number }
|
|
41
|
+
> = {
|
|
42
|
+
'1H': {
|
|
43
|
+
from: -1,
|
|
44
|
+
to: 13,
|
|
45
|
+
},
|
|
46
|
+
'13C': {
|
|
47
|
+
from: -5,
|
|
48
|
+
to: 245,
|
|
49
|
+
},
|
|
50
|
+
} as const;
|
|
51
|
+
|
|
38
52
|
type ResurrectSpectrumFromRangesOrSignalsAction = ActionType<
|
|
39
53
|
'RESURRECTING_SPECTRUM_FROM_SIGNALS_OR_RANGES',
|
|
40
54
|
BaseResurrectSpectrum
|
|
@@ -52,16 +66,7 @@ export type DatabaseActions =
|
|
|
52
66
|
function updateDomain(draft: Draft<State>) {
|
|
53
67
|
setDomain(draft, { isYDomainShared: false });
|
|
54
68
|
changeSpectrumVerticalAlignment(draft, { verticalAlign: 'stack' });
|
|
55
|
-
|
|
56
|
-
const zoomHistory = zoomHistoryManager(
|
|
57
|
-
draft.zoom.history,
|
|
58
|
-
draft.view.spectra.activeTab,
|
|
59
|
-
);
|
|
60
|
-
const zoomValue = zoomHistory.getLast();
|
|
61
|
-
if (zoomValue) {
|
|
62
|
-
draft.xDomain = zoomValue.xDomain;
|
|
63
|
-
draft.yDomain = zoomValue.yDomain;
|
|
64
|
-
}
|
|
69
|
+
restoreLastZoomDomain(draft);
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
function handleResurrectSpectrumFromJCAMP(
|
|
@@ -110,6 +115,10 @@ function handleResurrectSpectrumFromJCAMP(
|
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
|
|
118
|
+
if (!draft.view.spectra.activeTab) {
|
|
119
|
+
draft.view.spectra.activeTab = spectra1D[0].info.nucleus;
|
|
120
|
+
}
|
|
121
|
+
|
|
113
122
|
updateDomain(draft);
|
|
114
123
|
|
|
115
124
|
const active1DSpectra = getSpectraByNucleus(
|
|
@@ -126,10 +135,8 @@ function handleResurrectSpectrumFromRangesOrSignals(
|
|
|
126
135
|
draft: Draft<State>,
|
|
127
136
|
action: ResurrectSpectrumFromRangesOrSignalsAction,
|
|
128
137
|
) {
|
|
129
|
-
const {
|
|
130
|
-
spectra: { activeTab: nucleus },
|
|
131
|
-
} = draft.view;
|
|
132
138
|
const { databaseEntry, molfile } = action.payload;
|
|
139
|
+
const nucleus = draft.view.spectra.activeTab || databaseEntry.nucleus;
|
|
133
140
|
const {
|
|
134
141
|
ranges,
|
|
135
142
|
signals,
|
|
@@ -154,6 +161,9 @@ function handleResurrectSpectrumFromRangesOrSignals(
|
|
|
154
161
|
} = activeSpectrum;
|
|
155
162
|
options = { from: x[0], to: x.at(-1) };
|
|
156
163
|
info = { ...spectrumInfo, ...info };
|
|
164
|
+
} else {
|
|
165
|
+
const domain = DEFAULT_DATABASE_SPECTRUM_DOMAINS[nucleus || '1H'];
|
|
166
|
+
options = { ...domain };
|
|
157
167
|
}
|
|
158
168
|
|
|
159
169
|
let resurrectedSpectrum: Spectrum | null | undefined = null;
|
|
@@ -180,6 +190,10 @@ function handleResurrectSpectrumFromRangesOrSignals(
|
|
|
180
190
|
resurrectedSpectrum.customInfo = filterDatabaseEntryInfo;
|
|
181
191
|
draft.data.push(resurrectedSpectrum);
|
|
182
192
|
|
|
193
|
+
if (!draft.view.spectra.activeTab) {
|
|
194
|
+
draft.view.spectra.activeTab = resurrectedSpectrum.info.nucleus;
|
|
195
|
+
}
|
|
196
|
+
|
|
183
197
|
updateDomain(draft);
|
|
184
198
|
|
|
185
199
|
setZoom(draft, { scale: 0.8, spectrumID: resurrectedSpectrum.id });
|
|
@@ -4,23 +4,21 @@ import type {
|
|
|
4
4
|
Spectrum2D,
|
|
5
5
|
Spectrum,
|
|
6
6
|
} from '@zakodium/nmrium-core';
|
|
7
|
+
import {
|
|
8
|
+
isSpectrum1D,
|
|
9
|
+
isSpectrum1DFid,
|
|
10
|
+
isSpectrum1DFt,
|
|
11
|
+
isSpectrum2D,
|
|
12
|
+
isSpectrum2DFidData,
|
|
13
|
+
isSpectrum2DFt,
|
|
14
|
+
} from '@zakodium/nmrium-core';
|
|
15
|
+
import { cast } from '@zakodium/utils';
|
|
7
16
|
import type { NmrData2DFt } from 'cheminfo-types';
|
|
8
17
|
import { extent } from 'd3-array';
|
|
9
18
|
import type { Draft } from 'immer';
|
|
10
19
|
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
isSpectrum1D,
|
|
14
|
-
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
15
|
-
import {
|
|
16
|
-
isFid1DSpectrum,
|
|
17
|
-
isFt1DSpectrum,
|
|
18
|
-
} from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
19
|
-
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.js';
|
|
20
|
-
import {
|
|
21
|
-
isFid2DData,
|
|
22
|
-
isFt2DSpectrum,
|
|
23
|
-
} from '../../../data/data2d/Spectrum2D/isSpectrum2D.js';
|
|
20
|
+
import { get1DDataXY } from '../../../data/data1d/Spectrum1D/index.js';
|
|
21
|
+
import { getViewSpectra } from '../../../data/get_view_spectra.ts';
|
|
24
22
|
import nucleusToString from '../../utility/nucleusToString.js';
|
|
25
23
|
import type { State } from '../Reducer.js';
|
|
26
24
|
import { rescaleToSameTop } from '../helper/Zoom1DManager.js';
|
|
@@ -55,7 +53,7 @@ function is2DFTSpectrum(
|
|
|
55
53
|
nucleus: string,
|
|
56
54
|
): spectrum is Spectrum2D & { data: NmrData2DFt } {
|
|
57
55
|
return (
|
|
58
|
-
|
|
56
|
+
isSpectrum2DFt(spectrum) && spectrum.info.nucleus?.join(',') === nucleus
|
|
59
57
|
);
|
|
60
58
|
}
|
|
61
59
|
|
|
@@ -71,13 +69,21 @@ function getActiveData(draft: Draft<State>): Spectrum1D[] {
|
|
|
71
69
|
|
|
72
70
|
const spectrum = getSpectrum(draft);
|
|
73
71
|
if (spectrum) {
|
|
74
|
-
const isFid =
|
|
72
|
+
const isFid = isSpectrum1DFid(spectrum);
|
|
75
73
|
data = data.filter((datum) => datum.info.isFid === isFid);
|
|
76
74
|
} else {
|
|
77
|
-
data = data.filter((datum) =>
|
|
75
|
+
data = data.filter((datum) => isSpectrum1DFt(datum));
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
|
|
78
|
+
cast<Spectrum1D[]>(data);
|
|
79
|
+
|
|
80
|
+
if (!draft.spectrumLiveProcessed) return data;
|
|
81
|
+
if (!isSpectrum1D(draft.spectrumLiveProcessed)) return data;
|
|
82
|
+
|
|
83
|
+
return getViewSpectra({
|
|
84
|
+
data,
|
|
85
|
+
spectrumLiveProcessed: draft.spectrumLiveProcessed,
|
|
86
|
+
});
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
interface GetDomainOptions {
|
|
@@ -143,14 +149,17 @@ function get2DDomain(state: State) {
|
|
|
143
149
|
view: {
|
|
144
150
|
spectra: { activeSpectra, activeTab },
|
|
145
151
|
},
|
|
146
|
-
|
|
152
|
+
spectrumLiveProcessed,
|
|
147
153
|
} = state;
|
|
148
154
|
|
|
155
|
+
const data = getViewSpectra<Spectrum>(state);
|
|
156
|
+
|
|
149
157
|
const nucleus = activeTab.split(',');
|
|
150
|
-
const spectrum =
|
|
158
|
+
const spectrum: Spectrum | undefined =
|
|
159
|
+
spectrumLiveProcessed ?? getSpectrum(state);
|
|
151
160
|
|
|
152
161
|
if (isSpectrum2D(spectrum)) {
|
|
153
|
-
if (
|
|
162
|
+
if (isSpectrum2DFidData(spectrum.data)) {
|
|
154
163
|
const { minX, maxX, minY, maxY } = spectrum.data.re;
|
|
155
164
|
xArray = [minX, maxX];
|
|
156
165
|
yArray = [minY, maxY];
|
|
@@ -272,9 +281,11 @@ function setMode(draft: Draft<State>) {
|
|
|
272
281
|
const {
|
|
273
282
|
xDomains,
|
|
274
283
|
view: { spectra },
|
|
275
|
-
data,
|
|
276
284
|
displayerMode,
|
|
277
285
|
} = draft;
|
|
286
|
+
|
|
287
|
+
const data = getViewSpectra<Spectrum>(draft);
|
|
288
|
+
|
|
278
289
|
const { activeTab: nucleus } = spectra;
|
|
279
290
|
|
|
280
291
|
if (displayerMode === '1D') {
|
|
@@ -282,18 +293,18 @@ function setMode(draft: Draft<State>) {
|
|
|
282
293
|
(datum) =>
|
|
283
294
|
xDomains[datum.id] && nucleusToString(datum.info.nucleus) === nucleus,
|
|
284
295
|
);
|
|
285
|
-
draft.mode = spectrum &&
|
|
296
|
+
draft.mode = spectrum && isSpectrum1DFid(spectrum) ? 'LTR' : 'RTL';
|
|
286
297
|
} else {
|
|
287
298
|
const activeSpectra = getActiveSpectra(spectra);
|
|
288
299
|
let hasFt: boolean;
|
|
289
300
|
if (Array.isArray(activeSpectra) && activeSpectra?.length > 0) {
|
|
290
301
|
hasFt = activeSpectra.some((spectrum) =>
|
|
291
|
-
|
|
302
|
+
isSpectrum2DFt(data[spectrum.index]),
|
|
292
303
|
);
|
|
293
304
|
} else {
|
|
294
305
|
hasFt = data.some(
|
|
295
306
|
(spectrum) =>
|
|
296
|
-
|
|
307
|
+
isSpectrum2DFt(spectrum) &&
|
|
297
308
|
nucleusToString(spectrum.info.nucleus) === nucleus,
|
|
298
309
|
);
|
|
299
310
|
}
|
|
@@ -8,7 +8,18 @@ import type {
|
|
|
8
8
|
MatrixOptions,
|
|
9
9
|
} from '@zakodium/nmr-types';
|
|
10
10
|
import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
|
|
11
|
-
import
|
|
11
|
+
import {
|
|
12
|
+
assertSpectrum2D,
|
|
13
|
+
isSpectrum1D,
|
|
14
|
+
isSpectrum1DFid,
|
|
15
|
+
isSpectrum2D,
|
|
16
|
+
isSpectrum2DFid,
|
|
17
|
+
sliceSpectrum1D,
|
|
18
|
+
sliceSpectrum2D,
|
|
19
|
+
sliceSpectrum,
|
|
20
|
+
} from '@zakodium/nmrium-core';
|
|
21
|
+
import type { Nullish } from '@zakodium/utils';
|
|
22
|
+
import type { NmrData2DFid, NmrData2DFt } from 'cheminfo-types';
|
|
12
23
|
import type { Draft } from 'immer';
|
|
13
24
|
import { current, isDraft } from 'immer';
|
|
14
25
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
@@ -20,12 +31,8 @@ import {
|
|
|
20
31
|
Filters2DManager,
|
|
21
32
|
} from 'nmr-processing';
|
|
22
33
|
|
|
23
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
24
|
-
import { isFid1DSpectrum } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
25
34
|
import { initializeContoursLevels } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
26
35
|
import { getProjection } from '../../../data/data2d/Spectrum2D/getMissingProjection.js';
|
|
27
|
-
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.js';
|
|
28
|
-
import { isFid2DSpectrum } from '../../../data/data2d/Spectrum2D/isSpectrum2D.js';
|
|
29
36
|
import type { FilterEntry } from '../../../data/types/common/FilterEntry.ts';
|
|
30
37
|
import type { ExclusionZone } from '../../../data/types/data1d/ExclusionZone.js';
|
|
31
38
|
import { getMedianWindow } from '../../1d/baseline/getMedianWindow.ts';
|
|
@@ -45,7 +52,7 @@ import {
|
|
|
45
52
|
getDefaultTwoDimensionsPhaseCorrectionTraceOptions,
|
|
46
53
|
getInitialState,
|
|
47
54
|
} from '../Reducer.js';
|
|
48
|
-
import
|
|
55
|
+
import { restoreLastZoomDomain } from '../helper/ZoomHistoryManager.js';
|
|
49
56
|
import { findStrongestPeak } from '../helper/findStrongestPeak.js';
|
|
50
57
|
import { getActiveSpectrum } from '../helper/getActiveSpectrum.js';
|
|
51
58
|
import getRange from '../helper/getRange.js';
|
|
@@ -57,6 +64,12 @@ import { get2DDomain, setDomain, setMode } from './DomainActions.js';
|
|
|
57
64
|
import { changeSpectrumVerticalAlignment } from './PreferencesActions.js';
|
|
58
65
|
import { activateTool, resetSelectedTool } from './ToolsActions.js';
|
|
59
66
|
|
|
67
|
+
function isSpectrumFid(
|
|
68
|
+
spectrum: Spectrum | Nullish,
|
|
69
|
+
): spectrum is Spectrum1D | (Spectrum2D & { data: NmrData2DFid }) {
|
|
70
|
+
return isSpectrum1DFid(spectrum) || isSpectrum2DFid(spectrum);
|
|
71
|
+
}
|
|
72
|
+
|
|
60
73
|
const {
|
|
61
74
|
fft,
|
|
62
75
|
apodization,
|
|
@@ -442,7 +455,7 @@ function rollbackSpectrumByFilter(
|
|
|
442
455
|
const toolData = draft.toolOptions.data;
|
|
443
456
|
if (currentSpectrum) {
|
|
444
457
|
const { index, spectrum } = currentSpectrum;
|
|
445
|
-
previousIsFid =
|
|
458
|
+
previousIsFid = isSpectrumFid(spectrum);
|
|
446
459
|
const filterIndex = spectrum.filters.findIndex((f) => f[searchBy] === key);
|
|
447
460
|
if (filterIndex === -1 || reset) {
|
|
448
461
|
if (draft.tempData) {
|
|
@@ -459,7 +472,7 @@ function rollbackSpectrumByFilter(
|
|
|
459
472
|
|
|
460
473
|
// If the filter doesn't exist, create a clone of the current data.
|
|
461
474
|
draft.tempData = current(draft).data.slice();
|
|
462
|
-
draft.tempData[index] =
|
|
475
|
+
draft.tempData[index] = sliceSpectrum(
|
|
463
476
|
isDraft(spectrum) ? current(spectrum) : spectrum,
|
|
464
477
|
);
|
|
465
478
|
|
|
@@ -485,7 +498,7 @@ function rollbackSpectrumByFilter(
|
|
|
485
498
|
reapplyFilters(spectrum, filters);
|
|
486
499
|
|
|
487
500
|
draft.tempData = current(draft).data.slice();
|
|
488
|
-
draft.tempData[index] =
|
|
501
|
+
draft.tempData[index] = sliceSpectrum(
|
|
489
502
|
isDraft(spectrum) ? current(spectrum) : spectrum,
|
|
490
503
|
);
|
|
491
504
|
|
|
@@ -502,7 +515,7 @@ function rollbackSpectrumByFilter(
|
|
|
502
515
|
});
|
|
503
516
|
}
|
|
504
517
|
|
|
505
|
-
currentIsFid =
|
|
518
|
+
currentIsFid = isSpectrumFid(spectrum);
|
|
506
519
|
|
|
507
520
|
// Update the X and Y domains when switching from FT to FID spectrum,
|
|
508
521
|
if (!previousIsFid && currentIsFid) {
|
|
@@ -538,7 +551,7 @@ function rollbackSpectrumByFilter(
|
|
|
538
551
|
toolOptions: { data },
|
|
539
552
|
} = getInitialState();
|
|
540
553
|
draft.toolOptions.data = data;
|
|
541
|
-
currentIsFid =
|
|
554
|
+
currentIsFid = isSpectrumFid(spectrum);
|
|
542
555
|
}
|
|
543
556
|
}
|
|
544
557
|
setDomain(draft, updateDomainOptions);
|
|
@@ -592,9 +605,7 @@ function getTwoDimensionFilterOptions(
|
|
|
592
605
|
): TwoDimensionPhaseCorrection['traces'] | null {
|
|
593
606
|
const spectrum = getSpectrum(draft);
|
|
594
607
|
|
|
595
|
-
if (!
|
|
596
|
-
return null;
|
|
597
|
-
}
|
|
608
|
+
if (!isSpectrum2D(spectrum)) return null;
|
|
598
609
|
|
|
599
610
|
const phaseCorrectionFilter = spectrum.filters.find(
|
|
600
611
|
(filter: any) => filter.name === Tools.phaseCorrectionTwoDimensions.id,
|
|
@@ -984,21 +995,15 @@ function handleCalculateZeroFillingDimensionOneFilter(
|
|
|
984
995
|
const { options, livePreview } = action.payload;
|
|
985
996
|
if (livePreview) {
|
|
986
997
|
const index = activeSpectrum.index;
|
|
987
|
-
const { data, info, filters } = current(draft).tempData[index];
|
|
988
|
-
|
|
989
|
-
const _data = structuredClone({
|
|
990
|
-
data,
|
|
991
|
-
info,
|
|
992
|
-
filters,
|
|
993
|
-
}) as Spectrum2D;
|
|
994
998
|
|
|
999
|
+
const liveSpectrum: Spectrum2D = current(draft).tempData[index];
|
|
1000
|
+
const _data = sliceSpectrum2D(liveSpectrum);
|
|
995
1001
|
zeroFillingDimension1.apply(_data, options);
|
|
996
1002
|
|
|
997
1003
|
const datum = draft.data[index];
|
|
998
1004
|
|
|
999
|
-
if (!isSpectrum2D(datum))
|
|
1000
|
-
|
|
1001
|
-
}
|
|
1005
|
+
if (!isSpectrum2D(datum)) return;
|
|
1006
|
+
|
|
1002
1007
|
datum.data = _data.data;
|
|
1003
1008
|
const { xDomain, yDomain, xDomains, yDomains } = get2DDomain(
|
|
1004
1009
|
current(draft),
|
|
@@ -1025,21 +1030,16 @@ function handleCalculateZeroFillingDimensionTwoFilter(
|
|
|
1025
1030
|
const { options, livePreview } = action.payload;
|
|
1026
1031
|
if (livePreview) {
|
|
1027
1032
|
const index = activeSpectrum.index;
|
|
1028
|
-
const { data, info, filters } = current(draft).tempData[index];
|
|
1029
1033
|
|
|
1030
|
-
const
|
|
1031
|
-
|
|
1032
|
-
info,
|
|
1033
|
-
filters,
|
|
1034
|
-
}) as Spectrum2D;
|
|
1034
|
+
const liveSpectrum: Spectrum2D = current(draft).tempData[index];
|
|
1035
|
+
const _data = sliceSpectrum2D(liveSpectrum);
|
|
1035
1036
|
|
|
1036
1037
|
zeroFillingDimension2.apply(_data, options);
|
|
1037
1038
|
|
|
1038
1039
|
const datum = draft.data[index];
|
|
1039
1040
|
|
|
1040
|
-
if (!isSpectrum2D(datum))
|
|
1041
|
-
|
|
1042
|
-
}
|
|
1041
|
+
if (!isSpectrum2D(datum)) return;
|
|
1042
|
+
|
|
1043
1043
|
datum.data = _data.data;
|
|
1044
1044
|
|
|
1045
1045
|
const { xDomain, yDomain, xDomains, yDomains } = get2DDomain(
|
|
@@ -1072,15 +1072,12 @@ function handleCalculateApodizationFilter(
|
|
|
1072
1072
|
if (livePreview) {
|
|
1073
1073
|
const datum = draft.data[index];
|
|
1074
1074
|
|
|
1075
|
-
if (!isSpectrum1D(datum))
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
const spectrum: Spectrum1D = structuredClone(
|
|
1079
|
-
current(draft).tempData[index],
|
|
1080
|
-
);
|
|
1075
|
+
if (!isSpectrum1D(datum)) return;
|
|
1076
|
+
|
|
1077
|
+
const liveSpectrum = sliceSpectrum1D(current(draft).tempData[index]);
|
|
1081
1078
|
|
|
1082
1079
|
if (!tempRollback) {
|
|
1083
|
-
apodization.apply(
|
|
1080
|
+
apodization.apply(liveSpectrum, options);
|
|
1084
1081
|
} else {
|
|
1085
1082
|
const index = datum.filters.findIndex(
|
|
1086
1083
|
(filter) => filter.name === 'apodization',
|
|
@@ -1096,14 +1093,14 @@ function handleCalculateApodizationFilter(
|
|
|
1096
1093
|
try {
|
|
1097
1094
|
const filterOptions =
|
|
1098
1095
|
filter.name === 'apodization' ? options : filter.value;
|
|
1099
|
-
Filters1D[filter.name].apply(
|
|
1096
|
+
Filters1D[filter.name].apply(liveSpectrum, filterOptions as any);
|
|
1100
1097
|
} catch (error: any) {
|
|
1101
1098
|
filter.error = error.message;
|
|
1102
1099
|
}
|
|
1103
1100
|
}
|
|
1104
1101
|
}
|
|
1105
1102
|
|
|
1106
|
-
const { im: newIm, re: newRe } =
|
|
1103
|
+
const { im: newIm, re: newRe } = liveSpectrum.data;
|
|
1107
1104
|
|
|
1108
1105
|
datum.data.im = newIm;
|
|
1109
1106
|
datum.data.re = newRe;
|
|
@@ -1125,19 +1122,15 @@ function handleCalculateApodizationDimensionOneFilter(
|
|
|
1125
1122
|
const index = activeSpectrum.index;
|
|
1126
1123
|
const { livePreview, options } = action.payload;
|
|
1127
1124
|
if (livePreview) {
|
|
1128
|
-
const
|
|
1125
|
+
const liveSpectrum: Spectrum2D = current(draft).tempData[index];
|
|
1129
1126
|
|
|
1130
|
-
const _data =
|
|
1131
|
-
data,
|
|
1132
|
-
info,
|
|
1133
|
-
}) as Spectrum2D;
|
|
1127
|
+
const _data = sliceSpectrum2D(liveSpectrum);
|
|
1134
1128
|
apodizationDimension1.apply(_data, options);
|
|
1135
1129
|
|
|
1136
1130
|
const datum = draft.data[index];
|
|
1137
1131
|
|
|
1138
|
-
if (!isSpectrum2D(datum))
|
|
1139
|
-
|
|
1140
|
-
}
|
|
1132
|
+
if (!isSpectrum2D(datum)) return;
|
|
1133
|
+
|
|
1141
1134
|
datum.data = _data.data;
|
|
1142
1135
|
} else {
|
|
1143
1136
|
disableLivePreview(draft, apodizationDimension1.name);
|
|
@@ -1157,20 +1150,15 @@ function handleCalculateApodizationDimensionTwoFilter(
|
|
|
1157
1150
|
const index = activeSpectrum.index;
|
|
1158
1151
|
const { livePreview, options } = action.payload;
|
|
1159
1152
|
if (livePreview) {
|
|
1160
|
-
const
|
|
1161
|
-
|
|
1162
|
-
const _data = structuredClone({
|
|
1163
|
-
data,
|
|
1164
|
-
info,
|
|
1165
|
-
}) as Spectrum2D;
|
|
1153
|
+
const liveSpectrum: Spectrum2D = current(draft).tempData[index];
|
|
1166
1154
|
|
|
1155
|
+
const _data = sliceSpectrum2D(liveSpectrum);
|
|
1167
1156
|
apodizationDimension2.apply(_data, options);
|
|
1168
1157
|
|
|
1169
1158
|
const datum = draft.data[index];
|
|
1170
1159
|
|
|
1171
|
-
if (!isSpectrum2D(datum))
|
|
1172
|
-
|
|
1173
|
-
}
|
|
1160
|
+
if (!isSpectrum2D(datum)) return;
|
|
1161
|
+
|
|
1174
1162
|
datum.data = _data.data;
|
|
1175
1163
|
} else {
|
|
1176
1164
|
disableLivePreview(draft, apodizationDimension2.name);
|
|
@@ -1326,9 +1314,7 @@ function applyFFTTwoDimensionFilter(
|
|
|
1326
1314
|
}
|
|
1327
1315
|
|
|
1328
1316
|
const spectrum = draft.data[index];
|
|
1329
|
-
if (!isSpectrum2D(spectrum))
|
|
1330
|
-
return;
|
|
1331
|
-
}
|
|
1317
|
+
if (!isSpectrum2D(spectrum)) return;
|
|
1332
1318
|
|
|
1333
1319
|
updateView(draft, domainUpdateRules);
|
|
1334
1320
|
|
|
@@ -1680,17 +1666,7 @@ function handleEnableFilter(draft: Draft<State>, action: EnableFilterAction) {
|
|
|
1680
1666
|
resetSelectedTool(draft);
|
|
1681
1667
|
setDomain(draft);
|
|
1682
1668
|
setMode(draft);
|
|
1683
|
-
|
|
1684
|
-
const zoomHistory = zoomHistoryManager(
|
|
1685
|
-
draft.zoom.history,
|
|
1686
|
-
draft.view.spectra.activeTab,
|
|
1687
|
-
);
|
|
1688
|
-
const zoomValue = zoomHistory.getLast();
|
|
1689
|
-
|
|
1690
|
-
if (zoomValue) {
|
|
1691
|
-
draft.xDomain = zoomValue.xDomain;
|
|
1692
|
-
draft.yDomain = zoomValue.yDomain;
|
|
1693
|
-
}
|
|
1669
|
+
restoreLastZoomDomain(draft);
|
|
1694
1670
|
}
|
|
1695
1671
|
|
|
1696
1672
|
function deleteFilter(datum: Spectrum, id?: string) {
|
|
@@ -2009,12 +1985,15 @@ function handleCalculateManualTwoDimensionPhaseCorrection(
|
|
|
2009
1985
|
}
|
|
2010
1986
|
|
|
2011
1987
|
const { index } = activeSpectrum;
|
|
2012
|
-
|
|
1988
|
+
|
|
1989
|
+
const tempSpectrum = current(draft).tempData[index];
|
|
1990
|
+
if (!tempSpectrum) return;
|
|
1991
|
+
|
|
1992
|
+
const spectrum = sliceSpectrum(tempSpectrum);
|
|
2013
1993
|
const datum = draft.data[index];
|
|
2014
1994
|
|
|
2015
|
-
if (!isSpectrum2D(datum)
|
|
2016
|
-
|
|
2017
|
-
}
|
|
1995
|
+
if (!isSpectrum2D(datum)) return;
|
|
1996
|
+
assertSpectrum2D(spectrum);
|
|
2018
1997
|
|
|
2019
1998
|
const filterOptions = getTwoDimensionsPhaseCorrectionOptions(draft);
|
|
2020
1999
|
|
|
@@ -3,11 +3,11 @@ import type {
|
|
|
3
3
|
PeaksViewState,
|
|
4
4
|
RangesViewState,
|
|
5
5
|
} from '@zakodium/nmrium-core';
|
|
6
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
6
7
|
import { scaleLinear } from 'd3-scale';
|
|
7
8
|
import { zoomIdentity } from 'd3-zoom';
|
|
8
9
|
import type { Draft } from 'immer';
|
|
9
10
|
|
|
10
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
11
11
|
import { insetMargin } from '../../1d/inset/InsetProvider.js';
|
|
12
12
|
import type {
|
|
13
13
|
Inset,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Integral } from '@zakodium/nmr-types';
|
|
2
2
|
import type { IntegralsViewState, Spectrum1D } from '@zakodium/nmrium-core';
|
|
3
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
3
4
|
import type { Draft } from 'immer';
|
|
4
5
|
import { original } from 'immer';
|
|
5
6
|
import { xyIntegration } from 'ml-spectra-processing';
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
import {
|
|
16
17
|
changeIntegralsRelative,
|
|
17
18
|
getShiftX,
|
|
18
|
-
isSpectrum1D,
|
|
19
19
|
updateIntegralsRelativeValues,
|
|
20
20
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
21
21
|
import type { FilterType } from '../../utility/filterType.js';
|
|
@@ -10,8 +10,8 @@ import type { Draft } from 'immer';
|
|
|
10
10
|
import { produce } from 'immer';
|
|
11
11
|
import lodashMerge from 'lodash/merge.js';
|
|
12
12
|
import lodashMergeWith from 'lodash/mergeWith.js';
|
|
13
|
-
import type { CorrelationData } from 'nmr-
|
|
14
|
-
import {
|
|
13
|
+
import type { CorrelationData } from 'nmr-processing';
|
|
14
|
+
import { correlationApi } from 'nmr-processing';
|
|
15
15
|
import type { ParseResult } from 'papaparse';
|
|
16
16
|
|
|
17
17
|
import { initiateDatum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
@@ -78,9 +78,12 @@ function convertHybridizationStringValuesInCorrelations(
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
function setCorrelation(
|
|
81
|
+
function setCorrelation(
|
|
82
|
+
draft: Draft<State>,
|
|
83
|
+
correlations: CorrelationData | null,
|
|
84
|
+
) {
|
|
82
85
|
if (!correlations || Object.keys(correlations).length === 0) {
|
|
83
|
-
draft.correlations = buildCorrelationData([], {
|
|
86
|
+
draft.correlations = correlationApi.buildCorrelationData([], {
|
|
84
87
|
tolerance: DefaultTolerance,
|
|
85
88
|
});
|
|
86
89
|
} else {
|
|
@@ -120,7 +123,7 @@ function setData(draft: Draft<State>, input: InputProps | InitiateProps) {
|
|
|
120
123
|
sources,
|
|
121
124
|
spectra = [],
|
|
122
125
|
molecules = [],
|
|
123
|
-
correlations =
|
|
126
|
+
correlations = null,
|
|
124
127
|
} = data || {};
|
|
125
128
|
|
|
126
129
|
if (view) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MoleculeView, StateMolecule } from '@zakodium/nmrium-core';
|
|
2
|
+
import { isSpectrum1D, isSpectrum2D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Logger } from 'cheminfo-types';
|
|
3
4
|
import type { FifoLogger } from 'fifo-logger';
|
|
4
5
|
import type { Draft } from 'immer';
|
|
@@ -13,9 +14,7 @@ import type {
|
|
|
13
14
|
} from '../../../data/PredictionManager.js';
|
|
14
15
|
import { generateSpectra } from '../../../data/PredictionManager.js';
|
|
15
16
|
import { changeSpectraRelativeSum } from '../../../data/data1d/Spectrum1D/SumManager.js';
|
|
16
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
17
17
|
import { initializeContoursLevels } from '../../../data/data2d/Spectrum2D/contours.ts';
|
|
18
|
-
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.ts';
|
|
19
18
|
import type { MoleculeBoundingRect } from '../../../data/molecules/Molecule.js';
|
|
20
19
|
import { DRAGGABLE_STRUCTURE_INITIAL_BOUNDING_REACT } from '../../../data/molecules/Molecule.js';
|
|
21
20
|
import * as MoleculeManager from '../../../data/molecules/MoleculeManager.js';
|