nmrium 0.18.0 → 0.19.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/BaseLineZones.js +1 -1
- package/lib/component/1d/Chart1D.js +4 -2
- package/lib/component/1d/ExclusionZone.js +6 -3
- package/lib/component/1d/ExclusionZones.js +1 -1
- package/lib/component/1d/FooterBanner.js +8 -38
- package/lib/component/1d/Integral.d.ts +2 -8
- package/lib/component/1d/Integral.js +10 -32
- package/lib/component/1d/IntegralResizable.js +9 -6
- package/lib/component/1d/IntegralsSeries.js +6 -17
- package/lib/component/1d/Line.js +12 -14
- package/lib/component/1d/LinesSeries.js +3 -2
- package/lib/component/1d/PeakAnnotation.d.ts +13 -0
- package/lib/component/1d/PeakAnnotation.js +120 -0
- package/lib/component/1d/PeakAnnotations.d.ts +3 -0
- package/lib/component/1d/{PeaksNotations.js → PeakAnnotations.js} +11 -23
- package/lib/component/1d/Resizable.js +3 -3
- package/lib/component/1d/ResurrectedDatabaseRanges.d.ts +3 -0
- package/lib/component/1d/ResurrectedDatabaseRanges.js +57 -0
- package/lib/component/1d/SpectraTracker.js +10 -9
- package/lib/component/1d/Viewer1D.js +21 -33
- package/lib/component/1d/XAxis.js +1 -1
- package/lib/component/1d/YAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.d.ts +2 -0
- package/lib/component/1d/jCouplingGraph/JGraph.js +46 -0
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +10 -0
- package/lib/component/1d/jCouplingGraph/JGraphContext.js +14 -0
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts +2 -0
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +11 -0
- package/lib/component/1d/jCouplingGraph/JsCoupling.d.ts +6 -0
- package/lib/component/1d/jCouplingGraph/JsCoupling.js +10 -0
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts +7 -0
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +26 -0
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +7 -0
- package/lib/component/1d/jCouplingGraph/JsCouplings.js +13 -0
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +2 -6
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +44 -34
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +2 -2
- package/lib/component/1d/multiplicityTree/StringNode.js +1 -1
- package/lib/component/1d/multiplicityTree/TreeNodes.js +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.d.ts +2 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.js +6 -2
- package/lib/component/1d/ranges/Range.d.ts +2 -2
- package/lib/component/1d/ranges/Range.js +7 -7
- package/lib/component/1d/ranges/RangeIntegral.d.ts +11 -0
- package/lib/component/1d/ranges/RangeIntegral.js +11 -0
- package/lib/component/1d/ranges/Ranges.js +13 -11
- package/lib/component/1d/tool/PeakPointer.js +19 -20
- package/lib/component/1d/tool/XLabelPointer.js +2 -2
- package/lib/component/1d/utilities/getVerticalShift.d.ts +5 -0
- package/lib/component/1d/utilities/getVerticalShift.js +9 -0
- package/lib/component/1d/utilities/scale.d.ts +6 -1
- package/lib/component/1d/utilities/scale.js +12 -4
- package/lib/component/1d/utilities/useIntegralPath.d.ts +4 -0
- package/lib/component/1d/utilities/useIntegralPath.js +64 -0
- package/lib/component/2d/Chart2D.d.ts +3 -8
- package/lib/component/2d/Chart2D.js +4 -4
- package/lib/component/2d/Contours.js +2 -2
- package/lib/component/2d/FooterBanner.js +5 -3
- package/lib/component/2d/Left1DChart.d.ts +2 -7
- package/lib/component/2d/Left1DChart.js +17 -11
- package/lib/component/2d/Top1DChart.d.ts +2 -7
- package/lib/component/2d/Top1DChart.js +16 -8
- package/lib/component/2d/Viewer2D.d.ts +6 -0
- package/lib/component/2d/Viewer2D.js +14 -19
- package/lib/component/2d/XAxis.js +1 -1
- package/lib/component/2d/YAxis.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib/component/2d/tools/slicing/HorizontalSliceChart.js +6 -7
- package/lib/component/2d/tools/slicing/SlicingView.js +2 -2
- package/lib/component/2d/tools/slicing/VerticalSliceChart.js +7 -10
- package/lib/component/2d/zones/Signal.d.ts +2 -2
- package/lib/component/2d/zones/Signal.js +4 -3
- package/lib/component/2d/zones/SignalCrosshair.d.ts +2 -2
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.js +7 -4
- package/lib/component/2d/zones/Zones.js +3 -3
- package/lib/component/ErrorOverlay.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +28 -17
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/NMRium.d.ts +4 -4
- package/lib/component/NMRium.js +36 -59
- package/lib/component/assignment/index.js +1 -1
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBox.d.ts +3 -4
- package/lib/component/elements/CheckBox.js +4 -5
- package/lib/component/elements/CloseButton.js +1 -1
- package/lib/component/elements/ColorInput.js +1 -1
- package/lib/component/elements/ContextMenu.d.ts +2 -4
- package/lib/component/elements/ContextMenu.js +4 -4
- package/lib/component/elements/DeleteButton.js +1 -1
- package/lib/component/elements/EditableColumn.d.ts +1 -3
- package/lib/component/elements/EditableColumn.js +4 -4
- package/lib/component/elements/Input.d.ts +6 -7
- package/lib/component/elements/Input.js +34 -15
- package/lib/component/elements/InputRange.d.ts +1 -3
- package/lib/component/elements/InputRange.js +6 -5
- package/lib/component/elements/IsotopesViewer.js +5 -3
- package/lib/component/elements/Label.d.ts +12 -0
- package/lib/component/elements/Label.js +12 -0
- package/lib/component/elements/Logo.js +1 -1
- package/lib/component/elements/MenuButton.d.ts +1 -2
- package/lib/component/elements/MenuButton.js +8 -8
- package/lib/component/elements/MolecularFormulaInput.js +4 -1
- package/lib/component/elements/MoleculeSelection.d.ts +1 -0
- package/lib/component/elements/MoleculeSelection.js +6 -5
- package/lib/component/elements/NextPrev.js +7 -7
- package/lib/component/elements/NumberInput.d.ts +1 -3
- package/lib/component/elements/NumberInput.js +3 -4
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +4 -3
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +4 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +6 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +46 -19
- package/lib/component/elements/ReactTable/ReactTable.d.ts +15 -1
- package/lib/component/elements/ReactTable/ReactTable.js +118 -7
- package/lib/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +5 -5
- package/lib/component/elements/ReactTable/Style.js +3 -3
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts +4 -0
- package/lib/component/elements/ReactTable/utility/ReactTableContext.js +10 -0
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +18 -0
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +14 -0
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +2 -0
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +39 -0
- package/lib/component/elements/SaveButton.js +1 -1
- package/lib/component/elements/Select.d.ts +7 -8
- package/lib/component/elements/Select.js +4 -4
- package/lib/component/elements/Tab/DeleteButton.js +1 -1
- package/lib/component/elements/Tab/Tab.js +2 -2
- package/lib/component/elements/Tab/Tabs.d.ts +1 -1
- package/lib/component/elements/Tab/Tabs.js +5 -3
- package/lib/component/elements/Table/Table.js +1 -1
- package/lib/component/elements/Table/TableBody.js +1 -1
- package/lib/component/elements/Table/TableCell.js +2 -2
- package/lib/component/elements/Table/TableHead.js +1 -1
- package/lib/component/elements/Table/TableRow.js +1 -1
- package/lib/component/elements/ToggleButton.d.ts +2 -1
- package/lib/component/elements/ToggleButton.js +5 -4
- package/lib/component/elements/ToolTip/ToolTip.js +4 -4
- package/lib/component/elements/ToolbarMenu.d.ts +8 -0
- package/lib/component/elements/ToolbarMenu.js +102 -0
- package/lib/component/elements/accordion/Accordion.js +1 -1
- package/lib/component/elements/accordion/AccordionItem.js +4 -4
- package/lib/component/elements/dropDownButton/DropDownButton.js +1 -1
- package/lib/component/elements/dropDownButton/DropDownList.js +1 -1
- package/lib/component/elements/formik/ErrorMessage.js +1 -1
- package/lib/component/elements/formik/FormikCheckBox.d.ts +6 -2
- package/lib/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib/component/elements/formik/FormikColorInput.js +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.d.ts +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib/component/elements/formik/FormikErrorsSummary.js +3 -3
- package/lib/component/elements/formik/FormikForm.d.ts +2 -5
- package/lib/component/elements/formik/FormikForm.js +4 -4
- package/lib/component/elements/formik/FormikInput.js +4 -4
- package/lib/component/elements/formik/FormikNumberInput.js +1 -1
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/elements/formik/FormikSlider.js +1 -1
- package/lib/component/elements/formik/FormikTextarea.d.ts +9 -0
- package/lib/component/elements/formik/FormikTextarea.js +29 -0
- package/lib/component/elements/formik/Input.js +1 -1
- package/lib/component/elements/formik/SelectBox.js +2 -2
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +21 -0
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +15 -0
- package/lib/component/elements/popup/Alert/Provider.js +8 -8
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +7 -7
- package/lib/component/elements/popup/Modal/Modal.js +2 -2
- package/lib/component/elements/popup/Modal/ModalContent.js +3 -3
- package/lib/component/elements/popup/Modal/Provider.js +8 -8
- package/lib/component/elements/popup/Transition.js +2 -2
- package/lib/component/elements/popup/Wrapper.js +1 -1
- package/lib/component/elements/toggle/ToggleButton.d.ts +7 -10
- package/lib/component/elements/toggle/ToggleButton.js +7 -25
- package/lib/component/elements/toggle/ToggleButtonGroup.js +2 -3
- package/lib/component/header/AutoPeakPickingOptionPanel.js +2 -3
- package/lib/component/header/BaseLineCorrectionPanel.js +3 -1
- package/lib/component/header/Header.d.ts +3 -3
- package/lib/component/header/Header.js +13 -57
- package/lib/component/header/ManualPhaseCorrectionPanel.js +7 -6
- package/lib/component/header/RangesPickingOptionPanel.js +15 -8
- package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib/component/header/Zones2DOptionPanel.js +2 -2
- package/lib/component/highlight/index.d.ts +42 -17
- package/lib/component/highlight/index.js +76 -59
- package/lib/component/hooks/useCheckExperimentalFeature.d.ts +1 -0
- package/lib/component/hooks/useCheckExperimentalFeature.js +8 -0
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +2 -2
- package/lib/component/hooks/useExport.js +5 -5
- package/lib/component/hooks/useSpectraPerNucleus.d.ts +3 -3
- package/lib/component/hooks/useSpectrum.d.ts +3 -3
- package/lib/component/hooks/useToolsFunctions.js +12 -2
- package/lib/component/hooks/useXYReduce.d.ts +10 -0
- package/lib/component/hooks/useXYReduce.js +16 -0
- package/lib/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib/component/loader/DropZone.js +6 -1
- package/lib/component/loader/NoData.js +1 -1
- package/lib/component/modal/AboutUsModal.js +3 -3
- package/lib/component/modal/AlignSpectraModal.js +2 -1
- package/lib/component/modal/CopyClipboardModal.js +2 -2
- package/lib/component/modal/ExportAsMatrixModal.js +2 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts +5 -0
- package/lib/component/modal/ImportPublicationStringModal.js +54 -0
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.d.ts +2 -4
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +5 -4
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.d.ts +2 -4
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +4 -3
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +6 -2
- package/lib/component/modal/MultipletAnalysisModal.d.ts +4 -2
- package/lib/component/modal/MultipletAnalysisModal.js +13 -8
- package/lib/component/modal/PredictSpectraModal.js +2 -1
- package/lib/component/modal/SaveAsModal.js +18 -4
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +13 -5
- package/lib/component/modal/changeSum/ChangeSumModal.js +118 -14
- package/lib/component/modal/changeSum/SelectMolecule.d.ts +2 -4
- package/lib/component/modal/changeSum/SelectMolecule.js +42 -64
- package/lib/component/modal/editRange/EditRangeModal.js +1 -2
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.d.ts +1 -3
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +11 -11
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +6 -9
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +4 -6
- package/lib/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +7 -7
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts +169 -169
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +1 -1
- package/lib/component/modal/setting/ControllersTabContent.js +2 -2
- package/lib/component/modal/setting/DisplayTabContent.js +9 -1
- package/lib/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib/component/modal/setting/GeneralSettings.js +3 -3
- package/lib/component/nmriumMode/basic.d.ts +2 -0
- package/lib/component/nmriumMode/basic.js +2 -0
- package/lib/component/nmriumMode/exercise1D.d.ts +1 -0
- package/lib/component/nmriumMode/exercise1D.js +1 -0
- package/lib/component/nmriumMode/process1D.d.ts +1 -0
- package/lib/component/nmriumMode/process1D.js +1 -0
- package/lib/component/panels/InformationPanel.js +6 -5
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +2 -4
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +28 -26
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +46 -41
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +9 -9
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +11 -15
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +2 -2
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +9 -18
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +11 -14
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.d.ts +7 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/{MulipleAnalysisCodeEditor.js → MultipleAnalysisCodeEditor.js} +5 -5
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +23 -17
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.d.ts +2 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +7 -7
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +20 -22
- package/lib/component/panels/Panels.d.ts +1 -0
- package/lib/component/panels/Panels.js +28 -31
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +1 -2
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +21 -15
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +5 -5
- package/lib/component/panels/PeaksPanel/PeaksTable.js +62 -54
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +4 -5
- package/lib/component/panels/RangesPanel/RangesHeader.js +41 -40
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts +1 -2
- package/lib/component/panels/RangesPanel/RangesPanel.js +44 -72
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +16 -16
- package/lib/component/panels/RangesPanel/RangesTable.js +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js +5 -5
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +7 -6
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -7
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +2 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.d.ts +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +4 -4
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +4 -4
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +4 -4
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +84 -89
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +2 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +68 -21
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +6 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +7 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +10 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +85 -38
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.d.ts +6 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +41 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.d.ts +8 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +115 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +10 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +80 -0
- package/lib/component/panels/SummaryPanel/Overview.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/Overview.js +17 -5
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +44 -21
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +134 -88
- package/lib/component/panels/SummaryPanel/Utilities.d.ts +23 -7
- package/lib/component/panels/SummaryPanel/Utilities.js +159 -50
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +4 -4
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +4 -4
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +39 -37
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +5 -5
- package/lib/component/panels/ZonesPanel/ZonesTable.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -2
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +5 -0
- package/lib/component/panels/databasePanel/DatabasePanel.js +200 -0
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +3 -0
- package/lib/component/panels/databasePanel/DatabasePreferences.js +81 -0
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +8 -0
- package/lib/component/panels/databasePanel/DatabaseTable.js +116 -0
- package/lib/component/panels/extra/BasicPanelStyle.d.ts +1 -0
- package/lib/component/panels/extra/BasicPanelStyle.js +20 -0
- package/lib/component/panels/extra/placeholder/NoTableData.js +13 -7
- package/lib/component/panels/extra/preferences/defaultValues.d.ts +13 -2
- package/lib/component/panels/extra/preferences/defaultValues.js +14 -3
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib/component/panels/header/DefaultPanelHeader.d.ts +5 -2
- package/lib/component/panels/header/DefaultPanelHeader.js +12 -21
- package/lib/component/panels/header/PreferencesHeader.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +0 -1
- package/lib/component/reducer/Reducer.d.ts +316 -201
- package/lib/component/reducer/Reducer.js +42 -32
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +7 -2
- package/lib/component/reducer/actions/CorrelationsActions.js +56 -6
- package/lib/component/reducer/actions/DatabaseActions.d.ts +4 -0
- package/lib/component/reducer/actions/DatabaseActions.js +11 -0
- package/lib/component/reducer/actions/DomainActions.d.ts +8 -4
- package/lib/component/reducer/actions/DomainActions.js +11 -32
- package/lib/component/reducer/actions/FiltersActions.js +3 -20
- package/lib/component/reducer/actions/IntegralsActions.d.ts +3 -4
- package/lib/component/reducer/actions/IntegralsActions.js +26 -47
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -1
- package/lib/component/reducer/actions/LoadActions.js +38 -15
- package/lib/component/reducer/actions/MoleculeActions.js +28 -4
- package/lib/component/reducer/actions/PeaksActions.js +14 -10
- package/lib/component/reducer/actions/PreferencesActions.d.ts +5 -4
- package/lib/component/reducer/actions/PreferencesActions.js +32 -14
- package/lib/component/reducer/actions/RangesActions.d.ts +8 -5
- package/lib/component/reducer/actions/RangesActions.js +86 -36
- package/lib/component/reducer/actions/{SpectraAanalysisAction.d.ts → SpectraAnalysisAction.d.ts} +0 -0
- package/lib/component/reducer/actions/{SpectraAanalysisAction.js → SpectraAnalysisAction.js} +0 -0
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +3 -2
- package/lib/component/reducer/actions/SpectrumsActions.js +23 -9
- package/lib/component/reducer/actions/ToolsActions.d.ts +7 -1
- package/lib/component/reducer/actions/ToolsActions.js +26 -43
- package/lib/component/reducer/actions/ZonesActions.d.ts +2 -1
- package/lib/component/reducer/actions/ZonesActions.js +43 -15
- package/lib/component/reducer/actions/Zoom.d.ts +2 -3
- package/lib/component/reducer/actions/Zoom.js +9 -22
- package/lib/component/reducer/helper/Zoom1DManager.js +1 -1
- package/lib/component/reducer/preferencesReducer.d.ts +22 -4
- package/lib/component/reducer/preferencesReducer.js +6 -7
- package/lib/component/reducer/types/Types.d.ts +7 -2
- package/lib/component/reducer/types/Types.js +7 -2
- package/lib/component/tool/BrushX.js +2 -2
- package/lib/component/tool/BrushXY.js +3 -2
- package/lib/component/tool/CrossLinePointer.js +3 -2
- package/lib/component/toolbar/BasicToolBar.d.ts +2 -1
- package/lib/component/toolbar/BasicToolBar.js +42 -49
- package/lib/component/toolbar/FunctionToolBar.d.ts +2 -1
- package/lib/component/toolbar/FunctionToolBar.js +27 -59
- package/lib/component/toolbar/HistoryToolBar.js +4 -4
- package/lib/component/toolbar/ToolBar.js +3 -11
- package/lib/component/toolbar/ToolTypes.d.ts +1 -1
- package/lib/component/toolbar/ToolTypes.js +8 -2
- package/lib/component/utility/Evaluate.js +0 -1
- package/lib/component/utility/Export.js +3 -5
- package/lib/component/utility/FileUtility.js +2 -5
- package/lib/component/utility/FormatNumber.js +1 -1
- package/lib/component/utility/GroupByInfoKey.js +1 -1
- package/lib/component/utility/util/nmredata/addRanges.js +2 -2
- package/lib/component/utility/util/nmredata/addSource.js +1 -1
- package/lib/component/utility/util/nmredata/addZones.js +3 -3
- package/lib/component/utility/util/nmredata/get1DSignals.js +2 -2
- package/lib/data/Filters.d.ts +17 -34
- package/lib/data/Filters.js +1 -18
- package/lib/data/FiltersManager.js +2 -1
- package/lib/data/PredictionManager.d.ts +4 -3
- package/lib/data/PredictionManager.js +14 -13
- package/lib/data/SpectraManager.d.ts +18 -13
- package/lib/data/SpectraManager.js +26 -14
- package/lib/data/data1d/Data1DManager.d.ts +3 -3
- package/lib/data/data1d/Data1DManager.js +3 -5
- package/lib/data/data1d/MultipleAnalysis.d.ts +2 -2
- package/lib/data/data1d/MultipleAnalysis.js +3 -5
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +34 -0
- package/lib/data/data1d/Spectrum1D/SumManager.js +84 -0
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +21 -0
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +82 -0
- package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.d.ts +3 -0
- package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.js +6 -0
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +15 -0
- package/lib/data/data1d/Spectrum1D/get1DDataXY.js +14 -0
- package/lib/data/data1d/{getReferenceShift.d.ts → Spectrum1D/getReferenceShift.d.ts} +1 -7
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js +55 -0
- package/lib/data/data1d/Spectrum1D/index.d.ts +24 -0
- package/lib/data/data1d/Spectrum1D/index.js +24 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +89 -0
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +5 -0
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +23 -0
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.d.ts +7 -0
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.js +9 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +5 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +30 -0
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +3 -0
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +3 -0
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +2 -0
- package/lib/data/data1d/{autoPeakPicking.js → Spectrum1D/peaks/autoPeakPicking.js} +8 -9
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.d.ts +17 -0
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +18 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +8 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +33 -0
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +2 -0
- package/lib/data/data1d/{autoRangesDetection.js → Spectrum1D/ranges/autoRangesDetection.js} +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +18 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +12 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +26 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +8 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +13 -0
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js +5 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts +7 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +22 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +20 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +15 -0
- package/lib/data/data1d/{detectSignal.d.ts → Spectrum1D/ranges/detectSignal.d.ts} +1 -1
- package/lib/data/data1d/{detectSignal.js → Spectrum1D/ranges/detectSignal.js} +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +9 -0
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +24 -0
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +38 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +5 -0
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.js +6 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +7 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +12 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +12 -0
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.js +10 -0
- package/lib/data/data1d/Spectrum1D/toJSON.d.ts +26 -0
- package/lib/data/data1d/Spectrum1D/toJSON.js +27 -0
- package/lib/data/data1d/database.d.ts +30 -0
- package/lib/data/data1d/database.js +87 -0
- package/lib/data/data1d/filter1d/absolute.d.ts +5 -5
- package/lib/data/data1d/filter1d/autoPhaseCorrection.d.ts +9 -5
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +13 -9
- package/lib/data/data1d/filter1d/baselineCorrection.js +0 -8
- package/lib/data/data1d/filter1d/centerMean.d.ts +5 -5
- package/lib/data/data1d/filter1d/digitalFilter.d.ts +5 -5
- package/lib/data/data1d/filter1d/equallySpaced.d.ts +5 -5
- package/lib/data/data1d/filter1d/fft.d.ts +5 -5
- package/lib/data/data1d/filter1d/fft.js +1 -1
- package/lib/data/data1d/filter1d/fromTo.d.ts +5 -5
- package/lib/data/data1d/filter1d/lineBroadening.d.ts +5 -5
- package/lib/data/data1d/filter1d/pareto.d.ts +5 -5
- package/lib/data/data1d/filter1d/phaseCorrection.d.ts +5 -8
- package/lib/data/data1d/filter1d/shiftX.d.ts +8 -8
- package/lib/data/data1d/filter1d/shiftX.js +0 -3
- package/lib/data/data1d/filter1d/standardDeviation.d.ts +5 -5
- package/lib/data/data1d/filter1d/zeroFilling.d.ts +5 -5
- package/lib/data/data2d/Data2DManager.d.ts +3 -3
- package/lib/data/data2d/Data2DManager.js +2 -1
- package/lib/data/data2d/Processing2D.d.ts +20 -44
- package/lib/data/data2d/Processing2D.js +2 -2
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +6 -0
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js +40 -0
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +14 -0
- package/lib/data/data2d/Spectrum2D/getSlice.js +43 -0
- package/lib/data/data2d/Spectrum2D/index.d.ts +11 -0
- package/lib/data/data2d/Spectrum2D/index.js +11 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +55 -0
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +3 -0
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +3 -0
- package/lib/data/data2d/Spectrum2D/shift/getShift.d.ts +5 -0
- package/lib/data/data2d/Spectrum2D/shift/getShift.js +16 -0
- package/lib/data/data2d/Spectrum2D/shift/updateShift.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/shift/updateShift.js +18 -0
- package/lib/data/data2d/Spectrum2D/toJSON.d.ts +22 -0
- package/lib/data/data2d/Spectrum2D/toJSON.js +25 -0
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +13 -0
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +26 -0
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +3 -0
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +48 -0
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +14 -0
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +44 -0
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +24 -0
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +79 -0
- package/lib/data/data2d/filter2d/shiftX.d.ts +8 -8
- package/lib/data/data2d/filter2d/shiftX.js +0 -3
- package/lib/data/data2d/filter2d/shiftY.d.ts +8 -8
- package/lib/data/data2d/filter2d/shiftY.js +0 -3
- package/lib/data/defaults/13c.d.ts +3 -3
- package/lib/data/defaults/1h.d.ts +3 -3
- package/lib/data/defaults/default.d.ts +1 -1
- package/lib/data/migration/MigrationManager.d.ts +2 -0
- package/lib/data/migration/MigrationManager.js +14 -0
- package/lib/data/migration/changeKeys.d.ts +1 -0
- package/lib/data/migration/changeKeys.js +9 -0
- package/lib/data/migration/migrateToVersion1.d.ts +11 -0
- package/lib/data/migration/migrateToVersion1.js +32 -0
- package/lib/data/migration/migrateToVersion2.d.ts +1 -0
- package/lib/data/migration/migrateToVersion2.js +111 -0
- package/lib/data/molecules/Molecule.d.ts +10 -15
- package/lib/data/molecules/Molecule.js +12 -10
- package/lib/data/molecules/MoleculeManager.d.ts +4 -3
- package/lib/data/molecules/MoleculeManager.js +7 -22
- package/lib/data/types/common/File.d.ts +5 -0
- package/lib/data/types/common/File.js +1 -0
- package/lib/data/types/common/Source.d.ts +4 -0
- package/lib/data/types/common/Source.js +1 -0
- package/lib/data/types/data1d/Data1D.d.ts +5 -0
- package/lib/data/types/data1d/Data1D.js +1 -0
- package/lib/data/types/data1d/Datum1D.d.ts +22 -0
- package/lib/data/types/data1d/Datum1D.js +1 -0
- package/lib/data/types/data1d/Display1D.d.ts +7 -0
- package/lib/data/types/data1d/Display1D.js +1 -0
- package/lib/data/types/data1d/Info1D.d.ts +10 -0
- package/lib/data/types/data1d/Info1D.js +1 -0
- package/lib/data/types/data1d/Integral.d.ts +10 -0
- package/lib/data/types/data1d/Integral.js +1 -0
- package/lib/data/types/data1d/Integrals.d.ts +6 -0
- package/lib/data/types/data1d/Integrals.js +1 -0
- package/lib/data/types/data1d/Peak.d.ts +5 -0
- package/lib/data/types/data1d/Peak.js +1 -0
- package/lib/data/types/data1d/Peaks.d.ts +5 -0
- package/lib/data/types/data1d/Peaks.js +1 -0
- package/lib/data/types/data1d/Range.d.ts +11 -0
- package/lib/data/types/data1d/Range.js +1 -0
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +6 -0
- package/lib/data/types/data1d/RangeDetectionResult.js +1 -0
- package/lib/data/types/data1d/Ranges.d.ts +6 -0
- package/lib/data/types/data1d/Ranges.js +1 -0
- package/lib/data/types/data1d/Signal1D.d.ts +5 -0
- package/lib/data/types/data1d/Signal1D.js +1 -0
- package/lib/data/types/data1d/SumOptions.d.ts +7 -0
- package/lib/data/types/data1d/SumOptions.js +1 -0
- package/lib/data/types/data1d/index.d.ts +13 -0
- package/lib/data/types/data1d/index.js +1 -0
- package/lib/data/types/data2d/Contour.d.ts +4 -0
- package/lib/data/types/data2d/Contour.js +1 -0
- package/lib/data/types/data2d/ContourOptions.d.ts +10 -0
- package/lib/data/types/data2d/ContourOptions.js +1 -0
- package/lib/data/types/data2d/Contours.d.ts +2 -0
- package/lib/data/types/data2d/Contours.js +1 -0
- package/lib/data/types/data2d/Data2D.d.ts +7 -0
- package/lib/data/types/data2d/Data2D.js +1 -0
- package/lib/data/types/data2d/Datum2D.d.ts +19 -0
- package/lib/data/types/data2d/Datum2D.js +1 -0
- package/lib/data/types/data2d/Display2D.d.ts +10 -0
- package/lib/data/types/data2d/Display2D.js +1 -0
- package/lib/data/types/data2d/Info2D.d.ts +8 -0
- package/lib/data/types/data2d/Info2D.js +1 -0
- package/lib/data/types/data2d/Signal2D.d.ts +7 -0
- package/lib/data/types/data2d/Signal2D.js +1 -0
- package/lib/data/types/data2d/Signal2DAxisData.d.ts +4 -0
- package/lib/data/types/data2d/Signal2DAxisData.js +1 -0
- package/lib/data/types/data2d/Zone.d.ts +9 -0
- package/lib/data/types/data2d/Zone.js +1 -0
- package/lib/data/types/data2d/Zone2DAxisData.d.ts +6 -0
- package/lib/data/types/data2d/Zone2DAxisData.js +1 -0
- package/lib/data/types/data2d/Zones.d.ts +7 -0
- package/lib/data/types/data2d/Zones.js +1 -0
- package/lib/data/types/data2d/index.d.ts +9 -0
- package/lib/data/types/data2d/index.js +1 -0
- package/lib/data/utilities/Concatenation.d.ts +2 -2
- package/lib/data/utilities/FindUtilities.d.ts +10 -0
- package/lib/data/utilities/FindUtilities.js +57 -0
- package/lib/data/utilities/RangeUtilities.d.ts +10 -11
- package/lib/data/utilities/RangeUtilities.js +20 -9
- package/lib/data/utilities/ZoneUtilities.d.ts +9 -8
- package/lib/data/utilities/ZoneUtilities.js +19 -12
- package/lib/data/utilities/checkModifierKeyActivated.d.ts +2 -1
- package/lib/data/utilities/generateChar.d.ts +1 -1
- package/lib/data/utilities/generateChar.js +1 -1
- package/lib/data/utilities/getAtom.d.ts +1 -0
- package/lib/data/utilities/getAtom.js +3 -0
- package/lib/data/utilities/getAtomsFromMF.d.ts +1 -1
- package/lib/data/utilities/getAtomsFromMF.js +2 -8
- package/lib/data/utilities/getColor.d.ts +8 -6
- package/lib/data/utilities/getColor.js +3 -7
- package/lib/data/utilities/getSum.d.ts +8 -0
- package/lib/data/utilities/getSum.js +14 -0
- package/lib/types/UsedColors.d.ts +4 -0
- package/lib/types/UsedColors.js +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/BaseLineZones.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +4 -2
- package/lib-cjs/component/1d/ExclusionZone.js +5 -2
- package/lib-cjs/component/1d/ExclusionZones.js +1 -1
- package/lib-cjs/component/1d/FooterBanner.js +8 -38
- package/lib-cjs/component/1d/Integral.js +9 -31
- package/lib-cjs/component/1d/IntegralResizable.js +8 -5
- package/lib-cjs/component/1d/IntegralsSeries.js +5 -16
- package/lib-cjs/component/1d/Line.js +31 -14
- package/lib-cjs/component/1d/LinesSeries.js +3 -2
- package/lib-cjs/component/1d/PeakAnnotation.js +122 -0
- package/lib-cjs/component/1d/{PeaksNotations.js → PeakAnnotations.js} +11 -23
- package/lib-cjs/component/1d/Resizable.js +3 -3
- package/lib-cjs/component/1d/ResurrectedDatabaseRanges.js +62 -0
- package/lib-cjs/component/1d/SpectraTracker.js +10 -9
- package/lib-cjs/component/1d/Viewer1D.js +19 -31
- package/lib-cjs/component/1d/XAxis.js +1 -1
- package/lib-cjs/component/1d/YAxis.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +52 -0
- package/lib-cjs/component/1d/jCouplingGraph/JGraphContext.js +18 -0
- package/lib-cjs/component/1d/jCouplingGraph/JGraphVerticalAxis.js +15 -0
- package/lib-cjs/component/1d/jCouplingGraph/JsCoupling.js +13 -0
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplingLinks.js +29 -0
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplings.js +19 -0
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +43 -33
- package/lib-cjs/component/1d/multiplicityTree/StringNode.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/TreeNodes.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +6 -2
- package/lib-cjs/component/1d/ranges/Range.js +6 -6
- package/lib-cjs/component/1d/ranges/RangeIntegral.js +16 -0
- package/lib-cjs/component/1d/ranges/Ranges.js +12 -10
- package/lib-cjs/component/1d/tool/PeakPointer.js +19 -20
- package/lib-cjs/component/1d/tool/XLabelPointer.js +2 -2
- package/lib-cjs/component/1d/utilities/getVerticalShift.js +12 -0
- package/lib-cjs/component/1d/utilities/scale.js +12 -3
- package/lib-cjs/component/1d/utilities/useIntegralPath.js +67 -0
- package/lib-cjs/component/2d/Chart2D.js +4 -4
- package/lib-cjs/component/2d/Contours.js +2 -2
- package/lib-cjs/component/2d/FooterBanner.js +5 -3
- package/lib-cjs/component/2d/Left1DChart.js +36 -11
- package/lib-cjs/component/2d/Top1DChart.js +35 -8
- package/lib-cjs/component/2d/Viewer2D.js +15 -18
- package/lib-cjs/component/2d/XAxis.js +1 -1
- package/lib-cjs/component/2d/YAxis.js +1 -1
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib-cjs/component/2d/tools/slicing/HorizontalSliceChart.js +25 -7
- package/lib-cjs/component/2d/tools/slicing/SlicingView.js +2 -2
- package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +26 -10
- package/lib-cjs/component/2d/zones/Signal.js +4 -3
- package/lib-cjs/component/2d/zones/Zone.js +6 -3
- package/lib-cjs/component/2d/zones/Zones.js +3 -3
- package/lib-cjs/component/ErrorOverlay.js +1 -1
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +27 -16
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib-cjs/component/NMRium.js +34 -57
- package/lib-cjs/component/assignment/index.js +1 -1
- package/lib-cjs/component/elements/Button.js +1 -1
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBox.js +3 -4
- package/lib-cjs/component/elements/CloseButton.js +1 -1
- package/lib-cjs/component/elements/ColorInput.js +1 -1
- package/lib-cjs/component/elements/ContextMenu.js +3 -3
- package/lib-cjs/component/elements/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/EditableColumn.js +3 -3
- package/lib-cjs/component/elements/Input.js +33 -14
- package/lib-cjs/component/elements/InputRange.js +5 -4
- package/lib-cjs/component/elements/IsotopesViewer.js +5 -3
- package/lib-cjs/component/elements/Label.js +15 -0
- package/lib-cjs/component/elements/Logo.js +1 -1
- package/lib-cjs/component/elements/MenuButton.js +8 -8
- package/lib-cjs/component/elements/MolecularFormulaInput.js +4 -1
- package/lib-cjs/component/elements/MoleculeSelection.js +6 -5
- package/lib-cjs/component/elements/NextPrev.js +7 -7
- package/lib-cjs/component/elements/NumberInput.js +2 -3
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +4 -3
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +45 -18
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +136 -6
- package/lib-cjs/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +5 -5
- package/lib-cjs/component/elements/ReactTable/Style.js +3 -3
- package/lib-cjs/component/elements/ReactTable/utility/ReactTableContext.js +14 -0
- package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +17 -0
- package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +44 -0
- package/lib-cjs/component/elements/SaveButton.js +1 -1
- package/lib-cjs/component/elements/Select.js +3 -3
- package/lib-cjs/component/elements/Tab/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/Tab/Tab.js +2 -2
- package/lib-cjs/component/elements/Tab/Tabs.js +4 -2
- package/lib-cjs/component/elements/Table/Table.js +1 -1
- package/lib-cjs/component/elements/Table/TableBody.js +1 -1
- package/lib-cjs/component/elements/Table/TableCell.js +2 -2
- package/lib-cjs/component/elements/Table/TableHead.js +1 -1
- package/lib-cjs/component/elements/Table/TableRow.js +1 -1
- package/lib-cjs/component/elements/ToggleButton.js +5 -4
- package/lib-cjs/component/elements/ToolTip/ToolTip.js +4 -4
- package/lib-cjs/component/elements/ToolbarMenu.js +105 -0
- package/lib-cjs/component/elements/accordion/Accordion.js +1 -1
- package/lib-cjs/component/elements/accordion/AccordionItem.js +4 -4
- package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +1 -1
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +1 -1
- package/lib-cjs/component/elements/formik/ErrorMessage.js +1 -1
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib-cjs/component/elements/formik/FormikColorInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +3 -3
- package/lib-cjs/component/elements/formik/FormikForm.js +3 -3
- package/lib-cjs/component/elements/formik/FormikInput.js +4 -4
- package/lib-cjs/component/elements/formik/FormikNumberInput.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSlider.js +1 -1
- package/lib-cjs/component/elements/formik/FormikTextarea.js +34 -0
- package/lib-cjs/component/elements/formik/Input.js +1 -1
- package/lib-cjs/component/elements/formik/SelectBox.js +2 -2
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +19 -0
- package/lib-cjs/component/elements/popup/Alert/Provider.js +8 -8
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +7 -7
- package/lib-cjs/component/elements/popup/Modal/Modal.js +2 -2
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +3 -3
- package/lib-cjs/component/elements/popup/Modal/Provider.js +8 -8
- package/lib-cjs/component/elements/popup/Transition.js +2 -2
- package/lib-cjs/component/elements/popup/Wrapper.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButton.js +9 -26
- package/lib-cjs/component/elements/toggle/ToggleButtonGroup.js +1 -2
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +2 -3
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +3 -1
- package/lib-cjs/component/header/Header.js +19 -63
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +27 -7
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +15 -8
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib-cjs/component/header/Zones2DOptionPanel.js +2 -2
- package/lib-cjs/component/highlight/index.js +77 -60
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +11 -0
- package/lib-cjs/component/hooks/useExport.js +5 -5
- package/lib-cjs/component/hooks/useToolsFunctions.js +12 -2
- package/lib-cjs/component/hooks/useXYReduce.js +20 -0
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +6 -1
- package/lib-cjs/component/loader/NoData.js +1 -1
- package/lib-cjs/component/modal/AboutUsModal.js +3 -3
- package/lib-cjs/component/modal/AlignSpectraModal.js +2 -1
- package/lib-cjs/component/modal/CopyClipboardModal.js +2 -2
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +2 -1
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +78 -0
- package/lib-cjs/component/modal/LoadJCAMPModal.js +1 -1
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +5 -4
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +4 -3
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +42 -19
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +13 -8
- package/lib-cjs/component/modal/PredictSpectraModal.js +2 -1
- package/lib-cjs/component/modal/SaveAsModal.js +18 -4
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +136 -13
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +42 -64
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +1 -2
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +10 -10
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +6 -9
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +4 -6
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +7 -7
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +1 -1
- package/lib-cjs/component/modal/setting/ControllersTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +9 -1
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib-cjs/component/modal/setting/GeneralSettings.js +3 -3
- package/lib-cjs/component/nmriumMode/basic.js +2 -0
- package/lib-cjs/component/nmriumMode/exercise1D.js +1 -0
- package/lib-cjs/component/nmriumMode/process1D.js +1 -0
- package/lib-cjs/component/panels/InformationPanel.js +6 -5
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +28 -26
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +45 -40
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +8 -8
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +11 -15
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +2 -2
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +9 -18
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +10 -13
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/{MulipleAnalysisCodeEditor.js → MultipleAnalysisCodeEditor.js} +5 -5
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +35 -29
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +6 -6
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +20 -22
- package/lib-cjs/component/panels/Panels.js +28 -30
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +31 -25
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +4 -4
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +62 -54
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +47 -46
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +55 -83
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +14 -14
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +4 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +6 -5
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -7
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +2 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +81 -86
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +69 -19
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/Constants.js +8 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +10 -5
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +83 -36
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +43 -0
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +121 -0
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +85 -0
- package/lib-cjs/component/panels/SummaryPanel/Overview.js +19 -7
- package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +43 -20
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +132 -86
- package/lib-cjs/component/panels/SummaryPanel/Utilities.js +164 -54
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +4 -4
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +4 -4
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +52 -50
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +4 -4
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +2 -2
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +206 -0
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +86 -0
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +121 -0
- package/lib-cjs/component/panels/extra/BasicPanelStyle.js +23 -0
- package/lib-cjs/component/panels/extra/placeholder/NoTableData.js +13 -7
- package/lib-cjs/component/panels/extra/preferences/defaultValues.js +16 -4
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +12 -21
- package/lib-cjs/component/panels/header/PreferencesHeader.js +1 -1
- package/lib-cjs/component/reducer/IgnoreActions.js +0 -1
- package/lib-cjs/component/reducer/Reducer.js +42 -32
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +57 -6
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +14 -0
- package/lib-cjs/component/reducer/actions/DomainActions.js +11 -33
- package/lib-cjs/component/reducer/actions/FiltersActions.js +11 -28
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +25 -47
- package/lib-cjs/component/reducer/actions/LoadActions.js +38 -15
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +28 -4
- package/lib-cjs/component/reducer/actions/PeaksActions.js +14 -10
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +32 -14
- package/lib-cjs/component/reducer/actions/RangesActions.js +89 -36
- package/lib-cjs/component/reducer/actions/{SpectraAanalysisAction.js → SpectraAnalysisAction.js} +0 -0
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +46 -12
- package/lib-cjs/component/reducer/actions/ToolsActions.js +46 -44
- package/lib-cjs/component/reducer/actions/ZonesActions.js +43 -14
- package/lib-cjs/component/reducer/actions/Zoom.js +9 -23
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +1 -1
- package/lib-cjs/component/reducer/preferencesReducer.js +6 -7
- package/lib-cjs/component/reducer/types/Types.js +10 -5
- package/lib-cjs/component/tool/BrushX.js +2 -2
- package/lib-cjs/component/tool/BrushXY.js +3 -2
- package/lib-cjs/component/tool/CrossLinePointer.js +3 -2
- package/lib-cjs/component/toolbar/BasicToolBar.js +49 -56
- package/lib-cjs/component/toolbar/FunctionToolBar.js +56 -69
- package/lib-cjs/component/toolbar/HistoryToolBar.js +4 -4
- package/lib-cjs/component/toolbar/ToolBar.js +3 -11
- package/lib-cjs/component/toolbar/ToolTypes.js +31 -6
- package/lib-cjs/component/utility/Evaluate.js +0 -1
- package/lib-cjs/component/utility/Export.js +3 -5
- package/lib-cjs/component/utility/FileUtility.js +2 -5
- package/lib-cjs/component/utility/FormatNumber.js +1 -1
- package/lib-cjs/component/utility/GroupByInfoKey.js +1 -1
- package/lib-cjs/component/utility/util/nmredata/addRanges.js +2 -2
- package/lib-cjs/component/utility/util/nmredata/addSource.js +1 -1
- package/lib-cjs/component/utility/util/nmredata/addZones.js +3 -3
- package/lib-cjs/component/utility/util/nmredata/get1DSignals.js +2 -2
- package/lib-cjs/data/Filters.js +17 -19
- package/lib-cjs/data/FiltersManager.js +27 -7
- package/lib-cjs/data/PredictionManager.js +13 -12
- package/lib-cjs/data/SpectraManager.js +28 -17
- package/lib-cjs/data/data1d/Data1DManager.js +3 -5
- package/lib-cjs/data/data1d/MultipleAnalysis.js +2 -4
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +95 -0
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +88 -0
- package/lib-cjs/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.js +10 -0
- package/lib-cjs/data/data1d/Spectrum1D/get1DDataXY.js +18 -0
- package/lib-cjs/data/data1d/Spectrum1D/getReferenceShift.js +62 -0
- package/lib-cjs/data/data1d/Spectrum1D/index.js +49 -0
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +115 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +27 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/checkIntegralKind.js +13 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +9 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +34 -0
- package/lib-cjs/data/data1d/Spectrum1D/isSpectrum1D.js +7 -0
- package/lib-cjs/data/data1d/{autoPeakPicking.js → Spectrum1D/peaks/autoPeakPicking.js} +10 -10
- package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +25 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +40 -0
- package/lib-cjs/data/data1d/{autoRangesDetection.js → Spectrum1D/ranges/autoRangesDetection.js} +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +22 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +30 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +17 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/checkRangeKind.js +9 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +29 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRanges.js +22 -0
- package/lib-cjs/data/data1d/{detectSignal.js → Spectrum1D/ranges/detectSignal.js} +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +28 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +45 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +9 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/getShiftX.js +29 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +11 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +16 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +16 -0
- package/lib-cjs/data/data1d/Spectrum1D/shift/updateXShift.js +14 -0
- package/lib-cjs/data/data1d/Spectrum1D/toJSON.js +31 -0
- package/lib-cjs/data/data1d/database.js +96 -0
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +0 -8
- package/lib-cjs/data/data1d/filter1d/fft.js +1 -1
- package/lib-cjs/data/data1d/filter1d/shiftX.js +0 -3
- package/lib-cjs/data/data2d/Data2DManager.js +2 -1
- package/lib-cjs/data/data2d/Processing2D.js +2 -2
- package/lib-cjs/data/data2d/Spectrum2D/getMissingProjection.js +44 -0
- package/lib-cjs/data/data2d/Spectrum2D/getSlice.js +47 -0
- package/lib-cjs/data/data2d/Spectrum2D/index.js +23 -0
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +81 -0
- package/lib-cjs/data/data2d/Spectrum2D/isSpectrum2D.js +7 -0
- package/lib-cjs/data/data2d/Spectrum2D/shift/getShift.js +39 -0
- package/lib-cjs/data/data2d/Spectrum2D/shift/updateShift.js +22 -0
- package/lib-cjs/data/data2d/Spectrum2D/toJSON.js +29 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +30 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +55 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +51 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +83 -0
- package/lib-cjs/data/data2d/filter2d/shiftX.js +0 -3
- package/lib-cjs/data/data2d/filter2d/shiftY.js +0 -3
- package/lib-cjs/data/migration/MigrationManager.js +21 -0
- package/lib-cjs/data/migration/changeKeys.js +13 -0
- package/lib-cjs/data/migration/migrateToVersion1.js +35 -0
- package/lib-cjs/data/migration/migrateToVersion2.js +114 -0
- package/lib-cjs/data/molecules/Molecule.js +12 -10
- package/lib-cjs/data/molecules/MoleculeManager.js +4 -19
- package/lib-cjs/data/types/common/File.js +2 -0
- package/lib-cjs/data/types/common/Source.js +2 -0
- package/lib-cjs/data/types/data1d/Data1D.js +2 -0
- package/lib-cjs/data/types/data1d/Datum1D.js +2 -0
- package/lib-cjs/data/types/data1d/Display1D.js +2 -0
- package/lib-cjs/data/types/data1d/Info1D.js +2 -0
- package/lib-cjs/data/types/data1d/Integral.js +2 -0
- package/lib-cjs/data/types/data1d/Integrals.js +2 -0
- package/lib-cjs/data/types/data1d/Peak.js +2 -0
- package/lib-cjs/data/types/data1d/Peaks.js +2 -0
- package/lib-cjs/data/types/data1d/Range.js +2 -0
- package/lib-cjs/data/types/data1d/RangeDetectionResult.js +2 -0
- package/lib-cjs/data/types/data1d/Ranges.js +2 -0
- package/lib-cjs/data/types/data1d/Signal1D.js +2 -0
- package/lib-cjs/data/types/data1d/SumOptions.js +2 -0
- package/lib-cjs/data/types/data1d/index.js +2 -0
- package/lib-cjs/data/types/data2d/Contour.js +2 -0
- package/lib-cjs/data/types/data2d/ContourOptions.js +2 -0
- package/lib-cjs/data/types/data2d/Contours.js +2 -0
- package/lib-cjs/data/types/data2d/Data2D.js +2 -0
- package/lib-cjs/data/types/data2d/Datum2D.js +2 -0
- package/lib-cjs/data/types/data2d/Display2D.js +2 -0
- package/lib-cjs/data/types/data2d/Info2D.js +2 -0
- package/lib-cjs/data/types/data2d/Signal2D.js +2 -0
- package/lib-cjs/data/types/data2d/Signal2DAxisData.js +2 -0
- package/lib-cjs/data/types/data2d/Zone.js +2 -0
- package/lib-cjs/data/types/data2d/Zone2DAxisData.js +2 -0
- package/lib-cjs/data/types/data2d/Zones.js +2 -0
- package/lib-cjs/data/types/data2d/index.js +2 -0
- package/lib-cjs/data/utilities/FindUtilities.js +65 -0
- package/lib-cjs/data/utilities/RangeUtilities.js +23 -12
- package/lib-cjs/data/utilities/ZoneUtilities.js +22 -15
- package/lib-cjs/data/utilities/generateChar.js +2 -2
- package/lib-cjs/data/utilities/getAtom.js +6 -0
- package/lib-cjs/data/utilities/getAtomsFromMF.js +2 -8
- package/lib-cjs/data/utilities/getColor.js +2 -9
- package/lib-cjs/data/utilities/getSum.js +18 -0
- package/lib-cjs/types/UsedColors.js +2 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +61 -62
- package/lib/component/1d/PeakNotation.d.ts +0 -13
- package/lib/component/1d/PeakNotation.js +0 -151
- package/lib/component/1d/PeaksNotations.d.ts +0 -3
- package/lib/component/elements/popup/Help/Context.d.ts +0 -11
- package/lib/component/elements/popup/Help/Context.js +0 -30
- package/lib/component/elements/popup/Help/Provider.d.ts +0 -17
- package/lib/component/elements/popup/Help/Provider.js +0 -162
- package/lib/component/elements/popup/Help/index.d.ts +0 -3
- package/lib/component/elements/popup/Help/index.js +0 -3
- package/lib/component/modal/changeSum/NumberInput.d.ts +0 -7
- package/lib/component/modal/changeSum/NumberInput.js +0 -64
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MulipleAnalysisCodeEditor.d.ts +0 -7
- package/lib/data/data1d/Spectrum1D.d.ts +0 -150
- package/lib/data/data1d/Spectrum1D.js +0 -354
- package/lib/data/data1d/autoPeakPicking.d.ts +0 -1
- package/lib/data/data1d/autoRangesDetection.d.ts +0 -1
- package/lib/data/data1d/baseline.d.ts +0 -5
- package/lib/data/data1d/baseline.js +0 -10
- package/lib/data/data1d/getReferenceShift.js +0 -25
- package/lib/data/data2d/Spectrum2D.d.ts +0 -182
- package/lib/data/data2d/Spectrum2D.js +0 -388
- package/lib/data/data2d/autoZonesDetection.d.ts +0 -1
- package/lib/data/data2d/autoZonesDetection.js +0 -17
- package/lib/data/migration.d.ts +0 -2
- package/lib/data/migration.js +0 -34
- package/lib/data/utilities/getDigitalFilterParameters.d.ts +0 -7
- package/lib/data/utilities/getDigitalFilterParameters.js +0 -115
- package/lib/data/utilities/getNucleusFrom2DExperiment.d.ts +0 -7
- package/lib/data/utilities/getNucleusFrom2DExperiment.js +0 -22
- package/lib/data/utilities/getSpectrumType.d.ts +0 -6
- package/lib/data/utilities/getSpectrumType.js +0 -60
- package/lib/utils.d.ts +0 -4
- package/lib/utils.js +0 -5
- package/lib-cjs/component/1d/PeakNotation.js +0 -153
- package/lib-cjs/component/elements/popup/Help/Context.js +0 -35
- package/lib-cjs/component/elements/popup/Help/Provider.js +0 -167
- package/lib-cjs/component/elements/popup/Help/index.js +0 -11
- package/lib-cjs/component/modal/changeSum/NumberInput.js +0 -70
- package/lib-cjs/data/data1d/Spectrum1D.js +0 -399
- package/lib-cjs/data/data1d/baseline.js +0 -13
- package/lib-cjs/data/data1d/getReferenceShift.js +0 -28
- package/lib-cjs/data/data2d/Spectrum2D.js +0 -426
- package/lib-cjs/data/data2d/autoZonesDetection.js +0 -20
- package/lib-cjs/data/migration.js +0 -38
- package/lib-cjs/data/utilities/getDigitalFilterParameters.js +0 -119
- package/lib-cjs/data/utilities/getNucleusFrom2DExperiment.js +0 -26
- package/lib-cjs/data/utilities/getSpectrumType.js +0 -64
- package/lib-cjs/utils.js +0 -9
|
@@ -3,7 +3,7 @@ import Zoom1DManager, { setAllScales } from '../helper/Zoom1DManager';
|
|
|
3
3
|
export const ZoomType = {
|
|
4
4
|
HORIZONTAL: 'HORIZONTAL',
|
|
5
5
|
VERTICAL: 'VERTICAL',
|
|
6
|
-
|
|
6
|
+
STEP_HORIZONTAL: 'STEP_HORIZONTAL',
|
|
7
7
|
FULL: 'FULL',
|
|
8
8
|
};
|
|
9
9
|
export function wheel(deltaY, deltaMode, draft, id = null) {
|
|
@@ -23,11 +23,11 @@ export function wheel(deltaY, deltaMode, draft, id = null) {
|
|
|
23
23
|
function setZoom(draft, options = {}) {
|
|
24
24
|
const { height, margin, activeSpectrum } = draft;
|
|
25
25
|
const { scale = null, spectrumID = null } = options;
|
|
26
|
-
if (scale) {
|
|
26
|
+
if (scale && !spectrumID) {
|
|
27
27
|
setAllScales(draft.zoom.spectra, scale);
|
|
28
28
|
}
|
|
29
|
+
const zoomManager = Zoom1DManager(draft.zoom.spectra);
|
|
29
30
|
if (activeSpectrum === null && spectrumID === null) {
|
|
30
|
-
const zoomManager = Zoom1DManager(draft.zoom.spectra);
|
|
31
31
|
const { shareYDomain, yDomain, yDomains } = draft.originDomain;
|
|
32
32
|
draft.yDomains = Object.keys(draft.yDomains).reduce((acc, id) => {
|
|
33
33
|
const scale = zoomManager.getScale(id);
|
|
@@ -50,14 +50,17 @@ function setZoom(draft, options = {}) {
|
|
|
50
50
|
else {
|
|
51
51
|
const spectrumId = spectrumID || activeSpectrum?.id;
|
|
52
52
|
if (spectrumId) {
|
|
53
|
-
|
|
53
|
+
if (scale) {
|
|
54
|
+
zoomManager.setScale(scale, spectrumId);
|
|
55
|
+
}
|
|
56
|
+
const scaleFactor = scale ? scale : zoomManager.getScale(spectrumId);
|
|
54
57
|
const _scale = scaleLinear(draft.originDomain.yDomains[spectrumId], [
|
|
55
58
|
height - margin.bottom,
|
|
56
59
|
margin.top,
|
|
57
60
|
]);
|
|
58
61
|
const t = zoomIdentity
|
|
59
62
|
.translate(0, _scale(0))
|
|
60
|
-
.scale(
|
|
63
|
+
.scale(scaleFactor)
|
|
61
64
|
.translate(0, -_scale(0));
|
|
62
65
|
const yDomain = t.rescaleY(_scale).domain();
|
|
63
66
|
draft.yDomains = {
|
|
@@ -86,20 +89,4 @@ function setZoom1D(draft, height, margin, index, defaultScale) {
|
|
|
86
89
|
let yDomain = t.rescaleY(_scale).domain();
|
|
87
90
|
draft.yDomains[id] = yDomain;
|
|
88
91
|
}
|
|
89
|
-
|
|
90
|
-
if (draft.activeSpectrum) {
|
|
91
|
-
const { height, margin } = draft;
|
|
92
|
-
if (draft.originIntegralYDomain[draft.activeSpectrum.id]) {
|
|
93
|
-
const _scale = scaleLinear(draft.originIntegralYDomain[draft.activeSpectrum.id], [height - margin.bottom, margin.top]);
|
|
94
|
-
const scaleValue = scale < 0.1 ? 0.05 : scale;
|
|
95
|
-
const t = zoomIdentity
|
|
96
|
-
.translate(0, _scale(0))
|
|
97
|
-
.scale(scaleValue)
|
|
98
|
-
.translate(0, -_scale(0));
|
|
99
|
-
const newYDomain = t.rescaleY(_scale).domain();
|
|
100
|
-
const activeSpectrum = draft.activeSpectrum;
|
|
101
|
-
draft.integralsYDomains[activeSpectrum.id] = newYDomain;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
export { setZoom, setZoom1D, setIntegralZoom };
|
|
92
|
+
export { setZoom, setZoom1D };
|
|
@@ -40,7 +40,7 @@ function prepareGetScale(Zoom1DObject, defaultScale) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
function prepareSetScale(Zoom1DObject, defaultScale) {
|
|
43
|
-
return
|
|
43
|
+
return (newScale, spectrumID) => {
|
|
44
44
|
initZoomManager(Zoom1DObject, spectrumID, defaultScale);
|
|
45
45
|
Zoom1DObject.scales[spectrumID] = newScale;
|
|
46
46
|
};
|
|
@@ -9,9 +9,6 @@ export interface PreferencesState {
|
|
|
9
9
|
low: number;
|
|
10
10
|
high: number;
|
|
11
11
|
};
|
|
12
|
-
help: {
|
|
13
|
-
preventAutoHelp: boolean;
|
|
14
|
-
};
|
|
15
12
|
dimmedSpectraTransparency: number;
|
|
16
13
|
};
|
|
17
14
|
formatting: {
|
|
@@ -27,5 +24,26 @@ export interface PreferencesState {
|
|
|
27
24
|
dispatch: any;
|
|
28
25
|
}
|
|
29
26
|
export declare const preferencesInitialState: PreferencesState;
|
|
30
|
-
declare const preferencesReducer:
|
|
27
|
+
declare const preferencesReducer: (base: {
|
|
28
|
+
readonly basePreferences: any;
|
|
29
|
+
readonly display: any;
|
|
30
|
+
readonly controllers: {
|
|
31
|
+
readonly mws: {
|
|
32
|
+
readonly low: number;
|
|
33
|
+
readonly high: number;
|
|
34
|
+
};
|
|
35
|
+
readonly dimmedSpectraTransparency: number;
|
|
36
|
+
};
|
|
37
|
+
readonly formatting: {
|
|
38
|
+
readonly nucleus: readonly {
|
|
39
|
+
readonly key: string;
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly ppm: string;
|
|
42
|
+
readonly hz: string;
|
|
43
|
+
}[];
|
|
44
|
+
readonly nucleusByKey: any;
|
|
45
|
+
readonly panels: any;
|
|
46
|
+
};
|
|
47
|
+
readonly dispatch: any;
|
|
48
|
+
}, action: any) => import("immer/dist/internal").WritableDraft<PreferencesState>;
|
|
31
49
|
export default preferencesReducer;
|
|
@@ -9,7 +9,7 @@ export const INIT_PREFERENCES = 'INIT_PREFERENCES';
|
|
|
9
9
|
export const SET_PREFERENCES = 'SET_PREFERENCES';
|
|
10
10
|
export const SET_PANELS_PREFERENCES = 'SET_PANELS_PREFERENCES';
|
|
11
11
|
const LOCAL_STORGAE_VERSION = '1.1';
|
|
12
|
-
function
|
|
12
|
+
function getPreferencesByMode(mode) {
|
|
13
13
|
switch (mode) {
|
|
14
14
|
case NMRiumMode.EXERCISE_1D:
|
|
15
15
|
return exercise1D;
|
|
@@ -24,9 +24,6 @@ export const preferencesInitialState = {
|
|
|
24
24
|
display: basic,
|
|
25
25
|
controllers: {
|
|
26
26
|
mws: { low: 2, high: 20 },
|
|
27
|
-
help: {
|
|
28
|
-
preventAutoHelp: true,
|
|
29
|
-
},
|
|
30
27
|
dimmedSpectraTransparency: 0.1,
|
|
31
28
|
},
|
|
32
29
|
formatting: {
|
|
@@ -62,14 +59,14 @@ function handleInit(draft, action) {
|
|
|
62
59
|
if (action.payload) {
|
|
63
60
|
const { dispatch, mode, ...resProps } = action.payload;
|
|
64
61
|
draft.basePreferences = lodashMerge({}, {
|
|
65
|
-
display: mode === NMRiumMode.DEFAULT ? {} :
|
|
62
|
+
display: mode === NMRiumMode.DEFAULT ? {} : getPreferencesByMode(mode),
|
|
66
63
|
}, resProps);
|
|
67
64
|
const hiddenFeatures = JSON.parse(JSON.stringify(draft.basePreferences.display), (key, value) => {
|
|
68
65
|
if (value) {
|
|
69
66
|
return value;
|
|
70
67
|
}
|
|
71
68
|
});
|
|
72
|
-
draft.display = lodashMerge({},
|
|
69
|
+
draft.display = lodashMerge({}, getPreferencesByMode(NMRiumMode.DEFAULT), hiddenFeatures);
|
|
73
70
|
draft.dispatch = dispatch;
|
|
74
71
|
if (localData) {
|
|
75
72
|
Object.entries(localData).forEach(([k, v]) => {
|
|
@@ -87,6 +84,8 @@ function handleSetPreferences(draft, action) {
|
|
|
87
84
|
draft.controllers = data.controllers;
|
|
88
85
|
draft.formatting = data.formatting;
|
|
89
86
|
draft.display.panels = data.display.panels;
|
|
87
|
+
draft.display.hideExperimentalFeatures =
|
|
88
|
+
data.display.hideExperimentalFeatures;
|
|
90
89
|
mapNucleus(draft);
|
|
91
90
|
}
|
|
92
91
|
}
|
|
@@ -103,7 +102,7 @@ function innerPreferencesReducer(draft, action) {
|
|
|
103
102
|
case SET_PREFERENCES:
|
|
104
103
|
return handleSetPreferences(draft, action);
|
|
105
104
|
case SET_PANELS_PREFERENCES:
|
|
106
|
-
return handleSetPanelsPreferences;
|
|
105
|
+
return handleSetPanelsPreferences(draft, action);
|
|
107
106
|
default:
|
|
108
107
|
return draft;
|
|
109
108
|
}
|
|
@@ -33,15 +33,14 @@ export declare const SET_MOLECULE = "SET_MOLECULE";
|
|
|
33
33
|
export declare const DELETE_MOLECULE = "DELETE_MOLECULE";
|
|
34
34
|
export declare const SET_CORRELATION = "SET_CORRELATION";
|
|
35
35
|
export declare const SET_CORRELATIONS = "SET_CORRELATIONS";
|
|
36
|
+
export declare const DELETE_CORRELATION = "DELETE_CORRELATION";
|
|
36
37
|
export declare const SET_CORRELATIONS_MF = "SET_CORRELATIONS_MF";
|
|
37
38
|
export declare const SET_CORRELATIONS_TOLERANCE = "SET_CORRELATIONS_TOLERANCE";
|
|
38
39
|
export declare const DELETE_SPECTRA = "DELETE_SPECTRA";
|
|
39
40
|
export declare const CHANGE_SPECTRUM_DISPLAY_VIEW_MODE = "CHANGE_SPECTRUM_DISPLAY_VIEW_MODE";
|
|
40
|
-
export declare const SET_INTEGRAL_Y_DOMAIN = "SET_INTEGRAL_Y_DOMAIN";
|
|
41
41
|
export declare const RESIZE_INTEGRAL = "RESIZE_INTEGRAL";
|
|
42
42
|
export declare const BRUSH_END = "BRUSH_END";
|
|
43
43
|
export declare const RESET_DOMAIN = "RESET_X_DOMAIN";
|
|
44
|
-
export declare const CHANGE_INTEGRAL_ZOOM = "CHANGE_INTEGRAL_ZOOM";
|
|
45
44
|
export declare const ENABLE_FILTER = "ENABLE_FILTER";
|
|
46
45
|
export declare const DELETE_FILTER = "DELETE_FILTER";
|
|
47
46
|
export declare const DELETE_SPECTRA_FILTER = "DELETE_SPECTRA_FILTER";
|
|
@@ -56,6 +55,7 @@ export declare const AUTO_PEAK_PICKING = "AUTO_PEAK_PICKING";
|
|
|
56
55
|
export declare const AUTO_RANGES_DETECTION = "AUTO_RANGES_DETECTION";
|
|
57
56
|
export declare const AUTO_ZONES_DETECTION = "AUTO_ZONES_DETECTION";
|
|
58
57
|
export declare const DELETE_RANGE = "DELETE_RANGE";
|
|
58
|
+
export declare const DELETE_1D_SIGNAL = "DELETE_1D_SIGNAL";
|
|
59
59
|
export declare const SET_SELECTED_OPTIONS_PANEL = "SET_SELECTED_OPTIONS_PANEL";
|
|
60
60
|
export declare const SET_LOADING_FLAG = "SET_LOADING_FLAG";
|
|
61
61
|
export declare const RESET_SELECTED_TOOL = "RESET_SELECTED_TOOL";
|
|
@@ -75,6 +75,7 @@ export declare const ADD_RANGE = "ADD_RANGE";
|
|
|
75
75
|
export declare const SET_2D_LEVEL = "SET_2D_LEVEL";
|
|
76
76
|
export declare const ADD_2D_ZONE = "ADD_2D_ZONE";
|
|
77
77
|
export declare const DELETE_2D_ZONE = "DELETE_2D_ZONE";
|
|
78
|
+
export declare const DELETE_2D_SIGNAL = "DELETE_2D_SIGNAL";
|
|
78
79
|
export declare const ADD_MISSING_PROJECTION = "ADD_MISSING_PROJECTION";
|
|
79
80
|
export declare const SET_FILTER_SNAPSHOT = "SET_FILTER_SNAPSHOT";
|
|
80
81
|
export declare const CHANGE_RANGE_RELATIVE = "CHANGE_RANGE_RELATIVE";
|
|
@@ -106,5 +107,9 @@ export declare const CHANGE_INTEGRALS_SUM_FLAG = "CHANGE_INTEGRALS_SUM_FLAG";
|
|
|
106
107
|
export declare const CHANGE_ZONES_NOISE_FACTOR = "CHANGE_ZONES_NOISE_FACTOR";
|
|
107
108
|
export declare const CHANGE_TEMP_RANGE = "CHANGE_TEMP_RANGE";
|
|
108
109
|
export declare const SHOW_MULTIPLICTY_TREES = "SHOW_MULTIPLICTY_TREES";
|
|
110
|
+
export declare const SHOW_RANGES_INTEGRALS = "SHOW_RANGES_INTEGRALS";
|
|
109
111
|
export declare const AUTO_RANGES_SPECTRA_PICKING = "AUTO_RANGES_SPECTRA_PICKING";
|
|
110
112
|
export declare const AUTO_ZONES_SPECTRA_PICKING = "AUTO_ZONES_SPECTRA_PICKING";
|
|
113
|
+
export declare const GENERATE_SPECTRUM_FROM_PUBLICATION_STRING = "GENERATE_SPECTRUM_FROM_PUBLICATION_STRING";
|
|
114
|
+
export declare const RESURRECTING_SPECTRUM_FROM_RANGES = "RESURRECTING_SPECTRUM_FROM_RANGES";
|
|
115
|
+
export declare const SHOW_J_GRAPH = "SHOW_J_GRAPH";
|
|
@@ -33,15 +33,14 @@ export const SET_MOLECULE = 'SET_MOLECULE';
|
|
|
33
33
|
export const DELETE_MOLECULE = 'DELETE_MOLECULE';
|
|
34
34
|
export const SET_CORRELATION = 'SET_CORRELATION';
|
|
35
35
|
export const SET_CORRELATIONS = 'SET_CORRELATIONS';
|
|
36
|
+
export const DELETE_CORRELATION = 'DELETE_CORRELATION';
|
|
36
37
|
export const SET_CORRELATIONS_MF = 'SET_CORRELATIONS_MF';
|
|
37
38
|
export const SET_CORRELATIONS_TOLERANCE = 'SET_CORRELATIONS_TOLERANCE';
|
|
38
39
|
export const DELETE_SPECTRA = 'DELETE_SPECTRA';
|
|
39
40
|
export const CHANGE_SPECTRUM_DISPLAY_VIEW_MODE = 'CHANGE_SPECTRUM_DISPLAY_VIEW_MODE';
|
|
40
|
-
export const SET_INTEGRAL_Y_DOMAIN = 'SET_INTEGRAL_Y_DOMAIN';
|
|
41
41
|
export const RESIZE_INTEGRAL = 'RESIZE_INTEGRAL';
|
|
42
42
|
export const BRUSH_END = 'BRUSH_END';
|
|
43
43
|
export const RESET_DOMAIN = 'RESET_X_DOMAIN';
|
|
44
|
-
export const CHANGE_INTEGRAL_ZOOM = 'CHANGE_INTEGRAL_ZOOM';
|
|
45
44
|
export const ENABLE_FILTER = 'ENABLE_FILTER';
|
|
46
45
|
export const DELETE_FILTER = 'DELETE_FILTER';
|
|
47
46
|
export const DELETE_SPECTRA_FILTER = 'DELETE_SPECTRA_FILTER';
|
|
@@ -56,6 +55,7 @@ export const AUTO_PEAK_PICKING = 'AUTO_PEAK_PICKING';
|
|
|
56
55
|
export const AUTO_RANGES_DETECTION = 'AUTO_RANGES_DETECTION';
|
|
57
56
|
export const AUTO_ZONES_DETECTION = 'AUTO_ZONES_DETECTION';
|
|
58
57
|
export const DELETE_RANGE = 'DELETE_RANGE';
|
|
58
|
+
export const DELETE_1D_SIGNAL = 'DELETE_1D_SIGNAL';
|
|
59
59
|
export const SET_SELECTED_OPTIONS_PANEL = 'SET_SELECTED_OPTIONS_PANEL';
|
|
60
60
|
export const SET_LOADING_FLAG = 'SET_LOADING_FLAG';
|
|
61
61
|
export const RESET_SELECTED_TOOL = 'RESET_SELECTED_TOOL';
|
|
@@ -75,6 +75,7 @@ export const ADD_RANGE = 'ADD_RANGE';
|
|
|
75
75
|
export const SET_2D_LEVEL = 'SET_2D_LEVEL';
|
|
76
76
|
export const ADD_2D_ZONE = 'ADD_2D_ZONE';
|
|
77
77
|
export const DELETE_2D_ZONE = 'DELETE_2D_ZONE';
|
|
78
|
+
export const DELETE_2D_SIGNAL = 'DELETE_2D_SIGNAL';
|
|
78
79
|
export const ADD_MISSING_PROJECTION = 'ADD_MISSING_PROJECTION';
|
|
79
80
|
export const SET_FILTER_SNAPSHOT = 'SET_FILTER_SNAPSHOT';
|
|
80
81
|
export const CHANGE_RANGE_RELATIVE = 'CHANGE_RANGE_RELATIVE';
|
|
@@ -106,5 +107,9 @@ export const CHANGE_INTEGRALS_SUM_FLAG = 'CHANGE_INTEGRALS_SUM_FLAG';
|
|
|
106
107
|
export const CHANGE_ZONES_NOISE_FACTOR = 'CHANGE_ZONES_NOISE_FACTOR';
|
|
107
108
|
export const CHANGE_TEMP_RANGE = 'CHANGE_TEMP_RANGE';
|
|
108
109
|
export const SHOW_MULTIPLICTY_TREES = 'SHOW_MULTIPLICTY_TREES';
|
|
110
|
+
export const SHOW_RANGES_INTEGRALS = 'SHOW_RANGES_INTEGRALS';
|
|
109
111
|
export const AUTO_RANGES_SPECTRA_PICKING = 'AUTO_RANGES_SPECTRA_PICKING';
|
|
110
112
|
export const AUTO_ZONES_SPECTRA_PICKING = 'AUTO_ZONES_SPECTRA_PICKING';
|
|
113
|
+
export const GENERATE_SPECTRUM_FROM_PUBLICATION_STRING = 'GENERATE_SPECTRUM_FROM_PUBLICATION_STRING';
|
|
114
|
+
export const RESURRECTING_SPECTRUM_FROM_RANGES = 'RESURRECTING_SPECTRUM_FROM_RANGES';
|
|
115
|
+
export const SHOW_J_GRAPH = 'SHOW_J_GRAPH';
|
|
@@ -27,9 +27,9 @@ export default function BrushX() {
|
|
|
27
27
|
if (!allowTools.includes(selectedTool) || step !== 'brushing')
|
|
28
28
|
return null;
|
|
29
29
|
const scale = (endX - startX) / width;
|
|
30
|
-
return (_jsx("div",
|
|
30
|
+
return (_jsx("div", { style: {
|
|
31
31
|
...styles.container,
|
|
32
32
|
transform: `translate(${startX}px, 0px) scaleX(${scale})`,
|
|
33
33
|
willChange: 'transform',
|
|
34
|
-
}
|
|
34
|
+
}, children: _jsxs("svg", { width: width, height: height, children: [_jsx("line", { x1: "0", y1: "0", x2: "0", y2: height, strokeWidth: "8", stroke: "red" }, void 0), _jsx("line", { x1: width, y1: "0", x2: width, y2: height, strokeWidth: "8", stroke: "red" }, void 0), _jsx("rect", { x: "0", y: "0", width: width, height: height, fill: "gray", opacity: "0.2" }, void 0)] }, void 0) }, void 0));
|
|
35
35
|
}
|
|
@@ -25,6 +25,7 @@ const allowTools = [
|
|
|
25
25
|
options.editRange.id,
|
|
26
26
|
options.multipleSpectraAnalysis.id,
|
|
27
27
|
options.exclusionZones.id,
|
|
28
|
+
options.databaseRangesSelection.id,
|
|
28
29
|
];
|
|
29
30
|
export const BRUSH_TYPE = {
|
|
30
31
|
X: 1,
|
|
@@ -77,9 +78,9 @@ export default function BrushXY({ brushType = BRUSH_TYPE.XY, dimensionBorder = d
|
|
|
77
78
|
: 1;
|
|
78
79
|
startY =
|
|
79
80
|
brushType === BRUSH_TYPE.Y || brushType === BRUSH_TYPE.XY ? startY : 0;
|
|
80
|
-
return (_jsx("div",
|
|
81
|
+
return (_jsx("div", { style: {
|
|
81
82
|
...styles.container,
|
|
82
83
|
transform: `translate(${startX}px, ${startY}px) scale(${scaleX},${scaleY})`,
|
|
83
84
|
willChange: 'transform',
|
|
84
|
-
}
|
|
85
|
+
}, children: _jsx("svg", { width: width, height: height, children: _jsx("rect", { x: "0", y: "0", width: width, height: height, fill: "gray", opacity: "0.2" }, void 0) }, void 0) }, void 0));
|
|
85
86
|
}
|
|
@@ -24,6 +24,7 @@ const allowTools = [
|
|
|
24
24
|
options.editRange.id,
|
|
25
25
|
options.multipleSpectraAnalysis.id,
|
|
26
26
|
options.exclusionZones.id,
|
|
27
|
+
options.databaseRangesSelection.id,
|
|
27
28
|
];
|
|
28
29
|
function CrossLinePointer() {
|
|
29
30
|
const { height, width, margin, toolOptions: { selectedTool }, } = useChartData();
|
|
@@ -38,7 +39,7 @@ function CrossLinePointer() {
|
|
|
38
39
|
!height) {
|
|
39
40
|
return null;
|
|
40
41
|
}
|
|
41
|
-
return (_jsx("div",
|
|
42
|
+
return (_jsx("div", { style: {
|
|
42
43
|
willChange: 'transform',
|
|
43
44
|
cursor: 'crosshair',
|
|
44
45
|
transform: `translate(${-width + position.x}px, ${-height + position.y}px)`,
|
|
@@ -49,6 +50,6 @@ function CrossLinePointer() {
|
|
|
49
50
|
overflow: 'visible',
|
|
50
51
|
width: 2 * width,
|
|
51
52
|
height: 2 * height,
|
|
52
|
-
}
|
|
53
|
+
}, children: _jsxs("svg", { width: 2 * width, height: 2 * height, children: [_jsx("line", { style: styles.line, x1: width, y1: "0", x2: width, y2: height * 2 }, "vertical_line"), _jsx("line", { style: styles.line, x1: "0", y1: height, x2: width * 2, y2: height }, "horizontal_line")] }, void 0) }, "crossLine"));
|
|
53
54
|
}
|
|
54
55
|
export default CrossLinePointer;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function BasicToolBar(): JSX.Element;
|
|
@@ -1,49 +1,24 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
2
|
-
|
|
3
|
-
import { css } from '@emotion/react';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Toolbar } from 'analysis-ui-components';
|
|
4
3
|
import { SvgNmrRealImag, SvgNmrOverlay3, SvgNmrOverlay3Aligned, SvgNmrAlignBottom, SvgNmrAlignCenter, } from 'cheminfo-font';
|
|
5
4
|
import lodashGet from 'lodash/get';
|
|
6
|
-
import { Fragment, useCallback, memo } from 'react';
|
|
5
|
+
import { Fragment, useCallback, memo, useMemo } from 'react';
|
|
7
6
|
import { FaDownload, FaFileDownload, FaFileImage, FaCopy, FaFileExport, FaFile, FaFileImport, } from 'react-icons/fa';
|
|
8
7
|
import { useChartData } from '../context/ChartContext';
|
|
9
8
|
import { useDispatch } from '../context/DispatchContext';
|
|
10
9
|
import { useLoader } from '../context/LoaderContext';
|
|
11
10
|
import { usePreferences } from '../context/PreferencesContext';
|
|
12
|
-
import
|
|
13
|
-
import ToolTip from '../elements/ToolTip/ToolTip';
|
|
11
|
+
import ToolbarMenu from '../elements/ToolbarMenu';
|
|
14
12
|
import { useAlert } from '../elements/popup/Alert';
|
|
15
13
|
import { useModal } from '../elements/popup/Modal';
|
|
14
|
+
import useCheckExperimentalFeature from '../hooks/useCheckExperimentalFeature';
|
|
16
15
|
import useDatumWithSpectraStatistics from '../hooks/useDatumWithSpectraStatistics';
|
|
17
16
|
import useExport from '../hooks/useExport';
|
|
18
17
|
import useToolsFunctions from '../hooks/useToolsFunctions';
|
|
18
|
+
import ImportPublicationStringModal from '../modal/ImportPublicationStringModal';
|
|
19
19
|
import LoadJCAMPModal from '../modal/LoadJCAMPModal';
|
|
20
20
|
import { DISPLAYER_MODE } from '../reducer/core/Constants';
|
|
21
21
|
import { LOAD_JCAMP_FILE, SET_LOADING_FLAG } from '../reducer/types/Types';
|
|
22
|
-
const styles = css `
|
|
23
|
-
background-color: transparent;
|
|
24
|
-
border: none;
|
|
25
|
-
width: 35px;
|
|
26
|
-
height: 35px;
|
|
27
|
-
min-height: 35px;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
outline: outline;
|
|
32
|
-
:focus {
|
|
33
|
-
outline: none !important;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.fa {
|
|
37
|
-
svg {
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
&.cheminfo {
|
|
42
|
-
svg {
|
|
43
|
-
font-size: 24px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
`;
|
|
47
22
|
const IMPORT_MENU = [
|
|
48
23
|
{
|
|
49
24
|
id: 'importFile',
|
|
@@ -55,6 +30,11 @@ const IMPORT_MENU = [
|
|
|
55
30
|
icon: _jsx(FaFile, {}, void 0),
|
|
56
31
|
label: 'Add JCAMP-DX from URL',
|
|
57
32
|
},
|
|
33
|
+
{
|
|
34
|
+
id: 'importPublicationString',
|
|
35
|
+
icon: _jsx(FaFile, {}, void 0),
|
|
36
|
+
label: 'Import from publication string',
|
|
37
|
+
},
|
|
58
38
|
];
|
|
59
39
|
const EXPORT_MENU = [
|
|
60
40
|
{
|
|
@@ -94,6 +74,12 @@ function BasicToolBarInner({ info, verticalAlign, displayerMode, ftCounter, fidC
|
|
|
94
74
|
const alert = useAlert();
|
|
95
75
|
const modal = useModal();
|
|
96
76
|
const openLoader = useLoader();
|
|
77
|
+
const isExperimentalFeature = useCheckExperimentalFeature();
|
|
78
|
+
const importMenu = useMemo(() => {
|
|
79
|
+
return isExperimentalFeature
|
|
80
|
+
? IMPORT_MENU
|
|
81
|
+
: IMPORT_MENU.filter((item) => item.id !== 'importPublicationString');
|
|
82
|
+
}, [isExperimentalFeature]);
|
|
97
83
|
const { isRealSpectrumShown, changeSpectrumViewHandler, changeDisplayViewModeHandler, alignSpectrumsVerticallyHandler, } = useToolsFunctions();
|
|
98
84
|
const { saveAsSVGHandler, saveAsPNGHandler, saveAsJSONHandler, saveAsNMREHandler, saveToClipboardHandler, saveAsHandler, } = useExport();
|
|
99
85
|
const LoadJacmpHandler = useCallback((file) => {
|
|
@@ -112,6 +98,9 @@ function BasicToolBarInner({ info, verticalAlign, displayerMode, ftCounter, fidC
|
|
|
112
98
|
const importJCAMPFile = useCallback(() => {
|
|
113
99
|
modal.show(_jsx(LoadJCAMPModal, { onLoadClick: LoadJacmpHandler, onClose: () => modal.close(), startLoading: startLoadingHandler }, void 0), {});
|
|
114
100
|
}, [LoadJacmpHandler, modal, startLoadingHandler]);
|
|
101
|
+
const openImportPublicationStringModal = useCallback(() => {
|
|
102
|
+
modal.show(_jsx(ImportPublicationStringModal, { onClose: () => modal.close() }, void 0), {});
|
|
103
|
+
}, [modal]);
|
|
115
104
|
const isButtonVisible = useCallback((key) => {
|
|
116
105
|
return !lodashGet(preferences, `display.toolBarButtons.${key}`);
|
|
117
106
|
}, [preferences]);
|
|
@@ -123,10 +112,13 @@ function BasicToolBarInner({ info, verticalAlign, displayerMode, ftCounter, fidC
|
|
|
123
112
|
case 'importJDX':
|
|
124
113
|
importJCAMPFile();
|
|
125
114
|
break;
|
|
115
|
+
case 'importPublicationString':
|
|
116
|
+
openImportPublicationStringModal();
|
|
117
|
+
break;
|
|
126
118
|
default:
|
|
127
119
|
return;
|
|
128
120
|
}
|
|
129
|
-
}, [openLoader, importJCAMPFile]);
|
|
121
|
+
}, [openLoader, importJCAMPFile, openImportPublicationStringModal]);
|
|
130
122
|
const exportHandler = useCallback(({ id }) => {
|
|
131
123
|
switch (id) {
|
|
132
124
|
case 'svg':
|
|
@@ -158,33 +150,34 @@ function BasicToolBarInner({ info, verticalAlign, displayerMode, ftCounter, fidC
|
|
|
158
150
|
saveAsNMREHandler,
|
|
159
151
|
saveToClipboardHandler,
|
|
160
152
|
]);
|
|
161
|
-
return (_jsxs(Fragment, { children: [isButtonVisible('hideImport') && (_jsx(
|
|
153
|
+
return (_jsxs(Fragment, { children: [isButtonVisible('hideImport') && (_jsx(ToolbarMenu, { component: _jsx(FaFileImport, {}, void 0), toolTip: "Import", onClick: (element) => {
|
|
162
154
|
importHandler(element);
|
|
163
155
|
return null;
|
|
164
|
-
}, items:
|
|
156
|
+
}, items: importMenu }, void 0)), isButtonVisible('hideExportAs') && (_jsx(ToolbarMenu, { component: _jsx(FaFileExport, {}, void 0), toolTip: "Export As", onClick: (element) => {
|
|
165
157
|
exportHandler(element);
|
|
166
158
|
return null;
|
|
167
159
|
}, items: EXPORT_MENU }, void 0)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
168
160
|
isButtonVisible('hideSpectraStackAlignments') &&
|
|
169
|
-
|
|
170
|
-
|
|
161
|
+
ftCounter > 1 &&
|
|
162
|
+
(info?.isFt || !activeSpectrum) && (_jsx(Toolbar.Item, { id: "spectra-alignment", className: "cheminfo", title: "Spectra alignment ( Press s )", onClick: changeDisplayViewModeHandler, children: verticalAlign.align === 'stack' ? (_jsx(SvgNmrOverlay3Aligned, {}, void 0)) : (_jsx(SvgNmrOverlay3, {}, void 0)) }, void 0)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
171
163
|
isButtonVisible('hideRealImaginary') &&
|
|
172
|
-
info.isComplex && (_jsx(
|
|
173
|
-
isButtonVisible('hideSpectraCenterAlignments') &&
|
|
174
|
-
|
|
175
|
-
|
|
164
|
+
info.isComplex && (_jsx(Toolbar.Item, { id: "display", title: isRealSpectrumShown ? 'Display Real ' : 'Display Imaginary', onClick: changeSpectrumViewHandler, className: "cheminfo", children: _jsx(SvgNmrRealImag, {}, void 0) }, void 0)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
165
|
+
isButtonVisible('hideSpectraCenterAlignments') &&
|
|
166
|
+
(ftCounter > 0 || fidCounter > 0) && (_jsx(Toolbar.Item, { id: "baseline-position", title: verticalAlign.align === 'bottom'
|
|
167
|
+
? 'Baseline Center ( Press c )'
|
|
168
|
+
: 'Baseline Bottom ( Press c )', onClick: alignSpectrumsVerticallyHandler, className: "cheminfo", children: _jsx("div", { style: { fontSize: 24 }, children: verticalAlign.align === 'bottom' ? (_jsx(SvgNmrAlignCenter, {}, void 0)) : (_jsx(SvgNmrAlignBottom, {}, void 0)) }, void 0) }, void 0))] }, void 0));
|
|
176
169
|
}
|
|
177
170
|
const MemoizedBasicToolBar = memo(BasicToolBarInner);
|
|
178
171
|
export default function BasicToolBar() {
|
|
179
172
|
const { activeSpectrum, verticalAlign, displayerMode, activeTab } = useChartData();
|
|
180
173
|
const { info, fidCounter, ftCounter } = useDatumWithSpectraStatistics();
|
|
181
|
-
return (_jsx(MemoizedBasicToolBar,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
174
|
+
return (_jsx(MemoizedBasicToolBar, { ...{
|
|
175
|
+
info,
|
|
176
|
+
fidCounter,
|
|
177
|
+
ftCounter,
|
|
178
|
+
activeSpectrum,
|
|
179
|
+
verticalAlign,
|
|
180
|
+
displayerMode,
|
|
181
|
+
activeTab,
|
|
182
|
+
} }, void 0));
|
|
190
183
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
2
|
-
|
|
3
|
-
import { css } from '@emotion/react';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Toolbar } from 'analysis-ui-components';
|
|
4
3
|
import { SvgNmrBaselineCorrection, SvgNmrFourierTransform, SvgNmrIntegrate, SvgNmrMultipleAnalysis, SvgNmrPeakPicking, SvgNmrPhaseCorrection, SvgNmrRangePicking, SvgNmrZeroFilling, } from 'cheminfo-font';
|
|
5
4
|
import lodashGet from 'lodash/get';
|
|
6
5
|
import { useState, useEffect, useCallback, memo } from 'react';
|
|
7
6
|
import { FaSearchPlus, FaExpand, FaDiceFour } from 'react-icons/fa';
|
|
8
|
-
import
|
|
7
|
+
import * as Filters from '../../data/Filters';
|
|
9
8
|
import { useChartData } from '../context/ChartContext';
|
|
10
9
|
import { useDispatch } from '../context/DispatchContext';
|
|
11
10
|
import { usePreferences } from '../context/PreferencesContext';
|
|
12
|
-
import ToolTip from '../elements/ToolTip/ToolTip';
|
|
13
|
-
import { useHelp } from '../elements/popup/Help/Context';
|
|
14
11
|
import ToggleButton from '../elements/toggle/ToggleButton';
|
|
15
12
|
import ToggleButtonGroup from '../elements/toggle/ToggleButtonGroup';
|
|
16
13
|
import useDatumWithSpectraStatistics from '../hooks/useDatumWithSpectraStatistics';
|
|
@@ -18,37 +15,8 @@ import useToolsFunctions from '../hooks/useToolsFunctions';
|
|
|
18
15
|
import { DISPLAYER_MODE } from '../reducer/core/Constants';
|
|
19
16
|
import { APPLY_FFT_FILTER, SET_SELECTED_FILTER } from '../reducer/types/Types';
|
|
20
17
|
import { options } from './ToolTypes';
|
|
21
|
-
|
|
22
|
-
button {
|
|
23
|
-
background-color: transparent;
|
|
24
|
-
border: none;
|
|
25
|
-
width: 35px;
|
|
26
|
-
height: 35px;
|
|
27
|
-
min-height: 35px;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
outline: outline;
|
|
32
|
-
:focus {
|
|
33
|
-
outline: none !important;
|
|
34
|
-
}import { Datum1D } from './../../data/data1d/Spectrum1D';
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
&.fa {
|
|
38
|
-
svg {
|
|
39
|
-
font-size: 14px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
&.cheminfo {
|
|
43
|
-
svg {
|
|
44
|
-
font-size: 18px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
`;
|
|
49
|
-
function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum, displayerMode, ftCounter, fidCounter, }) {
|
|
18
|
+
function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum, displayerMode, ftCounter, mode, }) {
|
|
50
19
|
const [option, setOption] = useState('');
|
|
51
|
-
const help = useHelp();
|
|
52
20
|
const preferences = usePreferences();
|
|
53
21
|
const dispatch = useDispatch();
|
|
54
22
|
const { handleChangeOption, handleFullZoomOut } = useToolsFunctions();
|
|
@@ -72,43 +40,43 @@ function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum, displ
|
|
|
72
40
|
const isPanelVisible = useCallback((panelKey) => {
|
|
73
41
|
return !lodashGet(preferences, `display.panels.${panelKey}`);
|
|
74
42
|
}, [preferences]);
|
|
75
|
-
return (_jsxs(
|
|
76
|
-
isButtonVisible('hidePeakTool') && (_jsx(ToggleButton,
|
|
77
|
-
isButtonVisible('hideIntegralTool') && (_jsx(ToggleButton,
|
|
78
|
-
isButtonVisible('hideIntegralTool') && (_jsx(ToggleButton,
|
|
79
|
-
isButtonVisible('hideAutoRangesTool') && (_jsx(ToggleButton,
|
|
43
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ToggleButtonGroup, { value: option, onChange: handleChange, children: [isButtonVisible('hideZoomTool') && (_jsx(ToggleButton, { value: options.zoom.id, id: "zoomIn", title: `${options.zoom.label} ( Press z )`, children: _jsx("div", { style: { fontSize: 14 }, children: _jsx(FaSearchPlus, {}, void 0) }, void 0) }, options.zoom.id)), isButtonVisible('hideZoomOutTool') && (_jsx(Toolbar.Item, { id: "zoom-out", onClick: handleFullZoomOut, title: "Horizontal zoom out ( Press f ), Horizontal and Vertical zoom out, double click ( Press ff )", children: _jsx("div", { style: { fontSize: 14 }, children: _jsx(FaExpand, {}, void 0) }, void 0) }, void 0)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
44
|
+
isButtonVisible('hidePeakTool') && (_jsx(ToggleButton, { value: options.peakPicking.id, title: `${options.peakPicking.label} ( Press p )`, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "peakPicking", children: _jsx(SvgNmrPeakPicking, {}, void 0) }, options.peakPicking.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
45
|
+
isButtonVisible('hideIntegralTool') && (_jsx(ToggleButton, { value: options.integral.id, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "integralPicking", title: `${options.integral.label} ( Press i )`, children: _jsx(SvgNmrIntegrate, {}, void 0) }, options.integral.id)), displayerMode === DISPLAYER_MODE.DM_2D &&
|
|
46
|
+
isButtonVisible('hideIntegralTool') && (_jsx(ToggleButton, { value: options.zone2D.id, id: "zone2d", isVisible: activeSpectrum && !info?.isFid ? true : false, title: `${options.zone2D.label} ( Press r )`, children: _jsx(FaDiceFour, {}, void 0) }, options.zone2D.id)), displayerMode === DISPLAYER_MODE.DM_2D && (_jsx(ToggleButton, { value: options.slicingTool.id, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "slic", title: `${options.slicingTool.label}`, children: _jsx("p", { children: "Slic" }, void 0) }, options.slicingTool.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
47
|
+
isButtonVisible('hideAutoRangesTool') && (_jsx(ToggleButton, { value: options.rangesPicking.id, isVisible: activeSpectrum && !info?.isFid ? true : false, title: options.rangesPicking.label, id: "ranges-pick", children: _jsx(SvgNmrRangePicking, {}, void 0) }, options.rangesPicking.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
80
48
|
isButtonVisible('hideMultipleSpectraAnalysisTool') &&
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
isButtonVisible('hideZeroFillingTool') && (_jsx(ToggleButton,
|
|
84
|
-
isButtonVisible('hidePhaseCorrectionTool') && (_jsx(ToggleButton,
|
|
49
|
+
ftCounter > 1 &&
|
|
50
|
+
mode === 'RTL' && (_jsx(ToggleButton, { value: options.multipleSpectraAnalysis.id, id: "multipleSpectraAnalysis", title: options.multipleSpectraAnalysis.label, children: _jsx(SvgNmrMultipleAnalysis, {}, void 0) }, options.multipleSpectraAnalysis.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
51
|
+
isButtonVisible('hideZeroFillingTool') && (_jsx(ToggleButton, { value: options.zeroFilling.id, isVisible: Filters.zeroFilling.isApplicable({ info }), id: "zeroFilling", title: options.zeroFilling.label, children: _jsx(SvgNmrZeroFilling, {}, void 0) }, options.zeroFilling.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
52
|
+
isButtonVisible('hidePhaseCorrectionTool') && (_jsx(ToggleButton, { value: options.phaseCorrection.id, id: "phaseCorrection", title: options.phaseCorrection.label, isVisible: activeSpectrum &&
|
|
85
53
|
info &&
|
|
86
54
|
Filters.phaseCorrection.isApplicable({ info }) &&
|
|
87
55
|
datum.im
|
|
88
56
|
? true
|
|
89
|
-
: false
|
|
90
|
-
isButtonVisible('hideBaseLineCorrectionTool') && (_jsx(ToggleButton,
|
|
57
|
+
: false, children: _jsx(SvgNmrPhaseCorrection, {}, void 0) }, options.phaseCorrection.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
58
|
+
isButtonVisible('hideBaseLineCorrectionTool') && (_jsx(ToggleButton, { value: options.baseLineCorrection.id, id: "baseLineCorrection", title: options.baseLineCorrection.label, isVisible: activeSpectrum &&
|
|
91
59
|
info &&
|
|
92
60
|
Filters.baselineCorrection.isApplicable({ info })
|
|
93
61
|
? true
|
|
94
|
-
: false
|
|
62
|
+
: false, children: _jsx(SvgNmrBaselineCorrection, {}, void 0) }, options.baseLineCorrection.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
95
63
|
isButtonVisible('hideExclusionZonesTool') &&
|
|
96
64
|
isPanelVisible('hideMultipleSpectraAnalysisPanel') &&
|
|
97
|
-
!info?.isFid && (_jsx(ToggleButton,
|
|
65
|
+
!info?.isFid && (_jsx(ToggleButton, { value: options.exclusionZones.id, title: options.exclusionZones.label, id: "exclusionZones", children: _jsx("div", { style: { fontSize: 18 }, children: _jsx(SvgNmrMultipleAnalysis, {}, void 0) }, void 0) }, options.exclusionZones.id))] }, void 0), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
98
66
|
isButtonVisible('hideFFTTool') &&
|
|
99
67
|
info &&
|
|
100
|
-
Filters.fft.isApplicable({ info }) && (_jsx(
|
|
68
|
+
Filters.fft.isApplicable({ info }) && (_jsx(Toolbar.Item, { id: "fft-filter", className: "cheminfo", title: "FFT Filter", onClick: handleOnFFTFilter, children: _jsx(SvgNmrFourierTransform, {}, void 0) }, void 0))] }, void 0));
|
|
101
69
|
}
|
|
102
70
|
const MemoizedFunctionToolBar = memo(FunctionToolBarInner);
|
|
103
71
|
export default function FunctionToolBar({ defaultValue = options.zoom.id, }) {
|
|
104
|
-
const { activeSpectrum,
|
|
72
|
+
const { activeSpectrum, displayerMode, activeTab, mode } = useChartData();
|
|
105
73
|
const data = useDatumWithSpectraStatistics();
|
|
106
|
-
return (_jsx(MemoizedFunctionToolBar,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
74
|
+
return (_jsx(MemoizedFunctionToolBar, { ...{
|
|
75
|
+
...data,
|
|
76
|
+
activeSpectrum,
|
|
77
|
+
displayerMode,
|
|
78
|
+
activeTab,
|
|
79
|
+
defaultValue,
|
|
80
|
+
mode,
|
|
81
|
+
} }, void 0));
|
|
114
82
|
}
|