nmrium 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +138 -133
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js.map +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +20 -21
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FooterBanner.js +2 -2
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/Line.js +1 -1
- package/lib/component/1d/Line.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/SpectraLegends.d.ts +1 -2
- package/lib/component/1d/SpectraLegends.d.ts.map +1 -1
- package/lib/component/1d/SpectraLegends.js +3 -4
- package/lib/component/1d/SpectraLegends.js.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.js +4 -4
- package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
- package/lib/component/1d/database/DatabaseElements.d.ts +1 -2
- package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseElements.js +1 -2
- package/lib/component/1d/database/DatabaseElements.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +4 -4
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js +4 -4
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/inset/InsetViewerRoot.js +3 -3
- package/lib/component/1d/inset/InsetViewerRoot.js.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js +2 -2
- package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.js +3 -4
- package/lib/component/1d/jCouplingGraph/JGraphContext.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -4
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +1 -2
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.js +6 -7
- package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +12 -15
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +4 -3
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/Atoms.js +18 -17
- package/lib/component/1d/ranges/Atoms.js.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.js +12 -14
- package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.d.ts +1 -2
- package/lib/component/1d/ranges/RangesIntegrals.d.ts.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js +2 -3
- package/lib/component/1d/ranges/RangesIntegrals.js.map +1 -1
- package/lib/component/1d/tool/BaseLine.d.ts +1 -2
- package/lib/component/1d/tool/BaseLine.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLine.js +2 -3
- package/lib/component/1d/tool/BaseLine.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +3 -3
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.d.ts +2 -1
- package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.js +2 -2
- package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -1
- package/lib/component/1d-2d/components/SVGRootContainer.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SVGRootContainer.js +2 -2
- package/lib/component/1d-2d/components/SVGRootContainer.js.map +1 -1
- package/lib/component/1d-2d/components/Signals1D.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +1 -2
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +17 -16
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +2 -2
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.js +1 -3
- package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -1
- package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/DistanceLine.js +2 -4
- package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts +0 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +5 -5
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +1 -1
- 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 +1 -1
- 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/SlicingView.js +2 -2
- package/lib/component/2d/SlicingView.js.map +1 -1
- package/lib/component/2d/Viewer2D.js +1 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.d.ts.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.js +1 -1
- package/lib/component/2d/tools/PivotIndicator.js.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +6 -6
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.js +4 -4
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +21 -17
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +10 -10
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +5 -6
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts +12 -4
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js +3 -4
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js.map +1 -1
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/SVGTable.js +4 -4
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/assignment/AssignmentProvider.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentProvider.js +3 -5
- package/lib/component/assignment/AssignmentProvider.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +3 -3
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +3 -3
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js +4 -10
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/ChartContext.d.ts +1 -1
- package/lib/component/context/ChartContext.d.ts.map +1 -1
- package/lib/component/context/ChartContext.js +3 -4
- package/lib/component/context/ChartContext.js.map +1 -1
- package/lib/component/context/CoreContext.d.ts +1 -1
- package/lib/component/context/CoreContext.d.ts.map +1 -1
- package/lib/component/context/CoreContext.js +3 -4
- package/lib/component/context/CoreContext.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +1 -1
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js +3 -4
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.js +3 -3
- package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
- package/lib/component/context/GlobalContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.d.ts.map +1 -1
- package/lib/component/context/GlobalContext.js +3 -4
- package/lib/component/context/GlobalContext.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +3 -3
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/LoaderContext.d.ts +1 -1
- package/lib/component/context/LoaderContext.d.ts.map +1 -1
- package/lib/component/context/LoaderContext.js +4 -7
- package/lib/component/context/LoaderContext.js.map +1 -1
- package/lib/component/context/LoggerContext.js +3 -3
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +1 -1
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/context/PreferencesContext.js +4 -5
- package/lib/component/context/PreferencesContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js +3 -3
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/context/ShareDataContext.d.ts.map +1 -1
- package/lib/component/context/ShareDataContext.js +3 -3
- package/lib/component/context/ShareDataContext.js.map +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.js +7 -8
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/context/ToasterContext.d.ts.map +1 -1
- package/lib/component/context/ToasterContext.js +3 -3
- package/lib/component/context/ToasterContext.js.map +1 -1
- package/lib/component/context/TopicMoleculeContext.js +3 -3
- package/lib/component/context/TopicMoleculeContext.js.map +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -1
- package/lib/component/context/processings_mutations_context.api.js +9 -11
- package/lib/component/context/processings_mutations_context.api.js.map +1 -1
- package/lib/component/context/processings_mutations_context.js +3 -3
- package/lib/component/context/processings_mutations_context.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +13 -13
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Alert.d.ts.map +1 -1
- package/lib/component/elements/Alert.js +6 -4
- package/lib/component/elements/Alert.js.map +1 -1
- package/lib/component/elements/Anchor.d.ts +35 -11
- package/lib/component/elements/Anchor.d.ts.map +1 -1
- package/lib/component/elements/Anchor.js.map +1 -1
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/D3Axis.d.ts +3 -2
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +3 -4
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/DialogManager.d.ts +3 -1
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.js +5 -5
- package/lib/component/elements/DialogManager.js.map +1 -1
- package/lib/component/elements/DraggableDialog.js +11 -11
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/EditableColumn.d.ts +3 -2
- package/lib/component/elements/EditableColumn.d.ts.map +1 -1
- package/lib/component/elements/EditableColumn.js +12 -10
- package/lib/component/elements/EditableColumn.js.map +1 -1
- package/lib/component/elements/Footer.d.ts +9 -3
- package/lib/component/elements/Footer.d.ts.map +1 -1
- package/lib/component/elements/Footer.js.map +1 -1
- package/lib/component/elements/Input.d.ts +4 -3
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input.js +9 -10
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/Input2.d.ts +4 -3
- package/lib/component/elements/Input2.d.ts.map +1 -1
- package/lib/component/elements/Input2.js +7 -9
- package/lib/component/elements/Input2.js.map +1 -1
- package/lib/component/elements/InputRange.d.ts +4 -3
- package/lib/component/elements/InputRange.d.ts.map +1 -1
- package/lib/component/elements/InputRange.js +10 -10
- package/lib/component/elements/InputRange.js.map +1 -1
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/IsotopesViewer.js.map +1 -1
- package/lib/component/elements/NumberInput2.d.ts +4 -3
- package/lib/component/elements/NumberInput2.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2.js +5 -7
- package/lib/component/elements/NumberInput2.js.map +1 -1
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.js +17 -9
- package/lib/component/elements/NumberInput2Controller.js.map +1 -1
- package/lib/component/elements/SVGGroup.d.ts.map +1 -1
- package/lib/component/elements/SVGGroup.js +16 -15
- package/lib/component/elements/SVGGroup.js.map +1 -1
- package/lib/component/elements/Scroller.d.ts.map +1 -1
- package/lib/component/elements/Scroller.js +3 -4
- package/lib/component/elements/Scroller.js.map +1 -1
- package/lib/component/elements/Sections.js +3 -3
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts +4 -3
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select.js +3 -5
- package/lib/component/elements/Select.js.map +1 -1
- package/lib/component/elements/Select2.d.ts +3 -5
- package/lib/component/elements/Select2.d.ts.map +1 -1
- package/lib/component/elements/Select2.js +3 -4
- package/lib/component/elements/Select2.js.map +1 -1
- package/lib/component/elements/Tab/Tab.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tab.js +2 -2
- package/lib/component/elements/Tab/Tab.js.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +0 -2
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/TabsProvider.d.ts.map +1 -1
- package/lib/component/elements/TabsProvider.js +3 -3
- package/lib/component/elements/TabsProvider.js.map +1 -1
- package/lib/component/elements/custom-color-picker.d.ts +3 -0
- package/lib/component/elements/custom-color-picker.d.ts.map +1 -0
- package/lib/component/elements/custom-color-picker.js +158 -0
- package/lib/component/elements/custom-color-picker.js.map +1 -0
- package/lib/component/elements/draggable/useDraggable.js +4 -4
- package/lib/component/elements/draggable/useDraggable.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +5 -5
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.js +3 -3
- package/lib/component/elements/export/ExportSettingsProvider.js.map +1 -1
- package/lib/component/elements/export/RenderDetector.d.ts.map +1 -1
- package/lib/component/elements/export/RenderDetector.js +1 -0
- package/lib/component/elements/export/RenderDetector.js.map +1 -1
- package/lib/component/elements/print/PrintContent.js +3 -2
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
- package/lib/component/elements/print/PrintProvider.js +6 -6
- package/lib/component/elements/print/PrintProvider.js.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.d.ts.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.js +0 -1
- package/lib/component/elements/resizer/SVGResizer.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.js +3 -4
- package/lib/component/elements/tanstack_table/elements/table_context.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts +1 -0
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_header.js +2 -2
- package/lib/component/elements/tanstack_table/elements/table_header.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts +2 -2
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_row.js +41 -21
- package/lib/component/elements/tanstack_table/elements/table_row.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/useRowReorder.d.ts +10 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.js +87 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.js.map +1 -0
- package/lib/component/elements/tanstack_table/table.d.ts +6 -5
- package/lib/component/elements/tanstack_table/table.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/table.js +10 -8
- package/lib/component/elements/tanstack_table/table.js.map +1 -1
- package/lib/component/elements/tanstack_table/types.d.ts +3 -0
- package/lib/component/elements/tanstack_table/types.d.ts.map +1 -1
- package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -1
- package/lib/component/elements/utilities/transferStyles.js +1 -3
- package/lib/component/elements/utilities/transferStyles.js.map +1 -1
- package/lib/component/header/Header.d.ts.map +1 -1
- package/lib/component/header/Header.js +3 -3
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/highlight/index.d.ts +6 -3
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +12 -9
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.js +2 -2
- package/lib/component/hooks/reduce2DSpectrum.js.map +1 -1
- package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
- package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +0 -3
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useDialogToggle.js +1 -1
- package/lib/component/hooks/useDialogToggle.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +4 -6
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useSelectedSpectra.d.ts.map +1 -1
- package/lib/component/hooks/useSelectedSpectra.js +1 -1
- package/lib/component/hooks/useSelectedSpectra.js.map +1 -1
- package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
- package/lib/component/hooks/useTableSortBy.js +1 -1
- package/lib/component/hooks/useTableSortBy.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +1 -0
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/hooks/use_gridlines_config.d.ts.map +1 -1
- package/lib/component/hooks/use_gridlines_config.js +2 -4
- package/lib/component/hooks/use_gridlines_config.js.map +1 -1
- package/lib/component/loader/DropZone.js +2 -2
- package/lib/component/loader/DropZone.js.map +1 -1
- package/lib/component/loader/Spinner.js +3 -3
- package/lib/component/loader/Spinner.js.map +1 -1
- package/lib/component/loader/SpinnerContext.d.ts +1 -2
- package/lib/component/loader/SpinnerContext.d.ts.map +1 -1
- package/lib/component/loader/SpinnerContext.js +1 -2
- package/lib/component/loader/SpinnerContext.js.map +1 -1
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +7 -9
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts +2 -2
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +15 -11
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts +2 -2
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/NMRium.d.ts +10 -2
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js +4 -4
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +2 -2
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +3 -3
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewer.js +2 -1
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/modal/AboutPredictionModal.d.ts +1 -2
- package/lib/component/modal/AboutPredictionModal.d.ts.map +1 -1
- package/lib/component/modal/AboutPredictionModal.js +1 -2
- package/lib/component/modal/AboutPredictionModal.js.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts +1 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js +1 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +2 -2
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts +1 -2
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +1 -2
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +4 -7
- package/lib/component/modal/editRange/EditRangeModal.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 +4 -4
- package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +2 -6
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/editZone/SignalsForm.js +2 -2
- package/lib/component/modal/editZone/SignalsForm.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +2 -5
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +3 -3
- 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.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +2 -1
- 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_footer.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -1
- 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 +5 -2
- 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.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +3 -1
- 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.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +5 -2
- 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/spectra_colors_tab.js +2 -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.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +3 -1
- 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 +9 -4
- 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/panels_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts +1 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +5 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +4 -3
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +6 -6
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +0 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +11 -14
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +5 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +4 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/peaksToTSV.js +1 -4
- package/lib/component/panels/PeaksPanel/peaksToTSV.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +2 -2
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +6 -2
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +4 -3
- package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +0 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts +7 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js +6 -5
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +19 -12
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js +15 -7
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +10 -7
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js +12 -8
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +18 -19
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +9 -11
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +22 -19
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +6 -7
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +10 -13
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +8 -10
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js +3 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +8 -9
- package/lib/component/panels/ZonesPanel/ZonesPanel.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +5 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +4 -3
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.js +3 -3
- package/lib/component/panels/ZonesPanel/ZonesTable.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +4 -5
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.js +2 -0
- package/lib/component/panels/databasePanel/DatabaseInfo.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +6 -2
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -3
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +12 -12
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js +1 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +0 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +2 -5
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +3 -5
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.js +5 -5
- package/lib/component/panels/hooks/useGetPanelOptions.js.map +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.js +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +22 -17
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts +5 -2
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +4 -5
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +4 -2
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +4 -8
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +5 -5
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +6 -2
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.js +4 -3
- package/lib/component/panels/predictionPanel/PredictionPreferences.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts +5 -2
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +2 -3
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
- package/lib/component/reducer/IgnoreActions.d.ts +1 -2
- package/lib/component/reducer/IgnoreActions.d.ts.map +1 -1
- package/lib/component/reducer/IgnoreActions.js +2 -5
- package/lib/component/reducer/IgnoreActions.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +2 -0
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +15 -34
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +4 -4
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +43 -43
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +48 -52
- package/lib/component/reducer/actions/FiltersActions.js.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/LoadAction.d.ts +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +37 -71
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +13 -13
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +14 -18
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +11 -11
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +12 -14
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts +4 -4
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +4 -5
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +8 -6
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +20 -16
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +35 -30
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +18 -18
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +18 -19
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +4 -4
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +26 -26
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/actions/processings_actions.d.ts +1 -1
- package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -1
- package/lib/component/reducer/actions/processings_actions.js +9 -9
- package/lib/component/reducer/actions/processings_actions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +2 -2
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +3 -5
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/useWatchForm.d.ts.map +1 -1
- package/lib/component/useWatchForm.js +0 -1
- package/lib/component/useWatchForm.js.map +1 -1
- package/lib/component/utility/Events.d.ts +4 -4
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/Events.js +0 -1
- package/lib/component/utility/Events.js.map +1 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +15 -18
- package/lib/component/utility/export.js.map +1 -1
- package/lib/data/PredictionManager.js +7 -8
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +3 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +1 -1
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +7 -4
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +9 -9
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
- package/lib/data/data1d/database.js +3 -3
- package/lib/data/data1d/database.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +7 -7
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +4 -3
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +2 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +1 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +2 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -1
- package/lib/data/matrixGeneration.d.ts.map +1 -1
- package/lib/data/matrixGeneration.js +3 -6
- package/lib/data/matrixGeneration.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.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/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.js +7 -31
- package/lib/data/utilities/ZoneUtilities.js.map +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +40 -39
- package/src/component/1d/BrushTracker1D.tsx +153 -151
- package/src/component/1d/ExclusionZoneAnnotation.tsx +1 -1
- package/src/component/1d/ExclusionZonesAnnotations.tsx +2 -2
- package/src/component/1d/FloatPublicationString.tsx +34 -30
- package/src/component/1d/FooterBanner.tsx +4 -4
- package/src/component/1d/Line.tsx +1 -1
- package/src/component/1d/SimilarityTree.tsx +2 -2
- package/src/component/1d/SpectraLegends.tsx +6 -7
- package/src/component/1d/baseline/BaselinePreview.tsx +5 -5
- package/src/component/1d/database/DatabaseElements.tsx +1 -3
- package/src/component/1d/database/DatabaseSpectrum.tsx +3 -3
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
- package/src/component/1d/inset/DraggableInset.tsx +4 -4
- package/src/component/1d/inset/InsetProvider.tsx +4 -6
- package/src/component/1d/inset/InsetViewerRoot.tsx +4 -4
- package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraph.tsx +3 -3
- package/src/component/1d/jCouplingGraph/JGraphContext.tsx +3 -5
- package/src/component/1d/jCouplingGraph/JsCouplingLinks.tsx +4 -5
- package/src/component/1d/jCouplingGraph/JsCouplings.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +1 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -1
- package/src/component/1d/peaks/PeakEditionManager.tsx +7 -14
- package/src/component/1d/peaks/Peaks.tsx +14 -32
- package/src/component/1d/ranges/AssignmentLabel.tsx +4 -3
- package/src/component/1d/ranges/Atoms.tsx +19 -19
- package/src/component/1d/ranges/FloatingRanges.tsx +12 -13
- package/src/component/1d/ranges/RangesIntegrals.tsx +7 -10
- package/src/component/1d/tool/BaseLine.tsx +4 -4
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +3 -10
- package/src/component/1d-2d/components/RangeIndicator.tsx +4 -3
- package/src/component/1d-2d/components/SVGRootContainer.tsx +2 -6
- package/src/component/1d-2d/components/Signals1D.tsx +3 -3
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +32 -24
- package/src/component/1d-2d/tools/BrushXY.tsx +2 -2
- package/src/component/1d-2d/tools/CursorToolIcon.tsx +1 -3
- package/src/component/1d-2d/tools/DistanceLine.tsx +2 -4
- package/src/component/2d/1d-tracer/Left1DChart.tsx +1 -5
- package/src/component/2d/1d-tracer/Ranges1D.tsx +0 -1
- package/src/component/2d/1d-tracer/Top1DChart.tsx +6 -9
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +4 -2
- package/src/component/2d/BrushTracker2D.tsx +2 -1
- package/src/component/2d/FooterBanner.tsx +3 -2
- package/src/component/2d/IndirectAxis2D.tsx +1 -1
- package/src/component/2d/SlicingView.tsx +2 -2
- package/src/component/2d/Viewer2D.tsx +2 -2
- package/src/component/2d/tools/PivotIndicator.tsx +1 -3
- package/src/component/2d/utilities/scale.ts +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +6 -6
- package/src/component/2d/zones/Zone.tsx +4 -4
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +30 -19
- package/src/component/EventsTrackers/BrushTracker.tsx +14 -14
- package/src/component/EventsTrackers/MouseTracker.tsx +6 -7
- package/src/component/EventsTrackers/brush_tracker.types.ts +12 -4
- package/src/component/EventsTrackers/brush_tracker_events_listeners.ts +3 -6
- package/src/component/SVGTable.tsx +6 -5
- package/src/component/assignment/AssignmentProvider.tsx +5 -11
- package/src/component/assignment/AssignmentsContext.ts +7 -4
- package/src/component/assignment/utilities/getAssignments.ts +4 -9
- package/src/component/context/ChartContext.tsx +3 -4
- package/src/component/context/CoreContext.tsx +4 -4
- package/src/component/context/DispatchContext.tsx +3 -5
- package/src/component/context/FilterSyncOptionsContext.tsx +4 -4
- package/src/component/context/GlobalContext.tsx +3 -5
- package/src/component/context/KeyModifierContext.tsx +3 -7
- package/src/component/context/LoaderContext.tsx +4 -9
- package/src/component/context/LoggerContext.tsx +4 -4
- package/src/component/context/PreferencesContext.tsx +6 -5
- package/src/component/context/ScaleContext.tsx +3 -5
- package/src/component/context/ShareDataContext.tsx +3 -7
- package/src/component/context/SortSpectraContext.tsx +7 -20
- package/src/component/context/ToasterContext.tsx +3 -5
- package/src/component/context/TopicMoleculeContext.tsx +4 -4
- package/src/component/context/processings_mutations_context.api.ts +12 -9
- package/src/component/context/processings_mutations_context.tsx +4 -4
- package/src/component/elements/ActionsButtonsPopover.tsx +14 -13
- package/src/component/elements/Alert.tsx +4 -5
- package/src/component/elements/Anchor.tsx +42 -13
- package/src/component/elements/Button.tsx +1 -1
- package/src/component/elements/D3Axis.tsx +65 -66
- package/src/component/elements/DialogManager.tsx +10 -10
- package/src/component/elements/DraggableDialog.tsx +11 -12
- package/src/component/elements/EditableColumn.tsx +16 -17
- package/src/component/elements/Footer.tsx +9 -3
- package/src/component/elements/Input.tsx +101 -107
- package/src/component/elements/Input2.tsx +17 -21
- package/src/component/elements/InputRange.tsx +11 -11
- package/src/component/elements/IsotopesViewer.tsx +1 -1
- package/src/component/elements/NumberInput2.tsx +9 -18
- package/src/component/elements/NumberInput2Controller.tsx +23 -10
- package/src/component/elements/SVGGroup.tsx +18 -15
- package/src/component/elements/Scroller.tsx +3 -5
- package/src/component/elements/Sections.tsx +4 -4
- package/src/component/elements/Select.tsx +5 -10
- package/src/component/elements/Select2.tsx +5 -10
- package/src/component/elements/Tab/Tab.tsx +2 -2
- package/src/component/elements/Tab/Tabs.tsx +0 -2
- package/src/component/elements/TabsProvider.tsx +3 -5
- package/src/component/elements/custom-color-picker.tsx +230 -0
- package/src/component/elements/draggable/useDraggable.ts +4 -4
- package/src/component/elements/export/ExportManager.tsx +5 -9
- package/src/component/elements/export/ExportSettingsProvider.tsx +3 -5
- package/src/component/elements/export/RenderDetector.tsx +1 -0
- package/src/component/elements/print/PrintContent.tsx +3 -2
- package/src/component/elements/print/PrintProvider.tsx +6 -8
- package/src/component/elements/resizer/SVGResizer.tsx +0 -1
- package/src/component/elements/tanstack_table/elements/table_context.ts +4 -5
- package/src/component/elements/tanstack_table/elements/table_header.tsx +3 -1
- package/src/component/elements/tanstack_table/elements/table_row.tsx +44 -4
- package/src/component/elements/tanstack_table/elements/useRowReorder.ts +130 -0
- package/src/component/elements/tanstack_table/table.tsx +20 -10
- package/src/component/elements/tanstack_table/types.ts +9 -0
- package/src/component/elements/utilities/transferStyles.ts +1 -3
- package/src/component/header/Header.tsx +5 -4
- package/src/component/highlight/index.tsx +24 -16
- package/src/component/hooks/reduce2DSpectrum.ts +2 -2
- package/src/component/hooks/useCombinedRefs.ts +2 -5
- package/src/component/hooks/useDialogToggle.ts +1 -1
- package/src/component/hooks/useExport.tsx +4 -6
- package/src/component/hooks/useSelectedSpectra.ts +1 -2
- package/src/component/hooks/useTableSortBy.tsx +2 -1
- package/src/component/hooks/useTextMetrics.ts +1 -0
- package/src/component/hooks/use_gridlines_config.ts +2 -4
- package/src/component/loader/DropZone.tsx +3 -3
- package/src/component/loader/Spinner.tsx +3 -3
- package/src/component/loader/SpinnerContext.tsx +1 -3
- package/src/component/loader/useLoadFiles.ts +8 -9
- package/src/component/main/InnerNMRium.tsx +30 -25
- package/src/component/main/InnerNMRiumContents.tsx +2 -2
- package/src/component/main/NMRium.tsx +12 -8
- package/src/component/main/NMRiumRefAPI.ts +2 -2
- package/src/component/main/NMRiumStateProvider.tsx +6 -6
- package/src/component/main/NMRiumViewer.tsx +3 -1
- package/src/component/modal/AboutPredictionModal.tsx +1 -3
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +1 -3
- package/src/component/modal/LoadJCAMPModal.tsx +1 -1
- package/src/component/modal/LogsHistoryModal.tsx +4 -2
- package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +1 -1
- package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
- package/src/component/modal/PublicationStringModal.tsx +1 -1
- package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -3
- package/src/component/modal/editRange/EditRangeModal.tsx +8 -7
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +4 -8
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +3 -13
- package/src/component/modal/editZone/SignalsForm.tsx +2 -2
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -6
- package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +4 -4
- package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +1 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +5 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +3 -1
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +5 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +2 -4
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +9 -4
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +2 -5
- package/src/component/modal/setting/tanstack_general_settings/workspaces/actions.tsx +7 -9
- package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -3
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +6 -6
- package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +67 -64
- package/src/component/panels/MatrixGenerationPanel/FiltersOptions.tsx +7 -7
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +0 -1
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +1 -1
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +15 -14
- package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +4 -2
- package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +4 -4
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +86 -82
- package/src/component/panels/PeaksPanel/peaksToTSV.ts +4 -4
- package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
- package/src/component/panels/RangesPanel/RangesPreferences.tsx +52 -46
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -6
- package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +0 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +1 -5
- package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +11 -11
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +22 -14
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +2 -2
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +3 -2
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.tsx +46 -27
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +12 -10
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.tsx +38 -29
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +54 -59
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +9 -11
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +24 -22
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +8 -12
- package/src/component/panels/SummaryPanel/Overview.tsx +1 -1
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +5 -9
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +4 -8
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +4 -1
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +7 -9
- package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +62 -58
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +8 -16
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +5 -25
- package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +1 -1
- package/src/component/panels/databasePanel/DatabaseInfo.tsx +2 -0
- package/src/component/panels/databasePanel/DatabasePanel.tsx +9 -6
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +118 -114
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +3 -4
- package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
- package/src/component/panels/extra/utilities/settingImperativeHandle.ts +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +2 -2
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +15 -15
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -4
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +0 -2
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +3 -6
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +4 -6
- package/src/component/panels/header/DefaultPanelHeader.tsx +4 -3
- package/src/component/panels/hooks/useGetPanelOptions.ts +6 -6
- package/src/component/panels/informationPanel/SpectraPicker.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +29 -26
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +12 -10
- package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +113 -142
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +5 -5
- package/src/component/panels/predictionPanel/PredictionPreferences.tsx +42 -36
- package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +7 -6
- package/src/component/reducer/IgnoreActions.ts +2 -5
- package/src/component/reducer/Reducer.ts +3 -1
- package/src/component/reducer/actions/CorrelationsActions.ts +18 -34
- package/src/component/reducer/actions/DomainActions.ts +4 -4
- package/src/component/reducer/actions/FiltersActions.ts +75 -109
- package/src/component/reducer/actions/InsetActions.ts +1 -1
- package/src/component/reducer/actions/LoadAction.ts +50 -91
- package/src/component/reducer/actions/MoleculeActions.ts +24 -33
- package/src/component/reducer/actions/PeaksActions.ts +20 -26
- package/src/component/reducer/actions/PreferencesActions.ts +4 -10
- package/src/component/reducer/actions/RangesActions.ts +10 -8
- package/src/component/reducer/actions/SpectraActions.ts +52 -47
- package/src/component/reducer/actions/ToolsActions.ts +35 -38
- package/src/component/reducer/actions/ZonesActions.ts +36 -30
- package/src/component/reducer/actions/processings_actions.ts +10 -10
- package/src/component/reducer/helper/Zoom1DManager.ts +2 -2
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +5 -8
- package/src/component/useWatchForm.tsx +0 -1
- package/src/component/utility/Events.tsx +1 -3
- package/src/component/utility/export.ts +17 -20
- package/src/data/PredictionManager.ts +7 -12
- package/src/data/SpectraManager.ts +4 -2
- package/src/data/data1d/Spectrum1D/convertDataToFloat64Array.ts +7 -4
- package/src/data/data1d/Spectrum1D/generateJGraphData.ts +8 -9
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +2 -2
- package/src/data/data1d/database.ts +3 -3
- package/src/data/data1d/multipleSpectraAnalysis.ts +7 -7
- package/src/data/data2d/Spectrum2D/contours.ts +20 -20
- package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +1 -1
- package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +3 -2
- package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +1 -2
- package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +2 -2
- package/src/data/matrixGeneration.ts +3 -6
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -3
- package/src/data/utilities/RangeUtilities.ts +3 -3
- package/src/data/utilities/ZoneUtilities.ts +8 -34
- package/src/data/utilities/generateNumbersPowerOfX.ts +2 -2
- package/src/versionInfo.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +0 -9
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +0 -80
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +0 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +0 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js.map +0 -1
- package/lib/component/utility/colorToHexWithAlpha.d.ts +0 -10
- package/lib/component/utility/colorToHexWithAlpha.d.ts.map +0 -1
- package/lib/component/utility/colorToHexWithAlpha.js +0 -5
- package/lib/component/utility/colorToHexWithAlpha.js.map +0 -1
- package/lib/component/utility/forwardRef.d.ts +0 -3
- package/lib/component/utility/forwardRef.d.ts.map +0 -1
- package/lib/component/utility/forwardRef.js +0 -6
- package/lib/component/utility/forwardRef.js.map +0 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +0 -130
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.tsx +0 -32
- package/src/component/utility/colorToHexWithAlpha.ts +0 -7
- package/src/component/utility/forwardRef.ts +0 -10
|
@@ -109,6 +109,7 @@ type DeleteSpectraAction = ActionType<
|
|
|
109
109
|
spectrumSource?: SpectrumSource;
|
|
110
110
|
}
|
|
111
111
|
>;
|
|
112
|
+
type ReorderSpectraAction = ActionType<'REORDER_SPECTRA', { ids: string[] }>;
|
|
112
113
|
type AddMissingProjectionAction = ActionType<
|
|
113
114
|
'ADD_MISSING_PROJECTION',
|
|
114
115
|
{
|
|
@@ -172,6 +173,7 @@ export type SpectrumActions =
|
|
|
172
173
|
| ChangeActiveSpectrumAction
|
|
173
174
|
| ChangeSpectrumSettingAction
|
|
174
175
|
| DeleteSpectraAction
|
|
176
|
+
| ReorderSpectraAction
|
|
175
177
|
| AddMissingProjectionAction
|
|
176
178
|
| AlignSpectraAction
|
|
177
179
|
| GenerateSpectrumFromPublicationStringAction
|
|
@@ -181,10 +183,7 @@ export type SpectrumActions =
|
|
|
181
183
|
| UpdateSpectrumMetaAction;
|
|
182
184
|
|
|
183
185
|
function checkIsVisible2D(datum: Spectrum2D): boolean {
|
|
184
|
-
|
|
185
|
-
return false;
|
|
186
|
-
}
|
|
187
|
-
return true;
|
|
186
|
+
return datum.display.isPositiveVisible || datum.display.isNegativeVisible;
|
|
188
187
|
}
|
|
189
188
|
|
|
190
189
|
function setVisible(datum: Spectrum, flag: boolean) {
|
|
@@ -226,7 +225,7 @@ function multipleSelect(
|
|
|
226
225
|
}
|
|
227
226
|
}
|
|
228
227
|
|
|
229
|
-
function setSpectraMetaInfo(
|
|
228
|
+
export function setSpectraMetaInfo(
|
|
230
229
|
draft: Draft<State>,
|
|
231
230
|
spectraMetaInfo: Record<string, Record<string, any>>,
|
|
232
231
|
) {
|
|
@@ -239,7 +238,7 @@ function setSpectraMetaInfo(
|
|
|
239
238
|
}
|
|
240
239
|
|
|
241
240
|
//action
|
|
242
|
-
function handleChangeSpectrumVisibilityById(
|
|
241
|
+
export function handleChangeSpectrumVisibilityById(
|
|
243
242
|
draft: Draft<State>,
|
|
244
243
|
action: ChangeSpectrumVisibilityByIdAction,
|
|
245
244
|
) {
|
|
@@ -264,7 +263,7 @@ function handleChangeSpectrumVisibilityById(
|
|
|
264
263
|
}
|
|
265
264
|
|
|
266
265
|
//action
|
|
267
|
-
function handleChangeSpectraVisibilityByNucleus(
|
|
266
|
+
export function handleChangeSpectraVisibilityByNucleus(
|
|
268
267
|
draft: Draft<State>,
|
|
269
268
|
action: ChangeSpectraVisibilityByNucleusAction,
|
|
270
269
|
) {
|
|
@@ -292,7 +291,7 @@ function handleChangeSpectraVisibilityByNucleus(
|
|
|
292
291
|
}
|
|
293
292
|
|
|
294
293
|
//action
|
|
295
|
-
function handleChangeActiveSpectrum(
|
|
294
|
+
export function handleChangeActiveSpectrum(
|
|
296
295
|
draft: Draft<State>,
|
|
297
296
|
action: ChangeActiveSpectrumAction,
|
|
298
297
|
) {
|
|
@@ -383,15 +382,12 @@ function handleChangeActiveSpectrum(
|
|
|
383
382
|
spectraObj[data[i].id] = { spectrum: data[i], index: i };
|
|
384
383
|
}
|
|
385
384
|
|
|
386
|
-
//
|
|
387
|
-
const newActiveSpectra
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
selected: true,
|
|
393
|
-
});
|
|
394
|
-
}
|
|
385
|
+
// Set the index of the active spectra and make it visible.
|
|
386
|
+
const newActiveSpectra = Array.from(spectraIds, (spectrumId) => ({
|
|
387
|
+
id: spectrumId,
|
|
388
|
+
index: spectraObj[spectrumId].index,
|
|
389
|
+
selected: true,
|
|
390
|
+
}));
|
|
395
391
|
|
|
396
392
|
if (newActiveSpectra.length > 0) {
|
|
397
393
|
//set the active spectra
|
|
@@ -442,8 +438,9 @@ function handleChangeActiveSpectrum(
|
|
|
442
438
|
resetSelectedTool(draft);
|
|
443
439
|
}
|
|
444
440
|
}
|
|
441
|
+
|
|
445
442
|
//action
|
|
446
|
-
function handleChangeSpectrumSetting(
|
|
443
|
+
export function handleChangeSpectrumSetting(
|
|
447
444
|
draft: Draft<State>,
|
|
448
445
|
action: ChangeSpectrumSettingAction,
|
|
449
446
|
) {
|
|
@@ -513,7 +510,10 @@ function resolveDeleteSpectraIDs(
|
|
|
513
510
|
}
|
|
514
511
|
|
|
515
512
|
//action
|
|
516
|
-
function handleDeleteSpectra(
|
|
513
|
+
export function handleDeleteSpectra(
|
|
514
|
+
draft: Draft<State>,
|
|
515
|
+
action: DeleteSpectraAction,
|
|
516
|
+
) {
|
|
517
517
|
const { domainOptions } = action?.payload || {};
|
|
518
518
|
|
|
519
519
|
const deleteSpectraIDs = resolveDeleteSpectraIDs(draft, action);
|
|
@@ -538,8 +538,7 @@ function handleDeleteSpectra(draft: Draft<State>, action: DeleteSpectraAction) {
|
|
|
538
538
|
spectraRemovedIDs[id] = true;
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
-
for (const
|
|
542
|
-
const preferencesState = draft.keysPreferences[key];
|
|
541
|
+
for (const preferencesState of Object.values(draft.keysPreferences)) {
|
|
543
542
|
// remove related object from save preferences for deleted spectra
|
|
544
543
|
for (const { id } of preferencesState.data) {
|
|
545
544
|
if (spectraRemovedIDs[id]) {
|
|
@@ -555,9 +554,31 @@ function handleDeleteSpectra(draft: Draft<State>, action: DeleteSpectraAction) {
|
|
|
555
554
|
});
|
|
556
555
|
}
|
|
557
556
|
|
|
557
|
+
export function handleReorderSpectra(
|
|
558
|
+
draft: Draft<State>,
|
|
559
|
+
action: ReorderSpectraAction,
|
|
560
|
+
) {
|
|
561
|
+
const { ids } = action.payload;
|
|
562
|
+
const activeSpectra = getSpectraByNucleus(
|
|
563
|
+
draft.view.spectra.activeTab,
|
|
564
|
+
draft.data,
|
|
565
|
+
);
|
|
566
|
+
const spectraById = new Map(activeSpectra.map((s) => [s.id, s]));
|
|
567
|
+
|
|
568
|
+
const reorderedSpectra = ids.map((id) => spectraById.get(id) as Spectrum);
|
|
569
|
+
|
|
570
|
+
let nextIndex = 0;
|
|
571
|
+
for (let i = 0; i < draft.data.length; i++) {
|
|
572
|
+
if (spectraById.has(draft.data[i].id)) {
|
|
573
|
+
draft.data[i] = reorderedSpectra[nextIndex];
|
|
574
|
+
nextIndex++;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
558
579
|
//action
|
|
559
|
-
function handleAddMissingProjectionHandler(
|
|
560
|
-
draft:
|
|
580
|
+
export function handleAddMissingProjectionHandler(
|
|
581
|
+
draft: Draft<State>,
|
|
561
582
|
action: AddMissingProjectionAction,
|
|
562
583
|
) {
|
|
563
584
|
const { nucleus } = action.payload;
|
|
@@ -585,7 +606,7 @@ function handleAddMissingProjectionHandler(
|
|
|
585
606
|
}
|
|
586
607
|
|
|
587
608
|
//action
|
|
588
|
-
function handleAlignSpectraHandler(
|
|
609
|
+
export function handleAlignSpectraHandler(
|
|
589
610
|
draft: Draft<State>,
|
|
590
611
|
action: AlignSpectraAction,
|
|
591
612
|
) {
|
|
@@ -617,7 +638,7 @@ function handleAlignSpectraHandler(
|
|
|
617
638
|
}
|
|
618
639
|
|
|
619
640
|
//action
|
|
620
|
-
function handleGenerateSpectrumFromPublicationStringHandler(
|
|
641
|
+
export function handleGenerateSpectrumFromPublicationStringHandler(
|
|
621
642
|
draft: Draft<State>,
|
|
622
643
|
action: GenerateSpectrumFromPublicationStringAction,
|
|
623
644
|
) {
|
|
@@ -635,7 +656,7 @@ function handleGenerateSpectrumFromPublicationStringHandler(
|
|
|
635
656
|
}
|
|
636
657
|
|
|
637
658
|
//action
|
|
638
|
-
function handleImportSpectraMetaInfo(
|
|
659
|
+
export function handleImportSpectraMetaInfo(
|
|
639
660
|
draft: Draft<State>,
|
|
640
661
|
action: ImportSpectraMetaInfoAction,
|
|
641
662
|
) {
|
|
@@ -644,7 +665,7 @@ function handleImportSpectraMetaInfo(
|
|
|
644
665
|
}
|
|
645
666
|
|
|
646
667
|
//action
|
|
647
|
-
function handleToggleSpectraLegend(draft: Draft<State>) {
|
|
668
|
+
export function handleToggleSpectraLegend(draft: Draft<State>) {
|
|
648
669
|
draft.view.spectra.showLegend = !draft.view.spectra.showLegend;
|
|
649
670
|
}
|
|
650
671
|
|
|
@@ -666,7 +687,7 @@ function groupSpectraByClass(spectra: Spectrum[], jpath: string | string[]) {
|
|
|
666
687
|
}
|
|
667
688
|
|
|
668
689
|
//action
|
|
669
|
-
function handleRecolorSpectraBasedOnDistinctValue(
|
|
690
|
+
export function handleRecolorSpectraBasedOnDistinctValue(
|
|
670
691
|
draft: Draft<State>,
|
|
671
692
|
action: ReColorSpectraBasedOnDistinctValueAction,
|
|
672
693
|
) {
|
|
@@ -740,7 +761,7 @@ function handleRecolorSpectraBasedOnDistinctValue(
|
|
|
740
761
|
}
|
|
741
762
|
}
|
|
742
763
|
|
|
743
|
-
function handleSimulateSpectrum(
|
|
764
|
+
export function handleSimulateSpectrum(
|
|
744
765
|
draft: Draft<State>,
|
|
745
766
|
simulateSpectrumOptions: SimulateSpectrumAction,
|
|
746
767
|
) {
|
|
@@ -792,7 +813,8 @@ function handleSimulateSpectrum(
|
|
|
792
813
|
setActiveTab(draft);
|
|
793
814
|
}
|
|
794
815
|
}
|
|
795
|
-
|
|
816
|
+
|
|
817
|
+
export function handleUpdateSpectrumMeta(
|
|
796
818
|
draft: Draft<State>,
|
|
797
819
|
action: UpdateSpectrumMetaAction,
|
|
798
820
|
): void {
|
|
@@ -809,20 +831,3 @@ function handleUpdateSpectrumMeta(
|
|
|
809
831
|
}
|
|
810
832
|
}
|
|
811
833
|
}
|
|
812
|
-
|
|
813
|
-
export {
|
|
814
|
-
handleAddMissingProjectionHandler,
|
|
815
|
-
handleAlignSpectraHandler,
|
|
816
|
-
handleChangeActiveSpectrum,
|
|
817
|
-
handleChangeSpectraVisibilityByNucleus,
|
|
818
|
-
handleChangeSpectrumSetting,
|
|
819
|
-
handleChangeSpectrumVisibilityById,
|
|
820
|
-
handleDeleteSpectra,
|
|
821
|
-
handleGenerateSpectrumFromPublicationStringHandler,
|
|
822
|
-
handleImportSpectraMetaInfo,
|
|
823
|
-
handleRecolorSpectraBasedOnDistinctValue,
|
|
824
|
-
handleSimulateSpectrum,
|
|
825
|
-
handleToggleSpectraLegend,
|
|
826
|
-
handleUpdateSpectrumMeta,
|
|
827
|
-
setSpectraMetaInfo,
|
|
828
|
-
};
|
|
@@ -121,10 +121,11 @@ function resetTool(draft: Draft<State>, options: ResetToolOptions = {}) {
|
|
|
121
121
|
rollbackSpectrum(draft, rollOptions);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
function handleResetSelectedTool(draft: Draft<State>) {
|
|
124
|
+
export function handleResetSelectedTool(draft: Draft<State>) {
|
|
125
125
|
resetSelectedTool(draft);
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
|
|
128
|
+
export function resetSelectedTool(draft: Draft<State>) {
|
|
128
129
|
const {
|
|
129
130
|
selectedTool,
|
|
130
131
|
data: { activeFilterID },
|
|
@@ -141,7 +142,10 @@ interface ActivateToolOptions {
|
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
//utility
|
|
144
|
-
function activateTool(
|
|
145
|
+
export function activateTool(
|
|
146
|
+
draft: Draft<State>,
|
|
147
|
+
options: ActivateToolOptions,
|
|
148
|
+
) {
|
|
145
149
|
const { toolId, reset = false, tempRollback } = options;
|
|
146
150
|
|
|
147
151
|
if (draft?.data.length === 0) {
|
|
@@ -170,12 +174,15 @@ function activateTool(draft: Draft<State>, options: ActivateToolOptions) {
|
|
|
170
174
|
setMargin(draft);
|
|
171
175
|
}
|
|
172
176
|
|
|
173
|
-
function setSelectedTool(
|
|
177
|
+
export function setSelectedTool(
|
|
178
|
+
draft: Draft<State>,
|
|
179
|
+
action: SetSelectedToolAction,
|
|
180
|
+
) {
|
|
174
181
|
const { selectedTool } = action.payload;
|
|
175
182
|
activateTool(draft, { toolId: selectedTool });
|
|
176
183
|
}
|
|
177
184
|
|
|
178
|
-
function setSpectraVerticalAlign(draft: Draft<State>) {
|
|
185
|
+
export function setSpectraVerticalAlign(draft: Draft<State>) {
|
|
179
186
|
const currentVerticalAlign = getVerticalAlign(draft);
|
|
180
187
|
const verticalAlign = ['stack', 'bottom'].includes(currentVerticalAlign)
|
|
181
188
|
? 'center'
|
|
@@ -183,13 +190,13 @@ function setSpectraVerticalAlign(draft: Draft<State>) {
|
|
|
183
190
|
changeSpectrumVerticalAlignment(draft, { verticalAlign });
|
|
184
191
|
}
|
|
185
192
|
|
|
186
|
-
function handleChangeSpectrumDisplayMode(draft: Draft<State>) {
|
|
193
|
+
export function handleChangeSpectrumDisplayMode(draft: Draft<State>) {
|
|
187
194
|
const currentVerticalAlign = getVerticalAlign(draft);
|
|
188
195
|
const verticalAlign = currentVerticalAlign === 'stack' ? 'bottom' : 'stack';
|
|
189
196
|
changeSpectrumVerticalAlignment(draft, { verticalAlign });
|
|
190
197
|
}
|
|
191
198
|
|
|
192
|
-
function handleToggleRealImaginaryVisibility(draft: Draft<State>) {
|
|
199
|
+
export function handleToggleRealImaginaryVisibility(draft: Draft<State>) {
|
|
193
200
|
const spectrum = getSpectrum(draft);
|
|
194
201
|
if (!isSpectrum1D(spectrum)) return;
|
|
195
202
|
|
|
@@ -199,7 +206,7 @@ function handleToggleRealImaginaryVisibility(draft: Draft<State>) {
|
|
|
199
206
|
setDomain(draft);
|
|
200
207
|
}
|
|
201
208
|
|
|
202
|
-
function handleBrushEnd(draft: Draft<State>, action: BrushEndAction) {
|
|
209
|
+
export function handleBrushEnd(draft: Draft<State>, action: BrushEndAction) {
|
|
203
210
|
const options = action.payload;
|
|
204
211
|
|
|
205
212
|
const startX = Math.min(options.startX, options.endX);
|
|
@@ -271,7 +278,7 @@ function zoomWithScroll(
|
|
|
271
278
|
}
|
|
272
279
|
}
|
|
273
280
|
|
|
274
|
-
function handleZoom(draft: Draft<State>, action: ZoomAction) {
|
|
281
|
+
export function handleZoom(draft: Draft<State>, action: ZoomAction) {
|
|
275
282
|
const { options, trackID } = action.payload;
|
|
276
283
|
const {
|
|
277
284
|
displayerMode,
|
|
@@ -371,7 +378,7 @@ function handleZoom(draft: Draft<State>, action: ZoomAction) {
|
|
|
371
378
|
}
|
|
372
379
|
}
|
|
373
380
|
|
|
374
|
-
function zoomOut(draft: Draft<State>, action: ZoomOutAction) {
|
|
381
|
+
export function zoomOut(draft: Draft<State>, action: ZoomOutAction) {
|
|
375
382
|
if (draft?.data.length > 0) {
|
|
376
383
|
const { zoomType, trackID } = action?.payload || {};
|
|
377
384
|
const { xDomain } = draft.originDomain;
|
|
@@ -448,7 +455,7 @@ function hasAcceptedSpectrum(draft: Draft<State>, index: any) {
|
|
|
448
455
|
}
|
|
449
456
|
|
|
450
457
|
//utility
|
|
451
|
-
function setMargin(draft: Draft<State>) {
|
|
458
|
+
export function setMargin(draft: Draft<State>) {
|
|
452
459
|
const spectrum = getSpectrum(draft);
|
|
453
460
|
|
|
454
461
|
if (
|
|
@@ -513,7 +520,7 @@ function setTabActiveSpectrum(draft: Draft<State>, dataGroupByTab: any) {
|
|
|
513
520
|
tabActiveSpectrum[tabKey] = [
|
|
514
521
|
{ id: FTSpectra[0].id, index, selected },
|
|
515
522
|
];
|
|
516
|
-
} else if (tabSpectraLength
|
|
523
|
+
} else if (tabSpectraLength > FTSpectra) {
|
|
517
524
|
const id = tabSpectra[0].id;
|
|
518
525
|
const index = draft.data.findIndex((datum) => datum.id === id);
|
|
519
526
|
tabActiveSpectrum[tabKey] = [{ id, index, selected: true }];
|
|
@@ -530,7 +537,7 @@ function setTabActiveSpectrum(draft: Draft<State>, dataGroupByTab: any) {
|
|
|
530
537
|
}
|
|
531
538
|
|
|
532
539
|
//utility
|
|
533
|
-
function setTab(
|
|
540
|
+
export function setTab(
|
|
534
541
|
draft: Draft<State>,
|
|
535
542
|
dataGroupByTab: any,
|
|
536
543
|
tab: any,
|
|
@@ -564,7 +571,10 @@ function setTab(
|
|
|
564
571
|
}
|
|
565
572
|
|
|
566
573
|
//utility
|
|
567
|
-
function setActiveTab(
|
|
574
|
+
export function setActiveTab(
|
|
575
|
+
draft: Draft<State>,
|
|
576
|
+
options?: SetActiveTabOptions,
|
|
577
|
+
) {
|
|
568
578
|
const {
|
|
569
579
|
tab = null,
|
|
570
580
|
refreshActiveTab = false,
|
|
@@ -582,14 +592,20 @@ function setActiveTab(draft: Draft<State>, options?: SetActiveTabOptions) {
|
|
|
582
592
|
setMode(draft);
|
|
583
593
|
}
|
|
584
594
|
|
|
585
|
-
function handleSetActiveTab(
|
|
595
|
+
export function handleSetActiveTab(
|
|
596
|
+
draft: Draft<State>,
|
|
597
|
+
action: SetActiveTabAction,
|
|
598
|
+
) {
|
|
586
599
|
const { tab } = action.payload;
|
|
587
600
|
if (tab) {
|
|
588
601
|
setActiveTab(draft, { tab });
|
|
589
602
|
}
|
|
590
603
|
}
|
|
591
604
|
|
|
592
|
-
function levelChangeHandler(
|
|
605
|
+
export function levelChangeHandler(
|
|
606
|
+
draft: Draft<State>,
|
|
607
|
+
action: LevelChangeAction,
|
|
608
|
+
) {
|
|
593
609
|
const { deltaY, altKey, invertScroll } = action.payload.options;
|
|
594
610
|
const {
|
|
595
611
|
data,
|
|
@@ -620,35 +636,16 @@ function levelChangeHandler(draft: Draft<State>, action: LevelChangeAction) {
|
|
|
620
636
|
}
|
|
621
637
|
}
|
|
622
638
|
|
|
623
|
-
function setSpectraSameTopHandler(draft: Draft<State>) {
|
|
639
|
+
export function setSpectraSameTopHandler(draft: Draft<State>) {
|
|
624
640
|
if (draft.displayerMode === '1D') {
|
|
625
641
|
draft.originDomain.shareYDomain = false;
|
|
626
642
|
setZoom(draft, { scale: 0.8 });
|
|
627
643
|
}
|
|
628
644
|
}
|
|
629
|
-
|
|
645
|
+
|
|
646
|
+
export function resetSpectraScale(draft: Draft<State>) {
|
|
630
647
|
draft.originDomain.shareYDomain = true;
|
|
631
648
|
draft.yDomains = draft.originDomain.yDomains;
|
|
632
649
|
draft.yDomain = draft.originDomain.yDomain;
|
|
633
650
|
setZoom(draft, { scale: 0.8 });
|
|
634
651
|
}
|
|
635
|
-
|
|
636
|
-
export {
|
|
637
|
-
activateTool,
|
|
638
|
-
handleBrushEnd,
|
|
639
|
-
handleChangeSpectrumDisplayMode,
|
|
640
|
-
handleResetSelectedTool,
|
|
641
|
-
handleSetActiveTab,
|
|
642
|
-
handleToggleRealImaginaryVisibility,
|
|
643
|
-
handleZoom,
|
|
644
|
-
levelChangeHandler,
|
|
645
|
-
resetSelectedTool,
|
|
646
|
-
resetSpectraScale,
|
|
647
|
-
setActiveTab,
|
|
648
|
-
setMargin,
|
|
649
|
-
setSelectedTool,
|
|
650
|
-
setSpectraSameTopHandler,
|
|
651
|
-
setSpectraVerticalAlign,
|
|
652
|
-
setTab,
|
|
653
|
-
zoomOut,
|
|
654
|
-
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
Filter2DEntry,
|
|
3
|
+
Signal2D,
|
|
4
|
+
SignalKind,
|
|
5
|
+
Zone,
|
|
6
|
+
} from '@zakodium/nmr-types';
|
|
2
7
|
import type { Spectrum2D, ZonesViewState } from '@zakodium/nmrium-core';
|
|
3
8
|
import { isSpectrum2D } from '@zakodium/nmrium-core';
|
|
4
9
|
import type { FromTo, NmrData2DFt } from 'cheminfo-types';
|
|
@@ -75,7 +80,7 @@ type AssignZoneAction = ActionType<
|
|
|
75
80
|
{
|
|
76
81
|
keys: TargetAssignKeys;
|
|
77
82
|
axis: Axis;
|
|
78
|
-
} & Required<Pick<
|
|
83
|
+
} & Required<Pick<Signal2D['x'], 'diaIDs' | 'nbAtoms'>>
|
|
79
84
|
>;
|
|
80
85
|
type SaveEditedZoneAction = ActionType<
|
|
81
86
|
'SAVE_EDITED_ZONE',
|
|
@@ -86,7 +91,6 @@ type SaveEditedZoneAction = ActionType<
|
|
|
86
91
|
|
|
87
92
|
interface UnlinkZoneProps {
|
|
88
93
|
zoneKey?: string;
|
|
89
|
-
isOnZoneLevel?: boolean;
|
|
90
94
|
signalIndex?: number;
|
|
91
95
|
axis?: Axis;
|
|
92
96
|
}
|
|
@@ -102,11 +106,11 @@ type ToggleZonesViewAction = ActionType<
|
|
|
102
106
|
|
|
103
107
|
type ChangeZoneAssignmentLabelAction = ActionType<
|
|
104
108
|
'CHANGE_ZONE_ASSIGNMENT_LABEL',
|
|
105
|
-
{ zoneID: string; value: string }
|
|
109
|
+
{ zoneID: string; signalID: string; value: string }
|
|
106
110
|
>;
|
|
107
111
|
type SetZoneAssignmentLabelCoordinationAction = ActionType<
|
|
108
112
|
'SET_ZONE_ASSIGNMENT_LABEL_COORDINATION',
|
|
109
|
-
{
|
|
113
|
+
{ signalID: string; coordination: { x: number; y: number } }
|
|
110
114
|
>;
|
|
111
115
|
|
|
112
116
|
export type ZonesActions =
|
|
@@ -313,7 +317,7 @@ function deleteSignal2D(draft: Draft<State>, options: DeleteSignal2DProps) {
|
|
|
313
317
|
);
|
|
314
318
|
|
|
315
319
|
// Remove assignments for the signal in the zone object and global state.
|
|
316
|
-
const _zone = unlink(lodashCloneDeep(zone),
|
|
320
|
+
const _zone = unlink(lodashCloneDeep(zone), signalIndex, undefined);
|
|
317
321
|
|
|
318
322
|
_zone.signals.splice(signalIndex, 1);
|
|
319
323
|
spectrum.zones.values[zoneIndex] = _zone;
|
|
@@ -346,7 +350,7 @@ function handleSetSignalPathLength(
|
|
|
346
350
|
const signalIndex = zone.signals.findIndex(
|
|
347
351
|
(_signal) => _signal.id === signalId,
|
|
348
352
|
);
|
|
349
|
-
const _zone = unlink(lodashCloneDeep(zone),
|
|
353
|
+
const _zone = unlink(lodashCloneDeep(zone), signalIndex, undefined);
|
|
350
354
|
_zone.signals[signalIndex].j = {
|
|
351
355
|
..._zone.signals[signalIndex].j,
|
|
352
356
|
pathLength,
|
|
@@ -358,7 +362,7 @@ function handleSetSignalPathLength(
|
|
|
358
362
|
|
|
359
363
|
//action
|
|
360
364
|
function unlinkZone(draft: Draft<State>, props: UnlinkZoneProps) {
|
|
361
|
-
const { zoneKey,
|
|
365
|
+
const { zoneKey, signalIndex = -1, axis } = props;
|
|
362
366
|
|
|
363
367
|
const spectrum = getSpectrum(draft);
|
|
364
368
|
if (!isSpectrum2D(spectrum)) return;
|
|
@@ -368,7 +372,7 @@ function unlinkZone(draft: Draft<State>, props: UnlinkZoneProps) {
|
|
|
368
372
|
// remove assignments in global state
|
|
369
373
|
const zoneIndex = getZoneIndex(spectrum, zoneKey);
|
|
370
374
|
const zone = zones[zoneIndex];
|
|
371
|
-
zones[zoneIndex] = unlink(zone,
|
|
375
|
+
zones[zoneIndex] = unlink(zone, signalIndex, axis);
|
|
372
376
|
} else {
|
|
373
377
|
const newZones = zones.map((zone) => {
|
|
374
378
|
return unlink(zone);
|
|
@@ -388,20 +392,14 @@ function handleAssignZone(draft: Draft<State>, action: AssignZoneAction) {
|
|
|
388
392
|
const spectrum = getSpectrum(draft);
|
|
389
393
|
if (!isSpectrum2D(spectrum)) return;
|
|
390
394
|
|
|
391
|
-
|
|
395
|
+
if (keys.length !== 2) return;
|
|
392
396
|
|
|
397
|
+
const [{ index: zoneIndex }, { index: signalIndex }] = keys;
|
|
393
398
|
const zone = spectrum.zones.values[zoneIndex];
|
|
394
|
-
if (keys.length === 1) {
|
|
395
|
-
const zoneByAxis = zone[axis];
|
|
396
|
-
zoneByAxis.diaIDs = diaIDs;
|
|
397
|
-
zoneByAxis.nbAtoms = nbAtoms + (zoneByAxis?.nbAtoms || 0);
|
|
398
|
-
} else {
|
|
399
|
-
const [, { index: signalIndex }] = keys;
|
|
400
399
|
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
400
|
+
const signalByAxis = zone.signals[signalIndex][axis];
|
|
401
|
+
signalByAxis.diaIDs = diaIDs;
|
|
402
|
+
signalByAxis.nbAtoms = nbAtoms + (signalByAxis?.nbAtoms || 0);
|
|
405
403
|
}
|
|
406
404
|
|
|
407
405
|
//action
|
|
@@ -468,7 +466,7 @@ function handleChangeZoneAssignmentLabel(
|
|
|
468
466
|
draft: Draft<State>,
|
|
469
467
|
action: ChangeZoneAssignmentLabelAction,
|
|
470
468
|
) {
|
|
471
|
-
const { zoneID, value } = action.payload;
|
|
469
|
+
const { zoneID, signalID, value } = action.payload;
|
|
472
470
|
|
|
473
471
|
const spectrum = getSpectrum(draft);
|
|
474
472
|
if (!isSpectrum2D(spectrum)) return;
|
|
@@ -481,14 +479,22 @@ function handleChangeZoneAssignmentLabel(
|
|
|
481
479
|
zoneView.showAssignmentsLabels = true;
|
|
482
480
|
}
|
|
483
481
|
|
|
484
|
-
const
|
|
485
|
-
if (
|
|
486
|
-
|
|
482
|
+
const zoneIndex = getZoneIndex(spectrum, zoneID);
|
|
483
|
+
if (zoneIndex === -1) {
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
const zone = spectrum.zones.values[zoneIndex];
|
|
487
|
+
const signal = zone.signals.find((signal) => signal.id === signalID);
|
|
488
|
+
|
|
489
|
+
if (!signal) {
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
signal.assignment = value;
|
|
487
494
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
495
|
+
if (!value) {
|
|
496
|
+
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
497
|
+
delete zoneView.assignmentsLabelsCoordinates[zoneID];
|
|
492
498
|
}
|
|
493
499
|
}
|
|
494
500
|
|
|
@@ -496,7 +502,7 @@ function handleSetZoneAssignmentLabelCoordination(
|
|
|
496
502
|
draft: Draft<State>,
|
|
497
503
|
action: SetZoneAssignmentLabelCoordinationAction,
|
|
498
504
|
) {
|
|
499
|
-
const {
|
|
505
|
+
const { signalID, coordination } = action.payload;
|
|
500
506
|
|
|
501
507
|
const activeSpectrum = getActiveSpectrum(draft);
|
|
502
508
|
if (!activeSpectrum) return;
|
|
@@ -504,7 +510,7 @@ function handleSetZoneAssignmentLabelCoordination(
|
|
|
504
510
|
initializeZoneViewObject(draft, activeSpectrum.id);
|
|
505
511
|
|
|
506
512
|
const zonesView = draft.view.zones;
|
|
507
|
-
zonesView[activeSpectrum.id].assignmentsLabelsCoordinates[
|
|
513
|
+
zonesView[activeSpectrum.id].assignmentsLabelsCoordinates[signalID] =
|
|
508
514
|
coordination;
|
|
509
515
|
}
|
|
510
516
|
|
|
@@ -24,7 +24,7 @@ type SetSpectrumLiveProcessed = ActionType<
|
|
|
24
24
|
'SET_SPECTRUM_LIVE_PROCESSED',
|
|
25
25
|
{
|
|
26
26
|
spectrumLiveProcessed: Spectrum | undefined;
|
|
27
|
-
|
|
27
|
+
shouldUpdateView: boolean;
|
|
28
28
|
}
|
|
29
29
|
>;
|
|
30
30
|
|
|
@@ -67,11 +67,11 @@ export function setSpectrumLiveProcessed(
|
|
|
67
67
|
draft: Draft<State>,
|
|
68
68
|
action: SetSpectrumLiveProcessed,
|
|
69
69
|
) {
|
|
70
|
-
const { spectrumLiveProcessed,
|
|
70
|
+
const { spectrumLiveProcessed, shouldUpdateView } = action.payload;
|
|
71
71
|
|
|
72
72
|
draft.spectrumLiveProcessed = spectrumLiveProcessed;
|
|
73
73
|
|
|
74
|
-
if (!
|
|
74
|
+
if (!shouldUpdateView) return;
|
|
75
75
|
|
|
76
76
|
updateLiveProcessedView(draft);
|
|
77
77
|
}
|
|
@@ -90,13 +90,13 @@ export function selectProcessingOperator(
|
|
|
90
90
|
}
|
|
91
91
|
: undefined;
|
|
92
92
|
|
|
93
|
-
if (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
}
|
|
93
|
+
if (operatorUI) return;
|
|
94
|
+
|
|
95
|
+
draft.processingOperators.liveOperation = undefined;
|
|
96
|
+
setSpectrumLiveProcessed(draft, {
|
|
97
|
+
type: 'SET_SPECTRUM_LIVE_PROCESSED',
|
|
98
|
+
payload: { spectrumLiveProcessed: undefined, shouldUpdateView: true },
|
|
99
|
+
});
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export function setLiveEditChecked(
|
|
@@ -110,8 +110,8 @@ function rescaleToSameTop(
|
|
|
110
110
|
options: RescaleOptions = {},
|
|
111
111
|
) {
|
|
112
112
|
const newYDomains: Record<string, number[]> = {};
|
|
113
|
-
for (const spectrumId of Object.
|
|
114
|
-
newYDomains[spectrumId] = rescaleDomain(
|
|
113
|
+
for (const [spectrumId, yDomain] of Object.entries(yDomains)) {
|
|
114
|
+
newYDomains[spectrumId] = rescaleDomain(yDomain, options);
|
|
115
115
|
}
|
|
116
116
|
return newYDomains;
|
|
117
117
|
}
|
|
@@ -17,7 +17,7 @@ import { isProton } from '../../../data/utilities/isProton.js';
|
|
|
17
17
|
import { is2DNucleus } from '../../utility/nucleusToString.js';
|
|
18
18
|
|
|
19
19
|
function getPreferences<T>(data: T, nucleus?: string) {
|
|
20
|
-
return { nuclei: { ...(nucleus
|
|
20
|
+
return { nuclei: { ...(nucleus && { [nucleus]: data }) } };
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const getSpectraDefaultValues = (
|
|
@@ -107,22 +107,19 @@ const getZoneDefaultValues = (nucleus?: string): PanelsPreferences['zones'] => {
|
|
|
107
107
|
showAssignmentLabel: false,
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
return {
|
|
111
111
|
...common,
|
|
112
112
|
...getPreferences(preferences2D, nucleus),
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return output;
|
|
113
|
+
} satisfies BaseNucleus2DPreferences<Zones2DNucleusPreferences>;
|
|
116
114
|
} else {
|
|
117
115
|
const preferences1D: Zones1DNucleusPreferences = {
|
|
118
116
|
deltaPPM: { show: true, format: '0.00' },
|
|
119
117
|
};
|
|
120
118
|
|
|
121
|
-
|
|
119
|
+
return {
|
|
122
120
|
...common,
|
|
123
121
|
...getPreferences(preferences1D, nucleus),
|
|
124
|
-
}
|
|
125
|
-
return output;
|
|
122
|
+
} satisfies BaseNucleus1DPreferences<Zones1DNucleusPreferences>;
|
|
126
123
|
}
|
|
127
124
|
};
|
|
128
125
|
|
|
@@ -23,7 +23,6 @@ export function useWatchForm<F extends FieldValues = FieldValues>(
|
|
|
23
23
|
}, [onChange]);
|
|
24
24
|
|
|
25
25
|
useEffect(() => {
|
|
26
|
-
// eslint-disable-next-line react-you-might-not-need-an-effect/no-event-handler
|
|
27
26
|
if (initialValues !== undefined) {
|
|
28
27
|
isMountedRef.current = false;
|
|
29
28
|
reset?.(initialValues);
|
|
@@ -13,9 +13,7 @@ const Emitter = {
|
|
|
13
13
|
once: (event: any, fn: any) => eventEmitter.once(event, fn),
|
|
14
14
|
off: (event: any, fn: any) => eventEmitter.off(event, fn),
|
|
15
15
|
emit: (event: any, payload: any) => eventEmitter.emit(event, payload),
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
Object.freeze(Emitter);
|
|
16
|
+
} as const;
|
|
19
17
|
|
|
20
18
|
type EventEmitterClickOptions = ClickOptions & { xPPM: number };
|
|
21
19
|
|