nmrium 2.5.0 → 2.7.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/ApodizationLine.js +2 -2
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +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/Line.js +2 -2
- package/lib/component/1d/Line.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/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +4 -1
- package/lib/component/1d/SVGContent1D.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 +49 -24
- 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/database/DatabaseSpectrum.js +2 -2
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib/component/1d/database/ResurrectedDatabaseRanges.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/Boxplot.js +5 -5
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +2 -2
- package/lib/component/1d/matrix/Stocsy.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/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +12 -3
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +2 -2
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/plugin_svg_chart.d.ts +2 -0
- package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -0
- package/lib/component/1d/plugin_svg_chart.js +43 -0
- package/lib/component/1d/plugin_svg_chart.js.map +1 -0
- 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/RangeIndicator.d.ts.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.js +1 -7
- package/lib/component/1d-2d/components/RangeIndicator.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/HorizontalSliceChart.js +2 -2
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +5 -4
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +5 -4
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js +2 -2
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js +3 -3
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.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 +39 -3
- 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/ScaleContext.d.ts +1 -1
- package/lib/component/context/ScaleContext.d.ts.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/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +15 -32
- package/lib/component/elements/D3Axis.js.map +1 -1
- 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/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js +2 -2
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +9 -3
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts +1 -0
- package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.js +5 -0
- package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
- 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 +79 -93
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/utilities/transferStyles.d.ts +2 -0
- package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -0
- package/lib/component/elements/utilities/transferStyles.js +29 -0
- package/lib/component/elements/utilities/transferStyles.js.map +1 -0
- 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/useIntegralPath.js +2 -2
- package/lib/component/hooks/useIntegralPath.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 +196 -187
- 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 +196 -187
- 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 +196 -187
- 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 +140 -132
- 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 +140 -132
- 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 +23 -22
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +16 -12
- 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 +37 -44
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +140 -132
- 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 +82 -38
- 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 +80 -28
- 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 +56 -55
- 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/panels/multipleAnalysisPanel/AlignSpectra.d.ts +3 -3
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +69 -56
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.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_chart_svg.d.ts +8 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.js +23 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.js.map +1 -0
- 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 +3 -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 +17 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts +11 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.js +30 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.d.ts +3 -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 +17 -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/export.d.ts +5 -0
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +22 -0
- package/lib/component/utility/export.js.map +1 -1
- 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 +25 -12
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts +13 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +40 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts +27 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +230 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts +227 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +67 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts +4 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +42 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -0
- 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/calculateSanPlot.d.ts +3 -1
- package/lib/data/utilities/calculateSanPlot.d.ts.map +1 -1
- package/lib/data/utilities/calculateSanPlot.js +2 -2
- package/lib/data/utilities/calculateSanPlot.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/ApodizationLine.tsx +2 -2
- package/src/component/1d/BrushTracker1D.tsx +170 -185
- package/src/component/1d/FloatPublicationString.tsx +6 -6
- package/src/component/1d/Line.tsx +2 -2
- package/src/component/1d/PredictionErrorsNotations.tsx +1 -1
- package/src/component/1d/SVGContent1D.tsx +6 -0
- package/src/component/1d/SimilarityTree.tsx +2 -2
- package/src/component/1d/baseline/BaselinePreview.tsx +45 -15
- package/src/component/1d/baseline/getMedianY.ts +23 -5
- package/src/component/1d/database/DatabaseSpectrum.tsx +2 -2
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
- package/src/component/1d/inset/DraggableInset.tsx +1 -1
- package/src/component/1d/matrix/Boxplot.tsx +5 -5
- package/src/component/1d/matrix/Stocsy.tsx +2 -2
- 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/peaks/PeakAnnotationsSpreadMode.tsx +17 -3
- package/src/component/1d/peaks/usePeakShapesPath.ts +2 -2
- package/src/component/1d/plugin_svg_chart.tsx +60 -0
- 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/RangeIndicator.tsx +8 -9
- 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/HorizontalSliceChart.tsx +2 -2
- package/src/component/2d/1d-tracer/Left1DChart.tsx +5 -5
- package/src/component/2d/1d-tracer/Top1DChart.tsx +6 -6
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +2 -2
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +3 -3
- 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 +95 -26
- 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/ScaleContext.tsx +1 -1
- 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/D3Axis.tsx +49 -67
- 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/export/ExportContent.tsx +3 -2
- package/src/component/elements/export/ExportOptionsModal.tsx +32 -1
- package/src/component/elements/export/useExportConfigurer.tsx +6 -0
- package/src/component/elements/print/PrintContent.tsx +132 -145
- package/src/component/elements/utilities/transferStyles.ts +32 -0
- 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/useIntegralPath.ts +2 -2
- 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 +57 -62
- 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 +101 -28
- 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/panels/multipleAnalysisPanel/AlignSpectra.tsx +128 -98
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
- 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/core_slots/core_operator_chart_svg.tsx +61 -0
- 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 +23 -0
- package/src/component/utility/core_slots/core_operator_tool.commons.ts +63 -0
- package/src/component/utility/core_slots/core_operator_tool.tsx +23 -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/export.ts +34 -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 +42 -18
- package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +67 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +432 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +431 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +59 -0
- 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/calculateSanPlot.ts +2 -1
- package/src/data/utilities/getPeakAbsoluteArea.ts +7 -0
- package/src/versionInfo.ts +1 -1
- package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts +0 -2
- package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/transferDocumentStyles.js +0 -21
- package/lib/component/elements/export/utilities/transferDocumentStyles.js.map +0 -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/component/utility/PathBuilder.d.ts +0 -10
- package/lib/component/utility/PathBuilder.d.ts.map +0 -1
- package/lib/component/utility/PathBuilder.js +0 -38
- package/lib/component/utility/PathBuilder.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/elements/export/utilities/transferDocumentStyles.ts +0 -21
- package/src/component/panels/hooks/use_processings_mutation.ts +0 -171
- package/src/component/utility/PathBuilder.ts +0 -41
- package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +0 -19
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +0 -36
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
createContext,
|
|
4
|
+
useCallback,
|
|
5
|
+
useContext,
|
|
6
|
+
useEffect,
|
|
7
|
+
useMemo,
|
|
8
|
+
useState,
|
|
9
|
+
} from 'react';
|
|
3
10
|
|
|
4
11
|
import { usePreferences } from './PreferencesContext.js';
|
|
5
12
|
|
|
6
|
-
type ModifiersKey = `shift[${boolean}]_ctrl[${boolean}]_alt[${boolean}]`;
|
|
7
|
-
|
|
8
|
-
type PrimaryKey =
|
|
9
|
-
'shift[true]_ctrl[false]_alt[false]' | 'shift[false]_ctrl[false]_alt[false]';
|
|
10
|
-
|
|
11
|
-
function getPrimaryKey(invert: boolean): PrimaryKey {
|
|
12
|
-
if (invert) {
|
|
13
|
-
return 'shift[false]_ctrl[false]_alt[false]';
|
|
14
|
-
}
|
|
15
|
-
return 'shift[true]_ctrl[false]_alt[false]';
|
|
16
|
-
}
|
|
17
|
-
|
|
18
13
|
interface KeyModifiers {
|
|
19
14
|
ctrlKey: boolean;
|
|
20
15
|
shiftKey: boolean;
|
|
21
16
|
altKey: boolean;
|
|
22
17
|
}
|
|
18
|
+
|
|
19
|
+
type ModifierName = keyof KeyModifiers;
|
|
20
|
+
|
|
21
|
+
const PRIMARY_MODIFIERS: ModifierName[] = ['shiftKey'];
|
|
22
|
+
|
|
23
|
+
type ModifiersKey = `shift[${boolean}]_ctrl[${boolean}]_alt[${boolean}]`;
|
|
24
|
+
|
|
23
25
|
interface KeyModifiersState extends KeyModifiers {
|
|
24
26
|
modifiersKey: ModifiersKey | null;
|
|
25
27
|
isPrimary: boolean;
|
|
@@ -57,7 +59,7 @@ export type EventModifierKeys = Record<
|
|
|
57
59
|
boolean
|
|
58
60
|
>;
|
|
59
61
|
|
|
60
|
-
export function getModifiers(eventKeys: EventModifierKeys) {
|
|
62
|
+
export function getModifiers(eventKeys: EventModifierKeys): KeyModifiers {
|
|
61
63
|
const { shiftKey, altKey, metaKey, ctrlKey } = eventKeys;
|
|
62
64
|
return {
|
|
63
65
|
ctrlKey: isMac ? metaKey : ctrlKey,
|
|
@@ -71,14 +73,18 @@ function toModifiersKey(keyModifiers: KeyModifiers): ModifiersKey {
|
|
|
71
73
|
return `shift[${shiftKey ? 'true' : 'false'}]_ctrl[${ctrlKey ? 'true' : 'false'}]_alt[${altKey ? 'true' : 'false'}]`;
|
|
72
74
|
}
|
|
73
75
|
|
|
74
|
-
function getModifiersKey(event: EventModifierKeys) {
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
export function getModifiersKey(event: EventModifierKeys) {
|
|
77
|
+
return toModifiersKey(getModifiers(event));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function isPrimaryActive(modifiers: KeyModifiers, invert: boolean): boolean {
|
|
81
|
+
const allRequiredHeld = PRIMARY_MODIFIERS.every((mod) => modifiers[mod]);
|
|
82
|
+
return invert ? !allRequiredHeld : allRequiredHeld;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
export function useIsPrimaryKeyActivated() {
|
|
80
|
-
const {
|
|
81
|
-
return
|
|
86
|
+
const { isPrimary } = useKeyModifiers();
|
|
87
|
+
return isPrimary;
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
export function useMapKeyModifiers() {
|
|
@@ -88,24 +94,12 @@ export function useMapKeyModifiers() {
|
|
|
88
94
|
},
|
|
89
95
|
} = usePreferences();
|
|
90
96
|
|
|
91
|
-
return
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
};
|
|
98
|
-
}, [invert]);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function isPrimaryActive(shiftKey: boolean, invert: boolean): boolean {
|
|
102
|
-
const primaryKey = getPrimaryKey(invert);
|
|
103
|
-
const shiftOnlyKey = toModifiersKey({
|
|
104
|
-
shiftKey,
|
|
105
|
-
ctrlKey: false,
|
|
106
|
-
altKey: false,
|
|
107
|
-
});
|
|
108
|
-
return shiftOnlyKey === primaryKey;
|
|
97
|
+
return useCallback(
|
|
98
|
+
(modifiers: KeyModifiers) => {
|
|
99
|
+
return isPrimaryActive(modifiers, invert);
|
|
100
|
+
},
|
|
101
|
+
[invert],
|
|
102
|
+
);
|
|
109
103
|
}
|
|
110
104
|
|
|
111
105
|
export function KeyModifiersProvider({ children }: KeyModifierProviderProps) {
|
|
@@ -120,13 +114,11 @@ export function KeyModifiersProvider({ children }: KeyModifierProviderProps) {
|
|
|
120
114
|
|
|
121
115
|
useEffect(() => {
|
|
122
116
|
function handleKeyDown(event: KeyboardEvent) {
|
|
123
|
-
|
|
124
|
-
setModifiers(keyModifiers);
|
|
117
|
+
setModifiers(getModifiers(event));
|
|
125
118
|
}
|
|
126
119
|
|
|
127
120
|
function handleKeyUp(event: KeyboardEvent) {
|
|
128
|
-
|
|
129
|
-
setModifiers(keyModifiers);
|
|
121
|
+
setModifiers(getModifiers(event));
|
|
130
122
|
}
|
|
131
123
|
|
|
132
124
|
document.addEventListener('keydown', handleKeyDown);
|
|
@@ -136,14 +128,13 @@ export function KeyModifiersProvider({ children }: KeyModifierProviderProps) {
|
|
|
136
128
|
document.removeEventListener('keydown', handleKeyDown);
|
|
137
129
|
document.removeEventListener('keyup', handleKeyUp);
|
|
138
130
|
};
|
|
139
|
-
}, [
|
|
131
|
+
}, []);
|
|
140
132
|
|
|
141
133
|
const state = useMemo(() => {
|
|
142
|
-
const modifiersKey = toModifiersKey(modifiers);
|
|
143
134
|
return {
|
|
144
135
|
...modifiers,
|
|
145
|
-
isPrimary: isPrimaryActive(modifiers
|
|
146
|
-
modifiersKey,
|
|
136
|
+
isPrimary: isPrimaryActive(modifiers, invert),
|
|
137
|
+
modifiersKey: toModifiersKey(modifiers),
|
|
147
138
|
};
|
|
148
139
|
}, [invert, modifiers]);
|
|
149
140
|
|
|
@@ -20,7 +20,7 @@ export interface ScaleLinearNumberOptions {
|
|
|
20
20
|
}
|
|
21
21
|
type ScaleLinearNumberFunction = (
|
|
22
22
|
options?: ScaleLinearNumberOptions,
|
|
23
|
-
) => ScaleLinear<number, number
|
|
23
|
+
) => ScaleLinear<number, number>;
|
|
24
24
|
|
|
25
25
|
interface ScaleState {
|
|
26
26
|
scaleX: ScaleLinearNumberFunction | null;
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import type { SpectrumProcessingOperation } from '@zakodium/nmr-types';
|
|
2
|
+
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
3
|
+
import {
|
|
4
|
+
isSpectrum1D,
|
|
5
|
+
isSpectrum2D,
|
|
6
|
+
sliceData1D,
|
|
7
|
+
sliceData2D,
|
|
8
|
+
sliceSpectrum,
|
|
9
|
+
} from '@zakodium/nmrium-core';
|
|
10
|
+
import {
|
|
11
|
+
assertDefined,
|
|
12
|
+
assertNotNullish,
|
|
13
|
+
assertUnreachable,
|
|
14
|
+
noop,
|
|
15
|
+
} from '@zakodium/utils';
|
|
16
|
+
import type { Draft } from 'immer';
|
|
17
|
+
import { useMemo } from 'react';
|
|
18
|
+
import { useAccordionControls } from 'react-science/ui';
|
|
19
|
+
import { useEventCallback } from 'usehooks-ts';
|
|
20
|
+
|
|
21
|
+
import { initializeContoursLevels } from '../../data/data2d/Spectrum2D/contours.ts';
|
|
22
|
+
import type { State } from '../reducer/Reducer.ts';
|
|
23
|
+
import { setDomain, setMode } from '../reducer/actions/DomainActions.ts';
|
|
24
|
+
import { updateView } from '../reducer/actions/FiltersActions.ts';
|
|
25
|
+
import { restoreLastZoomDomain } from '../reducer/helper/ZoomHistoryManager.ts';
|
|
26
|
+
import { getActiveSpectrum } from '../reducer/helper/getActiveSpectrum.ts';
|
|
27
|
+
|
|
28
|
+
import { useChartData } from './ChartContext.tsx';
|
|
29
|
+
import { useCore } from './CoreContext.tsx';
|
|
30
|
+
import { useDispatch } from './DispatchContext.tsx';
|
|
31
|
+
|
|
32
|
+
export type ProcessingsMutations = ReturnType<
|
|
33
|
+
typeof useProcessingsMutationsAPI
|
|
34
|
+
>;
|
|
35
|
+
|
|
36
|
+
export function useProcessingsMutationsAPI() {
|
|
37
|
+
const core = useCore();
|
|
38
|
+
const state = useChartData();
|
|
39
|
+
const dispatch = useDispatch();
|
|
40
|
+
const { open: openPanel } = useAccordionControls();
|
|
41
|
+
|
|
42
|
+
function setIsLoading(isLoading: boolean) {
|
|
43
|
+
dispatch({
|
|
44
|
+
type: 'SET_LOADING_FLAG',
|
|
45
|
+
payload: { isLoading },
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Return sliced spectrum allowing free mutations
|
|
51
|
+
*/
|
|
52
|
+
function getSpectrum() {
|
|
53
|
+
const activeSpectrum = getActiveSpectrum(state);
|
|
54
|
+
if (!activeSpectrum) return {};
|
|
55
|
+
|
|
56
|
+
const id = activeSpectrum.id;
|
|
57
|
+
const indexSpectrum = state.data.findIndex((s) => s.id === id);
|
|
58
|
+
if (indexSpectrum === -1) return {};
|
|
59
|
+
|
|
60
|
+
const spectrum = sliceSpectrum(state.data[indexSpectrum]);
|
|
61
|
+
|
|
62
|
+
return { spectrum, indexSpectrum };
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Return sliced spectrum live processed allowing free mutations
|
|
67
|
+
*/
|
|
68
|
+
function getSpectrumLiveProcessed() {
|
|
69
|
+
const spectrum = state.spectrumLiveProcessed;
|
|
70
|
+
if (!spectrum) return;
|
|
71
|
+
|
|
72
|
+
return sliceSpectrum(spectrum);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async function submit(
|
|
76
|
+
spectrum: Spectrum,
|
|
77
|
+
index: number,
|
|
78
|
+
onProduce: (draft: Draft<State>, processedSpectrum: Spectrum) => void,
|
|
79
|
+
) {
|
|
80
|
+
setIsLoading(true);
|
|
81
|
+
const processedSpectrum = await core
|
|
82
|
+
.processSpectrum(spectrum)
|
|
83
|
+
.finally(() => setIsLoading(false));
|
|
84
|
+
|
|
85
|
+
dispatch({
|
|
86
|
+
type: 'SET_SPECTRUM',
|
|
87
|
+
payload: {
|
|
88
|
+
index,
|
|
89
|
+
spectrum: processedSpectrum,
|
|
90
|
+
onProduce: (draft) => onProduce(draft, processedSpectrum),
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function resetSelectedTool() {
|
|
96
|
+
dispatch({
|
|
97
|
+
type: 'SELECT_PROCESSING_OPERATOR',
|
|
98
|
+
payload: { operatorUI: undefined },
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// --- API --- //
|
|
103
|
+
|
|
104
|
+
const resetLiveChange = useEventCallback(function resetLiveChange() {
|
|
105
|
+
dispatch({
|
|
106
|
+
type: 'SET_SPECTRUM_LIVE_PROCESSED',
|
|
107
|
+
payload: {
|
|
108
|
+
spectrumLiveProcessed: undefined,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
const apply = useEventCallback(async function apply(
|
|
114
|
+
operation: SpectrumProcessingOperation<any, any>,
|
|
115
|
+
indexOperation: number,
|
|
116
|
+
) {
|
|
117
|
+
const { spectrum, indexSpectrum } = getSpectrum();
|
|
118
|
+
|
|
119
|
+
if (!spectrum?.processings) return;
|
|
120
|
+
if (indexOperation > spectrum.processings.length) return;
|
|
121
|
+
|
|
122
|
+
spectrum.processings[indexOperation] = operation;
|
|
123
|
+
|
|
124
|
+
resetSelectedTool();
|
|
125
|
+
await submit(spectrum, indexSpectrum, (draft) => {
|
|
126
|
+
const {
|
|
127
|
+
domainUpdateRules = {
|
|
128
|
+
updateXDomain: false,
|
|
129
|
+
updateYDomain: false,
|
|
130
|
+
},
|
|
131
|
+
} = core.getOperator(operation.operatorId) ?? {};
|
|
132
|
+
updateView(draft, domainUpdateRules);
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
const reorder = useEventCallback(async function reorder(
|
|
137
|
+
sourceIndex: number,
|
|
138
|
+
targetIndex: number,
|
|
139
|
+
) {
|
|
140
|
+
const { spectrum, indexSpectrum } = getSpectrum();
|
|
141
|
+
if (!spectrum?.processings) return;
|
|
142
|
+
|
|
143
|
+
[spectrum.processings[sourceIndex], spectrum.processings[targetIndex]] = [
|
|
144
|
+
spectrum.processings[targetIndex],
|
|
145
|
+
spectrum.processings[sourceIndex],
|
|
146
|
+
];
|
|
147
|
+
|
|
148
|
+
await submit(spectrum, indexSpectrum, noop);
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
const remove = useEventCallback(async function remove(uid: string) {
|
|
152
|
+
const { spectrum, indexSpectrum } = getSpectrum();
|
|
153
|
+
if (!spectrum?.processings) return;
|
|
154
|
+
|
|
155
|
+
spectrum.processings = spectrum.processings.filter((p) => p.uid !== uid);
|
|
156
|
+
|
|
157
|
+
resetSelectedTool();
|
|
158
|
+
await submit(spectrum, indexSpectrum, (draft) => {
|
|
159
|
+
draft.toolOptions.data.activeFilterID = null;
|
|
160
|
+
setDomain(draft);
|
|
161
|
+
setMode(draft);
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
const removeAll = useEventCallback(async function removeAll() {
|
|
166
|
+
const { spectrum, indexSpectrum } = getSpectrum();
|
|
167
|
+
|
|
168
|
+
if (!spectrum?.processings) return;
|
|
169
|
+
if (spectrum.processings.length === 0) return;
|
|
170
|
+
|
|
171
|
+
spectrum.processings = [];
|
|
172
|
+
|
|
173
|
+
resetSelectedTool();
|
|
174
|
+
await submit(spectrum, indexSpectrum, (draft) => {
|
|
175
|
+
setDomain(draft);
|
|
176
|
+
setMode(draft);
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
const switchEnabled = useEventCallback(async function switchEnabled(
|
|
181
|
+
uid: string,
|
|
182
|
+
) {
|
|
183
|
+
const { spectrum, indexSpectrum } = getSpectrum();
|
|
184
|
+
if (!spectrum?.processings) return;
|
|
185
|
+
|
|
186
|
+
const operationIndex = spectrum.processings.findIndex((p) => p.uid === uid);
|
|
187
|
+
if (operationIndex === -1) return;
|
|
188
|
+
|
|
189
|
+
const operation = spectrum.processings[operationIndex];
|
|
190
|
+
operation.enabled = !operation.enabled;
|
|
191
|
+
|
|
192
|
+
resetSelectedTool();
|
|
193
|
+
await submit(spectrum, indexSpectrum, (draft, processedSpectrum) => {
|
|
194
|
+
if (isSpectrum2D(processedSpectrum) && processedSpectrum.info.isFt) {
|
|
195
|
+
draft.view.spectraContourLevels[processedSpectrum.id] =
|
|
196
|
+
initializeContoursLevels(processedSpectrum);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
setDomain(draft);
|
|
200
|
+
setMode(draft);
|
|
201
|
+
restoreLastZoomDomain(draft);
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
// Related to live update
|
|
206
|
+
const prepareLiveChange = useEventCallback(async function prepareLiveChange(
|
|
207
|
+
uid: string,
|
|
208
|
+
shouldProcessAll: boolean,
|
|
209
|
+
) {
|
|
210
|
+
const { spectrum } = getSpectrum();
|
|
211
|
+
if (!spectrum?.processings) return;
|
|
212
|
+
|
|
213
|
+
const preProcessings: typeof spectrum.processings = [];
|
|
214
|
+
const processings: typeof spectrum.processings = [];
|
|
215
|
+
|
|
216
|
+
let didFindUid = false;
|
|
217
|
+
for (const operation of spectrum.processings) {
|
|
218
|
+
if (uid === operation.uid) didFindUid = true;
|
|
219
|
+
if (didFindUid) processings.push(structuredClone(operation));
|
|
220
|
+
else preProcessings.push(structuredClone(operation));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// apply preProcessings
|
|
224
|
+
spectrum.processings = preProcessings;
|
|
225
|
+
const preProcessedSpectrum = await core.processSpectrum(spectrum);
|
|
226
|
+
|
|
227
|
+
// prepare processings for live-update
|
|
228
|
+
preProcessedSpectrum.processings = processings;
|
|
229
|
+
preProcessedSpectrum.originalInfo = structuredClone(
|
|
230
|
+
preProcessedSpectrum.info,
|
|
231
|
+
);
|
|
232
|
+
if (isSpectrum1D(preProcessedSpectrum)) {
|
|
233
|
+
preProcessedSpectrum.originalData = sliceData1D(
|
|
234
|
+
preProcessedSpectrum.data,
|
|
235
|
+
);
|
|
236
|
+
} else if (isSpectrum2D(preProcessedSpectrum)) {
|
|
237
|
+
preProcessedSpectrum.originalData = sliceData2D(
|
|
238
|
+
preProcessedSpectrum.data,
|
|
239
|
+
);
|
|
240
|
+
} else {
|
|
241
|
+
assertUnreachable(preProcessedSpectrum);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// apply the rest of processings
|
|
245
|
+
const savedProcessings = structuredClone(preProcessedSpectrum.processings);
|
|
246
|
+
|
|
247
|
+
if (!shouldProcessAll) {
|
|
248
|
+
preProcessedSpectrum.processings.splice(1);
|
|
249
|
+
}
|
|
250
|
+
const processedSpectrum = await core.processSpectrum(preProcessedSpectrum);
|
|
251
|
+
assertDefined(processedSpectrum.processings);
|
|
252
|
+
const processedOperation = processedSpectrum.processings[0];
|
|
253
|
+
processedSpectrum.processings = savedProcessings;
|
|
254
|
+
spectrum.processings[0] = processedOperation;
|
|
255
|
+
|
|
256
|
+
dispatch({
|
|
257
|
+
type: 'SET_SPECTRUM_LIVE_PROCESSED',
|
|
258
|
+
payload: {
|
|
259
|
+
spectrumLiveProcessed: processedSpectrum,
|
|
260
|
+
},
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
const applyLiveChange = useEventCallback(async function applyLiveChange(
|
|
265
|
+
operation: SpectrumProcessingOperation<any, any>,
|
|
266
|
+
shouldProcessAll: boolean,
|
|
267
|
+
) {
|
|
268
|
+
const spectrum = getSpectrumLiveProcessed();
|
|
269
|
+
if (!spectrum?.processings) return;
|
|
270
|
+
|
|
271
|
+
const indexOperation = spectrum.processings.findIndex(
|
|
272
|
+
(p) => p.uid === operation.uid,
|
|
273
|
+
);
|
|
274
|
+
if (indexOperation === -1) return;
|
|
275
|
+
|
|
276
|
+
const savedProcessings = structuredClone(spectrum.processings);
|
|
277
|
+
|
|
278
|
+
spectrum.processings[indexOperation] = structuredClone(operation);
|
|
279
|
+
if (!shouldProcessAll) {
|
|
280
|
+
spectrum.processings.splice(indexOperation + 1);
|
|
281
|
+
}
|
|
282
|
+
const processedSpectrum = await core.processSpectrum(spectrum);
|
|
283
|
+
assertDefined(processedSpectrum.processings);
|
|
284
|
+
const processedOperation = processedSpectrum.processings[indexOperation];
|
|
285
|
+
processedSpectrum.processings = savedProcessings;
|
|
286
|
+
spectrum.processings[indexOperation] = processedOperation;
|
|
287
|
+
|
|
288
|
+
dispatch({
|
|
289
|
+
type: 'SET_SPECTRUM_LIVE_PROCESSED',
|
|
290
|
+
payload: {
|
|
291
|
+
spectrumLiveProcessed: processedSpectrum,
|
|
292
|
+
},
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
const triggerOperation = useEventCallback(async function triggerOperation(
|
|
297
|
+
operation: SpectrumProcessingOperation<any, any>,
|
|
298
|
+
) {
|
|
299
|
+
const { spectrum, indexSpectrum } = getSpectrum();
|
|
300
|
+
if (!spectrum) return;
|
|
301
|
+
|
|
302
|
+
spectrum.processings ??= [];
|
|
303
|
+
let operationIndex = spectrum.processings.findIndex(
|
|
304
|
+
(processing) =>
|
|
305
|
+
processing.uid === operation.uid ||
|
|
306
|
+
processing.operatorId === operation.operatorId,
|
|
307
|
+
);
|
|
308
|
+
|
|
309
|
+
if (operationIndex === -1) {
|
|
310
|
+
spectrum.processings.push(operation);
|
|
311
|
+
operationIndex = spectrum.processings.length - 1;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
operation = spectrum.processings[operationIndex];
|
|
315
|
+
|
|
316
|
+
const operatorUI = core.slotOperator(operation.operatorId);
|
|
317
|
+
const operator = core.getOperator(operation.operatorId);
|
|
318
|
+
assertNotNullish(operatorUI);
|
|
319
|
+
assertNotNullish(operator);
|
|
320
|
+
|
|
321
|
+
openPanel('processingsPanel');
|
|
322
|
+
resetLiveChange();
|
|
323
|
+
await submit(spectrum, indexSpectrum, (draft) =>
|
|
324
|
+
updateView(draft, operator.domainUpdateRules),
|
|
325
|
+
);
|
|
326
|
+
|
|
327
|
+
dispatch({
|
|
328
|
+
type: 'SELECT_PROCESSING_OPERATOR',
|
|
329
|
+
payload: { operatorUI },
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
if (operatorUI.isEditable) {
|
|
333
|
+
dispatch({
|
|
334
|
+
type: 'SET_LIVE_OPERATION',
|
|
335
|
+
payload: { liveOperation: operation },
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (operatorUI.isLiveEditable) {
|
|
340
|
+
await prepareLiveChange(
|
|
341
|
+
operation.uid,
|
|
342
|
+
operatorUI.defaultShouldProcessAll ?? false,
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
return useMemo(
|
|
348
|
+
() => ({
|
|
349
|
+
apply,
|
|
350
|
+
reorder,
|
|
351
|
+
remove,
|
|
352
|
+
removeAll,
|
|
353
|
+
switchEnabled,
|
|
354
|
+
prepareLiveChange,
|
|
355
|
+
resetLiveChange,
|
|
356
|
+
applyLiveChange,
|
|
357
|
+
triggerOperation,
|
|
358
|
+
}),
|
|
359
|
+
[
|
|
360
|
+
apply,
|
|
361
|
+
applyLiveChange,
|
|
362
|
+
prepareLiveChange,
|
|
363
|
+
remove,
|
|
364
|
+
removeAll,
|
|
365
|
+
reorder,
|
|
366
|
+
resetLiveChange,
|
|
367
|
+
switchEnabled,
|
|
368
|
+
triggerOperation,
|
|
369
|
+
],
|
|
370
|
+
);
|
|
371
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { assertDefined } from '@zakodium/utils';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
|
+
import { createContext, useContext } from 'react';
|
|
4
|
+
|
|
5
|
+
import type { ProcessingsMutations } from './processings_mutations_context.api.ts';
|
|
6
|
+
import { useProcessingsMutationsAPI } from './processings_mutations_context.api.ts';
|
|
7
|
+
|
|
8
|
+
const ProcessingsMutationsContext = createContext<
|
|
9
|
+
ProcessingsMutations | undefined
|
|
10
|
+
>(undefined);
|
|
11
|
+
|
|
12
|
+
export function ProcessingsMutationsProvider(props: PropsWithChildren) {
|
|
13
|
+
const { children } = props;
|
|
14
|
+
const stableAPI = useProcessingsMutationsAPI();
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<ProcessingsMutationsContext.Provider value={stableAPI}>
|
|
18
|
+
{children}
|
|
19
|
+
</ProcessingsMutationsContext.Provider>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function useProcessingsMutations(): ProcessingsMutations {
|
|
24
|
+
const api = useContext(ProcessingsMutationsContext);
|
|
25
|
+
assertDefined(api);
|
|
26
|
+
|
|
27
|
+
return api;
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SVGAttributes } from 'react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { UseLinearPrimaryTicksResult } from 'react-d3-utils';
|
|
4
4
|
import type {
|
|
5
5
|
SVGStyledLineProps,
|
|
6
6
|
SVGStyledLineUserConfig,
|
|
@@ -49,6 +49,16 @@ function isVerticalAxis(axisPosition: AxisPosition) {
|
|
|
49
49
|
return ['left', 'right'].includes(axisPosition);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
function getSecondaryTickPositions(ticks: Array<{ position: number }>) {
|
|
53
|
+
return ticks
|
|
54
|
+
.slice(0, -1)
|
|
55
|
+
.map((tick, index) => (tick.position + ticks[index + 1].position) / 2);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function getTickTransform(position: number, isVertical: boolean) {
|
|
59
|
+
return `translate(${isVertical ? `0,${position}` : `${position},0`})`;
|
|
60
|
+
}
|
|
61
|
+
|
|
52
62
|
function BaseLine(props: BaseLineProps) {
|
|
53
63
|
const { axisPosition, tickLength = 6, scale } = props;
|
|
54
64
|
const { primaryTicks } = useTicksConfig();
|
|
@@ -100,86 +110,58 @@ function Tickets(props: TicketsProps) {
|
|
|
100
110
|
: { y1: positionSign * tickLength, y2: 0 };
|
|
101
111
|
|
|
102
112
|
const secondaryTickLength = tickLength / 2;
|
|
103
|
-
const secondaryTickOffset = getSecondaryTickOffset(ticks, positionSign);
|
|
104
113
|
const positionSecondaryLineConfig: SVGStyledLineProps = isVertical
|
|
105
114
|
? {
|
|
106
115
|
x1: positionSign * secondaryTickLength,
|
|
107
116
|
x2: 0,
|
|
108
|
-
y1: secondaryTickOffset,
|
|
109
|
-
y2: secondaryTickOffset,
|
|
110
117
|
}
|
|
111
118
|
: {
|
|
112
119
|
y1: positionSign * secondaryTickLength,
|
|
113
120
|
y2: 0,
|
|
114
|
-
x1: secondaryTickOffset,
|
|
115
|
-
x2: secondaryTickOffset,
|
|
116
121
|
};
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
y1: -secondaryTickOffset,
|
|
122
|
-
y2: -secondaryTickOffset,
|
|
123
|
-
}
|
|
124
|
-
: {
|
|
125
|
-
y1: positionSign * secondaryTickLength,
|
|
126
|
-
y2: 0,
|
|
127
|
-
x1: -secondaryTickOffset,
|
|
128
|
-
x2: -secondaryTickOffset,
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
return ticks.map(({ label, position }, index) => {
|
|
132
|
-
const isFirst = index === 0;
|
|
122
|
+
const secondaryTickPositions =
|
|
123
|
+
secondaryTicks.enabled && ticks.length > 1
|
|
124
|
+
? getSecondaryTickPositions(ticks)
|
|
125
|
+
: [];
|
|
133
126
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
127
|
+
return (
|
|
128
|
+
<>
|
|
129
|
+
{ticks.map(({ label, position }) => {
|
|
130
|
+
return (
|
|
131
|
+
<g key={`primary-${label}-${position}`} className="tick">
|
|
132
|
+
<line
|
|
133
|
+
data-testid="axis-primary-tick-line"
|
|
134
|
+
transform={getTickTransform(position, isVertical)}
|
|
135
|
+
{...positionPrimaryLineConfig}
|
|
136
|
+
stroke="black"
|
|
137
|
+
{...primaryTicks.tickStyle}
|
|
138
|
+
/>
|
|
139
|
+
|
|
140
|
+
<SVGStyledText
|
|
141
|
+
transform={getTickTransform(position, isVertical)}
|
|
142
|
+
fill="black"
|
|
143
|
+
data-testid="axis-primary-tick-label"
|
|
144
|
+
{...primaryTicks.textStyle}
|
|
145
|
+
{...positionTextConfig}
|
|
146
|
+
>
|
|
147
|
+
{label}
|
|
148
|
+
</SVGStyledText>
|
|
149
|
+
</g>
|
|
150
|
+
);
|
|
151
|
+
})}
|
|
147
152
|
|
|
153
|
+
{secondaryTickPositions.map((secondaryTickPosition) => (
|
|
148
154
|
<line
|
|
149
|
-
|
|
155
|
+
data-testid="axis-secondary-tick-line"
|
|
156
|
+
key={`secondary-${secondaryTickPosition}`}
|
|
157
|
+
transform={getTickTransform(secondaryTickPosition, isVertical)}
|
|
158
|
+
{...positionSecondaryLineConfig}
|
|
150
159
|
stroke="black"
|
|
151
|
-
{...
|
|
160
|
+
{...secondaryTicks.tickStyle}
|
|
152
161
|
/>
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
{...positionSecondaryLineConfig}
|
|
157
|
-
stroke="black"
|
|
158
|
-
{...secondaryTicks.tickStyle}
|
|
159
|
-
/>
|
|
160
|
-
)}
|
|
161
|
-
|
|
162
|
-
<SVGStyledText
|
|
163
|
-
fill="black"
|
|
164
|
-
{...primaryTicks.textStyle}
|
|
165
|
-
{...positionTextConfig}
|
|
166
|
-
>
|
|
167
|
-
{label}
|
|
168
|
-
</SVGStyledText>
|
|
169
|
-
</g>
|
|
170
|
-
);
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function getSecondaryTickOffset(ticks: Array<Tick<number>>, direction: -1 | 1) {
|
|
175
|
-
if (ticks.length < 2) return 0;
|
|
176
|
-
|
|
177
|
-
let [first, second] = ticks;
|
|
178
|
-
if (direction === -1) {
|
|
179
|
-
[first, second] = [second, first];
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return (second.position - first.position) / 2;
|
|
162
|
+
))}
|
|
163
|
+
</>
|
|
164
|
+
);
|
|
183
165
|
}
|
|
184
166
|
|
|
185
167
|
function getLinePosition(
|