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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { xMedian } from 'ml-spectra-processing';
|
|
2
|
+
const GAUSSIAN_MAD_SCALE = 1 / 0.6744897501960817;
|
|
3
|
+
const DEFAULT_MAX_SAMPLES = 65_536;
|
|
4
|
+
/**
|
|
5
|
+
* Estimates the standard deviation of signed Gaussian noise using a
|
|
6
|
+
* deterministically downsampled median absolute deviation.
|
|
7
|
+
*/
|
|
8
|
+
export function estimateNoiseLevel(matrix, options = {}) {
|
|
9
|
+
const { maxSamples = DEFAULT_MAX_SAMPLES } = options;
|
|
10
|
+
if (!Number.isInteger(maxSamples) || maxSamples <= 0) {
|
|
11
|
+
throw new Error('maxSamples must be a positive integer');
|
|
12
|
+
}
|
|
13
|
+
const sample = collectFiniteSample(matrix, maxSamples);
|
|
14
|
+
if (sample.length === 0) {
|
|
15
|
+
throw new Error('matrix must contain at least one finite value');
|
|
16
|
+
}
|
|
17
|
+
const median = xMedian(sample);
|
|
18
|
+
if (median === 0) {
|
|
19
|
+
return 1; //assume NUS reconstruction.
|
|
20
|
+
}
|
|
21
|
+
const averageDeviations = new Float64Array(sample.length);
|
|
22
|
+
for (let i = 0; i < sample.length; i++) {
|
|
23
|
+
averageDeviations[i] = Math.abs(sample[i] - median);
|
|
24
|
+
}
|
|
25
|
+
const noiseLevel = xMedian(averageDeviations) * GAUSSIAN_MAD_SCALE;
|
|
26
|
+
if (!Number.isFinite(noiseLevel) || noiseLevel < 0) {
|
|
27
|
+
throw new Error('unable to estimate a positive noise level');
|
|
28
|
+
}
|
|
29
|
+
return noiseLevel;
|
|
30
|
+
}
|
|
31
|
+
function collectFiniteSample(matrix, maxSamples) {
|
|
32
|
+
const step = Math.max(1, Math.ceil(matrix.length / maxSamples));
|
|
33
|
+
const sample = new Float64Array(Math.ceil(matrix.length / step));
|
|
34
|
+
let sampleIndex = 0;
|
|
35
|
+
for (let index = 0; index < matrix.length; index += step) {
|
|
36
|
+
sample[sampleIndex++] = matrix[index];
|
|
37
|
+
}
|
|
38
|
+
return sample;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=estimateNoiseLevel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimateNoiseLevel.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,MAAM,kBAAkB,GAAG,CAAC,GAAG,kBAAkB,CAAC;AAClD,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAUnC;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAyB,EACzB,UAAqC,EAAE;IAEvC,MAAM,EAAE,UAAU,GAAG,mBAAmB,EAAE,GAAG,OAAO,CAAC;IAErD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,UAAU,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,MAAM,GAAG,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAEvD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC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1,27 @@
|
|
|
1
|
+
export interface EvaluatedThreshold {
|
|
2
|
+
sigmaMultiplier: number;
|
|
3
|
+
activePixels: number;
|
|
4
|
+
occupancy: number;
|
|
5
|
+
fdr: number;
|
|
6
|
+
persistence: number;
|
|
7
|
+
verticalRidgeScore: number;
|
|
8
|
+
horizontalRidgeScore: number;
|
|
9
|
+
}
|
|
10
|
+
export interface AnalysisMatrix {
|
|
11
|
+
values: Float64Array;
|
|
12
|
+
rows: number;
|
|
13
|
+
cols: number;
|
|
14
|
+
maxAbsoluteValue: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ThresholdIndex {
|
|
17
|
+
countAtLeast(threshold: number): number;
|
|
18
|
+
}
|
|
19
|
+
export declare function createThresholdIndex(matrix: Float64Array): ThresholdIndex;
|
|
20
|
+
export declare function evaluateThreshold(matrix: Float64Array, rows: number, cols: number, noiseLevel: number, sigmaMultiplier: number, contourRatio: number, persistenceLevels: number, ridgeCoverageThreshold: number, includeRidgeScores?: boolean, thresholdIndex?: ThresholdIndex): EvaluatedThreshold;
|
|
21
|
+
export declare function evaluateFallbackThreshold(evaluations: EvaluatedThreshold[], maxFdr: number, maxOccupancy: number, minPersistence: number): EvaluatedThreshold;
|
|
22
|
+
export declare function findRidgeFreeThresholdTopDown(matrix: Float64Array, rows: number, cols: number, noiseLevel: number, minLevel: number, maxLevel: number, contourRatio: number, maxVerticalRidgeScore: number, maxHorizontalRidgeScore: number, ridgeCoverageThreshold: number, ridgePersistenceLevels?: number): number;
|
|
23
|
+
export declare function generateCandidateSigmaLevels(minSigma: number, maxSigma: number, contourRatio: number, exponent: number): number[];
|
|
24
|
+
export declare function computePersistence(matrix: Float64Array, rows: number, cols: number, initialThreshold: number, contourRatio: number, levels: number, thresholdIndex?: ThresholdIndex): number;
|
|
25
|
+
export declare function maxPoolAbsolute(matrix: ArrayLike<number>, rows: number, cols: number, maxDimension: number): AnalysisMatrix;
|
|
26
|
+
export declare function countValuesAboveThreshold(matrix: Float64Array, threshold: number): number;
|
|
27
|
+
//# sourceMappingURL=evaluation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAC;IAExB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IAEpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAOD,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CACzC;AAOD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,cAAc,CAiCzE;AAmDD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,sBAAsB,EAAE,MAAM,EAC9B,kBAAkB,UAAO,EACzB,cAAc,CAAC,EAAE,cAAc,GAC9B,kBAAkB,CAgDpB;AAED,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,kBAAkB,EAAE,EACjC,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,GACrB,kBAAkB,CAqBpB;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,qBAAqB,EAAE,MAAM,EAC7B,uBAAuB,EAAE,MAAM,EAC/B,sBAAsB,EAAE,MAAM,EAC9B,sBAAsB,SAAI,GACzB,MAAM,CAiCR;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,GACf,MAAM,EAAE,CAYV;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,cAAc,GAC9B,MAAM,CA6BR;AA4DD,wBAAgB,eAAe,CAC7B,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,EACzB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GACnB,cAAc,CAwChB;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,MAAM,GAChB,MAAM,CAUR"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { gaussianTwoSidedTail, violation } from './math.js';
|
|
2
|
+
export function createThresholdIndex(matrix) {
|
|
3
|
+
const sortedValues = new Float64Array(matrix.length);
|
|
4
|
+
let valueCount = 0;
|
|
5
|
+
for (const value of matrix) {
|
|
6
|
+
if (!Number.isNaN(value)) {
|
|
7
|
+
sortedValues[valueCount++] = value;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
const values = sortedValues.subarray(0, valueCount);
|
|
11
|
+
values.sort();
|
|
12
|
+
return {
|
|
13
|
+
countAtLeast(threshold) {
|
|
14
|
+
if (Number.isNaN(threshold))
|
|
15
|
+
return 0;
|
|
16
|
+
let low = 0;
|
|
17
|
+
let high = values.length;
|
|
18
|
+
while (low < high) {
|
|
19
|
+
const middle = low + Math.floor((high - low) / 2);
|
|
20
|
+
if (values[middle] < threshold) {
|
|
21
|
+
low = middle + 1;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
high = middle;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return values.length - low;
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function evaluateThresholdMetrics(matrix, rows, cols, threshold, ridgeCoverageThreshold, includeRidgeScores, thresholdIndex) {
|
|
32
|
+
if (!includeRidgeScores && thresholdIndex) {
|
|
33
|
+
return {
|
|
34
|
+
activePixels: thresholdIndex.countAtLeast(threshold),
|
|
35
|
+
ridge: { vertical: 0, horizontal: 0 },
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
const rowCounts = includeRidgeScores ? new Uint32Array(rows) : undefined;
|
|
39
|
+
const colCounts = includeRidgeScores ? new Uint32Array(cols) : undefined;
|
|
40
|
+
let activePixels = 0;
|
|
41
|
+
for (let row = 0; row < rows; row++) {
|
|
42
|
+
for (let col = 0; col < cols; col++) {
|
|
43
|
+
const index = row * cols + col;
|
|
44
|
+
if (!(matrix[index] >= threshold))
|
|
45
|
+
continue;
|
|
46
|
+
activePixels++;
|
|
47
|
+
if (rowCounts && colCounts) {
|
|
48
|
+
rowCounts[row]++;
|
|
49
|
+
colCounts[col]++;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const ridge = rowCounts && colCounts
|
|
54
|
+
? calculateRidgeScores(rowCounts, colCounts, rows, cols, activePixels, ridgeCoverageThreshold)
|
|
55
|
+
: { vertical: 0, horizontal: 0 };
|
|
56
|
+
return { activePixels, ridge };
|
|
57
|
+
}
|
|
58
|
+
export function evaluateThreshold(matrix, rows, cols, noiseLevel, sigmaMultiplier, contourRatio, persistenceLevels, ridgeCoverageThreshold, includeRidgeScores = true, thresholdIndex) {
|
|
59
|
+
const threshold = sigmaMultiplier * noiseLevel;
|
|
60
|
+
const { activePixels, ridge } = evaluateThresholdMetrics(matrix, rows, cols, threshold, ridgeCoverageThreshold, includeRidgeScores, thresholdIndex);
|
|
61
|
+
const totalPixels = rows * cols;
|
|
62
|
+
const occupancy = activePixels / totalPixels;
|
|
63
|
+
if (activePixels === 0) {
|
|
64
|
+
return {
|
|
65
|
+
sigmaMultiplier,
|
|
66
|
+
activePixels: 0,
|
|
67
|
+
occupancy: 0,
|
|
68
|
+
fdr: 0,
|
|
69
|
+
persistence: 0,
|
|
70
|
+
verticalRidgeScore: 0,
|
|
71
|
+
horizontalRidgeScore: 0,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const expectedNoisePixels = totalPixels * gaussianTwoSidedTail(sigmaMultiplier);
|
|
75
|
+
const fdr = Math.min(1, expectedNoisePixels / activePixels);
|
|
76
|
+
const persistence = computePersistence(matrix, rows, cols, threshold, contourRatio, persistenceLevels, thresholdIndex);
|
|
77
|
+
return {
|
|
78
|
+
sigmaMultiplier,
|
|
79
|
+
activePixels,
|
|
80
|
+
occupancy,
|
|
81
|
+
fdr,
|
|
82
|
+
persistence,
|
|
83
|
+
verticalRidgeScore: ridge.vertical,
|
|
84
|
+
horizontalRidgeScore: ridge.horizontal,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export function evaluateFallbackThreshold(evaluations, maxFdr, maxOccupancy, minPersistence) {
|
|
88
|
+
let best;
|
|
89
|
+
let bestScore = Infinity;
|
|
90
|
+
for (const evaluation of evaluations) {
|
|
91
|
+
const score = violation(evaluation.fdr, maxFdr) * 4 +
|
|
92
|
+
violation(evaluation.occupancy, maxOccupancy) * 2 +
|
|
93
|
+
violation(minPersistence, evaluation.persistence) * 2;
|
|
94
|
+
if (score < bestScore) {
|
|
95
|
+
bestScore = score;
|
|
96
|
+
best = evaluation;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (!best) {
|
|
100
|
+
throw new Error('Unable to evaluate contour thresholds');
|
|
101
|
+
}
|
|
102
|
+
return best;
|
|
103
|
+
}
|
|
104
|
+
export function findRidgeFreeThresholdTopDown(matrix, rows, cols, noiseLevel, minLevel, maxLevel, contourRatio, maxVerticalRidgeScore, maxHorizontalRidgeScore, ridgeCoverageThreshold, ridgePersistenceLevels = 1) {
|
|
105
|
+
let level = maxLevel;
|
|
106
|
+
let lastCleanLevel = level;
|
|
107
|
+
let consecutiveRidgeLevels = 0;
|
|
108
|
+
while (level >= minLevel) {
|
|
109
|
+
const ridge = evaluateRidgeScores(matrix, rows, cols, (level / noiseLevel) * noiseLevel, ridgeCoverageThreshold);
|
|
110
|
+
const hasRidge = ridge.vertical > maxVerticalRidgeScore ||
|
|
111
|
+
ridge.horizontal > maxHorizontalRidgeScore;
|
|
112
|
+
if (hasRidge) {
|
|
113
|
+
consecutiveRidgeLevels++;
|
|
114
|
+
if (consecutiveRidgeLevels >= ridgePersistenceLevels) {
|
|
115
|
+
return lastCleanLevel;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
consecutiveRidgeLevels = 0;
|
|
120
|
+
lastCleanLevel = level;
|
|
121
|
+
}
|
|
122
|
+
level /= contourRatio;
|
|
123
|
+
}
|
|
124
|
+
return lastCleanLevel;
|
|
125
|
+
}
|
|
126
|
+
export function generateCandidateSigmaLevels(minSigma, maxSigma, contourRatio, exponent) {
|
|
127
|
+
const step = contourRatio ** exponent;
|
|
128
|
+
const candidates = [];
|
|
129
|
+
let sigma = minSigma;
|
|
130
|
+
while (sigma <= maxSigma * (1 + 1e-12)) {
|
|
131
|
+
candidates.push(sigma);
|
|
132
|
+
sigma *= step;
|
|
133
|
+
}
|
|
134
|
+
return candidates;
|
|
135
|
+
}
|
|
136
|
+
export function computePersistence(matrix, rows, cols, initialThreshold, contourRatio, levels, thresholdIndex) {
|
|
137
|
+
let threshold = initialThreshold;
|
|
138
|
+
let previousArea = thresholdIndex
|
|
139
|
+
? thresholdIndex.countAtLeast(threshold)
|
|
140
|
+
: countValuesAboveThreshold(matrix, threshold);
|
|
141
|
+
if (previousArea === 0) {
|
|
142
|
+
return 0;
|
|
143
|
+
}
|
|
144
|
+
let minimumPersistence = 1;
|
|
145
|
+
for (let level = 1; level < levels; level++) {
|
|
146
|
+
threshold *= contourRatio;
|
|
147
|
+
const currentArea = thresholdIndex
|
|
148
|
+
? thresholdIndex.countAtLeast(threshold)
|
|
149
|
+
: countValuesAboveThreshold(matrix, threshold);
|
|
150
|
+
if (currentArea === 0) {
|
|
151
|
+
return 0;
|
|
152
|
+
}
|
|
153
|
+
const persistence = currentArea / previousArea;
|
|
154
|
+
minimumPersistence = Math.min(minimumPersistence, persistence);
|
|
155
|
+
previousArea = currentArea;
|
|
156
|
+
}
|
|
157
|
+
return minimumPersistence;
|
|
158
|
+
}
|
|
159
|
+
function calculateRidgeScores(rowCounts, colCounts, rows, cols, activePixels, coverageThreshold) {
|
|
160
|
+
if (activePixels === 0) {
|
|
161
|
+
return {
|
|
162
|
+
vertical: 0,
|
|
163
|
+
horizontal: 0,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
let verticalRidgePixels = 0;
|
|
167
|
+
for (let col = 0; col < cols; col++) {
|
|
168
|
+
const coverage = colCounts[col] / rows;
|
|
169
|
+
if (coverage >= coverageThreshold) {
|
|
170
|
+
verticalRidgePixels += colCounts[col];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
let horizontalRidgePixels = 0;
|
|
174
|
+
for (let row = 0; row < rows; row++) {
|
|
175
|
+
const coverage = rowCounts[row] / cols;
|
|
176
|
+
if (coverage >= coverageThreshold) {
|
|
177
|
+
horizontalRidgePixels += rowCounts[row];
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
vertical: verticalRidgePixels / activePixels,
|
|
182
|
+
horizontal: horizontalRidgePixels / activePixels,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
function evaluateRidgeScores(matrix, rows, cols, threshold, coverageThreshold) {
|
|
186
|
+
return evaluateThresholdMetrics(matrix, rows, cols, threshold, coverageThreshold, true).ridge;
|
|
187
|
+
}
|
|
188
|
+
export function maxPoolAbsolute(matrix, rows, cols, maxDimension) {
|
|
189
|
+
const scale = Math.max(1, Math.ceil(Math.max(rows, cols) / maxDimension));
|
|
190
|
+
const analysisRows = Math.ceil(rows / scale);
|
|
191
|
+
const analysisCols = Math.ceil(cols / scale);
|
|
192
|
+
const values = new Float64Array(analysisRows * analysisCols);
|
|
193
|
+
let maxAbsoluteValue = 0;
|
|
194
|
+
for (let analysisRow = 0; analysisRow < analysisRows; analysisRow++) {
|
|
195
|
+
const sourceRowStart = analysisRow * scale;
|
|
196
|
+
const sourceRowEnd = Math.min(rows, sourceRowStart + scale);
|
|
197
|
+
for (let analysisCol = 0; analysisCol < analysisCols; analysisCol++) {
|
|
198
|
+
const sourceColStart = analysisCol * scale;
|
|
199
|
+
const sourceColEnd = Math.min(cols, sourceColStart + scale);
|
|
200
|
+
let maximum = 0;
|
|
201
|
+
for (let row = sourceRowStart; row < sourceRowEnd; row++) {
|
|
202
|
+
const offset = row * cols;
|
|
203
|
+
for (let col = sourceColStart; col < sourceColEnd; col++) {
|
|
204
|
+
const value = Math.abs(matrix[offset + col]);
|
|
205
|
+
if (Number.isFinite(value) && value > maximum) {
|
|
206
|
+
maximum = value;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
values[analysisRow * analysisCols + analysisCol] = maximum;
|
|
211
|
+
maxAbsoluteValue = Math.max(maxAbsoluteValue, maximum);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return {
|
|
215
|
+
values,
|
|
216
|
+
rows: analysisRows,
|
|
217
|
+
cols: analysisCols,
|
|
218
|
+
maxAbsoluteValue: maxAbsoluteValue * 0.95,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export function countValuesAboveThreshold(matrix, threshold) {
|
|
222
|
+
let count = 0;
|
|
223
|
+
for (const value of matrix) {
|
|
224
|
+
if (value >= threshold) {
|
|
225
|
+
count++;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return count;
|
|
229
|
+
}
|
|
230
|
+
//# sourceMappingURL=evaluation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAmC5D,MAAM,UAAU,oBAAoB,CAAC,MAAoB;IACvD,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrD,IAAI,UAAU,GAAG,CAAC,CAAC;IAEnB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,YAAY,CAAC,UAAU,EAAE,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;IACpD,MAAM,CAAC,IAAI,EAAE,CAAC;IAEd,OAAO;QACL,YAAY,CAAC,SAAS;YACpB,IAAI,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC;gBAAE,OAAO,CAAC,CAAC;YAEtC,IAAI,GAAG,GAAG,CAAC,CAAC;YACZ,IAAI,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;YAEzB,OAAO,GAAG,GAAG,IAAI,EAAE,CAAC;gBAClB,MAAM,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,G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,OAAO,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IAED,OAAO;QACL,MAAM;QACN,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,YAAY;QAClB,gBAAgB,EAAE,gBAAgB,GAAG,IAAI;KAC1C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,MAAoB,EACpB,SAAiB;IAEjB,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,KAAK,IAAI,SAAS,EAAE,CAAC;YACvB,KAAK,EAAE,CAAC;QACV,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
interface AutoContourDiagnostics {
|
|
2
|
+
recommended: ThresholdDiagnostics;
|
|
3
|
+
ridgeFree: ThresholdDiagnostics;
|
|
4
|
+
}
|
|
5
|
+
interface ThresholdDiagnostics {
|
|
6
|
+
sigmaMultiplier: number;
|
|
7
|
+
minLevel: number;
|
|
8
|
+
occupancy: number;
|
|
9
|
+
fdr: number;
|
|
10
|
+
persistence: number;
|
|
11
|
+
verticalRidgeScore: number;
|
|
12
|
+
horizontalRidgeScore: number;
|
|
13
|
+
}
|
|
14
|
+
export type AutoContourResult<TDiagnostics extends boolean = boolean> = {
|
|
15
|
+
/**
|
|
16
|
+
* Recommended minimum contour level.
|
|
17
|
+
*/
|
|
18
|
+
minLevel: number;
|
|
19
|
+
/**
|
|
20
|
+
* Minimum contour level at which detected directional
|
|
21
|
+
* ridge structures (e.g. t1-noise) are no longer present.
|
|
22
|
+
*/
|
|
23
|
+
minLevelWithoutT1Noise: number;
|
|
24
|
+
/**
|
|
25
|
+
* True when directional ridge structures were detected
|
|
26
|
+
* at the recommended minimum.
|
|
27
|
+
*/
|
|
28
|
+
hasT1Noise: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Same values expressed in multiples of the noise level.
|
|
31
|
+
*/
|
|
32
|
+
sigmaMultiplier: number;
|
|
33
|
+
sigmaMultiplierWithoutT1Noise: number;
|
|
34
|
+
/**
|
|
35
|
+
* Maximum absolute value in the analysis matrix used for contour level selection.
|
|
36
|
+
*/
|
|
37
|
+
maxAbsoluteValue: number;
|
|
38
|
+
} & (TDiagnostics extends true ? {
|
|
39
|
+
diagnostics: AutoContourDiagnostics;
|
|
40
|
+
} : {
|
|
41
|
+
diagnostics?: AutoContourDiagnostics;
|
|
42
|
+
});
|
|
43
|
+
export interface AutoContourOptions {
|
|
44
|
+
/**
|
|
45
|
+
* Multiplicative ratio between consecutive contour levels.
|
|
46
|
+
*
|
|
47
|
+
* The contour levels are generated as:
|
|
48
|
+
*
|
|
49
|
+
* Lₙ = L₀ × contourRatioⁿ
|
|
50
|
+
*
|
|
51
|
+
* Must be greater than 1.
|
|
52
|
+
*
|
|
53
|
+
* A smaller value produces more closely spaced contour levels,
|
|
54
|
+
* while a larger value produces fewer, more widely spaced levels.
|
|
55
|
+
*
|
|
56
|
+
* @default 1.4
|
|
57
|
+
*/
|
|
58
|
+
contourRatio?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Maximum acceptable false discovery rate (FDR) for the
|
|
61
|
+
* automatically selected minimum contour level.
|
|
62
|
+
*
|
|
63
|
+
* The FDR estimates the fraction of pixels above the selected
|
|
64
|
+
* threshold that could be explained by Gaussian noise, assuming
|
|
65
|
+
* the supplied noiseLevel is accurate.
|
|
66
|
+
*
|
|
67
|
+
* Smaller values produce a cleaner visualization but may suppress
|
|
68
|
+
* weak peaks.
|
|
69
|
+
*
|
|
70
|
+
* @default 0.05
|
|
71
|
+
*/
|
|
72
|
+
maxFdr?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Maximum fraction of the spectrum that may be above the
|
|
75
|
+
* automatically selected minimum contour level.
|
|
76
|
+
*
|
|
77
|
+
* This prevents very low thresholds from producing contours over
|
|
78
|
+
* a large fraction of the spectrum.
|
|
79
|
+
*
|
|
80
|
+
* Expressed as a fraction in the range [0, 1].
|
|
81
|
+
*
|
|
82
|
+
* For example, 0.02 means that at most 2% of pixels may be above
|
|
83
|
+
* the minimum contour threshold.
|
|
84
|
+
*
|
|
85
|
+
* @default 0.02
|
|
86
|
+
*/
|
|
87
|
+
maxOccupancy?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Minimum persistence required for spectral structures across
|
|
90
|
+
* successive exponential contour levels.
|
|
91
|
+
*
|
|
92
|
+
* Persistence measures how much of the active spectral structure
|
|
93
|
+
* remains when moving from one contour level to the next.
|
|
94
|
+
*
|
|
95
|
+
* Higher values favor stable, coherent peaks and reject fragmented
|
|
96
|
+
* noise structures more aggressively.
|
|
97
|
+
*
|
|
98
|
+
* Expressed as a fraction in the range [0, 1].
|
|
99
|
+
*
|
|
100
|
+
* @default 0.35
|
|
101
|
+
*/
|
|
102
|
+
minPersistence?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Maximum acceptable score for vertical ridge-like structures.
|
|
105
|
+
*
|
|
106
|
+
* This is primarily intended to detect structured artifacts such
|
|
107
|
+
* as t1 noise, which often appears as elongated structures along
|
|
108
|
+
* the F1 dimension.
|
|
109
|
+
*
|
|
110
|
+
* Smaller values make the ridge-free threshold more conservative.
|
|
111
|
+
*
|
|
112
|
+
* @default 0.25
|
|
113
|
+
*/
|
|
114
|
+
maxVerticalRidgeScore?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Maximum acceptable score for horizontal ridge-like structures.
|
|
117
|
+
*
|
|
118
|
+
* This can detect horizontal streaks or other structured artifacts
|
|
119
|
+
* extending predominantly along the F2 dimension.
|
|
120
|
+
*
|
|
121
|
+
* Smaller values make the ridge-free threshold more conservative.
|
|
122
|
+
*
|
|
123
|
+
* @default 0.25
|
|
124
|
+
*/
|
|
125
|
+
maxHorizontalRidgeScore?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Fraction of a row or column that must be occupied by active
|
|
128
|
+
* contour pixels for the row or column to be considered
|
|
129
|
+
* ridge-like.
|
|
130
|
+
*
|
|
131
|
+
* For vertical ridge detection, a column is considered suspicious
|
|
132
|
+
* when the fraction of active pixels along F1 is greater than or
|
|
133
|
+
* equal to this value.
|
|
134
|
+
*
|
|
135
|
+
* For horizontal ridge detection, the same criterion is applied
|
|
136
|
+
* along F2.
|
|
137
|
+
*
|
|
138
|
+
* Expressed as a fraction in the range [0, 1].
|
|
139
|
+
*
|
|
140
|
+
* Lower values make ridge detection more sensitive.
|
|
141
|
+
*
|
|
142
|
+
* @default 0.5
|
|
143
|
+
*/
|
|
144
|
+
ridgeCoverageThreshold?: number;
|
|
145
|
+
/**
|
|
146
|
+
* Lowest threshold considered by the automatic contour search,
|
|
147
|
+
* expressed as a multiple of the supplied noise level.
|
|
148
|
+
*
|
|
149
|
+
* For example, minSigma = 2 means that thresholds below 2 ×
|
|
150
|
+
* noiseLevel are never considered.
|
|
151
|
+
*
|
|
152
|
+
* Lower values can preserve weaker peaks but increase the risk
|
|
153
|
+
* of including noise.
|
|
154
|
+
*
|
|
155
|
+
* @default 2
|
|
156
|
+
*/
|
|
157
|
+
minSigma?: number;
|
|
158
|
+
/**
|
|
159
|
+
* Exponent used to determine the spacing between candidate
|
|
160
|
+
* minimum contour levels.
|
|
161
|
+
*
|
|
162
|
+
* Candidate thresholds are generated multiplicatively using:
|
|
163
|
+
*
|
|
164
|
+
* candidateStep = contourRatio ** candidateRatioExponent
|
|
165
|
+
*
|
|
166
|
+
* For example, with contourRatio = 1.4 and exponent = 0.5:
|
|
167
|
+
*
|
|
168
|
+
* candidateStep = sqrt(1.4)
|
|
169
|
+
*
|
|
170
|
+
* A value of 1 evaluates candidates directly on the contour-level
|
|
171
|
+
* hierarchy. Smaller values provide finer threshold resolution
|
|
172
|
+
* while increasing the amount of analysis.
|
|
173
|
+
*
|
|
174
|
+
* @default 0.5
|
|
175
|
+
*/
|
|
176
|
+
candidateRatioExponent?: number;
|
|
177
|
+
/**
|
|
178
|
+
* Number of successive contour levels used when evaluating
|
|
179
|
+
* spectral persistence.
|
|
180
|
+
*
|
|
181
|
+
* A larger value requires spectral structures to remain stable
|
|
182
|
+
* across more contour levels and therefore produces a more
|
|
183
|
+
* conservative threshold.
|
|
184
|
+
*
|
|
185
|
+
* @default 4
|
|
186
|
+
*/
|
|
187
|
+
persistenceLevels?: number;
|
|
188
|
+
/**
|
|
189
|
+
* Maximum dimension used for spatial analysis.
|
|
190
|
+
*
|
|
191
|
+
* Large input matrices are reduced using max pooling before
|
|
192
|
+
* calculating occupancy, persistence, and ridge metrics.
|
|
193
|
+
*
|
|
194
|
+
* The original matrix is not modified.
|
|
195
|
+
*
|
|
196
|
+
* Max pooling is used instead of averaging so that narrow,
|
|
197
|
+
* high-intensity spectral features are preserved during analysis.
|
|
198
|
+
*
|
|
199
|
+
* Larger values improve spatial resolution but increase
|
|
200
|
+
* computational cost and memory usage.
|
|
201
|
+
*
|
|
202
|
+
* @default 384
|
|
203
|
+
*/
|
|
204
|
+
maxAnalysisDimension?: number;
|
|
205
|
+
/**
|
|
206
|
+
* Whether diagnostic information should be returned.
|
|
207
|
+
*
|
|
208
|
+
* Diagnostics include the selected thresholds, FDR, occupancy,
|
|
209
|
+
* persistence, vertical and horizontal ridge scores, and the
|
|
210
|
+
* individual criteria used by the automatic threshold selection.
|
|
211
|
+
*
|
|
212
|
+
* Disable this when diagnostics are not needed and the smallest
|
|
213
|
+
* possible result object is preferred.
|
|
214
|
+
*
|
|
215
|
+
* @default true
|
|
216
|
+
*/
|
|
217
|
+
diagnostics?: boolean;
|
|
218
|
+
}
|
|
219
|
+
export declare function findAutomaticContourLevels(matrix: ArrayLike<number>, rows: number, cols: number, noiseLevel: number, options: AutoContourOptions & {
|
|
220
|
+
diagnostics: true;
|
|
221
|
+
}): AutoContourResult<true>;
|
|
222
|
+
export declare function findAutomaticContourLevels(matrix: ArrayLike<number>, rows: number, cols: number, noiseLevel: number, options?: AutoContourOptions): AutoContourResult<true>;
|
|
223
|
+
export declare function findAutomaticContourLevels(matrix: ArrayLike<number>, rows: number, cols: number, noiseLevel: number, options: AutoContourOptions & {
|
|
224
|
+
diagnostics: false;
|
|
225
|
+
}): AutoContourResult<false>;
|
|
226
|
+
export {};
|
|
227
|
+
//# sourceMappingURL=findAutomaticContourLevels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findAutomaticContourLevels.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts"],"names":[],"mappings":"AAUA,UAAU,sBAAsB;IAC9B,WAAW,EAAE,oBAAoB,CAAC;IAClC,SAAS,EAAE,oBAAoB,CAAC;CACjC;AAED,UAAU,oBAAoB;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IAEpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,MAAM,iBAAiB,CAAC,YAAY,SAAS,OAAO,GAAG,OAAO,IAAI;IACtE;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,6BAA6B,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,GAAG,CAAC,YAAY,SAAS,IAAI,GAC1B;IACE,WAAW,EAAE,sBAAsB,CAAC;CACrC,GACD;IACE,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC,CAAC,CAAC;AAEP,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;;;;;OAYG;IACH,MAAM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EACZ,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,kBAAkB,GAAG;IAAE,WAAW,EAAE,KAAK,CAAA;CAAE,GACnD,iBAAiB,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { createThresholdIndex, evaluateFallbackThreshold, evaluateThreshold, findRidgeFreeThresholdTopDown, generateCandidateSigmaLevels, maxPoolAbsolute, } from './evaluation.js';
|
|
2
|
+
import { validateInput } from './math.js';
|
|
3
|
+
export function findAutomaticContourLevels(matrix, rows, cols, noiseLevel, options = {}) {
|
|
4
|
+
validateInput(matrix, rows, cols, noiseLevel);
|
|
5
|
+
const { contourRatio = 1.4, maxFdr = 0.05, maxOccupancy = 0.02, minPersistence = 0.35, maxVerticalRidgeScore = 0.25, maxHorizontalRidgeScore = 0.25, ridgeCoverageThreshold = 0.5, minSigma = 5, candidateRatioExponent = 0.5, persistenceLevels = 4, maxAnalysisDimension = 384, diagnostics = true, } = options;
|
|
6
|
+
if (contourRatio <= 1) {
|
|
7
|
+
throw new Error('contourRatio must be > 1');
|
|
8
|
+
}
|
|
9
|
+
const analysis = maxPoolAbsolute(matrix, rows, cols, maxAnalysisDimension);
|
|
10
|
+
const { values, rows: analysisRows, cols: analysisCols, maxAbsoluteValue, } = analysis;
|
|
11
|
+
const thresholdIndex = createThresholdIndex(values);
|
|
12
|
+
const maxSigmaInData = maxAbsoluteValue / noiseLevel;
|
|
13
|
+
const candidates = generateCandidateSigmaLevels(minSigma, maxSigmaInData, contourRatio, candidateRatioExponent);
|
|
14
|
+
const evaluations = [];
|
|
15
|
+
let recommended;
|
|
16
|
+
for (const sigmaMultiplier of candidates) {
|
|
17
|
+
const evaluation = evaluateThreshold(values, analysisRows, analysisCols, noiseLevel, sigmaMultiplier, contourRatio, persistenceLevels, ridgeCoverageThreshold, false, thresholdIndex);
|
|
18
|
+
evaluations.push(evaluation);
|
|
19
|
+
const passed = evaluation.fdr <= maxFdr &&
|
|
20
|
+
evaluation.occupancy <= maxOccupancy &&
|
|
21
|
+
evaluation.persistence >= minPersistence;
|
|
22
|
+
if (passed) {
|
|
23
|
+
recommended = evaluation;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (!recommended) {
|
|
28
|
+
recommended = evaluateFallbackThreshold(evaluations, maxFdr, maxOccupancy, minPersistence);
|
|
29
|
+
}
|
|
30
|
+
const ridgeFreeLevel = findRidgeFreeThresholdTopDown(values, analysisRows, analysisCols, noiseLevel, recommended.sigmaMultiplier * noiseLevel, maxAbsoluteValue, contourRatio, maxVerticalRidgeScore, maxHorizontalRidgeScore, ridgeCoverageThreshold);
|
|
31
|
+
const hasT1Noise = recommended.verticalRidgeScore > maxVerticalRidgeScore ||
|
|
32
|
+
recommended.horizontalRidgeScore > maxHorizontalRidgeScore;
|
|
33
|
+
const result = {
|
|
34
|
+
maxAbsoluteValue,
|
|
35
|
+
minLevel: recommended.sigmaMultiplier * noiseLevel,
|
|
36
|
+
minLevelWithoutT1Noise: ridgeFreeLevel,
|
|
37
|
+
hasT1Noise,
|
|
38
|
+
sigmaMultiplier: recommended.sigmaMultiplier,
|
|
39
|
+
sigmaMultiplierWithoutT1Noise: ridgeFreeLevel / noiseLevel,
|
|
40
|
+
};
|
|
41
|
+
if (diagnostics) {
|
|
42
|
+
const recommendedDiagnostics = evaluateThreshold(values, analysisRows, analysisCols, noiseLevel, recommended.sigmaMultiplier, contourRatio, persistenceLevels, ridgeCoverageThreshold, true, thresholdIndex);
|
|
43
|
+
const ridgeFree = evaluateThreshold(values, analysisRows, analysisCols, noiseLevel, ridgeFreeLevel / noiseLevel, contourRatio, 1, ridgeCoverageThreshold, true, thresholdIndex);
|
|
44
|
+
result.diagnostics = {
|
|
45
|
+
recommended: {
|
|
46
|
+
sigmaMultiplier: recommendedDiagnostics.sigmaMultiplier,
|
|
47
|
+
minLevel: recommendedDiagnostics.sigmaMultiplier * noiseLevel,
|
|
48
|
+
occupancy: recommendedDiagnostics.occupancy,
|
|
49
|
+
fdr: recommendedDiagnostics.fdr,
|
|
50
|
+
persistence: recommendedDiagnostics.persistence,
|
|
51
|
+
verticalRidgeScore: recommendedDiagnostics.verticalRidgeScore,
|
|
52
|
+
horizontalRidgeScore: recommendedDiagnostics.horizontalRidgeScore,
|
|
53
|
+
},
|
|
54
|
+
ridgeFree: {
|
|
55
|
+
sigmaMultiplier: ridgeFree.sigmaMultiplier,
|
|
56
|
+
minLevel: ridgeFreeLevel,
|
|
57
|
+
occupancy: ridgeFree.occupancy,
|
|
58
|
+
fdr: ridgeFree.fdr,
|
|
59
|
+
persistence: ridgeFree.persistence,
|
|
60
|
+
verticalRidgeScore: ridgeFree.verticalRidgeScore,
|
|
61
|
+
horizontalRidgeScore: ridgeFree.horizontalRidgeScore,
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=findAutomaticContourLevels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findAutomaticContourLevels.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,6BAA6B,EAC7B,4BAA4B,EAC5B,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAuQ1C,MAAM,UAAU,0BAA0B,CACxC,MAAyB,EACzB,IAAY,EACZ,IAAY,EACZ,UAAkB,EAClB,UAA8B,EAAE;IAEhC,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;IAE9C,MAAM,EACJ,YAAY,GAAG,GAAG,EAClB,MAAM,GAAG,IAAI,EACb,YAAY,GAAG,IAAI,EACnB,cAAc,GAAG,IAAI,EACrB,qBAAqB,GAAG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AAS,EAAE,sBAAsB,CAAC,SAAS;gBAC3C,GAAG,EAAE,sBAAsB,CAAC,GAAG;gBAC/B,WAAW,EAAE,sBAAsB,CAAC,WAAW;gBAC/C,kBAAkB,EAAE,sBAAsB,CAAC,kBAAkB;gBAC7D,oBAAoB,EAAE,sBAAsB,CAAC,oBAAoB;aAClE;YACD,SAAS,EAAE;gBACT,eAAe,EAAE,SAAS,CAAC,eAAe;gBAC1C,QAAQ,EAAE,cAAc;gBACxB,SAAS,EAAE,SAAS,CAAC,SAAS;gBAC9B,GAAG,EAAE,SAAS,CAAC,GAAG;gBAClB,WAAW,EAAE,SAAS,CAAC,WAAW;gBAClC,kBAAkB,EAAE,SAAS,CAAC,kBAAkB;gBAChD,oBAAoB,EAAE,SAAS,CAAC,oBAAoB;aACrD;SACF,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function gaussianTwoSidedTail(k: number): number;
|
|
2
|
+
export declare function violation(value: number, limit: number): number;
|
|
3
|
+
export declare function validateInput(matrix: ArrayLike<number>, rows: number, cols: number, noiseLevel: number): void;
|
|
4
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/findBestMinContour/math.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEtD;AA2BD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,EACzB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,GACjB,IAAI,CAgBN"}
|