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
|
@@ -4,19 +4,21 @@ import type {
|
|
|
4
4
|
RangesViewState,
|
|
5
5
|
ViewState,
|
|
6
6
|
} from '@zakodium/nmrium-core';
|
|
7
|
+
import { isSpectrum1D } 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
11
|
import type { OptionsXYAutoPeaksPicking } from 'nmr-processing';
|
|
11
|
-
import { mapPeaks } from 'nmr-processing';
|
|
12
|
+
import { mapPeaks, updatePeaksRelativeValues } from 'nmr-processing';
|
|
12
13
|
|
|
13
14
|
import { DEFAULT_PEAK_SHAPE } from '../../../data/constants/defaultPeakShape.ts';
|
|
14
15
|
import {
|
|
15
16
|
autoPeakPicking,
|
|
16
17
|
getShiftX,
|
|
17
|
-
isSpectrum1D,
|
|
18
18
|
optimizePeaks,
|
|
19
19
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
20
|
+
import type { ChangePeakRelativeValueProps } from '../../../data/data1d/Spectrum1D/peaks/changePeakRelativeValue.ts';
|
|
21
|
+
import { changePeakRelativeValue } from '../../../data/data1d/Spectrum1D/peaks/changePeakRelativeValue.ts';
|
|
20
22
|
import { defaultPeaksViewState } from '../../hooks/useActiveSpectrumPeaksViewState.js';
|
|
21
23
|
import { getDefaultRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
22
24
|
import type { FilterType } from '../../utility/filterType.js';
|
|
@@ -28,6 +30,11 @@ import getRange from '../helper/getRange.js';
|
|
|
28
30
|
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
29
31
|
import type { ActionType } from '../types/ActionType.js';
|
|
30
32
|
|
|
33
|
+
type ChangePeaksRelativeValueAction = ActionType<
|
|
34
|
+
'CHANGE_PEAK_RELATIVE',
|
|
35
|
+
ChangePeakRelativeValueProps
|
|
36
|
+
>;
|
|
37
|
+
|
|
31
38
|
type AddPeakAction = ActionType<
|
|
32
39
|
'ADD_PEAK',
|
|
33
40
|
{ x: number; defaultPeakShape?: Peak1D['shape'] }
|
|
@@ -75,6 +82,7 @@ export type PeaksActions =
|
|
|
75
82
|
| AutoPeaksPickingAction
|
|
76
83
|
| ChangePeaksShapeAction
|
|
77
84
|
| TogglePeaksViewAction
|
|
85
|
+
| ChangePeaksRelativeValueAction
|
|
78
86
|
| ActionType<'TOGGLE_PEAKS_DISPLAYING_MODE'>;
|
|
79
87
|
|
|
80
88
|
//action
|
|
@@ -105,6 +113,7 @@ function handleAddPeak(draft: Draft<State>, action: AddPeakAction) {
|
|
|
105
113
|
shape: { ...defaultPeakShape },
|
|
106
114
|
};
|
|
107
115
|
spectrum.peaks.values.push(...mapPeaks([peak], spectrum));
|
|
116
|
+
updatePeaksRelativeValues(spectrum);
|
|
108
117
|
}
|
|
109
118
|
}
|
|
110
119
|
|
|
@@ -134,6 +143,7 @@ function handleAddPeaks(draft: Draft<State>, action: AddPeaksAction) {
|
|
|
134
143
|
shape: { ...defaultPeakShape },
|
|
135
144
|
};
|
|
136
145
|
spectrum.peaks.values.push(newPeak);
|
|
146
|
+
updatePeaksRelativeValues(spectrum);
|
|
137
147
|
}
|
|
138
148
|
}
|
|
139
149
|
}
|
|
@@ -153,6 +163,8 @@ function handleDeletePeak(draft: Draft<State>, action: DeletePeakAction) {
|
|
|
153
163
|
);
|
|
154
164
|
spectrum.peaks.values.splice(peakIndex, 1);
|
|
155
165
|
}
|
|
166
|
+
|
|
167
|
+
updatePeaksRelativeValues(spectrum);
|
|
156
168
|
}
|
|
157
169
|
|
|
158
170
|
//action
|
|
@@ -171,6 +183,7 @@ function handleOptimizePeaks(draft: Draft<State>, action: OptimizePeaksAction) {
|
|
|
171
183
|
});
|
|
172
184
|
|
|
173
185
|
spectrum.peaks.values = newPeaks;
|
|
186
|
+
updatePeaksRelativeValues(spectrum);
|
|
174
187
|
}
|
|
175
188
|
|
|
176
189
|
//action
|
|
@@ -207,6 +220,7 @@ function handleAutoPeakPicking(
|
|
|
207
220
|
defaultPeakShape,
|
|
208
221
|
});
|
|
209
222
|
spectrum.peaks.values = spectrum.peaks.values.concat(peaks);
|
|
223
|
+
updatePeaksRelativeValues(spectrum);
|
|
210
224
|
}
|
|
211
225
|
|
|
212
226
|
toolOptions.selectedTool = 'zoom';
|
|
@@ -235,6 +249,7 @@ function handleChangePeakShape(
|
|
|
235
249
|
if (peakIndex !== -1) {
|
|
236
250
|
spectrum.peaks.values[peakIndex].shape = shape;
|
|
237
251
|
}
|
|
252
|
+
updatePeaksRelativeValues(spectrum);
|
|
238
253
|
}
|
|
239
254
|
|
|
240
255
|
//action
|
|
@@ -308,12 +323,24 @@ function handleChangePeaksDisplayingMode(draft: Draft<State>) {
|
|
|
308
323
|
toggleDisplayingPeaks(draft, 'peaks');
|
|
309
324
|
}
|
|
310
325
|
|
|
326
|
+
//action
|
|
327
|
+
function handleChangeRangeRelativeValue(
|
|
328
|
+
draft: Draft<State>,
|
|
329
|
+
action: ChangePeaksRelativeValueAction,
|
|
330
|
+
) {
|
|
331
|
+
const spectrum = getSpectrum(draft);
|
|
332
|
+
if (!isSpectrum1D(spectrum)) return;
|
|
333
|
+
|
|
334
|
+
changePeakRelativeValue(spectrum, action.payload);
|
|
335
|
+
}
|
|
336
|
+
|
|
311
337
|
export {
|
|
312
338
|
handleAddPeak,
|
|
313
339
|
handleAddPeaks,
|
|
314
340
|
handleAutoPeakPicking,
|
|
315
341
|
handleChangePeakShape,
|
|
316
342
|
handleChangePeaksDisplayingMode,
|
|
343
|
+
handleChangeRangeRelativeValue,
|
|
317
344
|
handleDeletePeak,
|
|
318
345
|
handleOptimizePeaks,
|
|
319
346
|
handleTogglePeaksViewProperty,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
1
|
+
import type { Spectrum1D, Spectrum } from '@zakodium/nmrium-core';
|
|
2
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { Draft } from 'immer';
|
|
3
4
|
|
|
4
|
-
import {
|
|
5
|
+
import { getViewSpectra } from '../../../data/get_view_spectra.ts';
|
|
5
6
|
import groupByInfoKey from '../../utility/groupByInfoKey.js';
|
|
6
7
|
import nucleusToString from '../../utility/nucleusToString.js';
|
|
7
8
|
import type { State, VerticalAlignment } from '../Reducer.js';
|
|
@@ -29,10 +30,12 @@ function changeSpectrumVerticalAlignment(
|
|
|
29
30
|
const { verticalAlign = 'bottom', activeTab } = options;
|
|
30
31
|
const nucleus = activeTab || draft.view.spectra.activeTab;
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
const data = getViewSpectra<Spectrum>(draft);
|
|
34
|
+
|
|
35
|
+
if (data && data.length > 0) {
|
|
33
36
|
let dataPerNucleus: Spectrum1D[] = [];
|
|
34
37
|
if (['auto-check', 'stack'].includes(options.verticalAlign || '')) {
|
|
35
|
-
dataPerNucleus =
|
|
38
|
+
dataPerNucleus = data.filter(
|
|
36
39
|
(datum) => datum.info.nucleus === nucleus && isSpectrum1D(datum),
|
|
37
40
|
) as Spectrum1D[];
|
|
38
41
|
}
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
RangesViewState,
|
|
5
5
|
Spectrum1D,
|
|
6
6
|
} from '@zakodium/nmrium-core';
|
|
7
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
7
8
|
import type { Draft } from 'immer';
|
|
8
9
|
import { xFindClosestIndex } from 'ml-spectra-processing';
|
|
9
10
|
import { Filters1DManager } from 'nmr-processing';
|
|
@@ -20,7 +21,6 @@ import {
|
|
|
20
21
|
changeRangeRelativeValue,
|
|
21
22
|
changeRangeSignal,
|
|
22
23
|
detectRanges,
|
|
23
|
-
isSpectrum1D,
|
|
24
24
|
updateRangesRelativeValues,
|
|
25
25
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
26
26
|
import type { ChangeRangeRelativeValueProps } from '../../../data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js';
|
|
@@ -79,11 +79,15 @@ interface DeleteSignalProps {
|
|
|
79
79
|
}
|
|
80
80
|
type DeleteSignalAction = ActionType<'DELETE_1D_SIGNAL', DeleteSignalProps>;
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
type SignalSelector =
|
|
83
|
+
| { signalId: string; signalIndex?: never }
|
|
84
|
+
| { signalIndex: number; signalId?: never }
|
|
85
|
+
| { signalId?: never; signalIndex?: never };
|
|
86
|
+
|
|
87
|
+
type UnAssign1DSignalOptions = {
|
|
83
88
|
rangeKey?: string;
|
|
84
|
-
spectrumId?: string;
|
|
85
|
-
|
|
86
|
-
}
|
|
89
|
+
spectrumId?: string;
|
|
90
|
+
} & SignalSelector;
|
|
87
91
|
type UnAssign1DSignalAction = ActionType<
|
|
88
92
|
'UNASSIGN_1D_SIGNAL',
|
|
89
93
|
UnAssign1DSignalOptions
|
|
@@ -295,9 +299,7 @@ function handleDeleteRange(draft: Draft<State>, action: DeleteRangeAction) {
|
|
|
295
299
|
|
|
296
300
|
const datum = getSpectrum(draft, spectrumKey);
|
|
297
301
|
|
|
298
|
-
if (!
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
302
|
+
if (!isSpectrum1D(datum)) return;
|
|
301
303
|
|
|
302
304
|
if (id) {
|
|
303
305
|
const rangeIndex = getRangeIndex(datum, id);
|
|
@@ -415,24 +417,49 @@ function handleDeleteSignal(draft: Draft<State>, action: DeleteSignalAction) {
|
|
|
415
417
|
deleteSignal1D(draft, action.payload);
|
|
416
418
|
}
|
|
417
419
|
|
|
420
|
+
function resolveSignalIndex(
|
|
421
|
+
range: Range,
|
|
422
|
+
{
|
|
423
|
+
signalId,
|
|
424
|
+
signalIndex = -1,
|
|
425
|
+
}: Pick<UnAssign1DSignalOptions, 'signalId' | 'signalIndex'>,
|
|
426
|
+
): number {
|
|
427
|
+
if (!signalId) return signalIndex;
|
|
428
|
+
return range.signals.findIndex((signal) => signal.id === signalId);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
function clearRangeAssignment(
|
|
432
|
+
ranges: Draft<Range[]>,
|
|
433
|
+
rangeIndex: number,
|
|
434
|
+
options: Pick<UnAssign1DSignalOptions, 'signalId' | 'signalIndex'>,
|
|
435
|
+
) {
|
|
436
|
+
const index = resolveSignalIndex(ranges[rangeIndex], options);
|
|
437
|
+
ranges[rangeIndex] = unlink(ranges[rangeIndex], index);
|
|
438
|
+
}
|
|
439
|
+
|
|
418
440
|
function clearSignalAssignment(
|
|
419
441
|
draft: Draft<State>,
|
|
420
442
|
options: UnAssign1DSignalOptions = {},
|
|
421
443
|
) {
|
|
422
|
-
const { spectrumId, rangeKey, signalIndex = -1 } = options;
|
|
444
|
+
const { spectrumId, rangeKey, signalIndex = -1, signalId } = options;
|
|
423
445
|
|
|
424
446
|
const spectrum = getSpectrum(draft, spectrumId);
|
|
425
447
|
if (!isSpectrum1D(spectrum)) return;
|
|
426
448
|
|
|
427
449
|
const ranges = spectrum.ranges.values;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
ranges[rangeIndex] = unlink(ranges[rangeIndex], signalIndex);
|
|
431
|
-
} else {
|
|
450
|
+
|
|
451
|
+
if (!rangeKey) {
|
|
432
452
|
for (const range of ranges) {
|
|
433
453
|
unlink(range, -1);
|
|
434
454
|
}
|
|
455
|
+
return;
|
|
435
456
|
}
|
|
457
|
+
|
|
458
|
+
const rangeIndex = getRangeIndex(spectrum, rangeKey);
|
|
459
|
+
const index = resolveSignalIndex(ranges[rangeIndex], options);
|
|
460
|
+
ranges[rangeIndex] = unlink(ranges[rangeIndex], index);
|
|
461
|
+
|
|
462
|
+
clearRangeAssignment(ranges, rangeIndex, { signalId, signalIndex });
|
|
436
463
|
}
|
|
437
464
|
|
|
438
465
|
//action
|
|
@@ -650,11 +677,39 @@ function handleCutRange(draft: Draft<State>, action: CutRangAction) {
|
|
|
650
677
|
const ranges = spectrum.ranges.values;
|
|
651
678
|
|
|
652
679
|
for (let i = 0; i < ranges.length; i++) {
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
680
|
+
const originalRange = ranges[i];
|
|
681
|
+
const { id, signals } = originalRange;
|
|
682
|
+
const newRanges = cutRanges?.[id];
|
|
683
|
+
|
|
684
|
+
if (!newRanges) {
|
|
685
|
+
continue;
|
|
657
686
|
}
|
|
687
|
+
|
|
688
|
+
let remainingSignals = signals ?? [];
|
|
689
|
+
|
|
690
|
+
for (const newRange of newRanges) {
|
|
691
|
+
const { from, to } = newRange;
|
|
692
|
+
const lower = Math.min(from, to);
|
|
693
|
+
const upper = Math.max(from, to);
|
|
694
|
+
|
|
695
|
+
const matched: Signal1D[] = [];
|
|
696
|
+
const unmatched: Signal1D[] = [];
|
|
697
|
+
|
|
698
|
+
for (const signal of signals ?? []) {
|
|
699
|
+
if (signal.delta >= lower && signal.delta <= upper) {
|
|
700
|
+
matched.push(signal);
|
|
701
|
+
} else {
|
|
702
|
+
unmatched.push(signal);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
newRange.signals = matched;
|
|
707
|
+
remainingSignals = unmatched;
|
|
708
|
+
}
|
|
709
|
+
originalRange.signals = remainingSignals;
|
|
710
|
+
|
|
711
|
+
ranges.splice(i, 1);
|
|
712
|
+
ranges.push(...newRanges);
|
|
658
713
|
}
|
|
659
714
|
|
|
660
715
|
updateRangesRelativeValues(spectrum);
|
|
@@ -9,18 +9,22 @@ import type {
|
|
|
9
9
|
Spectrum2D,
|
|
10
10
|
Spectrum,
|
|
11
11
|
} from '@zakodium/nmrium-core';
|
|
12
|
+
import {
|
|
13
|
+
isSpectrum1D,
|
|
14
|
+
isSpectrum2D,
|
|
15
|
+
isSpectrum2DFt,
|
|
16
|
+
} from '@zakodium/nmrium-core';
|
|
17
|
+
import { assert } from '@zakodium/utils';
|
|
12
18
|
import type { NmrData2DFid, NmrData2DFt } from 'cheminfo-types';
|
|
13
19
|
import dlv from 'dlv';
|
|
14
20
|
import type { Draft } from 'immer';
|
|
15
21
|
import { original } from 'immer';
|
|
16
22
|
import { Filters1DManager } from 'nmr-processing';
|
|
17
|
-
import { assert } from 'react-science/ui';
|
|
18
23
|
|
|
19
24
|
import {
|
|
20
25
|
get1DColor,
|
|
21
26
|
getReferenceShift,
|
|
22
27
|
initiateDatum1D,
|
|
23
|
-
isSpectrum1D,
|
|
24
28
|
resurrectSpectrumFromRanges,
|
|
25
29
|
} from '../../../data/data1d/Spectrum1D/index.js';
|
|
26
30
|
import type { SpectrumSimulationOptions } from '../../../data/data1d/spectrumSimulation.js';
|
|
@@ -29,9 +33,7 @@ import { contoursManager } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
|
29
33
|
import {
|
|
30
34
|
get2DColor,
|
|
31
35
|
getMissingProjection,
|
|
32
|
-
isSpectrum2D,
|
|
33
36
|
} from '../../../data/data2d/Spectrum2D/index.js';
|
|
34
|
-
import { isFt2DSpectrum } from '../../../data/data2d/Spectrum2D/isSpectrum2D.ts';
|
|
35
37
|
import {
|
|
36
38
|
adjustAlpha,
|
|
37
39
|
generateColor,
|
|
@@ -163,15 +165,6 @@ type UpdateSpectrumMetaAction = ActionType<
|
|
|
163
165
|
}
|
|
164
166
|
>;
|
|
165
167
|
|
|
166
|
-
type SetSpectrumAction = ActionType<
|
|
167
|
-
'SET_SPECTRUM',
|
|
168
|
-
{
|
|
169
|
-
index: number;
|
|
170
|
-
spectrum: Spectrum;
|
|
171
|
-
onProduce: (draft: Draft<State>, processedSpectrum: Spectrum) => void;
|
|
172
|
-
}
|
|
173
|
-
>;
|
|
174
|
-
|
|
175
168
|
export type SpectrumActions =
|
|
176
169
|
| ActionType<'TOGGLE_SPECTRA_LEGEND'>
|
|
177
170
|
| ChangeSpectrumVisibilityByIdAction
|
|
@@ -185,8 +178,7 @@ export type SpectrumActions =
|
|
|
185
178
|
| ImportSpectraMetaInfoAction
|
|
186
179
|
| ReColorSpectraBasedOnDistinctValueAction
|
|
187
180
|
| SimulateSpectrumAction
|
|
188
|
-
| UpdateSpectrumMetaAction
|
|
189
|
-
| SetSpectrumAction;
|
|
181
|
+
| UpdateSpectrumMetaAction;
|
|
190
182
|
|
|
191
183
|
function checkIsVisible2D(datum: Spectrum2D): boolean {
|
|
192
184
|
if (!datum.display.isPositiveVisible && !datum.display.isNegativeVisible) {
|
|
@@ -464,7 +456,7 @@ function handleChangeSpectrumSetting(
|
|
|
464
456
|
if (!spectrum) continue;
|
|
465
457
|
|
|
466
458
|
spectrum.display = action.payload.display;
|
|
467
|
-
if (
|
|
459
|
+
if (isSpectrum2DFt(spectrum) && 'contourOptions' in action.payload) {
|
|
468
460
|
draft.view.spectraContourLevels[id] = action.payload.contourOptions;
|
|
469
461
|
const { checkLevel } = contoursManager(
|
|
470
462
|
draft.view.spectraContourLevels[id],
|
|
@@ -818,14 +810,6 @@ function handleUpdateSpectrumMeta(
|
|
|
818
810
|
}
|
|
819
811
|
}
|
|
820
812
|
|
|
821
|
-
function setSpectrum(draft: Draft<State>, action: SetSpectrumAction) {
|
|
822
|
-
const { index, spectrum, onProduce } = action.payload;
|
|
823
|
-
|
|
824
|
-
draft.data[index] = spectrum;
|
|
825
|
-
|
|
826
|
-
onProduce(draft, spectrum);
|
|
827
|
-
}
|
|
828
|
-
|
|
829
813
|
export {
|
|
830
814
|
handleAddMissingProjectionHandler,
|
|
831
815
|
handleAlignSpectraHandler,
|
|
@@ -841,5 +825,4 @@ export {
|
|
|
841
825
|
handleToggleSpectraLegend,
|
|
842
826
|
handleUpdateSpectrumMeta,
|
|
843
827
|
setSpectraMetaInfo,
|
|
844
|
-
setSpectrum,
|
|
845
828
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Spectrum1D, Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
|
|
2
|
+
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import { zoomIdentity } from 'd3-zoom';
|
|
3
4
|
import type { Draft } from 'immer';
|
|
4
5
|
|
|
5
|
-
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
6
6
|
import { contoursManager } from '../../../data/data2d/Spectrum2D/contours.js';
|
|
7
7
|
import { getXScale } from '../../1d/utilities/scale.js';
|
|
8
8
|
import type { Layout } from '../../2d/utilities/DimensionLayout.js';
|
|
@@ -21,6 +21,7 @@ import type { ZoomType } from '../helper/Zoom1DManager.js';
|
|
|
21
21
|
import { setZoom, toScaleRatio, wheelZoom } from '../helper/Zoom1DManager.js';
|
|
22
22
|
import zoomHistoryManager, {
|
|
23
23
|
addToBrushHistory,
|
|
24
|
+
restoreLastZoomDomain,
|
|
24
25
|
} from '../helper/ZoomHistoryManager.js';
|
|
25
26
|
import { getActiveSpectra } from '../helper/getActiveSpectra.js';
|
|
26
27
|
import { getSpectrum } from '../helper/getSpectrum.js';
|
|
@@ -576,15 +577,8 @@ function setActiveTab(draft: Draft<State>, options?: SetActiveTabOptions) {
|
|
|
576
577
|
resetTool(draft);
|
|
577
578
|
|
|
578
579
|
setDomain(draft, domainOptions);
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
draft.view.spectra.activeTab,
|
|
582
|
-
);
|
|
583
|
-
const zoomValue = zoomHistory.getLast();
|
|
584
|
-
if (zoomValue) {
|
|
585
|
-
draft.xDomain = zoomValue.xDomain;
|
|
586
|
-
draft.yDomain = zoomValue.yDomain;
|
|
587
|
-
}
|
|
580
|
+
|
|
581
|
+
restoreLastZoomDomain(draft);
|
|
588
582
|
setMode(draft);
|
|
589
583
|
}
|
|
590
584
|
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import type { Filter2DEntry, SignalKind, Zone } from '@zakodium/nmr-types';
|
|
2
2
|
import type { Spectrum2D, ZonesViewState } from '@zakodium/nmrium-core';
|
|
3
|
+
import { isSpectrum2D } from '@zakodium/nmrium-core';
|
|
3
4
|
import type { FromTo, NmrData2DFt } from 'cheminfo-types';
|
|
4
5
|
import type { Draft } from 'immer';
|
|
5
6
|
import lodashCloneDeep from 'lodash/cloneDeep.js';
|
|
6
|
-
import {
|
|
7
|
-
import { Filters2DManager } from 'nmr-processing';
|
|
7
|
+
import { Filters2DManager, correlationApi } from 'nmr-processing';
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
changeZoneSignal,
|
|
11
11
|
detectZones,
|
|
12
12
|
detectZonesManual,
|
|
13
|
-
isSpectrum2D,
|
|
14
13
|
} from '../../../data/data2d/Spectrum2D/index.js';
|
|
15
14
|
import { unlink } from '../../../data/utilities/ZoneUtilities.js';
|
|
16
15
|
import type { Axis } from '../../assignment/AssignmentsContext.js';
|
|
@@ -19,6 +18,7 @@ import type { TargetAssignKeys } from '../../panels/MoleculesPanel/utilities/get
|
|
|
19
18
|
import type { ZoneData } from '../../panels/ZonesPanel/hooks/useMapZones.js';
|
|
20
19
|
import type { FilterType } from '../../utility/filterType.js';
|
|
21
20
|
import type { State } from '../Reducer.js';
|
|
21
|
+
import { restoreLastZoomDomain } from '../helper/ZoomHistoryManager.ts';
|
|
22
22
|
import type { ZoneBoundary } from '../helper/get2DRange.js';
|
|
23
23
|
import get2DRange from '../helper/get2DRange.js';
|
|
24
24
|
import { getActiveSpectrum } from '../helper/getActiveSpectrum.js';
|
|
@@ -50,6 +50,10 @@ type ChangeZoneSignalDeltaAction = ActionType<
|
|
|
50
50
|
'CHANGE_ZONE_SIGNAL_VALUE',
|
|
51
51
|
{ zoneId: string; signal: { id?: string; deltaX?: number; deltaY?: number } }
|
|
52
52
|
>;
|
|
53
|
+
type Align2DSpectrumAction = ActionType<
|
|
54
|
+
'ALIGN_2D_SPECTRUM',
|
|
55
|
+
{ startX: number; startY: number; endX: number; endY: number }
|
|
56
|
+
>;
|
|
53
57
|
type ChangeZoneSignalKindAction = ActionType<
|
|
54
58
|
'CHANGE_ZONE_SIGNAL_KIND',
|
|
55
59
|
{ zoneData: ZoneData; kind: SignalKind }
|
|
@@ -120,6 +124,7 @@ export type ZonesActions =
|
|
|
120
124
|
| ToggleZonesViewAction
|
|
121
125
|
| ChangeZoneAssignmentLabelAction
|
|
122
126
|
| SetZoneAssignmentLabelCoordinationAction
|
|
127
|
+
| Align2DSpectrumAction
|
|
123
128
|
| ActionType<'AUTO_ZONES_SPECTRA_PICKING'>;
|
|
124
129
|
|
|
125
130
|
//action
|
|
@@ -191,17 +196,12 @@ function handleAutoSpectraZonesDetection(draft: Draft<State>) {
|
|
|
191
196
|
}
|
|
192
197
|
}
|
|
193
198
|
|
|
194
|
-
|
|
195
|
-
function handleChangeZoneSignalDelta(
|
|
199
|
+
function applyShift2DFilters(
|
|
196
200
|
draft: Draft<State>,
|
|
197
|
-
|
|
201
|
+
spectrum: Spectrum2D,
|
|
202
|
+
xShift: number,
|
|
203
|
+
yShift: number,
|
|
198
204
|
) {
|
|
199
|
-
const { zoneId, signal } = action.payload;
|
|
200
|
-
|
|
201
|
-
const spectrum = getSpectrum(draft);
|
|
202
|
-
if (!isSpectrum2D(spectrum)) return;
|
|
203
|
-
|
|
204
|
-
const { xShift, yShift } = changeZoneSignal(spectrum, zoneId, signal);
|
|
205
205
|
const filters: Filter2DEntry[] = [];
|
|
206
206
|
if (xShift !== 0) {
|
|
207
207
|
filters.push({
|
|
@@ -230,6 +230,35 @@ function handleChangeZoneSignalDelta(
|
|
|
230
230
|
|
|
231
231
|
setDomain(draft);
|
|
232
232
|
handleUpdateCorrelations(draft);
|
|
233
|
+
restoreLastZoomDomain(draft);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
//action
|
|
237
|
+
function handleChangeZoneSignalDelta(
|
|
238
|
+
draft: Draft<State>,
|
|
239
|
+
action: ChangeZoneSignalDeltaAction,
|
|
240
|
+
) {
|
|
241
|
+
const { zoneId, signal } = action.payload;
|
|
242
|
+
|
|
243
|
+
const spectrum = getSpectrum(draft);
|
|
244
|
+
if (!isSpectrum2D(spectrum)) return;
|
|
245
|
+
|
|
246
|
+
const { xShift, yShift } = changeZoneSignal(spectrum, zoneId, signal);
|
|
247
|
+
applyShift2DFilters(draft, spectrum, xShift, yShift);
|
|
248
|
+
}
|
|
249
|
+
//action
|
|
250
|
+
function handleAlign2DSpectrum(
|
|
251
|
+
draft: Draft<State>,
|
|
252
|
+
action: Align2DSpectrumAction,
|
|
253
|
+
) {
|
|
254
|
+
const { startX, startY, endX, endY } = action.payload;
|
|
255
|
+
|
|
256
|
+
const spectrum = getSpectrum(draft);
|
|
257
|
+
if (!isSpectrum2D(spectrum)) return;
|
|
258
|
+
|
|
259
|
+
const xShift = endX - startX;
|
|
260
|
+
const yShift = endY - startY;
|
|
261
|
+
applyShift2DFilters(draft, spectrum, xShift, yShift);
|
|
233
262
|
}
|
|
234
263
|
|
|
235
264
|
function getZoneIndex(spectrum: Spectrum2D, zoneId: string) {
|
|
@@ -392,10 +421,10 @@ function handleSaveEditedZone(
|
|
|
392
421
|
|
|
393
422
|
if (editedZone.signals) {
|
|
394
423
|
for (const signal of editedZone.signals) {
|
|
395
|
-
setPathLength(
|
|
424
|
+
correlationApi.setPathLength(
|
|
396
425
|
draft.correlations.values,
|
|
397
426
|
signal.id,
|
|
398
|
-
signal.j?.pathLength
|
|
427
|
+
signal.j?.pathLength,
|
|
399
428
|
);
|
|
400
429
|
}
|
|
401
430
|
}
|
|
@@ -482,6 +511,7 @@ function handleSetZoneAssignmentLabelCoordination(
|
|
|
482
511
|
export {
|
|
483
512
|
deleteSignal2D,
|
|
484
513
|
handleAdd2dZone,
|
|
514
|
+
handleAlign2DSpectrum,
|
|
485
515
|
handleAssignZone,
|
|
486
516
|
handleAutoSpectraZonesDetection,
|
|
487
517
|
handleAutoZonesDetection,
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ProcessingOperatorId,
|
|
3
|
+
SpectrumProcessingOperation,
|
|
4
|
+
} from '@zakodium/nmr-types';
|
|
5
|
+
import type { ProcessingOperatorUI, Spectrum } from '@zakodium/nmrium-core';
|
|
6
|
+
import type { Draft } from 'immer';
|
|
7
|
+
|
|
8
|
+
import type { State } from '../Reducer.ts';
|
|
9
|
+
import type { ActionType } from '../types/ActionType.ts';
|
|
10
|
+
|
|
11
|
+
import { setDomain, setMode } from './DomainActions.ts';
|
|
12
|
+
import { changeSpectrumVerticalAlignment } from './PreferencesActions.ts';
|
|
13
|
+
|
|
14
|
+
type SetSpectrumAction = ActionType<
|
|
15
|
+
'SET_SPECTRUM',
|
|
16
|
+
{
|
|
17
|
+
index: number;
|
|
18
|
+
spectrum: Spectrum;
|
|
19
|
+
onProduce: (draft: Draft<State>) => void;
|
|
20
|
+
}
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
type SetSpectrumLiveProcessed = ActionType<
|
|
24
|
+
'SET_SPECTRUM_LIVE_PROCESSED',
|
|
25
|
+
{
|
|
26
|
+
spectrumLiveProcessed: Spectrum | undefined;
|
|
27
|
+
}
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
type SelectProcessingOperator = ActionType<
|
|
31
|
+
'SELECT_PROCESSING_OPERATOR',
|
|
32
|
+
{
|
|
33
|
+
operatorUI: ProcessingOperatorUI<ProcessingOperatorId> | undefined;
|
|
34
|
+
}
|
|
35
|
+
>;
|
|
36
|
+
|
|
37
|
+
type SetLiveEditChecked = ActionType<'SET_LIVE_EDIT_CHECKED', boolean>;
|
|
38
|
+
type SetLiveEditShouldProcessNext = ActionType<
|
|
39
|
+
'SET_LIVE_EDIT_SHOULD_PROCESS_NEXT',
|
|
40
|
+
boolean
|
|
41
|
+
>;
|
|
42
|
+
type SetLiveOperation = ActionType<
|
|
43
|
+
'SET_LIVE_OPERATION',
|
|
44
|
+
{
|
|
45
|
+
liveOperation: SpectrumProcessingOperation<unknown, unknown> | undefined;
|
|
46
|
+
}
|
|
47
|
+
>;
|
|
48
|
+
|
|
49
|
+
export type ProcessingsActions =
|
|
50
|
+
| SetSpectrumAction
|
|
51
|
+
| SetSpectrumLiveProcessed
|
|
52
|
+
| SelectProcessingOperator
|
|
53
|
+
| SetLiveEditChecked
|
|
54
|
+
| SetLiveEditShouldProcessNext
|
|
55
|
+
| SetLiveOperation;
|
|
56
|
+
|
|
57
|
+
export function setSpectrum(draft: Draft<State>, action: SetSpectrumAction) {
|
|
58
|
+
const { index, spectrum, onProduce } = action.payload;
|
|
59
|
+
|
|
60
|
+
draft.data[index] = spectrum;
|
|
61
|
+
|
|
62
|
+
onProduce(draft);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function setSpectrumLiveProcessed(
|
|
66
|
+
draft: Draft<State>,
|
|
67
|
+
action: SetSpectrumLiveProcessed,
|
|
68
|
+
) {
|
|
69
|
+
const { spectrumLiveProcessed } = action.payload;
|
|
70
|
+
|
|
71
|
+
draft.spectrumLiveProcessed = spectrumLiveProcessed;
|
|
72
|
+
|
|
73
|
+
updateLiveProcessedView(draft);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function selectProcessingOperator(
|
|
77
|
+
draft: Draft<State>,
|
|
78
|
+
{ payload }: SelectProcessingOperator,
|
|
79
|
+
) {
|
|
80
|
+
const { operatorUI } = payload;
|
|
81
|
+
|
|
82
|
+
draft.processingOperators.selected = operatorUI?.id;
|
|
83
|
+
draft.processingOperators.liveEdit = operatorUI?.isLiveEditable
|
|
84
|
+
? {
|
|
85
|
+
checked: true,
|
|
86
|
+
shouldProcessNext: operatorUI.defaultShouldProcessAll ?? false,
|
|
87
|
+
}
|
|
88
|
+
: undefined;
|
|
89
|
+
|
|
90
|
+
if (!operatorUI) {
|
|
91
|
+
draft.processingOperators.liveOperation = undefined;
|
|
92
|
+
setSpectrumLiveProcessed(draft, {
|
|
93
|
+
type: 'SET_SPECTRUM_LIVE_PROCESSED',
|
|
94
|
+
payload: { spectrumLiveProcessed: undefined },
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function setLiveEditChecked(
|
|
100
|
+
draft: Draft<State>,
|
|
101
|
+
{ payload }: SetLiveEditChecked,
|
|
102
|
+
) {
|
|
103
|
+
if (!draft.processingOperators.liveEdit) return;
|
|
104
|
+
|
|
105
|
+
draft.processingOperators.liveEdit.checked = payload;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function setLiveEditShouldProcessNext(
|
|
109
|
+
draft: Draft<State>,
|
|
110
|
+
{ payload }: SetLiveEditShouldProcessNext,
|
|
111
|
+
) {
|
|
112
|
+
if (!draft.processingOperators.liveEdit) return;
|
|
113
|
+
|
|
114
|
+
draft.processingOperators.liveEdit.shouldProcessNext = payload;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function setLiveOperation(
|
|
118
|
+
draft: Draft<State>,
|
|
119
|
+
{ payload: { liveOperation } }: SetLiveOperation,
|
|
120
|
+
) {
|
|
121
|
+
draft.processingOperators.liveOperation = liveOperation;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function updateLiveProcessedView(draft: Draft<State>) {
|
|
125
|
+
setDomain(draft);
|
|
126
|
+
setMode(draft);
|
|
127
|
+
changeSpectrumVerticalAlignment(draft, {
|
|
128
|
+
verticalAlign: 'auto-check',
|
|
129
|
+
});
|
|
130
|
+
}
|
|
@@ -116,3 +116,20 @@ export function addToBrushHistory(
|
|
|
116
116
|
brushHistory.push({ xDomain, yDomain });
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
export function restoreLastZoomDomain(draft: Draft<State>) {
|
|
121
|
+
const zoomHistory = zoomHistoryManager(
|
|
122
|
+
draft.zoom.history,
|
|
123
|
+
draft.view.spectra.activeTab,
|
|
124
|
+
);
|
|
125
|
+
const zoomValue = zoomHistory.getLast();
|
|
126
|
+
|
|
127
|
+
if (!zoomValue) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
draft.xDomain = zoomValue.xDomain;
|
|
132
|
+
draft.yDomain = zoomValue.yDomain;
|
|
133
|
+
|
|
134
|
+
return true;
|
|
135
|
+
}
|