nmrium 0.60.1-pre.1741337420 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/ApodizationLine.d.ts.map +1 -1
- package/lib/component/1d/ApodizationLine.js +3 -1
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +5 -8
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +1 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts +0 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js +0 -3
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +11 -3
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.d.ts +0 -5
- package/lib/component/1d/matrix/Boxplot.d.ts.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +1 -1
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.d.ts +0 -4
- package/lib/component/1d/matrix/Stocsy.d.ts.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +2 -2
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +45 -30
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +2 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.d.ts +1 -9
- package/lib/component/1d/peaks/PeakAnnotations.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +1 -2
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +0 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +11 -15
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +4 -5
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/tool/BaseLine.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLine.js +5 -3
- package/lib/component/1d/tool/BaseLine.js.map +1 -1
- package/lib/component/1d/tool/PivotIndicator1D.js +5 -3
- package/lib/component/1d/tool/PivotIndicator1D.js.map +1 -1
- package/lib/component/1d/utilities/scale.d.ts +1 -7
- package/lib/component/1d/utilities/scale.d.ts.map +1 -1
- package/lib/component/1d/utilities/scale.js +2 -39
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts +6 -8
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +0 -1
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js +0 -5
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.d.ts.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.js +9 -7
- package/lib/component/2d/tools/PivotIndicator.js.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts +1 -19
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -19
- package/lib/component/2d/utilities/scale.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts +0 -6
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -2
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts +0 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +3 -4
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +0 -1
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/context/ChartContext.d.ts +0 -1
- package/lib/component/context/ChartContext.d.ts.map +1 -1
- package/lib/component/context/ChartContext.js +1 -1
- package/lib/component/context/ChartContext.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +2 -2
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js +1 -1
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/GlobalContext.d.ts +0 -5
- package/lib/component/context/GlobalContext.d.ts.map +1 -1
- package/lib/component/context/GlobalContext.js +1 -1
- package/lib/component/context/GlobalContext.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +0 -2
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +2 -2
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts +0 -6
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +2 -2
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/context/PreferencesContext.js +1 -1
- package/lib/component/context/PreferencesContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +0 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js +1 -1
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/elements/Button.d.ts +2 -2
- package/lib/component/elements/Button.d.ts.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.d.ts +2 -2
- package/lib/component/elements/ContextMenuBluePrint.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/FormatField.d.ts +0 -2
- package/lib/component/elements/FormatField.d.ts.map +1 -1
- package/lib/component/elements/FormatField.js +1 -1
- package/lib/component/elements/FormatField.js.map +1 -1
- package/lib/component/elements/Input.d.ts +1 -1
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input2Controller.d.ts +1 -1
- package/lib/component/elements/Input2Controller.d.ts.map +1 -1
- package/lib/component/elements/Label.d.ts +0 -1
- package/lib/component/elements/Label.d.ts.map +1 -1
- package/lib/component/elements/Label.js +1 -1
- package/lib/component/elements/Label.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/Sections.d.ts +3 -9
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +26 -18
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts +1 -1
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select2.d.ts +0 -1
- package/lib/component/elements/Select2.d.ts.map +1 -1
- package/lib/component/elements/Select2.js +1 -1
- package/lib/component/elements/Select2.js.map +1 -1
- package/lib/component/elements/Tab/Tab.d.ts +3 -2
- package/lib/component/elements/Tab/Tab.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +1 -1
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts +0 -4
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js +1 -1
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts +2 -2
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +29 -33
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +0 -28
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +2 -2
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts +1 -4
- package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.js +2 -10
- package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts +0 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +1 -1
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
- package/lib/component/elements/print/pageSize.d.ts +2 -1
- package/lib/component/elements/print/pageSize.d.ts.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +49 -19
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts +2 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts.map +1 -1
- package/lib/component/hooks/useIndicatorLineColor.d.ts +2 -0
- package/lib/component/hooks/useIndicatorLineColor.d.ts.map +1 -0
- package/lib/component/hooks/useIndicatorLineColor.js +6 -0
- package/lib/component/hooks/useIndicatorLineColor.js.map +1 -0
- package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/useTableSortBy.d.ts +0 -5
- 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/useToolsFunctions.d.ts.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js +10 -10
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js +2 -2
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.js +2 -2
- package/lib/component/modal/PredictSpectraModal.d.ts +2 -2
- package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
- package/lib/component/modal/PredictSpectraModal.js +1 -2
- package/lib/component/modal/PredictSpectraModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts +10 -0
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -0
- package/lib/component/modal/PublicationStringModal.js +88 -0
- package/lib/component/modal/PublicationStringModal.js.map +1 -0
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +2 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +26 -53
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +1 -4
- package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +1 -2
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +3 -4
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.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 -2
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +17 -5
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts +3 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.js +4 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.js.map +1 -0
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts +3 -0
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/mapCouplings.js +7 -0
- package/lib/component/modal/editRange/utils/mapCouplings.js.map +1 -0
- package/lib/component/modal/editRange/utils/mapSignals.d.ts +25 -0
- package/lib/component/modal/editRange/utils/mapSignals.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/mapSignals.js +18 -0
- package/lib/component/modal/editRange/utils/mapSignals.js.map +1 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts +2 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +7 -0
- package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +2 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts +0 -6
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +5 -9
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +2 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +18 -6
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +2 -2
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +0 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +9 -21
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +9 -9
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +0 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +4 -4
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js +7 -20
- package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts +2 -4
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.js +6 -12
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts +2 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +1 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +2 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +1 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts +5 -8
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +14 -83
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +1 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -23
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -3
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +1 -8
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +0 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts +3 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js +34 -39
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +0 -6
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +22 -19
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +0 -5
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.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 +0 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +2 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +0 -10
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts +0 -13
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +16 -6
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +0 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +3 -5
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +2 -7
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +1 -1
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -7
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +15 -0
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -8
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js +2 -1
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +6 -0
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +5 -0
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +0 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts +0 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js +0 -3
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js.map +1 -1
- package/lib/component/reducer/helper/getRange.d.ts +1 -1
- package/lib/component/reducer/helper/getRange.d.ts.map +1 -1
- package/lib/component/reducer/helper/getRange.js +3 -12
- package/lib/component/reducer/helper/getRange.js.map +1 -1
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts +1 -2
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts.map +1 -1
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js +0 -5
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js.map +1 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js +2 -2
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -2
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +1 -11
- package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -5
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +0 -30
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/utility/Events.d.ts +1 -1
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/GroupByInfoKey.d.ts.map +1 -1
- package/lib/component/utility/LocalStorage.d.ts +0 -1
- package/lib/component/utility/LocalStorage.d.ts.map +1 -1
- package/lib/component/utility/LocalStorage.js +0 -3
- package/lib/component/utility/LocalStorage.js.map +1 -1
- package/lib/component/utility/export.d.ts +4 -7
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +26 -41
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/formatNumber.d.ts +1 -2
- package/lib/component/utility/formatNumber.d.ts.map +1 -1
- package/lib/component/utility/formatNumber.js +1 -6
- package/lib/component/utility/formatNumber.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/constants.d.ts +0 -4
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +0 -22
- package/lib/constants.js.map +1 -1
- package/lib/data/PredictionManager.d.ts +3 -2
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.d.ts +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/constants/DefaultPathLengths.d.ts +1 -1
- package/lib/data/constants/DefaultPathLengths.d.ts.map +1 -1
- package/lib/data/constants/Multiplets.d.ts +2 -1
- package/lib/data/constants/Multiplets.d.ts.map +1 -1
- package/lib/data/constants/References.d.ts +2 -2
- package/lib/data/constants/References.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +0 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.js +0 -22
- package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.js +2 -3
- package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +3 -5
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
- package/lib/data/data1d/database.d.ts +3 -3
- package/lib/data/data1d/database.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +3 -15
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +1 -7
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data1d/spectrumSimulation.d.ts +2 -1
- package/lib/data/data1d/spectrumSimulation.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.js +0 -1
- package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/matrixGeneration.d.ts +1 -1
- package/lib/data/matrixGeneration.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +0 -1
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/parseMeta/index.d.ts +1 -2
- package/lib/data/parseMeta/index.d.ts.map +1 -1
- package/lib/data/parseMeta/index.js +1 -1
- package/lib/data/parseMeta/index.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -8
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -7
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +0 -6
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js +1 -34
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +0 -5
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.js +3 -11
- package/lib/data/utilities/ZoneUtilities.js.map +1 -1
- package/lib/utils/clipboard/clipboard.d.ts +2 -1
- package/lib/utils/clipboard/clipboard.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.d.ts +2 -15
- package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.d.ts +1 -7
- package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.js +1 -39
- package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +29 -37
- package/src/component/1d/ApodizationLine.tsx +3 -2
- package/src/component/1d/BrushTracker1D.tsx +5 -9
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/inset/InsetProvider.tsx +0 -6
- package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +41 -12
- package/src/component/1d/matrix/Boxplot.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +112 -96
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
- package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
- package/src/component/1d/peaks/Peaks.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +26 -29
- package/src/component/1d/ranges/Ranges.tsx +1 -6
- package/src/component/1d/tool/BaseLine.tsx +6 -3
- package/src/component/1d/tool/PivotIndicator1D.tsx +6 -3
- package/src/component/1d/utilities/scale.ts +1 -51
- package/src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts +11 -1
- package/src/component/2d/SVGContent2D.tsx +0 -6
- package/src/component/2d/tools/PivotIndicator.tsx +16 -7
- package/src/component/2d/utilities/scale.ts +0 -37
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +2 -2
- package/src/component/EventsTrackers/MouseTracker.tsx +1 -1
- package/src/component/assignment/AssignmentsContext.ts +2 -5
- package/src/component/context/ChartContext.tsx +1 -1
- package/src/component/context/DispatchContext.tsx +2 -2
- package/src/component/context/GlobalContext.tsx +1 -1
- package/src/component/context/KeyModifierContext.tsx +2 -2
- package/src/component/context/LoggerContext.tsx +1 -1
- package/src/component/context/PreferencesContext.tsx +2 -2
- package/src/component/context/ScaleContext.tsx +1 -1
- package/src/component/elements/Button.tsx +3 -4
- package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
- package/src/component/elements/FormatField.tsx +1 -1
- package/src/component/elements/Input.tsx +1 -1
- package/src/component/elements/Input2Controller.tsx +1 -1
- package/src/component/elements/Label.tsx +3 -2
- package/src/component/elements/ReactTable/ReactTable.tsx +1 -1
- package/src/component/elements/Sections.tsx +35 -24
- package/src/component/elements/Select.tsx +1 -1
- package/src/component/elements/Select2.tsx +1 -1
- package/src/component/elements/Tab/Tab.tsx +2 -2
- package/src/component/elements/Tab/Tabs.tsx +1 -1
- package/src/component/elements/export/ExportContent.tsx +1 -1
- package/src/component/elements/export/ExportManager.tsx +40 -45
- package/src/component/elements/export/ExportSettingsProvider.tsx +1 -1
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +2 -2
- package/src/component/elements/export/utilities/getExportOptions.ts +2 -10
- package/src/component/elements/print/PrintContent.tsx +1 -1
- package/src/component/elements/print/PrintProvider.tsx +1 -1
- package/src/component/elements/print/pageSize.ts +1 -1
- package/src/component/hooks/useExport.tsx +43 -18
- package/src/component/hooks/useFormatNumberByNucleus.ts +1 -1
- package/src/component/hooks/useIndicatorLineColor.ts +6 -0
- package/src/component/hooks/usePanelPreferences.ts +15 -16
- package/src/component/hooks/useTableSortBy.tsx +1 -1
- package/src/component/hooks/useToolsFunctions.ts +11 -9
- package/src/component/main/NMRium.tsx +2 -6
- package/src/component/modal/ExportAsJcampModal.tsx +2 -2
- package/src/component/modal/PredictSpectraModal.tsx +1 -3
- package/src/component/modal/PublicationStringModal.tsx +168 -0
- package/src/component/modal/changeSum/ChangeSumModal.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +31 -75
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +1 -6
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -2
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +6 -5
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +2 -1
- package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +23 -3
- package/src/component/modal/editRange/utils/couplingsToMultiplicity.ts +5 -0
- package/src/component/modal/editRange/utils/mapCouplings.ts +11 -0
- package/src/component/modal/editRange/utils/mapSignals.ts +27 -0
- package/src/component/modal/setting/GeneralSettings.tsx +8 -0
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +2 -4
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +11 -14
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +2 -5
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +2 -4
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +10 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +22 -6
- package/src/component/panels/Panels.tsx +5 -3
- package/src/component/panels/RangesPanel/RangesHeader.tsx +10 -27
- package/src/component/panels/RangesPanel/RangesPanel.tsx +0 -1
- package/src/component/panels/RangesPanel/hooks/useEditRangeModal.tsx +8 -9
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +4 -6
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +4 -30
- package/src/component/panels/SpectraPanel/base/ColorIndicator.tsx +7 -23
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +1 -3
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +1 -3
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +49 -110
- package/src/component/panels/SummaryPanel/CorrelationTable/Constants.ts +1 -24
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +0 -2
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +2 -2
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +0 -5
- package/src/component/panels/accordionItems.tsx +47 -40
- package/src/component/panels/databasePanel/DatabasePanel.tsx +28 -23
- 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 +1 -1
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +5 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +17 -6
- package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +0 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +3 -8
- package/src/component/reducer/Reducer.ts +2 -9
- package/src/component/reducer/actions/DomainActions.ts +1 -2
- package/src/component/reducer/actions/FiltersActions.ts +16 -2
- package/src/component/reducer/actions/LoadActions.ts +2 -1
- package/src/component/reducer/actions/RangesActions.ts +6 -0
- package/src/component/reducer/actions/SpectraActions.ts +5 -0
- package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -1
- package/src/component/reducer/helper/getActiveSpectraAsObject.ts +0 -7
- package/src/component/reducer/helper/getRange.ts +3 -11
- package/src/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.ts +0 -15
- package/src/component/reducer/preferences/actions/analyzeSpectra.ts +2 -2
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +0 -18
- package/src/component/reducer/preferences/preferencesReducer.ts +2 -36
- package/src/component/utility/Events.tsx +1 -1
- package/src/component/utility/LocalStorage.ts +0 -4
- package/src/component/utility/export.ts +31 -47
- package/src/component/utility/formatNumber.ts +1 -7
- package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
- package/src/constants.ts +0 -23
- package/src/data/PredictionManager.ts +2 -2
- package/src/data/SpectraManager.ts +1 -1
- package/src/data/constants/DefaultPathLengths.ts +1 -1
- package/src/data/constants/Multiplets.ts +1 -1
- package/src/data/constants/References.ts +2 -2
- package/src/data/data1d/Spectrum1D/get1DColor.ts +0 -23
- package/src/data/data1d/Spectrum1D/getReferenceShift.ts +2 -1
- package/src/data/data1d/Spectrum1D/index.ts +1 -6
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +3 -5
- package/src/data/data1d/database.ts +3 -3
- package/src/data/data1d/multipleSpectraAnalysis.ts +2 -28
- package/src/data/data1d/spectrumSimulation.ts +1 -1
- package/src/data/data2d/Spectrum2D/contours.ts +1 -2
- package/src/data/data2d/Spectrum2D/index.ts +0 -1
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -1
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +1 -1
- package/src/data/matrixGeneration.ts +1 -1
- package/src/data/molecules/MoleculeManager.ts +1 -1
- package/src/data/parseMeta/index.ts +1 -11
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -13
- package/src/data/utilities/RangeUtilities.ts +1 -45
- package/src/data/utilities/ZoneUtilities.ts +3 -18
- package/src/utils/clipboard/clipboard.ts +1 -1
- package/src/utils/clipboard/clipboardComponents.tsx +3 -3
- package/src/utils/clipboard/clipboardHooks.ts +2 -58
- package/src/versionInfo.ts +1 -1
- package/lib/component/1d/YAxis.d.ts +0 -7
- package/lib/component/1d/YAxis.d.ts.map +0 -1
- package/lib/component/1d/YAxis.js +0 -25
- package/lib/component/1d/YAxis.js.map +0 -1
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +0 -12
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts.map +0 -1
- package/lib/component/1d/ranges/AssignmentActionsButtons.js +0 -12
- package/lib/component/1d/ranges/AssignmentActionsButtons.js.map +0 -1
- package/lib/component/1d/utilities/getDecimalsCount.d.ts +0 -2
- package/lib/component/1d/utilities/getDecimalsCount.d.ts.map +0 -1
- package/lib/component/1d/utilities/getDecimalsCount.js +0 -7
- package/lib/component/1d/utilities/getDecimalsCount.js.map +0 -1
- package/lib/component/1d-2d/tools/BrushX.d.ts +0 -2
- package/lib/component/1d-2d/tools/BrushX.d.ts.map +0 -1
- package/lib/component/1d-2d/tools/BrushX.js +0 -36
- package/lib/component/1d-2d/tools/BrushX.js.map +0 -1
- package/lib/component/context/PrepareExportContext.d.ts +0 -22
- package/lib/component/context/PrepareExportContext.d.ts.map +0 -1
- package/lib/component/context/PrepareExportContext.js +0 -125
- package/lib/component/context/PrepareExportContext.js.map +0 -1
- package/lib/component/elements/ActiveButton.d.ts +0 -18
- package/lib/component/elements/ActiveButton.d.ts.map +0 -1
- package/lib/component/elements/ActiveButton.js +0 -34
- package/lib/component/elements/ActiveButton.js.map +0 -1
- package/lib/component/elements/AxisGroup.d.ts +0 -5
- package/lib/component/elements/AxisGroup.d.ts.map +0 -1
- package/lib/component/elements/AxisGroup.js +0 -14
- package/lib/component/elements/AxisGroup.js.map +0 -1
- package/lib/component/elements/ButtonToolTip.d.ts +0 -10
- package/lib/component/elements/ButtonToolTip.d.ts.map +0 -1
- package/lib/component/elements/ButtonToolTip.js +0 -7
- package/lib/component/elements/ButtonToolTip.js.map +0 -1
- package/lib/component/elements/CheckBox.d.ts +0 -7
- package/lib/component/elements/CheckBox.d.ts.map +0 -1
- package/lib/component/elements/CheckBox.js +0 -11
- package/lib/component/elements/CheckBox.js.map +0 -1
- package/lib/component/elements/ColorInput.d.ts +0 -10
- package/lib/component/elements/ColorInput.d.ts.map +0 -1
- package/lib/component/elements/ColorInput.js +0 -82
- package/lib/component/elements/ColorInput.js.map +0 -1
- package/lib/component/elements/MenuButton.d.ts +0 -32
- package/lib/component/elements/MenuButton.d.ts.map +0 -1
- package/lib/component/elements/MenuButton.js +0 -76
- package/lib/component/elements/MenuButton.js.map +0 -1
- package/lib/component/elements/Message.d.ts +0 -17
- package/lib/component/elements/Message.d.ts.map +0 -1
- package/lib/component/elements/Message.js +0 -35
- package/lib/component/elements/Message.js.map +0 -1
- package/lib/component/elements/NumberInput.d.ts +0 -14
- package/lib/component/elements/NumberInput.d.ts.map +0 -1
- package/lib/component/elements/NumberInput.js +0 -21
- package/lib/component/elements/NumberInput.js.map +0 -1
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +0 -10
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +0 -29
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js.map +0 -1
- package/lib/component/elements/ReactTable/Style.d.ts +0 -3
- package/lib/component/elements/ReactTable/Style.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Style.js +0 -11
- package/lib/component/elements/ReactTable/Style.js.map +0 -1
- package/lib/component/elements/ResizableSVG.d.ts +0 -25
- package/lib/component/elements/ResizableSVG.d.ts.map +0 -1
- package/lib/component/elements/ResizableSVG.js +0 -84
- package/lib/component/elements/ResizableSVG.js.map +0 -1
- package/lib/component/elements/Table/Table.d.ts +0 -10
- package/lib/component/elements/Table/Table.d.ts.map +0 -1
- package/lib/component/elements/Table/Table.js +0 -14
- package/lib/component/elements/Table/Table.js.map +0 -1
- package/lib/component/elements/Table/TableBody.d.ts +0 -10
- package/lib/component/elements/Table/TableBody.d.ts.map +0 -1
- package/lib/component/elements/Table/TableBody.js +0 -20
- package/lib/component/elements/Table/TableBody.js.map +0 -1
- package/lib/component/elements/Table/TableCell.d.ts +0 -14
- package/lib/component/elements/Table/TableCell.d.ts.map +0 -1
- package/lib/component/elements/Table/TableCell.js +0 -27
- package/lib/component/elements/Table/TableCell.js.map +0 -1
- package/lib/component/elements/Table/TableHead.d.ts +0 -10
- package/lib/component/elements/Table/TableHead.d.ts.map +0 -1
- package/lib/component/elements/Table/TableHead.js +0 -17
- package/lib/component/elements/Table/TableHead.js.map +0 -1
- package/lib/component/elements/Table/TableRow.d.ts +0 -11
- package/lib/component/elements/Table/TableRow.d.ts.map +0 -1
- package/lib/component/elements/Table/TableRow.js +0 -12
- package/lib/component/elements/Table/TableRow.js.map +0 -1
- package/lib/component/elements/ToggleButton.d.ts +0 -15
- package/lib/component/elements/ToggleButton.d.ts.map +0 -1
- package/lib/component/elements/ToggleButton.js +0 -30
- package/lib/component/elements/ToggleButton.js.map +0 -1
- package/lib/component/elements/ToolTip/ToolTip.d.ts +0 -16
- package/lib/component/elements/ToolTip/ToolTip.d.ts.map +0 -1
- package/lib/component/elements/ToolTip/ToolTip.js +0 -102
- package/lib/component/elements/ToolTip/ToolTip.js.map +0 -1
- package/lib/component/elements/accordion/Accordion.d.ts +0 -8
- package/lib/component/elements/accordion/Accordion.d.ts.map +0 -1
- package/lib/component/elements/accordion/Accordion.js +0 -67
- package/lib/component/elements/accordion/Accordion.js.map +0 -1
- package/lib/component/elements/accordion/AccordionItem.d.ts +0 -16
- package/lib/component/elements/accordion/AccordionItem.d.ts.map +0 -1
- package/lib/component/elements/accordion/AccordionItem.js +0 -79
- package/lib/component/elements/accordion/AccordionItem.js.map +0 -1
- package/lib/component/elements/draggable/SVGDraggable.d.ts +0 -18
- package/lib/component/elements/draggable/SVGDraggable.d.ts.map +0 -1
- package/lib/component/elements/draggable/SVGDraggable.js +0 -30
- package/lib/component/elements/draggable/SVGDraggable.js.map +0 -1
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.d.ts +0 -2
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.js +0 -5
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.js.map +0 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +0 -21
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts.map +0 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +0 -16
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js.map +0 -1
- package/lib/component/modal/CopyClipboardModal.d.ts +0 -9
- package/lib/component/modal/CopyClipboardModal.d.ts.map +0 -1
- package/lib/component/modal/CopyClipboardModal.js +0 -23
- package/lib/component/modal/CopyClipboardModal.js.map +0 -1
- package/lib/component/panels/extra/preferences/ColumnsHelper.d.ts +0 -13
- package/lib/component/panels/extra/preferences/ColumnsHelper.d.ts.map +0 -1
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +0 -43
- package/lib/component/panels/extra/preferences/ColumnsHelper.js.map +0 -1
- package/lib/component/panels/extra/utilities/UseToggleStatus.d.ts +0 -8
- package/lib/component/panels/extra/utilities/UseToggleStatus.d.ts.map +0 -1
- package/lib/component/panels/extra/utilities/UseToggleStatus.js +0 -33
- package/lib/component/panels/extra/utilities/UseToggleStatus.js.map +0 -1
- package/lib/component/reducer/actions/HistoryActions.d.ts +0 -5
- package/lib/component/reducer/actions/HistoryActions.d.ts.map +0 -1
- package/lib/component/reducer/actions/HistoryActions.js +0 -41
- package/lib/component/reducer/actions/HistoryActions.js.map +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.d.ts +0 -3
- package/lib/component/reducer/helper/GetClosestNumber.d.ts.map +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +0 -9
- package/lib/component/reducer/helper/GetClosestNumber.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/checkKeysExists.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/checkKeysExists.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/checkKeysExists.js +0 -15
- package/lib/component/reducer/preferences/utilities/checkKeysExists.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/filterObject.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/filterObject.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/filterObject.js +0 -8
- package/lib/component/reducer/preferences/utilities/filterObject.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/flatObject.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/flatObject.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/flatObject.js +0 -10
- package/lib/component/reducer/preferences/utilities/flatObject.js.map +0 -1
- package/lib/component/utility/FileUtility.d.ts +0 -9
- package/lib/component/utility/FileUtility.d.ts.map +0 -1
- package/lib/component/utility/FileUtility.js +0 -19
- package/lib/component/utility/FileUtility.js.map +0 -1
- package/lib/component/utility/PreferencesHelper.d.ts +0 -3
- package/lib/component/utility/PreferencesHelper.d.ts.map +0 -1
- package/lib/component/utility/PreferencesHelper.js +0 -10
- package/lib/component/utility/PreferencesHelper.js.map +0 -1
- package/lib/component/utility/jpathToArray.d.ts +0 -2
- package/lib/component/utility/jpathToArray.d.ts.map +0 -1
- package/lib/component/utility/jpathToArray.js +0 -24
- package/lib/component/utility/jpathToArray.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts +0 -6
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js +0 -5
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/is1DFilter.d.ts +0 -5
- package/lib/data/data1d/Spectrum1D/is1DFilter.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/is1DFilter.js +0 -4
- package/lib/data/data1d/Spectrum1D/is1DFilter.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +0 -3
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js +0 -6
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts +0 -2
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js +0 -10
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts +0 -7
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +0 -10
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/getShift.d.ts +0 -7
- package/lib/data/data2d/Spectrum2D/getShift.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/getShift.js +0 -16
- package/lib/data/data2d/Spectrum2D/getShift.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/is2DFilter.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/is2DFilter.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/is2DFilter.js +0 -4
- package/lib/data/data2d/Spectrum2D/is2DFilter.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js +0 -16
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts +0 -3
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js +0 -8
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js.map +0 -1
- package/lib/data/defaults/13c.d.ts +0 -5
- package/lib/data/defaults/13c.d.ts.map +0 -1
- package/lib/data/defaults/13c.js +0 -4
- package/lib/data/defaults/13c.js.map +0 -1
- package/lib/data/defaults/1h.d.ts +0 -5
- package/lib/data/defaults/1h.d.ts.map +0 -1
- package/lib/data/defaults/1h.js +0 -4
- package/lib/data/defaults/1h.js.map +0 -1
- package/lib/data/defaults/default.d.ts +0 -2
- package/lib/data/defaults/default.d.ts.map +0 -1
- package/lib/data/defaults/default.js +0 -17
- package/lib/data/defaults/default.js.map +0 -1
- package/lib/data/getDefaultMatrixFilters.d.ts +0 -17
- package/lib/data/getDefaultMatrixFilters.d.ts.map +0 -1
- package/lib/data/getDefaultMatrixFilters.js +0 -21
- package/lib/data/getDefaultMatrixFilters.js.map +0 -1
- package/lib/data/types/common/DeepPartial.d.ts +0 -4
- package/lib/data/types/common/DeepPartial.d.ts.map +0 -1
- package/lib/data/types/common/DeepPartial.js +0 -2
- package/lib/data/types/common/DeepPartial.js.map +0 -1
- package/lib/data/types/common/File.d.ts +0 -6
- package/lib/data/types/common/File.d.ts.map +0 -1
- package/lib/data/types/common/File.js +0 -2
- package/lib/data/types/common/File.js.map +0 -1
- package/lib/data/types/common/Info.d.ts +0 -12
- package/lib/data/types/common/Info.d.ts.map +0 -1
- package/lib/data/types/common/Info.js +0 -2
- package/lib/data/types/common/Info.js.map +0 -1
- package/lib/data/types/common/MapOptions.d.ts +0 -6
- package/lib/data/types/common/MapOptions.d.ts.map +0 -1
- package/lib/data/types/common/MapOptions.js +0 -2
- package/lib/data/types/common/MapOptions.js.map +0 -1
- package/lib/data/types/data1d/ComplexData1D.d.ts +0 -3
- package/lib/data/types/data1d/ComplexData1D.d.ts.map +0 -1
- package/lib/data/types/data1d/ComplexData1D.js +0 -2
- package/lib/data/types/data1d/ComplexData1D.js.map +0 -1
- package/lib/data/types/data2d/ContourOptions.d.ts +0 -11
- package/lib/data/types/data2d/ContourOptions.d.ts.map +0 -1
- package/lib/data/types/data2d/ContourOptions.js +0 -2
- package/lib/data/types/data2d/ContourOptions.js.map +0 -1
- package/lib/data/types/data2d/index.d.ts +0 -2
- package/lib/data/types/data2d/index.d.ts.map +0 -1
- package/lib/data/types/data2d/index.js +0 -2
- package/lib/data/types/data2d/index.js.map +0 -1
- package/lib/data/utilities/getSum.d.ts +0 -9
- package/lib/data/utilities/getSum.d.ts.map +0 -1
- package/lib/data/utilities/getSum.js +0 -16
- package/lib/data/utilities/getSum.js.map +0 -1
- package/lib/types/NMRiumDataReturn.d.ts +0 -15
- package/lib/types/NMRiumDataReturn.d.ts.map +0 -1
- package/lib/types/NMRiumDataReturn.js +0 -2
- package/lib/types/NMRiumDataReturn.js.map +0 -1
- package/src/component/1d/YAxis.tsx +0 -57
- package/src/component/1d/ranges/AssignmentActionsButtons.tsx +0 -62
- package/src/component/1d/utilities/getDecimalsCount.ts +0 -9
- package/src/component/1d-2d/tools/BrushX.tsx +0 -69
- package/src/component/context/PrepareExportContext.tsx +0 -185
- package/src/component/elements/ActiveButton.tsx +0 -72
- package/src/component/elements/AxisGroup.tsx +0 -14
- package/src/component/elements/ButtonToolTip.tsx +0 -35
- package/src/component/elements/CheckBox.tsx +0 -43
- package/src/component/elements/ColorInput.tsx +0 -117
- package/src/component/elements/MenuButton.tsx +0 -162
- package/src/component/elements/Message.tsx +0 -63
- package/src/component/elements/NumberInput.tsx +0 -67
- package/src/component/elements/ReactTable/ReactTableFlexLayout.tsx +0 -90
- package/src/component/elements/ReactTable/Style.ts +0 -12
- package/src/component/elements/ResizableSVG.tsx +0 -234
- package/src/component/elements/Table/Table.tsx +0 -26
- package/src/component/elements/Table/TableBody.tsx +0 -35
- package/src/component/elements/Table/TableCell.tsx +0 -55
- package/src/component/elements/Table/TableHead.tsx +0 -29
- package/src/component/elements/Table/TableRow.tsx +0 -34
- package/src/component/elements/ToggleButton.tsx +0 -67
- package/src/component/elements/ToolTip/ToolTip.tsx +0 -161
- package/src/component/elements/accordion/Accordion.tsx +0 -100
- package/src/component/elements/accordion/AccordionItem.tsx +0 -134
- package/src/component/elements/draggable/SVGDraggable.tsx +0 -67
- package/src/component/elements/export/utilities/convertPixelsBasedOnDPI.ts +0 -9
- package/src/component/elements/linearAxis/LinearVerticalAxis.tsx +0 -77
- package/src/component/modal/CopyClipboardModal.tsx +0 -47
- package/src/component/panels/extra/preferences/ColumnsHelper.ts +0 -68
- package/src/component/panels/extra/utilities/UseToggleStatus.ts +0 -41
- package/src/component/reducer/actions/HistoryActions.ts +0 -48
- package/src/component/reducer/helper/GetClosestNumber.ts +0 -9
- package/src/component/reducer/preferences/utilities/checkKeysExists.ts +0 -18
- package/src/component/reducer/preferences/utilities/filterObject.ts +0 -7
- package/src/component/reducer/preferences/utilities/flatObject.ts +0 -9
- package/src/component/utility/FileUtility.ts +0 -22
- package/src/component/utility/PreferencesHelper.ts +0 -13
- package/src/component/utility/jpathToArray.ts +0 -21
- package/src/data/data1d/Spectrum1D/cloneDatum1D.ts +0 -4
- package/src/data/data1d/Spectrum1D/is1DFilter.ts +0 -8
- package/src/data/data1d/Spectrum1D/ranges/checkRangeKind.ts +0 -8
- package/src/data/data2d/Spectrum2D/cloneDatum2D.ts +0 -9
- package/src/data/data2d/Spectrum2D/get2DSpectrumErrorValue.ts +0 -17
- package/src/data/data2d/Spectrum2D/getShift.ts +0 -23
- package/src/data/data2d/Spectrum2D/is2DFilter.ts +0 -8
- package/src/data/data2d/Spectrum2D/zones/isZoneExists.ts +0 -27
- package/src/data/data2d/Spectrum2D/zones/updateZones.ts +0 -9
- package/src/data/defaults/13c.ts +0 -3
- package/src/data/defaults/1h.ts +0 -3
- package/src/data/defaults/default.ts +0 -19
- package/src/data/getDefaultMatrixFilters.ts +0 -38
- package/src/data/types/common/DeepPartial.ts +0 -3
- package/src/data/types/common/File.ts +0 -5
- package/src/data/types/common/Info.ts +0 -11
- package/src/data/types/common/MapOptions.ts +0 -6
- package/src/data/types/data1d/ComplexData1D.ts +0 -4
- package/src/data/types/data2d/ContourOptions.ts +0 -10
- package/src/data/types/data2d/index.ts +0 -1
- package/src/data/utilities/getSum.ts +0 -19
- package/src/types/NMRiumDataReturn.ts +0 -16
|
@@ -12,6 +12,7 @@ import { FaDiceFour } from 'react-icons/fa';
|
|
|
12
12
|
import type { AccordionItemProps } from 'react-science/ui';
|
|
13
13
|
|
|
14
14
|
import type { DisplayerMode } from '../reducer/Reducer.js';
|
|
15
|
+
import type { Tool } from '../toolbar/ToolTypes.js';
|
|
15
16
|
|
|
16
17
|
import AutomaticAssignment from './AutomaticAssignment/AutomaticAssignment.js';
|
|
17
18
|
import IntegralPanel from './IntegralsPanel/IntegralPanel.js';
|
|
@@ -37,122 +38,128 @@ export interface AccordionItem
|
|
|
37
38
|
mode: DisplayerMode | null;
|
|
38
39
|
isExperimental?: boolean;
|
|
39
40
|
icon: IconName | ReactElement;
|
|
41
|
+
openWithTool?: Tool;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
const accordions: Record<
|
|
45
|
+
keyof NMRiumPanelPreferences,
|
|
46
|
+
Omit<AccordionItem, 'id'>
|
|
47
|
+
> = {
|
|
48
|
+
spectraPanel: {
|
|
45
49
|
title: 'Spectra',
|
|
46
50
|
component: <SpectrumListPanel />,
|
|
47
51
|
mode: null,
|
|
48
52
|
icon: 'list-columns',
|
|
53
|
+
openWithTool: 'zoom',
|
|
49
54
|
},
|
|
50
|
-
{
|
|
51
|
-
id: 'informationPanel',
|
|
55
|
+
informationPanel: {
|
|
52
56
|
title: 'Information',
|
|
53
57
|
component: <InformationPanel />,
|
|
54
58
|
style: { overflow: 'hidden' },
|
|
55
59
|
mode: null,
|
|
56
60
|
icon: 'info-sign',
|
|
57
61
|
},
|
|
58
|
-
{
|
|
59
|
-
id: 'peaksPanel',
|
|
62
|
+
peaksPanel: {
|
|
60
63
|
title: 'Peaks',
|
|
61
64
|
component: <PeaksPanel />,
|
|
62
65
|
mode: '1D',
|
|
63
66
|
icon: <SvgNmrPeakPicking />,
|
|
67
|
+
openWithTool: 'peakPicking',
|
|
64
68
|
},
|
|
65
|
-
{
|
|
66
|
-
id: 'processingsPanel',
|
|
69
|
+
processingsPanel: {
|
|
67
70
|
title: 'Processings',
|
|
68
71
|
component: <FilterPanel />,
|
|
69
72
|
mode: null,
|
|
70
73
|
icon: 'series-derived',
|
|
71
74
|
},
|
|
72
|
-
{
|
|
73
|
-
id: 'integralsPanel',
|
|
75
|
+
integralsPanel: {
|
|
74
76
|
title: 'Integrals',
|
|
75
77
|
component: <IntegralPanel />,
|
|
76
78
|
mode: '1D',
|
|
77
79
|
icon: <SvgNmrIntegrate />,
|
|
80
|
+
openWithTool: 'integral',
|
|
78
81
|
},
|
|
79
|
-
{
|
|
80
|
-
id: 'rangesPanel',
|
|
82
|
+
rangesPanel: {
|
|
81
83
|
title: 'Ranges / Multiplet analysis',
|
|
82
84
|
component: <RangesPanel />,
|
|
83
85
|
mode: '1D',
|
|
84
86
|
icon: <SvgNmrRangePicking />,
|
|
87
|
+
openWithTool: 'rangePicking',
|
|
85
88
|
},
|
|
86
|
-
{
|
|
87
|
-
id: 'multipleSpectraAnalysisPanel',
|
|
89
|
+
multipleSpectraAnalysisPanel: {
|
|
88
90
|
title: 'Multiple spectra analysis',
|
|
89
91
|
component: <MultipleSpectraAnalysisPanel />,
|
|
90
92
|
mode: null,
|
|
91
93
|
icon: <SvgNmrMultipleAnalysis />,
|
|
94
|
+
openWithTool: 'multipleSpectraAnalysis',
|
|
92
95
|
},
|
|
93
|
-
{
|
|
94
|
-
id: 'matrixGenerationPanel',
|
|
96
|
+
matrixGenerationPanel: {
|
|
95
97
|
title: 'Matrix generation',
|
|
96
98
|
component: <MatrixGenerationPanel />,
|
|
97
99
|
mode: '1D',
|
|
98
100
|
icon: 'derive-column',
|
|
99
101
|
},
|
|
100
|
-
{
|
|
101
|
-
id: 'zonesPanel',
|
|
102
|
+
zonesPanel: {
|
|
102
103
|
title: 'Zones',
|
|
103
104
|
component: <ZonesPanel />,
|
|
104
105
|
mode: '2D',
|
|
105
106
|
icon: <FaDiceFour />,
|
|
107
|
+
openWithTool: 'zonePicking',
|
|
106
108
|
},
|
|
107
|
-
{
|
|
108
|
-
id: 'summaryPanel',
|
|
109
|
+
summaryPanel: {
|
|
109
110
|
title: 'Summary',
|
|
110
111
|
component: <SummaryPanel />,
|
|
111
112
|
mode: null,
|
|
112
113
|
icon: 'document',
|
|
113
114
|
},
|
|
114
|
-
{
|
|
115
|
-
id: 'structuresPanel',
|
|
115
|
+
structuresPanel: {
|
|
116
116
|
title: 'Chemical structures',
|
|
117
117
|
component: <MoleculePanel />,
|
|
118
118
|
mode: null,
|
|
119
119
|
icon: 'hexagon',
|
|
120
120
|
},
|
|
121
|
-
{
|
|
122
|
-
id: 'databasePanel',
|
|
121
|
+
databasePanel: {
|
|
123
122
|
title: 'Databases',
|
|
124
123
|
component: <DatabasePanel />,
|
|
125
124
|
mode: null,
|
|
126
125
|
icon: 'database',
|
|
127
126
|
},
|
|
128
|
-
{
|
|
129
|
-
id: 'automaticAssignmentPanel',
|
|
127
|
+
automaticAssignmentPanel: {
|
|
130
128
|
title: 'Automatic assignment',
|
|
131
129
|
component: <AutomaticAssignment />,
|
|
132
130
|
mode: null,
|
|
133
131
|
icon: <SvgNmrAssignment2 />,
|
|
134
132
|
},
|
|
135
|
-
{
|
|
136
|
-
id: 'predictionPanel',
|
|
133
|
+
predictionPanel: {
|
|
137
134
|
title: 'Prediction',
|
|
138
135
|
component: <PredictionPane />,
|
|
139
136
|
mode: null,
|
|
140
137
|
icon: 'new-grid-item',
|
|
141
138
|
},
|
|
142
|
-
{
|
|
143
|
-
id: 'simulationPanel',
|
|
139
|
+
simulationPanel: {
|
|
144
140
|
title: 'Spectrum simulation',
|
|
145
141
|
component: <SpectrumSimulation />,
|
|
146
142
|
mode: '1D',
|
|
147
143
|
icon: 'lab-test',
|
|
148
144
|
},
|
|
149
|
-
];
|
|
150
|
-
|
|
151
|
-
export const TOOLS_PANELS_ACCORDION: Record<string, string> = {
|
|
152
|
-
null: 'Spectra',
|
|
153
|
-
peakPicking: 'Peaks',
|
|
154
|
-
integral: 'Integrals',
|
|
155
|
-
rangePicking: 'Ranges / Multiplet analysis',
|
|
156
|
-
zonePicking: 'Zones',
|
|
157
|
-
multipleSpectraAnalysis: 'Multiple Spectra Analysis',
|
|
158
145
|
};
|
|
146
|
+
|
|
147
|
+
export const accordionItems: AccordionItem[] = Object.entries(accordions).map(
|
|
148
|
+
([id, item]) => ({ id: id as keyof NMRiumPanelPreferences, ...item }),
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
function mapToolsToPanels(
|
|
152
|
+
accordions: Record<keyof NMRiumPanelPreferences, Omit<AccordionItem, 'id'>>,
|
|
153
|
+
): Record<string, keyof NMRiumPanelPreferences> {
|
|
154
|
+
const toolToPanelMap: Record<string, keyof NMRiumPanelPreferences> = {};
|
|
155
|
+
|
|
156
|
+
for (const key in accordions) {
|
|
157
|
+
const { openWithTool } = accordions[key];
|
|
158
|
+
if (openWithTool) {
|
|
159
|
+
toolToPanelMap[openWithTool] = key as keyof NMRiumPanelPreferences;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return toolToPanelMap;
|
|
164
|
+
}
|
|
165
|
+
export const toolPanelLookup = mapToolsToPanels(accordions);
|
|
@@ -4,7 +4,7 @@ import type { DatabaseNMREntry } from 'nmr-processing';
|
|
|
4
4
|
import { mapRanges } from 'nmr-processing';
|
|
5
5
|
import OCL from 'openchemlib/full';
|
|
6
6
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { useOnOff } from 'react-science/ui';
|
|
8
8
|
|
|
9
9
|
import { getSum } from '../../../data/data1d/Spectrum1D/SumManager.js';
|
|
10
10
|
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.js';
|
|
@@ -40,7 +40,7 @@ import DatabaseTable from './DatabaseTable.js';
|
|
|
40
40
|
|
|
41
41
|
export type Databases = Array<LocalDatabase | Database>;
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
interface DatabaseInnerProps {
|
|
44
44
|
nucleus: string;
|
|
45
45
|
selectedTool: string;
|
|
46
46
|
databases: Databases;
|
|
@@ -84,7 +84,6 @@ function DatabasePanelInner({
|
|
|
84
84
|
}: DatabaseInnerProps) {
|
|
85
85
|
const dispatch = useDispatch();
|
|
86
86
|
const toaster = useToaster();
|
|
87
|
-
const { item } = useAccordionContext('Databases');
|
|
88
87
|
|
|
89
88
|
const format = useFormatNumberByNucleus(nucleus);
|
|
90
89
|
const [isFlipped, setFlipStatus] = useState(false);
|
|
@@ -133,10 +132,12 @@ function DatabasePanelInner({
|
|
|
133
132
|
);
|
|
134
133
|
|
|
135
134
|
useEffect(() => {
|
|
135
|
+
if (!databaseInstance.current) return;
|
|
136
|
+
|
|
136
137
|
const { solvent, searchKeywords } = keywords;
|
|
137
|
-
|
|
138
|
+
const runner = async () => {
|
|
138
139
|
if (databaseInstance.current) {
|
|
139
|
-
const hideLoading = toaster.
|
|
140
|
+
const hideLoading = await toaster.showAsyncLoading({
|
|
140
141
|
message: 'Preparing of the Result',
|
|
141
142
|
});
|
|
142
143
|
if (solvent === '-1' && !searchKeywords) {
|
|
@@ -149,7 +150,9 @@ function DatabasePanelInner({
|
|
|
149
150
|
}
|
|
150
151
|
hideLoading();
|
|
151
152
|
}
|
|
152
|
-
}
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
void runner();
|
|
153
156
|
}, [idCode, keywords, search, toaster]);
|
|
154
157
|
|
|
155
158
|
useEffect(() => {
|
|
@@ -177,20 +180,22 @@ function DatabasePanelInner({
|
|
|
177
180
|
}, [format, selectedTool]);
|
|
178
181
|
|
|
179
182
|
useEffect(() => {
|
|
180
|
-
|
|
181
|
-
if (databaseInstance.current) {
|
|
182
|
-
const hideLoading = toaster.showLoading({
|
|
183
|
-
message: 'Loading the database',
|
|
184
|
-
});
|
|
183
|
+
if (!databaseInstance.current) return;
|
|
185
184
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
185
|
+
const runner = async () => {
|
|
186
|
+
const hideLoading = await toaster.showAsyncLoading({
|
|
187
|
+
message: 'Loading the database',
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
databaseInstance.current = initiateDatabase(
|
|
191
|
+
databaseDataRef.current,
|
|
192
|
+
nucleus,
|
|
193
|
+
);
|
|
194
|
+
hideLoading();
|
|
195
|
+
setKeywords({ ...emptyKeywords });
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
void runner();
|
|
194
199
|
}, [nucleus, toaster]);
|
|
195
200
|
|
|
196
201
|
const handleChangeDatabase = useCallback(
|
|
@@ -201,7 +206,7 @@ function DatabasePanelInner({
|
|
|
201
206
|
if (database?.url) {
|
|
202
207
|
const { url, label } = database;
|
|
203
208
|
|
|
204
|
-
const hideLoading = toaster.
|
|
209
|
+
const hideLoading = await toaster.showAsyncLoading({
|
|
205
210
|
message: `load ${label} database`,
|
|
206
211
|
});
|
|
207
212
|
|
|
@@ -227,7 +232,7 @@ function DatabasePanelInner({
|
|
|
227
232
|
?.value as DatabaseNMREntry[];
|
|
228
233
|
}
|
|
229
234
|
|
|
230
|
-
const hideLoading = toaster.
|
|
235
|
+
const hideLoading = await toaster.showAsyncLoading({
|
|
231
236
|
message: 'Loading the database',
|
|
232
237
|
});
|
|
233
238
|
|
|
@@ -245,10 +250,10 @@ function DatabasePanelInner({
|
|
|
245
250
|
);
|
|
246
251
|
|
|
247
252
|
useEffect(() => {
|
|
248
|
-
if (
|
|
253
|
+
if (defaultDatabase && !databaseInstance.current) {
|
|
249
254
|
handleChangeDatabase(defaultDatabase);
|
|
250
255
|
}
|
|
251
|
-
}, [databases, defaultDatabase, handleChangeDatabase,
|
|
256
|
+
}, [databases, defaultDatabase, handleChangeDatabase, nucleus]);
|
|
252
257
|
|
|
253
258
|
const tableData = useMemo(() => {
|
|
254
259
|
return prepareData(result.data);
|
|
@@ -244,7 +244,7 @@ interface ToggleBtnProps extends ToggleEvent {
|
|
|
244
244
|
data: PrepareDataResult;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
function ToggleBtn(props: ToggleBtnProps) {
|
|
248
248
|
const { onAdd, onRemove, data } = props;
|
|
249
249
|
const spectra = useSpectraByActiveNucleus();
|
|
250
250
|
const isAdded = spectra.some((spectrum) => spectrum.id === data.spectrumID);
|
|
@@ -260,7 +260,7 @@ function FiltersInner(props: FiltersInnerProps) {
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
return (
|
|
263
|
-
<Sections
|
|
263
|
+
<Sections isOverflow renderActiveSectionContentOnly>
|
|
264
264
|
{filtersList.map((filter, index) => {
|
|
265
265
|
const { id, name, error, value } = filter;
|
|
266
266
|
const FilterOptionsPanel = filterOptionPanels[filter.name];
|
|
@@ -85,7 +85,11 @@ export function BaseApodizationOptions(
|
|
|
85
85
|
</StickyHeader>
|
|
86
86
|
)}
|
|
87
87
|
<Sections.Body>
|
|
88
|
-
<Sections
|
|
88
|
+
<Sections
|
|
89
|
+
isOverflow
|
|
90
|
+
renderActiveSectionContentOnly
|
|
91
|
+
matchContentHeight
|
|
92
|
+
>
|
|
89
93
|
<ExponentialSectionOptionsSection
|
|
90
94
|
onChange={() => submitHandler()}
|
|
91
95
|
/>
|
|
@@ -11,7 +11,7 @@ import { useDispatch } from '../../../../context/DispatchContext.js';
|
|
|
11
11
|
import { useSyncedFilterOptions } from '../../../../context/FilterSyncOptionsContext.js';
|
|
12
12
|
import useTempSpectrum from '../../../../hooks/useTempSpectrum.js';
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
type ZeroFillingOptions = BaseZeroFillingOptions & {
|
|
15
15
|
livePreview: boolean;
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -31,7 +31,7 @@ function getZeroFillingSize(length: number) {
|
|
|
31
31
|
return 2 ** Math.round(Math.log2(length * 2));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
function useZeroFillingDefaultSize() {
|
|
35
35
|
const spectrum = useTempSpectrum();
|
|
36
36
|
|
|
37
37
|
if (!spectrum) return 0;
|
|
@@ -52,7 +52,7 @@ export type ZeroFillingEntry =
|
|
|
52
52
|
| ExtractFilterEntry<'zeroFillingDimension1'>
|
|
53
53
|
| ExtractFilterEntry<'zeroFillingDimension2'>;
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
const useDispatchZeroFilling = (filter: ZeroFillingEntry | null) => {
|
|
56
56
|
const dispatch = useDispatch();
|
|
57
57
|
|
|
58
58
|
const defaultNbPoints = useZeroFillingDefaultSize();
|
|
@@ -24,7 +24,10 @@ import type { ToolbarPopoverMenuItem } from '../../elements/ToolbarPopoverItem.j
|
|
|
24
24
|
import { ToolbarPopoverItem } from '../../elements/ToolbarPopoverItem.js';
|
|
25
25
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
26
26
|
import useSpectraByActiveNucleus from '../../hooks/useSpectraPerNucleus.js';
|
|
27
|
-
import {
|
|
27
|
+
import {
|
|
28
|
+
browserNotSupportedErrorToast,
|
|
29
|
+
copyPNGToClipboard,
|
|
30
|
+
} from '../../utility/export.js';
|
|
28
31
|
import { getSpectraObjectPaths } from '../../utility/getSpectraObjectPaths.js';
|
|
29
32
|
|
|
30
33
|
const MOL_EXPORT_MENU: ToolbarPopoverMenuItem[] = [
|
|
@@ -73,7 +76,7 @@ function prepareAnalysisData(
|
|
|
73
76
|
|
|
74
77
|
type PlotOptions = PlotAxisOptions & { paths: Record<string, string[]> };
|
|
75
78
|
|
|
76
|
-
|
|
79
|
+
function getPlotDataAsString(
|
|
77
80
|
spectraAnalysis: SpectraAnalysisData,
|
|
78
81
|
options: {
|
|
79
82
|
plotOptions: PlotOptions;
|
|
@@ -243,13 +246,21 @@ export default function AnalysisChart(props: PlotChartPros) {
|
|
|
243
246
|
setPlotOptions((prevOptions) => ({ ...prevOptions, [name]: value }));
|
|
244
247
|
}
|
|
245
248
|
|
|
246
|
-
function handleCopyChart() {
|
|
247
|
-
if (chartParentRef.current)
|
|
248
|
-
|
|
249
|
+
async function handleCopyChart() {
|
|
250
|
+
if (!chartParentRef.current) return;
|
|
251
|
+
|
|
252
|
+
try {
|
|
253
|
+
await copyPNGToClipboard(svgId, {
|
|
249
254
|
rootElement: chartParentRef.current,
|
|
250
255
|
css: css({ text: { fill: 'black' } }),
|
|
251
256
|
});
|
|
252
257
|
toaster.show({ message: 'Chart copied to clipboard', intent: 'success' });
|
|
258
|
+
} catch (error: unknown) {
|
|
259
|
+
if (error instanceof Error) {
|
|
260
|
+
toaster.show({ intent: 'danger', message: error.message });
|
|
261
|
+
} else {
|
|
262
|
+
toaster.show(browserNotSupportedErrorToast);
|
|
263
|
+
}
|
|
253
264
|
}
|
|
254
265
|
}
|
|
255
266
|
|
|
@@ -279,7 +290,7 @@ export default function AnalysisChart(props: PlotChartPros) {
|
|
|
279
290
|
function exportHandler(selected) {
|
|
280
291
|
switch (selected?.id) {
|
|
281
292
|
case 'copyChart': {
|
|
282
|
-
handleCopyChart();
|
|
293
|
+
void handleCopyChart();
|
|
283
294
|
break;
|
|
284
295
|
}
|
|
285
296
|
case 'copyData': {
|
|
@@ -3,7 +3,7 @@ import type { CSSProperties } from 'react';
|
|
|
3
3
|
import { useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { ResponsiveChart } from 'react-d3-utils';
|
|
5
5
|
import { StructureEditor } from 'react-ocl/full';
|
|
6
|
-
import {
|
|
6
|
+
import { useAccordionControls } from 'react-science/ui';
|
|
7
7
|
|
|
8
8
|
import { predictSpectra } from '../../../data/PredictionManager.js';
|
|
9
9
|
import type { StateMoleculeExtended } from '../../../data/molecules/Molecule.js';
|
|
@@ -47,10 +47,7 @@ export default function PredictionPanel() {
|
|
|
47
47
|
const [molfile, setMolfile] = useState<string | null>(null);
|
|
48
48
|
const [isFlipped, setFlipStatus] = useState(false);
|
|
49
49
|
const settingRef = useRef<SettingsRef | null>(null);
|
|
50
|
-
const {
|
|
51
|
-
item: spectraPanelState,
|
|
52
|
-
utils: { toggle: openSpectraPanel },
|
|
53
|
-
} = useAccordionContext('Spectra');
|
|
50
|
+
const { open: openAccordionPanel } = useAccordionControls();
|
|
54
51
|
const predictionPreferences = usePanelPreferences('prediction');
|
|
55
52
|
const { modal, openMoleculeEditor } = useMoleculeEditor(true);
|
|
56
53
|
const refreshSlider = useRef<boolean>(false);
|
|
@@ -109,9 +106,7 @@ export default function PredictionPanel() {
|
|
|
109
106
|
action,
|
|
110
107
|
},
|
|
111
108
|
});
|
|
112
|
-
|
|
113
|
-
openSpectraPanel();
|
|
114
|
-
}
|
|
109
|
+
openAccordionPanel('spectraPanel');
|
|
115
110
|
} catch (error: any) {
|
|
116
111
|
toaster.show({ message: error.message, intent: 'danger' });
|
|
117
112
|
} finally {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WebSource as Source } from 'filelist-utils';
|
|
2
2
|
import type { Draft } from 'immer';
|
|
3
|
-
import {
|
|
3
|
+
import { original, produce } from 'immer';
|
|
4
4
|
import type { CorrelationData } from 'nmr-correlation';
|
|
5
5
|
import { buildCorrelationData } from 'nmr-correlation';
|
|
6
6
|
import type { Spectrum, ViewState } from 'nmr-load-save';
|
|
@@ -34,7 +34,7 @@ import type { ZoomHistory } from './helper/ZoomHistoryManager.js';
|
|
|
34
34
|
|
|
35
35
|
export type DisplayerMode = '1D' | '2D';
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
interface Pivot {
|
|
38
38
|
value: number;
|
|
39
39
|
index: number;
|
|
40
40
|
}
|
|
@@ -69,13 +69,6 @@ export interface TwoDimensionPhaseCorrection {
|
|
|
69
69
|
addTracesToBothDirections: boolean;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
export interface MatrixGenerationOptions {
|
|
73
|
-
showBoxPlot: boolean;
|
|
74
|
-
showStocsy: boolean;
|
|
75
|
-
scaleRatio: number;
|
|
76
|
-
chemicalShift: number | null;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
72
|
export const getDefaultTwoDimensionsPhaseCorrectionTraceOptions =
|
|
80
73
|
(): TwoDimensionPhaseCorrection['traces'] => {
|
|
81
74
|
const directions: [TraceDirection, TraceDirection] = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NmrData2DFt } from 'cheminfo-types';
|
|
2
|
-
import { extent } from 'd3';
|
|
3
2
|
import type { Numeric } from 'd3';
|
|
3
|
+
import { extent } from 'd3';
|
|
4
4
|
import type { Draft } from 'immer';
|
|
5
5
|
import type {
|
|
6
6
|
NucleiPreferences,
|
|
@@ -408,7 +408,6 @@ function handleMoveOverXAxis(draft: Draft<State>, action: MoveAction) {
|
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
export {
|
|
411
|
-
getDomain,
|
|
412
411
|
get2DDomain,
|
|
413
412
|
setDomain,
|
|
414
413
|
setMode,
|
|
@@ -276,7 +276,7 @@ function getFilterUpdateDomainRules(
|
|
|
276
276
|
return filterDomainUpdateRules || defaultRule;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
|
|
279
|
+
interface RollbackSpectrumByFilterOptions {
|
|
280
280
|
applyFilter?: boolean;
|
|
281
281
|
reset?: boolean;
|
|
282
282
|
searchBy?: 'id' | 'name';
|
|
@@ -671,7 +671,11 @@ function handleShiftSpectrumAlongXAxis(
|
|
|
671
671
|
|
|
672
672
|
if (isOneDimensionShift(options) && isSpectrum1D(datum)) {
|
|
673
673
|
const { shift } = options;
|
|
674
|
-
|
|
674
|
+
rollbackSpectrumByFilter(draft, {
|
|
675
|
+
key: 'shiftX',
|
|
676
|
+
searchBy: 'name',
|
|
677
|
+
applyFilter: false,
|
|
678
|
+
});
|
|
675
679
|
Filters1DManager.applyFilters(datum, [
|
|
676
680
|
{ name: 'shiftX', value: { shift } },
|
|
677
681
|
]);
|
|
@@ -683,6 +687,11 @@ function handleShiftSpectrumAlongXAxis(
|
|
|
683
687
|
const { shiftX, shiftY } = options;
|
|
684
688
|
|
|
685
689
|
if (shiftX) {
|
|
690
|
+
rollbackSpectrumByFilter(draft, {
|
|
691
|
+
key: 'shift2DX',
|
|
692
|
+
searchBy: 'name',
|
|
693
|
+
applyFilter: false,
|
|
694
|
+
});
|
|
686
695
|
Filters2DManager.applyFilters(datum, [
|
|
687
696
|
{ name: 'shift2DX', value: { shift: shiftX } },
|
|
688
697
|
]);
|
|
@@ -690,6 +699,11 @@ function handleShiftSpectrumAlongXAxis(
|
|
|
690
699
|
}
|
|
691
700
|
|
|
692
701
|
if (shiftY) {
|
|
702
|
+
rollbackSpectrumByFilter(draft, {
|
|
703
|
+
key: 'shift2DY',
|
|
704
|
+
searchBy: 'name',
|
|
705
|
+
applyFilter: false,
|
|
706
|
+
});
|
|
693
707
|
Filters2DManager.applyFilters(datum, [
|
|
694
708
|
{ name: 'shift2DY', value: { shift: shiftY } },
|
|
695
709
|
]);
|
|
@@ -97,6 +97,7 @@ function setData(draft: Draft<State>, input: InputProps) {
|
|
|
97
97
|
oneDimension: [],
|
|
98
98
|
twoDimensions: [],
|
|
99
99
|
highlightColor: '#ffd70080',
|
|
100
|
+
indicatorLineColor: '#2FFF0085',
|
|
100
101
|
},
|
|
101
102
|
} = input || {
|
|
102
103
|
nmriumState: { data: { spectra: [], molecules: [], correlations: {} } },
|
|
@@ -274,4 +275,4 @@ function handleLoadDropFiles(draft: Draft<State>, action: LoadDropFilesAction) {
|
|
|
274
275
|
}
|
|
275
276
|
}
|
|
276
277
|
|
|
277
|
-
export { handleSetIsLoading,
|
|
278
|
+
export { handleSetIsLoading, handleInitiate, handleLoadDropFiles };
|
|
@@ -45,6 +45,7 @@ import type { ActionType } from '../types/ActionType.js';
|
|
|
45
45
|
|
|
46
46
|
import { handleUpdateCorrelations } from './CorrelationsActions.js';
|
|
47
47
|
import { setDomain } from './DomainActions.js';
|
|
48
|
+
import { rollbackSpectrumByFilter } from './FiltersActions.js';
|
|
48
49
|
import { toggleDisplayingPeaks } from './PeaksActions.js';
|
|
49
50
|
import { resetSelectedTool } from './ToolsActions.js';
|
|
50
51
|
|
|
@@ -551,6 +552,11 @@ function handleChangeRangeSignalValue(
|
|
|
551
552
|
signalID,
|
|
552
553
|
newSignalValue: value,
|
|
553
554
|
});
|
|
555
|
+
rollbackSpectrumByFilter(draft, {
|
|
556
|
+
key: 'shiftX',
|
|
557
|
+
searchBy: 'name',
|
|
558
|
+
applyFilter: false,
|
|
559
|
+
});
|
|
554
560
|
Filters1DManager.applyFilters(draft.data[index], [
|
|
555
561
|
{ name: 'shiftX', value: { shift } },
|
|
556
562
|
]);
|
|
@@ -547,6 +547,11 @@ function handleAlignSpectraHandler(
|
|
|
547
547
|
!datum.info?.isFid
|
|
548
548
|
) {
|
|
549
549
|
const shift = getReferenceShift(datum, { ...action.payload });
|
|
550
|
+
rollbackSpectrumByFilter(draft, {
|
|
551
|
+
key: 'shiftX',
|
|
552
|
+
searchBy: 'name',
|
|
553
|
+
applyFilter: false,
|
|
554
|
+
});
|
|
550
555
|
Filters1DManager.applyFilters(datum as Spectrum1D, [
|
|
551
556
|
{
|
|
552
557
|
name: 'shiftX',
|
|
@@ -43,7 +43,7 @@ function preparePush(historyStack) {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
function popZoomHistory(historyStack, baseZoom?: HistoryItem) {
|
|
47
47
|
const val = historyStack.pop();
|
|
48
48
|
|
|
49
49
|
if (val && historyStack.length === 0) {
|
|
@@ -5,16 +5,8 @@ interface RangeOptions {
|
|
|
5
5
|
endX: number;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export function
|
|
9
|
-
|
|
10
|
-
if (start > end) {
|
|
11
|
-
range[0] = end;
|
|
12
|
-
range[1] = start;
|
|
13
|
-
} else {
|
|
14
|
-
range[0] = start;
|
|
15
|
-
range[1] = end;
|
|
16
|
-
}
|
|
17
|
-
return range;
|
|
8
|
+
export function sortRange(start: number, end: number): [number, number] {
|
|
9
|
+
return start > end ? [end, start] : [start, end];
|
|
18
10
|
}
|
|
19
11
|
|
|
20
12
|
export default function getRange(
|
|
@@ -26,5 +18,5 @@ export default function getRange(
|
|
|
26
18
|
|
|
27
19
|
const start = scaleX.invert(startX);
|
|
28
20
|
const end = scaleX.invert(endX);
|
|
29
|
-
return
|
|
21
|
+
return sortRange(start, end);
|
|
30
22
|
}
|