nmrium 0.21.0 → 0.24.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/README.md +4 -0
- package/lib/component/1d/Chart1D.js +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.js +3 -4
- package/lib/component/1d/FooterBanner.js +7 -8
- package/lib/component/1d/Integral.js +3 -8
- package/lib/component/1d/IntegralResizable.js +1 -1
- package/lib/component/1d/IntegralsSeries.js +2 -2
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/PeakAnnotation.js +3 -3
- package/lib/component/1d/PeakAnnotations.js +1 -1
- package/lib/component/1d/Resizable.js +2 -2
- package/lib/component/1d/ResurrectedDatabaseRanges.js +1 -1
- package/lib/component/1d/SpectraTracker.js +3 -3
- package/lib/component/1d/Viewer1D.js +9 -9
- package/lib/component/1d/XAxis.js +1 -1
- package/lib/component/1d/YAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js +3 -4
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCoupling.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js +2 -2
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -3
- package/lib/component/1d/multiplicityTree/TempMultiplicityTree.js +1 -1
- package/lib/component/1d/multiplicityTree/TreeNodes.js +2 -2
- package/lib/component/1d/ranges/Range.js +2 -2
- package/lib/component/1d/ranges/RangeIntegral.js +2 -6
- package/lib/component/1d/ranges/Ranges.js +2 -2
- package/lib/component/1d/tool/BaseLineZones.js +1 -1
- package/lib/component/1d/tool/PeakPointer.js +1 -1
- package/lib/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib/component/1d/tool/XLabelPointer.js +1 -1
- package/lib/component/1d/utilities/scale.d.ts +1 -1
- package/lib/component/1d/utilities/scale.js +7 -6
- package/lib/component/2d/Chart2D.js +2 -2
- package/lib/component/2d/Contours.js +6 -6
- package/lib/component/2d/FooterBanner.js +3 -3
- package/lib/component/2d/Left1DChart.js +1 -1
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/Top1DChart.js +1 -1
- package/lib/component/2d/Viewer2D.js +8 -8
- package/lib/component/2d/XAxis.js +1 -1
- package/lib/component/2d/YAxis.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +1 -1
- package/lib/component/2d/tools/slicing/HorizontalSliceChart.js +1 -1
- package/lib/component/2d/tools/slicing/SlicingView.js +1 -1
- package/lib/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib/component/2d/zones/IndicationLines.js +1 -1
- package/lib/component/2d/zones/Signal.js +2 -2
- package/lib/component/2d/zones/SignalCrosshair.js +1 -1
- package/lib/component/2d/zones/Zone.js +1 -1
- package/lib/component/2d/zones/Zones.js +2 -2
- package/lib/component/ErrorOverlay.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/NMRium.d.ts +36 -36
- package/lib/component/NMRium.js +10 -16
- package/lib/component/assignment/index.js +1 -1
- package/lib/component/context/PreferencesContext.d.ts +84 -2
- package/lib/component/context/PreferencesContext.js +30 -5
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBox.js +1 -1
- package/lib/component/elements/CloseButton.js +1 -1
- package/lib/component/elements/ColorInput.js +1 -1
- package/lib/component/elements/ContextMenu.js +1 -1
- package/lib/component/elements/DeleteButton.js +1 -1
- package/lib/component/elements/EditableColumn.d.ts +1 -1
- package/lib/component/elements/EditableColumn.js +1 -1
- package/lib/component/elements/Input.js +1 -1
- package/lib/component/elements/InputRange.js +1 -1
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/Label.js +1 -1
- package/lib/component/elements/Logo.js +1 -1
- package/lib/component/elements/MenuButton.js +3 -3
- package/lib/component/elements/MolecularFormulaInput.js +1 -1
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/NextPrev.js +2 -2
- package/lib/component/elements/NumberInput.js +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +3 -3
- package/lib/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib/component/elements/SaveButton.js +1 -1
- package/lib/component/elements/Select.js +1 -1
- package/lib/component/elements/Tab/DeleteButton.js +1 -1
- package/lib/component/elements/Tab/Tab.js +3 -3
- package/lib/component/elements/Tab/Tabs.js +2 -2
- 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 +1 -1
- package/lib/component/elements/Table/TableHead.js +1 -1
- package/lib/component/elements/Table/TableRow.js +1 -1
- package/lib/component/elements/ToggleButton.js +1 -1
- package/lib/component/elements/ToolTip/ToolTip.js +2 -2
- package/lib/component/elements/ToolbarMenu.js +3 -3
- package/lib/component/elements/accordion/Accordion.js +1 -1
- package/lib/component/elements/accordion/AccordionItem.js +2 -2
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +20 -1
- package/lib/component/elements/dropDownButton/DropDownButton.js +32 -34
- package/lib/component/elements/dropDownButton/DropDownList.d.ts +2 -9
- package/lib/component/elements/dropDownButton/DropDownList.js +39 -25
- package/lib/component/elements/formik/ErrorMessage.js +2 -2
- package/lib/component/elements/formik/FormikCheckBox.d.ts +1 -0
- package/lib/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib/component/elements/formik/FormikColorInput.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.js +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikForm.js +1 -1
- package/lib/component/elements/formik/FormikInput.js +1 -1
- 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.js +1 -1
- package/lib/component/elements/formik/Input.js +1 -1
- package/lib/component/elements/formik/SelectBox.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +3 -3
- package/lib/component/elements/popup/Alert/ProgressIndicator.js +1 -1
- package/lib/component/elements/popup/Alert/Provider.js +3 -3
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib/component/elements/popup/Modal/Modal.js +1 -1
- package/lib/component/elements/popup/Modal/ModalContent.js +1 -1
- package/lib/component/elements/popup/Modal/Provider.js +3 -3
- package/lib/component/elements/popup/Transition.js +1 -1
- package/lib/component/elements/popup/Wrapper.js +1 -1
- package/lib/component/elements/toggle/ToggleButton.js +1 -1
- package/lib/component/elements/toggle/ToggleButtonGroup.js +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +3 -3
- package/lib/component/header/BaseLineCorrectionPanel.js +1 -1
- package/lib/component/header/Header.js +30 -20
- package/lib/component/header/ManualPhaseCorrectionPanel.js +2 -2
- package/lib/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib/component/header/Zones2DOptionPanel.js +1 -1
- package/lib/component/highlight/index.js +1 -1
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
- package/lib/component/hooks/useCheckExperimentalFeature.js +5 -4
- package/lib/component/hooks/useCheckToolsVisibility.js +1 -1
- package/lib/component/hooks/useExport.js +15 -13
- package/lib/component/{1d/utilities → hooks}/useIntegralPath.d.ts +0 -0
- package/lib/component/hooks/useIntegralPath.js +53 -0
- package/lib/component/hooks/useTableSortBy.d.ts +2 -1
- package/lib/component/hooks/useTableSortBy.js +27 -16
- package/lib/component/hooks/useToolsFunctions.js +4 -5
- package/lib/component/hooks/useXScale.d.ts +2 -0
- package/lib/component/hooks/useXScale.js +7 -0
- package/lib/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib/component/loader/DropZone.js +2 -2
- package/lib/component/loader/NoData.js +1 -3
- package/lib/component/loader/Spinner.js +1 -1
- package/lib/component/loader/SpinnerContext.js +1 -1
- package/lib/component/modal/AboutUsModal.js +4 -4
- package/lib/component/modal/AlignSpectraModal.js +1 -1
- package/lib/component/modal/CopyClipboardModal.js +2 -2
- package/lib/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +13 -11
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/ModalStyle.js +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +1 -1
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +4 -4
- package/lib/component/modal/MultipletAnalysisModal.js +5 -5
- package/lib/component/modal/PredictSpectraModal.d.ts +0 -28
- package/lib/component/modal/PredictSpectraModal.js +31 -54
- package/lib/component/modal/SaveAsModal.js +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js +8 -7
- package/lib/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts +2 -1
- package/lib/component/modal/editRange/EditRangeModal.js +13 -9
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +33 -40
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +5 -5
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +3 -3
- package/lib/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +5 -5
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +1 -1
- package/lib/component/modal/editZone/EditPathLengthFormik.d.ts +5 -0
- package/lib/component/modal/editZone/EditPathLengthFormik.js +72 -0
- package/lib/component/modal/editZone/EditZoneModal.d.ts +8 -0
- package/lib/component/modal/editZone/EditZoneModal.js +98 -0
- package/lib/component/modal/editZone/SignalFormTab.d.ts +6 -0
- package/lib/component/modal/editZone/SignalFormTab.js +6 -0
- package/lib/component/modal/editZone/SignalsForm.d.ts +2 -0
- package/lib/component/modal/editZone/SignalsForm.js +62 -0
- package/lib/component/modal/editZone/validation/EditZoneValidation.d.ts +534 -0
- package/lib/component/modal/editZone/validation/EditZoneValidation.js +17 -0
- package/lib/component/modal/editZone/validation/isDefaultPathLength.d.ts +3 -0
- package/lib/component/modal/editZone/validation/isDefaultPathLength.js +7 -0
- package/lib/component/modal/setting/ControllersTabContent.js +1 -1
- package/lib/component/modal/setting/DisplayTabContent.d.ts +2 -2
- package/lib/component/modal/setting/DisplayTabContent.js +52 -14
- package/lib/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib/component/modal/setting/GeneralSettings.d.ts +1 -2
- package/lib/component/modal/setting/GeneralSettings.js +69 -76
- package/lib/component/modal/setting/WorkspaceItem.d.ts +6 -0
- package/lib/component/modal/setting/WorkspaceItem.js +59 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts +2 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +13 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +7 -0
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +38 -0
- package/lib/component/panels/InformationPanel.js +4 -4
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +4 -4
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +5 -6
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts +10 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +28 -18
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +9 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +16 -14
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +3 -3
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +5 -5
- package/lib/component/panels/Panels.d.ts +1 -1
- package/lib/component/panels/Panels.js +60 -45
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +4 -5
- package/lib/component/panels/PeaksPanel/PeaksTable.js +4 -4
- package/lib/component/panels/RangesPanel/RangesHeader.js +16 -14
- package/lib/component/panels/RangesPanel/RangesPanel.js +5 -6
- package/lib/component/panels/RangesPanel/RangesPreferences.js +4 -5
- package/lib/component/panels/RangesPanel/RangesTable.js +3 -3
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +2 -6
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +6 -66
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -2
- 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 +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +7 -0
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +74 -0
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +7 -0
- package/lib/component/panels/RangesPanel/{useMapRanges.js → hooks/useMapRanges.js} +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +12 -10
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +4 -4
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +13 -11
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +10 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +11 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +1 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -7
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +2 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +5 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +2 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +23 -27
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +24 -30
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +8 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +89 -0
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +2 -2
- package/lib/component/panels/SummaryPanel/Overview.js +2 -2
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +42 -45
- package/lib/component/panels/SummaryPanel/utilities/IsInView.d.ts +6 -0
- package/lib/component/panels/SummaryPanel/utilities/IsInView.js +16 -0
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +29 -0
- package/lib/component/panels/SummaryPanel/{Utilities.js → utilities/Utilities.js} +155 -19
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +1 -0
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +26 -3
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +3 -3
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +13 -8
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +4 -5
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +3 -2
- package/lib/component/panels/ZonesPanel/ZonesTable.js +7 -4
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +3 -3
- package/lib/component/panels/databasePanel/DatabasePreferences.js +3 -4
- package/lib/component/panels/databasePanel/DatabaseTable.js +4 -4
- package/lib/component/panels/extra/placeholder/NoTableData.js +1 -1
- package/lib/component/panels/filtersPanel/FilterPanel.js +2 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +19 -15
- package/lib/component/panels/header/DefaultPanelHeader.js +2 -2
- package/lib/component/panels/header/PreferencesHeader.js +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.d.ts +6 -0
- package/lib/component/panels/predictionPanel/PredictionOptions.js +90 -0
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts +2 -0
- package/lib/component/panels/predictionPanel/PredictionPanel.js +35 -0
- package/lib/component/reducer/IgnoreActions.js +2 -1
- package/lib/component/reducer/Reducer.d.ts +16 -23
- package/lib/component/reducer/Reducer.js +14 -11
- package/lib/component/reducer/actions/DatabaseActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +3 -1
- package/lib/component/reducer/actions/DomainActions.js +20 -1
- package/lib/component/reducer/actions/FiltersActions.js +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +2 -0
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -2
- package/lib/component/reducer/actions/LoadActions.js +42 -9
- package/lib/component/reducer/actions/MoleculeActions.js +5 -1
- package/lib/component/reducer/actions/PreferencesActions.js +0 -2
- package/lib/component/reducer/actions/RangesActions.js +3 -1
- package/lib/component/reducer/actions/SpectrumsActions.js +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +31 -27
- package/lib/component/reducer/actions/ZonesActions.d.ts +3 -1
- package/lib/component/reducer/actions/ZonesActions.js +33 -2
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +17 -21
- package/lib/component/reducer/helper/Zoom1DManager.js +53 -69
- package/lib/component/reducer/preferencesReducer.d.ts +182 -42
- package/lib/component/reducer/preferencesReducer.js +198 -80
- package/lib/component/reducer/types/Types.d.ts +9 -1
- package/lib/component/reducer/types/Types.js +3 -1
- package/lib/component/tool/BrushX.js +1 -1
- package/lib/component/tool/BrushXY.js +1 -1
- package/lib/component/tool/CrossLinePointer.js +1 -1
- package/lib/component/toolbar/BasicToolBar.js +23 -27
- package/lib/component/toolbar/FunctionToolBar.js +17 -18
- package/lib/component/toolbar/HistoryToolBar.js +1 -1
- package/lib/component/toolbar/ToolBar.js +2 -2
- package/lib/component/utility/FormatNumber.js +1 -1
- package/lib/component/workspaces/Workspace.d.ts +17 -0
- package/lib/component/workspaces/basic.js +29 -33
- package/lib/component/workspaces/exercise.d.ts +2 -0
- package/lib/component/workspaces/exercise.js +49 -0
- package/lib/component/workspaces/index.d.ts +3 -2
- package/lib/component/workspaces/index.js +3 -2
- package/lib/component/workspaces/prediction.d.ts +2 -0
- package/lib/component/workspaces/prediction.js +26 -0
- package/lib/component/workspaces/process1D.js +21 -31
- package/lib/data/PredictionManager.d.ts +36 -3
- package/lib/data/PredictionManager.js +62 -17
- package/lib/data/constants/DefaultPathLengths.d.ts +6 -0
- package/lib/data/constants/DefaultPathLengths.js +8 -0
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +4 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +11 -20
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +11 -0
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +11 -0
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +2 -21
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +9 -0
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js +7 -0
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +29 -0
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +13 -0
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js +14 -0
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +13 -8
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +2 -3
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getColor.d.ts +1 -0
- package/lib/data/utilities/getColor.js +1 -1
- package/lib/types/PanelPreferencesType.d.ts +10 -0
- package/lib/types/PanelPreferencesType.js +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +1 -1
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +8 -5
- package/lib-cjs/component/1d/FooterBanner.js +7 -8
- package/lib-cjs/component/1d/Integral.js +3 -8
- package/lib-cjs/component/1d/IntegralResizable.js +1 -1
- package/lib-cjs/component/1d/IntegralsSeries.js +2 -2
- package/lib-cjs/component/1d/Line.js +5 -1
- package/lib-cjs/component/1d/LinesSeries.js +1 -1
- package/lib-cjs/component/1d/PeakAnnotation.js +3 -3
- package/lib-cjs/component/1d/PeakAnnotations.js +1 -1
- package/lib-cjs/component/1d/Resizable.js +2 -2
- package/lib-cjs/component/1d/ResurrectedDatabaseRanges.js +1 -1
- package/lib-cjs/component/1d/SpectraTracker.js +3 -3
- package/lib-cjs/component/1d/Viewer1D.js +14 -10
- package/lib-cjs/component/1d/XAxis.js +6 -2
- package/lib-cjs/component/1d/YAxis.js +6 -2
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +3 -4
- package/lib-cjs/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCoupling.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -1
- package/lib-cjs/component/1d/jCouplingGraph/JsCouplings.js +2 -2
- 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 +3 -3
- package/lib-cjs/component/1d/multiplicityTree/TempMultiplicityTree.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/TreeNodes.js +2 -2
- package/lib-cjs/component/1d/ranges/Range.js +2 -2
- package/lib-cjs/component/1d/ranges/RangeIntegral.js +2 -6
- package/lib-cjs/component/1d/ranges/Ranges.js +2 -2
- package/lib-cjs/component/1d/tool/BaseLineZones.js +1 -1
- package/lib-cjs/component/1d/tool/PeakPointer.js +1 -1
- package/lib-cjs/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib-cjs/component/1d/tool/XLabelPointer.js +1 -1
- package/lib-cjs/component/1d/utilities/scale.js +7 -6
- package/lib-cjs/component/2d/Chart2D.js +2 -2
- package/lib-cjs/component/2d/Contours.js +6 -6
- package/lib-cjs/component/2d/FooterBanner.js +3 -3
- package/lib-cjs/component/2d/Left1DChart.js +6 -2
- package/lib-cjs/component/2d/SignalDeltaLine.js +1 -1
- package/lib-cjs/component/2d/Top1DChart.js +6 -2
- package/lib-cjs/component/2d/Viewer2D.js +12 -8
- package/lib-cjs/component/2d/XAxis.js +6 -2
- package/lib-cjs/component/2d/YAxis.js +6 -2
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +1 -1
- package/lib-cjs/component/2d/tools/slicing/HorizontalSliceChart.js +6 -2
- package/lib-cjs/component/2d/tools/slicing/SlicingView.js +1 -1
- package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +6 -2
- package/lib-cjs/component/2d/zones/IndicationLines.js +1 -1
- package/lib-cjs/component/2d/zones/Signal.js +2 -2
- package/lib-cjs/component/2d/zones/SignalCrosshair.js +1 -1
- package/lib-cjs/component/2d/zones/Zone.js +1 -1
- package/lib-cjs/component/2d/zones/Zones.js +2 -2
- package/lib-cjs/component/ErrorOverlay.js +1 -1
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib-cjs/component/NMRium.js +14 -17
- package/lib-cjs/component/assignment/index.js +1 -1
- package/lib-cjs/component/context/PreferencesContext.js +33 -4
- 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 +1 -1
- 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 +1 -1
- package/lib-cjs/component/elements/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/EditableColumn.js +1 -1
- package/lib-cjs/component/elements/Input.js +1 -1
- package/lib-cjs/component/elements/InputRange.js +1 -1
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/Label.js +1 -1
- package/lib-cjs/component/elements/Logo.js +1 -1
- package/lib-cjs/component/elements/MenuButton.js +3 -3
- package/lib-cjs/component/elements/MolecularFormulaInput.js +1 -1
- package/lib-cjs/component/elements/MoleculeSelection.js +1 -1
- package/lib-cjs/component/elements/NextPrev.js +2 -2
- package/lib-cjs/component/elements/NumberInput.js +1 -1
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +8 -4
- package/lib-cjs/component/elements/ReactTable/ReactTableExpandable.js +3 -3
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib-cjs/component/elements/SaveButton.js +1 -1
- package/lib-cjs/component/elements/Select.js +1 -1
- package/lib-cjs/component/elements/Tab/DeleteButton.js +1 -1
- package/lib-cjs/component/elements/Tab/Tab.js +3 -3
- package/lib-cjs/component/elements/Tab/Tabs.js +2 -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 +1 -1
- 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 +1 -1
- package/lib-cjs/component/elements/ToolTip/ToolTip.js +2 -2
- package/lib-cjs/component/elements/ToolbarMenu.js +3 -3
- package/lib-cjs/component/elements/accordion/Accordion.js +1 -1
- package/lib-cjs/component/elements/accordion/AccordionItem.js +2 -2
- package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +32 -34
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +39 -25
- package/lib-cjs/component/elements/formik/ErrorMessage.js +2 -2
- 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/FormikColorPicker.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +2 -2
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikForm.js +1 -1
- package/lib-cjs/component/elements/formik/FormikInput.js +1 -1
- 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 +1 -1
- package/lib-cjs/component/elements/formik/Input.js +1 -1
- package/lib-cjs/component/elements/formik/SelectBox.js +1 -1
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +3 -3
- package/lib-cjs/component/elements/popup/Alert/ProgressIndicator.js +1 -1
- package/lib-cjs/component/elements/popup/Alert/Provider.js +3 -3
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Modal.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +3 -3
- package/lib-cjs/component/elements/popup/Transition.js +1 -1
- package/lib-cjs/component/elements/popup/Wrapper.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButton.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButtonGroup.js +1 -1
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +3 -3
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +6 -2
- package/lib-cjs/component/header/Header.js +29 -19
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +7 -3
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +2 -2
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib-cjs/component/header/Zones2DOptionPanel.js +1 -1
- package/lib-cjs/component/highlight/index.js +1 -1
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +5 -4
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +1 -1
- package/lib-cjs/component/hooks/useExport.js +15 -13
- package/lib-cjs/component/hooks/useIntegralPath.js +56 -0
- package/lib-cjs/component/hooks/useTableSortBy.js +27 -16
- package/lib-cjs/component/hooks/useToolsFunctions.js +4 -5
- package/lib-cjs/component/hooks/useXScale.js +11 -0
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +2 -2
- package/lib-cjs/component/loader/NoData.js +1 -3
- package/lib-cjs/component/loader/Spinner.js +1 -1
- package/lib-cjs/component/loader/SpinnerContext.js +1 -1
- package/lib-cjs/component/modal/AboutUsModal.js +4 -4
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -1
- package/lib-cjs/component/modal/CopyClipboardModal.js +2 -2
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +18 -12
- package/lib-cjs/component/modal/LoadJCAMPModal.js +1 -1
- package/lib-cjs/component/modal/ModalStyle.js +1 -1
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +1 -1
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +9 -5
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +5 -5
- package/lib-cjs/component/modal/PredictSpectraModal.js +36 -55
- package/lib-cjs/component/modal/SaveAsModal.js +2 -2
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +13 -8
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +13 -9
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +38 -41
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +5 -5
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +3 -3
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormTab.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +5 -5
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +6 -2
- package/lib-cjs/component/modal/editZone/EditPathLengthFormik.js +77 -0
- package/lib-cjs/component/modal/editZone/EditZoneModal.js +103 -0
- package/lib-cjs/component/modal/editZone/SignalFormTab.js +11 -0
- package/lib-cjs/component/modal/editZone/SignalsForm.js +67 -0
- package/lib-cjs/component/modal/editZone/validation/EditZoneValidation.js +42 -0
- package/lib-cjs/component/modal/editZone/validation/isDefaultPathLength.js +12 -0
- package/lib-cjs/component/modal/setting/ControllersTabContent.js +1 -1
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +51 -13
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +3 -3
- package/lib-cjs/component/modal/setting/GeneralSettings.js +72 -75
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +64 -0
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +18 -0
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +43 -0
- package/lib-cjs/component/panels/InformationPanel.js +4 -4
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +4 -4
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +6 -6
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +5 -6
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +3 -3
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +28 -18
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +7 -7
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +16 -14
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +8 -4
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +5 -5
- package/lib-cjs/component/panels/Panels.js +61 -46
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +2 -2
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +4 -5
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +9 -5
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +16 -14
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +5 -6
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +4 -5
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +5 -65
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -2
- 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 +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +80 -0
- package/lib-cjs/component/panels/RangesPanel/{useMapRanges.js → hooks/useMapRanges.js} +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +12 -10
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +4 -4
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +13 -11
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.js +5 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +5 -5
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +10 -5
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +11 -6
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -8
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +5 -6
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +23 -27
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +47 -30
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +94 -0
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/Overview.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +41 -44
- package/lib-cjs/component/panels/SummaryPanel/utilities/IsInView.js +18 -0
- package/lib-cjs/component/panels/SummaryPanel/{Utilities.js → utilities/Utilities.js} +157 -19
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +24 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +3 -3
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +13 -8
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +4 -5
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +7 -4
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +3 -3
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +3 -4
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +4 -4
- package/lib-cjs/component/panels/extra/placeholder/NoTableData.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +2 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +19 -15
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +2 -2
- package/lib-cjs/component/panels/header/PreferencesHeader.js +1 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +118 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +41 -0
- package/lib-cjs/component/reducer/IgnoreActions.js +7 -2
- package/lib-cjs/component/reducer/Reducer.js +21 -13
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +2 -2
- package/lib-cjs/component/reducer/actions/DomainActions.js +21 -1
- package/lib-cjs/component/reducer/actions/FiltersActions.js +6 -2
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +2 -0
- package/lib-cjs/component/reducer/actions/LoadActions.js +47 -10
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +10 -2
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +0 -2
- package/lib-cjs/component/reducer/actions/RangesActions.js +7 -1
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +5 -1
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +7 -3
- package/lib-cjs/component/reducer/actions/ToolsActions.js +43 -35
- package/lib-cjs/component/reducer/actions/ZonesActions.js +40 -3
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +55 -73
- package/lib-cjs/component/reducer/preferencesReducer.js +197 -78
- package/lib-cjs/component/reducer/types/Types.js +6 -4
- package/lib-cjs/component/tool/BrushX.js +1 -1
- package/lib-cjs/component/tool/BrushXY.js +1 -1
- package/lib-cjs/component/tool/CrossLinePointer.js +1 -1
- package/lib-cjs/component/toolbar/BasicToolBar.js +23 -27
- package/lib-cjs/component/toolbar/FunctionToolBar.js +22 -19
- package/lib-cjs/component/toolbar/HistoryToolBar.js +1 -1
- package/lib-cjs/component/toolbar/ToolBar.js +2 -2
- package/lib-cjs/component/toolbar/ToolTypes.js +5 -1
- package/lib-cjs/component/utility/FormatNumber.js +1 -1
- package/lib-cjs/component/workspaces/basic.js +29 -33
- package/lib-cjs/component/workspaces/exercise.js +52 -0
- package/lib-cjs/component/workspaces/index.js +3 -2
- package/lib-cjs/component/workspaces/prediction.js +29 -0
- package/lib-cjs/component/workspaces/process1D.js +21 -31
- package/lib-cjs/data/Filters.js +5 -1
- package/lib-cjs/data/FiltersManager.js +5 -1
- package/lib-cjs/data/PredictionManager.js +62 -17
- package/lib-cjs/data/SpectraManager.js +5 -1
- package/lib-cjs/data/constants/DefaultPathLengths.js +10 -0
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +8 -0
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +16 -21
- package/lib-cjs/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +18 -0
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +2 -21
- package/lib-cjs/data/data1d/Spectrum1D/peaks/initiatePeaks.js +14 -0
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +36 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/initiateRanges.js +21 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +13 -8
- package/lib-cjs/data/data1d/Spectrum1D/shift/getShiftX.js +5 -1
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +7 -4
- package/lib-cjs/data/data2d/Spectrum2D/shift/getShift.js +5 -1
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getColor.js +2 -1
- package/lib-cjs/types/PanelPreferencesType.js +2 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +21 -21
- package/lib/component/1d/utilities/useIntegralPath.js +0 -63
- package/lib/component/panels/RangesPanel/useMapRanges.d.ts +0 -6
- package/lib/component/panels/SummaryPanel/Utilities.d.ts +0 -25
- package/lib/component/reducer/actions/Zoom.d.ts +0 -16
- package/lib/component/reducer/actions/Zoom.js +0 -92
- package/lib/component/workspaces/exercise1D.d.ts +0 -2
- package/lib/component/workspaces/exercise1D.js +0 -45
- package/lib-cjs/component/1d/utilities/useIntegralPath.js +0 -66
- package/lib-cjs/component/reducer/actions/Zoom.js +0 -116
- package/lib-cjs/component/workspaces/exercise1D.js +0 -48
|
@@ -33,33 +33,32 @@ function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum, displ
|
|
|
33
33
|
});
|
|
34
34
|
dispatch({ type: SET_SELECTED_FILTER, selectedFilter: null });
|
|
35
35
|
}, [dispatch]);
|
|
36
|
-
return (_jsxs(_Fragment, { children: [_jsxs(ToggleButtonGroup, { value: option, onChange: handleChange, children: [isButtonVisible('
|
|
37
|
-
isButtonVisible('
|
|
38
|
-
isButtonVisible('
|
|
39
|
-
isButtonVisible('
|
|
40
|
-
isButtonVisible('
|
|
41
|
-
isButtonVisible('
|
|
42
|
-
isButtonVisible('hideMultipleSpectraAnalysisTool') &&
|
|
36
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ToggleButtonGroup, { value: option, onChange: handleChange, children: [isButtonVisible('zoomTool') && (_jsx(ToggleButton, { value: options.zoom.id, id: "zoomIn", title: `${options.zoom.label} ( Press z )`, children: _jsx("div", { style: { fontSize: 14 }, children: _jsx(FaSearchPlus, {}) }) }, options.zoom.id)), isButtonVisible('zoomOutTool') && (_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, {}) }) })), displayerMode === DISPLAYER_MODE.DM_1D && isButtonVisible('peakTool') && (_jsx(ToggleButton, { value: options.peakPicking.id, title: `${options.peakPicking.label} ( Press p )`, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "peakPicking", children: _jsx(SvgNmrPeakPicking, {}) }, options.peakPicking.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
37
|
+
isButtonVisible('integralTool') && (_jsx(ToggleButton, { value: options.integral.id, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "integralPicking", title: `${options.integral.label} ( Press i )`, children: _jsx(SvgNmrIntegrate, {}) }, options.integral.id)), displayerMode === DISPLAYER_MODE.DM_2D &&
|
|
38
|
+
isButtonVisible('zonePickingTool') && (_jsx(ToggleButton, { value: options.zone2D.id, id: "zone2d", isVisible: activeSpectrum && !info?.isFid ? true : false, title: `${options.zone2D.label} ( Press r )`, children: _jsx(FaDiceFour, {}) }, options.zone2D.id)), displayerMode === DISPLAYER_MODE.DM_2D &&
|
|
39
|
+
isButtonVisible('slicingTool') && (_jsx(ToggleButton, { value: options.slicingTool.id, isVisible: activeSpectrum && !info?.isFid ? true : false, id: "slic", title: `${options.slicingTool.label}`, children: _jsx("p", { children: "Slic" }) }, options.slicingTool.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
40
|
+
isButtonVisible('autoRangesTool') && (_jsx(ToggleButton, { value: options.rangesPicking.id, isVisible: activeSpectrum && !info?.isFid ? true : false, title: `${options.rangesPicking.label} ( Press r )`, id: "ranges-pick", children: _jsx(SvgNmrRangePicking, {}) }, options.rangesPicking.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
41
|
+
isButtonVisible('multipleSpectraAnalysisTool') &&
|
|
43
42
|
ftCounter > 1 &&
|
|
44
|
-
mode === 'RTL' && (_jsx(ToggleButton, { value: options.multipleSpectraAnalysis.id, id: "multipleSpectraAnalysis", title: options.multipleSpectraAnalysis.label, children: _jsx(SvgNmrMultipleAnalysis, {}
|
|
45
|
-
isButtonVisible('
|
|
46
|
-
isButtonVisible('
|
|
43
|
+
mode === 'RTL' && (_jsx(ToggleButton, { value: options.multipleSpectraAnalysis.id, id: "multipleSpectraAnalysis", title: options.multipleSpectraAnalysis.label, children: _jsx(SvgNmrMultipleAnalysis, {}) }, options.multipleSpectraAnalysis.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
44
|
+
isButtonVisible('zeroFillingTool') && (_jsx(ToggleButton, { value: options.zeroFilling.id, isVisible: Filters.zeroFilling.isApplicable({ info }), id: "zeroFilling", title: options.zeroFilling.label, children: _jsx(SvgNmrZeroFilling, {}) }, options.zeroFilling.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
45
|
+
isButtonVisible('phaseCorrectionTool') && (_jsx(ToggleButton, { value: options.phaseCorrection.id, id: "phaseCorrection", title: `${options.phaseCorrection.label} ( Press a )`, isVisible: activeSpectrum &&
|
|
47
46
|
info &&
|
|
48
47
|
Filters.phaseCorrection.isApplicable({ info }) &&
|
|
49
48
|
datum.im
|
|
50
49
|
? true
|
|
51
|
-
: false, children: _jsx(SvgNmrPhaseCorrection, {}
|
|
52
|
-
isButtonVisible('
|
|
50
|
+
: false, children: _jsx(SvgNmrPhaseCorrection, {}) }, options.phaseCorrection.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
51
|
+
isButtonVisible('baseLineCorrectionTool') && (_jsx(ToggleButton, { value: options.baseLineCorrection.id, id: "baseLineCorrection", title: `${options.baseLineCorrection.label} ( Press b )`, isVisible: activeSpectrum &&
|
|
53
52
|
info &&
|
|
54
53
|
Filters.baselineCorrection.isApplicable({ info })
|
|
55
54
|
? true
|
|
56
|
-
: false, children: _jsx(SvgNmrBaselineCorrection, {}
|
|
57
|
-
isButtonVisible('
|
|
55
|
+
: false, children: _jsx(SvgNmrBaselineCorrection, {}) }, options.baseLineCorrection.id)), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
56
|
+
isButtonVisible('exclusionZonesTool') &&
|
|
58
57
|
!info?.isFid &&
|
|
59
|
-
ftCounter > 0 && (_jsx(ToggleButton, { value: options.exclusionZones.id, title: `${options.exclusionZones.label} ( Press e )`, id: "exclusionZones", children: _jsx("div", { style: { fontSize: 18 }, children: _jsx(SvgNmrMultipleAnalysis, {}
|
|
60
|
-
isButtonVisible('
|
|
58
|
+
ftCounter > 0 && (_jsx(ToggleButton, { value: options.exclusionZones.id, title: `${options.exclusionZones.label} ( Press e )`, id: "exclusionZones", children: _jsx("div", { style: { fontSize: 18 }, children: _jsx(SvgNmrMultipleAnalysis, {}) }) }, options.exclusionZones.id))] }), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
59
|
+
isButtonVisible('FFTTool') &&
|
|
61
60
|
info &&
|
|
62
|
-
Filters.fft.isApplicable({ info }) && (_jsx(Toolbar.Item, { id: "fft-filter", className: "cheminfo", title: "FFT Filter", onClick: handleOnFFTFilter, children: _jsx(SvgNmrFourierTransform, {}
|
|
61
|
+
Filters.fft.isApplicable({ info }) && (_jsx(Toolbar.Item, { id: "fft-filter", className: "cheminfo", title: "FFT Filter", onClick: handleOnFFTFilter, children: _jsx(SvgNmrFourierTransform, {}) }))] }));
|
|
63
62
|
}
|
|
64
63
|
const MemoizedFunctionToolBar = memo(FunctionToolBarInner);
|
|
65
64
|
export default function FunctionToolBar({ defaultValue = options.zoom.id, }) {
|
|
@@ -72,5 +71,5 @@ export default function FunctionToolBar({ defaultValue = options.zoom.id, }) {
|
|
|
72
71
|
activeTab,
|
|
73
72
|
defaultValue,
|
|
74
73
|
mode,
|
|
75
|
-
} }
|
|
74
|
+
} }));
|
|
76
75
|
}
|
|
@@ -25,6 +25,6 @@ function HistoryToolBar({ isUndoButtonVisible = true, isRedoButtonVisible = true
|
|
|
25
25
|
const { history } = useChartData();
|
|
26
26
|
const dispatch = useDispatch();
|
|
27
27
|
const handle = useCallback((type) => dispatch({ type }), [dispatch]);
|
|
28
|
-
return (_jsxs(Fragment, { children: [isUndoButtonVisible && (_jsx("button", { style: styles.button, type: "button", onClick: () => handle(REDO), disabled: !history.hasRedo, children: _jsx(ToolTip, { title: "Redo", popupPlacement: "right", children: _jsx(FaRedo, {}
|
|
28
|
+
return (_jsxs(Fragment, { children: [isUndoButtonVisible && (_jsx("button", { style: styles.button, type: "button", onClick: () => handle(REDO), disabled: !history.hasRedo, children: _jsx(ToolTip, { title: "Redo", popupPlacement: "right", children: _jsx(FaRedo, {}) }) })), isRedoButtonVisible && (_jsx("button", { type: "button", style: styles.button, onClick: () => handle(UNDO), disabled: !history.hasUndo, children: _jsx(ToolTip, { title: "Undo", popupPlacement: "right", children: _jsx(FaUndo, {}) }) }))] }));
|
|
29
29
|
}
|
|
30
30
|
export default memo(HistoryToolBar);
|
|
@@ -5,10 +5,10 @@ import { useChartData } from '../context/ChartContext';
|
|
|
5
5
|
import BasicToolBar from './BasicToolBar';
|
|
6
6
|
import FunctionToolBar from './FunctionToolBar';
|
|
7
7
|
function ToolBarInner({ selectedTool }) {
|
|
8
|
-
return (_jsx("div", { style: { fontSize: 18 }, children: _jsxs(Toolbar, { orientation: "vertical", children: [_jsx(FunctionToolBar, { defaultValue: selectedTool }
|
|
8
|
+
return (_jsx("div", { style: { fontSize: 18 }, children: _jsxs(Toolbar, { orientation: "vertical", children: [_jsx(FunctionToolBar, { defaultValue: selectedTool }), _jsx(BasicToolBar, {})] }) }));
|
|
9
9
|
}
|
|
10
10
|
const MemoizedToolBar = memo(ToolBarInner);
|
|
11
11
|
export default function ToolBar() {
|
|
12
12
|
const { toolOptions: { selectedTool }, } = useChartData();
|
|
13
|
-
return _jsx(MemoizedToolBar, { ...{ selectedTool } }
|
|
13
|
+
return _jsx(MemoizedToolBar, { ...{ selectedTool } });
|
|
14
14
|
}
|
|
@@ -7,7 +7,7 @@ function FormatNumber(value, format, prefix = '', suffix = '') {
|
|
|
7
7
|
}
|
|
8
8
|
export function useFormatNumberByNucleus(nucleus) {
|
|
9
9
|
const preferences = usePreferences();
|
|
10
|
-
const nucleusByKey = lodashGet(preferences, `formatting.nucleusByKey`, {
|
|
10
|
+
const nucleusByKey = lodashGet(preferences.current, `formatting.nucleusByKey`, {
|
|
11
11
|
ppm: '0.0',
|
|
12
12
|
hz: '0.0',
|
|
13
13
|
});
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { NMRiumPreferences } from '../NMRium';
|
|
2
|
+
interface NucleusFormat {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
ppm: string;
|
|
6
|
+
hz: string;
|
|
7
|
+
}
|
|
8
|
+
interface Controllers {
|
|
9
|
+
dimmedSpectraTransparency: number;
|
|
10
|
+
}
|
|
11
|
+
interface Formatting {
|
|
12
|
+
nucleus: NucleusFormat[];
|
|
13
|
+
nucleusByKey: Record<string, NucleusFormat>;
|
|
14
|
+
panels: any;
|
|
15
|
+
}
|
|
2
16
|
export interface Workspace {
|
|
3
17
|
version: number;
|
|
4
18
|
label: string;
|
|
5
19
|
display: NMRiumPreferences;
|
|
20
|
+
controllers: Controllers;
|
|
21
|
+
formatting: Formatting;
|
|
6
22
|
}
|
|
23
|
+
export {};
|
|
@@ -1,45 +1,41 @@
|
|
|
1
1
|
export const basic = {
|
|
2
2
|
version: 1,
|
|
3
|
-
label: 'Default
|
|
3
|
+
label: 'Default workspace',
|
|
4
4
|
display: {
|
|
5
5
|
general: {
|
|
6
6
|
disableMultipletAnalysis: false,
|
|
7
7
|
hideSetSumFromMolecule: false,
|
|
8
8
|
hideGeneralSettings: false,
|
|
9
|
-
|
|
9
|
+
experimentalFeatures: { display: true },
|
|
10
10
|
},
|
|
11
11
|
panels: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
toolBarButtons: {
|
|
25
|
-
hideZoomTool: false,
|
|
26
|
-
hideZoomOutTool: false,
|
|
27
|
-
hideImport: false,
|
|
28
|
-
hideExportAs: false,
|
|
29
|
-
hideSpectraStackAlignments: false,
|
|
30
|
-
hideSpectraCenterAlignments: false,
|
|
31
|
-
hideRealImaginary: false,
|
|
32
|
-
hidePeakTool: false,
|
|
33
|
-
hideIntegralTool: false,
|
|
34
|
-
hideZonePickingTool: false,
|
|
35
|
-
hideSlicingTool: false,
|
|
36
|
-
hideAutoRangesTool: false,
|
|
37
|
-
hideZeroFillingTool: false,
|
|
38
|
-
hidePhaseCorrectionTool: false,
|
|
39
|
-
hideBaseLineCorrectionTool: false,
|
|
40
|
-
hideFFTTool: false,
|
|
41
|
-
hideMultipleSpectraAnalysisTool: false,
|
|
42
|
-
hideExclusionZonesTool: false,
|
|
12
|
+
spectraPanel: { display: true, open: true },
|
|
13
|
+
informationPanel: { display: true, open: false },
|
|
14
|
+
peaksPanel: { display: true, open: false },
|
|
15
|
+
integralsPanel: { display: true, open: false },
|
|
16
|
+
rangesPanel: { display: true, open: false },
|
|
17
|
+
structuresPanel: { display: true, open: false },
|
|
18
|
+
filtersPanel: { display: true, open: false },
|
|
19
|
+
zonesPanel: { display: true, open: false },
|
|
20
|
+
summaryPanel: { display: false, open: false },
|
|
21
|
+
multipleSpectraAnalysisPanel: { display: false, open: false },
|
|
22
|
+
databasePanel: { display: false, open: false },
|
|
23
|
+
predictionPanel: { display: false, open: false },
|
|
43
24
|
},
|
|
44
25
|
},
|
|
26
|
+
controllers: {
|
|
27
|
+
dimmedSpectraTransparency: 0.1,
|
|
28
|
+
},
|
|
29
|
+
formatting: {
|
|
30
|
+
nucleus: [
|
|
31
|
+
{ key: '1H', name: '1H', ppm: '0.00', hz: '0.00' },
|
|
32
|
+
{ key: '13C', name: '13C', ppm: '0.00', hz: '0.00' },
|
|
33
|
+
{ key: '15N', name: '15N', ppm: '0.00', hz: '0.00' },
|
|
34
|
+
{ key: '19F', name: '19F', ppm: '0.00', hz: '0.00' },
|
|
35
|
+
{ key: '29Si', name: '29Si', ppm: '0.00', hz: '0.00' },
|
|
36
|
+
{ key: '31P', name: '31P', ppm: '0.00', hz: '0.00' },
|
|
37
|
+
],
|
|
38
|
+
nucleusByKey: {},
|
|
39
|
+
panels: {},
|
|
40
|
+
},
|
|
45
41
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { basic } from './basic';
|
|
2
|
+
export const exercise = {
|
|
3
|
+
version: 1,
|
|
4
|
+
label: 'Exercise workspace',
|
|
5
|
+
display: {
|
|
6
|
+
general: {
|
|
7
|
+
disableMultipletAnalysis: true,
|
|
8
|
+
hideSetSumFromMolecule: true,
|
|
9
|
+
hideGeneralSettings: true,
|
|
10
|
+
experimentalFeatures: { hidden: true },
|
|
11
|
+
},
|
|
12
|
+
panels: {
|
|
13
|
+
spectraPanel: { display: true, open: true },
|
|
14
|
+
informationPanel: { hidden: true },
|
|
15
|
+
peaksPanel: { hidden: true },
|
|
16
|
+
integralsPanel: { display: true },
|
|
17
|
+
rangesPanel: { hidden: true },
|
|
18
|
+
structuresPanel: { hidden: true },
|
|
19
|
+
filtersPanel: { hidden: true },
|
|
20
|
+
zonesPanel: { hidden: true },
|
|
21
|
+
summaryPanel: { hidden: true },
|
|
22
|
+
multipleSpectraAnalysisPanel: { hidden: true },
|
|
23
|
+
databasePanel: { hidden: true },
|
|
24
|
+
predictionPanel: { hidden: true },
|
|
25
|
+
},
|
|
26
|
+
toolBarButtons: {
|
|
27
|
+
zoomTool: true,
|
|
28
|
+
zoomOutTool: true,
|
|
29
|
+
import: false,
|
|
30
|
+
exportAs: false,
|
|
31
|
+
spectraStackAlignments: true,
|
|
32
|
+
spectraCenterAlignments: true,
|
|
33
|
+
realImaginary: false,
|
|
34
|
+
peakTool: true,
|
|
35
|
+
integralTool: true,
|
|
36
|
+
zonePickingTool: false,
|
|
37
|
+
slicingTool: false,
|
|
38
|
+
autoRangesTool: false,
|
|
39
|
+
zeroFillingTool: false,
|
|
40
|
+
phaseCorrectionTool: false,
|
|
41
|
+
baseLineCorrectionTool: false,
|
|
42
|
+
FFTTool: false,
|
|
43
|
+
multipleSpectraAnalysisTool: false,
|
|
44
|
+
exclusionZonesTool: false,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
controllers: basic.controllers,
|
|
48
|
+
formatting: basic.formatting,
|
|
49
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
exercise: import("./Workspace").Workspace;
|
|
3
|
+
default: import("./Workspace").Workspace;
|
|
4
4
|
process1D: import("./Workspace").Workspace;
|
|
5
|
+
prediction: import("./Workspace").Workspace;
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { basic } from './basic';
|
|
2
|
-
import {
|
|
2
|
+
import { exercise } from './exercise';
|
|
3
|
+
import { prediction } from './prediction';
|
|
3
4
|
import { process1D } from './process1D';
|
|
4
|
-
export default {
|
|
5
|
+
export default { exercise, default: basic, process1D, prediction };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { basic } from './basic';
|
|
2
|
+
export const prediction = {
|
|
3
|
+
version: 1,
|
|
4
|
+
label: 'Prediction workspace',
|
|
5
|
+
display: {
|
|
6
|
+
general: {
|
|
7
|
+
experimentalFeatures: { display: false },
|
|
8
|
+
},
|
|
9
|
+
panels: {
|
|
10
|
+
spectraPanel: { display: true },
|
|
11
|
+
rangesPanel: { display: true },
|
|
12
|
+
zonesPanel: { display: true },
|
|
13
|
+
predictionPanel: { display: true, open: true },
|
|
14
|
+
informationPanel: { display: false },
|
|
15
|
+
peaksPanel: { display: false },
|
|
16
|
+
integralsPanel: { display: false },
|
|
17
|
+
structuresPanel: { display: false },
|
|
18
|
+
filtersPanel: { display: false },
|
|
19
|
+
summaryPanel: { display: false },
|
|
20
|
+
multipleSpectraAnalysisPanel: { display: false },
|
|
21
|
+
databasePanel: { display: false },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
controllers: basic.controllers,
|
|
25
|
+
formatting: basic.formatting,
|
|
26
|
+
};
|
|
@@ -1,43 +1,33 @@
|
|
|
1
|
+
import { basic } from './basic';
|
|
1
2
|
export const process1D = {
|
|
2
3
|
version: 1,
|
|
3
|
-
label: 'Process 1D
|
|
4
|
+
label: 'Process 1D workspace',
|
|
4
5
|
display: {
|
|
5
6
|
general: {
|
|
6
7
|
disableMultipletAnalysis: true,
|
|
7
|
-
hideSetSumFromMolecule: false,
|
|
8
|
-
hideGeneralSettings: false,
|
|
9
|
-
hideExperimentalFeatures: false,
|
|
10
8
|
},
|
|
11
9
|
panels: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
zonesPanel: { display: true },
|
|
11
|
+
summaryPanel: { display: true },
|
|
12
|
+
multipleSpectraAnalysisPanel: { display: true, open: true },
|
|
13
|
+
spectraPanel: { display: true, open: true },
|
|
14
|
+
informationPanel: { hidden: true },
|
|
15
|
+
peaksPanel: { hidden: true },
|
|
16
|
+
integralsPanel: { hidden: true },
|
|
17
|
+
rangesPanel: { hidden: true },
|
|
18
|
+
structuresPanel: { hidden: true },
|
|
19
|
+
filtersPanel: { hidden: true },
|
|
20
|
+
databasePanel: { hidden: true },
|
|
21
|
+
predictionPanel: { hidden: true },
|
|
23
22
|
},
|
|
24
23
|
toolBarButtons: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
hideSpectraCenterAlignments: false,
|
|
31
|
-
hideRealImaginary: false,
|
|
32
|
-
hidePeakTool: false,
|
|
33
|
-
hideIntegralTool: false,
|
|
34
|
-
hideAutoRangesTool: true,
|
|
35
|
-
hideZeroFillingTool: false,
|
|
36
|
-
hidePhaseCorrectionTool: false,
|
|
37
|
-
hideBaseLineCorrectionTool: false,
|
|
38
|
-
hideFFTTool: false,
|
|
39
|
-
hideMultipleSpectraAnalysisTool: true,
|
|
40
|
-
hideExclusionZonesTool: true,
|
|
24
|
+
import: false,
|
|
25
|
+
exportAs: false,
|
|
26
|
+
autoRangesTool: false,
|
|
27
|
+
multipleSpectraAnalysisTool: false,
|
|
28
|
+
exclusionZonesTool: false,
|
|
41
29
|
},
|
|
42
30
|
},
|
|
31
|
+
controllers: basic.controllers,
|
|
32
|
+
formatting: basic.formatting,
|
|
43
33
|
};
|
|
@@ -1,6 +1,39 @@
|
|
|
1
|
-
import { PredictionProps } from '../component/modal/PredictSpectraModal';
|
|
2
|
-
import { UsedColors } from '../types/UsedColors';
|
|
3
1
|
import { Datum1D } from './types/data1d';
|
|
4
2
|
import { Datum2D } from './types/data2d';
|
|
3
|
+
export interface PredictionOptions {
|
|
4
|
+
name: string;
|
|
5
|
+
frequency: number;
|
|
6
|
+
'1d': {
|
|
7
|
+
'1H': {
|
|
8
|
+
from: number;
|
|
9
|
+
to: number;
|
|
10
|
+
};
|
|
11
|
+
'13C': {
|
|
12
|
+
from: number;
|
|
13
|
+
to: number;
|
|
14
|
+
};
|
|
15
|
+
nbPoints: number;
|
|
16
|
+
lineWidth: number;
|
|
17
|
+
};
|
|
18
|
+
'2d': {
|
|
19
|
+
nbPoints: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
spectra: {
|
|
25
|
+
proton: boolean;
|
|
26
|
+
carbon: boolean;
|
|
27
|
+
cosy: boolean;
|
|
28
|
+
hsqc: boolean;
|
|
29
|
+
hmbc: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare const defaultPredictionOptions: PredictionOptions;
|
|
33
|
+
export declare const FREQUENCIES: Array<{
|
|
34
|
+
key: number;
|
|
35
|
+
value: number;
|
|
36
|
+
label: string;
|
|
37
|
+
}>;
|
|
5
38
|
export declare function predictSpectra(molfile: string): Promise<any>;
|
|
6
|
-
export declare function generateSpectra(data: Record<string, any>, inputOptions:
|
|
39
|
+
export declare function generateSpectra(data: Record<string, any>, inputOptions: PredictionOptions, color: string): Array<Datum1D | Datum2D>;
|
|
@@ -1,9 +1,42 @@
|
|
|
1
|
-
import { predictAll, signalsToXY, signals2DToZ } from 'nmr-processing';
|
|
1
|
+
import { predictAll, signalsToXY, signals2DToZ, getFrequency, } from 'nmr-processing';
|
|
2
2
|
import OCL from 'openchemlib/full';
|
|
3
3
|
import { DatumKind } from './constants/SignalsKinds';
|
|
4
4
|
import { initiateDatum1D, mapRanges, updateIntegralsRelativeValues, } from './data1d/Spectrum1D';
|
|
5
5
|
import { initiateDatum2D } from './data2d/Spectrum2D';
|
|
6
6
|
import generateID from './utilities/generateID';
|
|
7
|
+
import { adjustAlpha } from './utilities/getColor';
|
|
8
|
+
export const defaultPredictionOptions = {
|
|
9
|
+
name: '',
|
|
10
|
+
frequency: 400,
|
|
11
|
+
'1d': {
|
|
12
|
+
'1H': { from: -1, to: 12 },
|
|
13
|
+
'13C': { from: -5, to: 220 },
|
|
14
|
+
nbPoints: 2 ** 17,
|
|
15
|
+
lineWidth: 1,
|
|
16
|
+
},
|
|
17
|
+
'2d': {
|
|
18
|
+
nbPoints: { x: 1024, y: 1024 },
|
|
19
|
+
},
|
|
20
|
+
spectra: {
|
|
21
|
+
proton: true,
|
|
22
|
+
carbon: true,
|
|
23
|
+
cosy: true,
|
|
24
|
+
hsqc: true,
|
|
25
|
+
hmbc: true,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
export const FREQUENCIES = [
|
|
29
|
+
{ key: 1, value: 60, label: '60 MHz' },
|
|
30
|
+
{ key: 2, value: 100, label: '100 MHz' },
|
|
31
|
+
{ key: 3, value: 200, label: '200 MHz' },
|
|
32
|
+
{ key: 4, value: 300, label: '300 MHz' },
|
|
33
|
+
{ key: 5, value: 400, label: '400 MHz' },
|
|
34
|
+
{ key: 6, value: 500, label: '500 MHz' },
|
|
35
|
+
{ key: 7, value: 600, label: '600 MHz' },
|
|
36
|
+
{ key: 8, value: 800, label: '800 MHz' },
|
|
37
|
+
{ key: 9, value: 1000, label: '1000 MHz' },
|
|
38
|
+
{ key: 10, value: 1200, label: '1200 MHz' },
|
|
39
|
+
];
|
|
7
40
|
const baseURL = 'https://nmr-prediction.service.zakodium.com';
|
|
8
41
|
export async function predictSpectra(molfile) {
|
|
9
42
|
const molecule = OCL.Molecule.fromMolfile(molfile);
|
|
@@ -15,7 +48,7 @@ export async function predictSpectra(molfile) {
|
|
|
15
48
|
},
|
|
16
49
|
});
|
|
17
50
|
}
|
|
18
|
-
export function generateSpectra(data, inputOptions,
|
|
51
|
+
export function generateSpectra(data, inputOptions, color) {
|
|
19
52
|
const spectra = [];
|
|
20
53
|
for (const experiment in data) {
|
|
21
54
|
if (inputOptions.spectra[experiment]) {
|
|
@@ -27,7 +60,7 @@ export function generateSpectra(data, inputOptions, usedColors) {
|
|
|
27
60
|
spectrum,
|
|
28
61
|
inputOptions,
|
|
29
62
|
experiment,
|
|
30
|
-
|
|
63
|
+
color,
|
|
31
64
|
});
|
|
32
65
|
spectra.push(datum);
|
|
33
66
|
break;
|
|
@@ -39,7 +72,7 @@ export function generateSpectra(data, inputOptions, usedColors) {
|
|
|
39
72
|
spectrum,
|
|
40
73
|
inputOptions,
|
|
41
74
|
experiment,
|
|
42
|
-
|
|
75
|
+
color,
|
|
43
76
|
});
|
|
44
77
|
spectra.push(datum);
|
|
45
78
|
break;
|
|
@@ -52,10 +85,10 @@ export function generateSpectra(data, inputOptions, usedColors) {
|
|
|
52
85
|
return spectra;
|
|
53
86
|
}
|
|
54
87
|
function generated1DSpectrum(params) {
|
|
55
|
-
const { spectrum, inputOptions, experiment,
|
|
88
|
+
const { spectrum, inputOptions, experiment, color } = params;
|
|
56
89
|
const { signals, ranges, nucleus } = spectrum;
|
|
57
|
-
const { '1d': { nbPoints }, frequency: freq, } = inputOptions;
|
|
58
|
-
const frequency =
|
|
90
|
+
const { name, '1d': { nbPoints }, frequency: freq, } = inputOptions;
|
|
91
|
+
const frequency = calculateFrequency(nucleus, freq);
|
|
59
92
|
const { x, y } = signalsToXY(signals, {
|
|
60
93
|
...inputOptions['1d'][nucleus],
|
|
61
94
|
frequency,
|
|
@@ -63,6 +96,10 @@ function generated1DSpectrum(params) {
|
|
|
63
96
|
});
|
|
64
97
|
const datum = initiateDatum1D({
|
|
65
98
|
data: { x, im: null, re: y },
|
|
99
|
+
display: {
|
|
100
|
+
name,
|
|
101
|
+
color,
|
|
102
|
+
},
|
|
66
103
|
info: {
|
|
67
104
|
nucleus,
|
|
68
105
|
originFrequency: frequency,
|
|
@@ -72,7 +109,7 @@ function generated1DSpectrum(params) {
|
|
|
72
109
|
experiment,
|
|
73
110
|
isFt: true,
|
|
74
111
|
},
|
|
75
|
-
},
|
|
112
|
+
}, []);
|
|
76
113
|
datum.ranges.values = mapRanges(ranges, datum);
|
|
77
114
|
updateIntegralsRelativeValues(datum);
|
|
78
115
|
return datum;
|
|
@@ -101,12 +138,12 @@ function mapZones(zones) {
|
|
|
101
138
|
}, []);
|
|
102
139
|
}
|
|
103
140
|
function generated2DSpectrum(params) {
|
|
104
|
-
const { spectrum, inputOptions, experiment,
|
|
141
|
+
const { spectrum, inputOptions, experiment, color } = params;
|
|
105
142
|
const { signals, zones, nuclei } = spectrum;
|
|
106
143
|
const xOption = inputOptions['1d'][nuclei[0]];
|
|
107
144
|
const yOption = inputOptions['1d'][nuclei[1]];
|
|
108
145
|
const width = get2DWidth(nuclei);
|
|
109
|
-
const frequency =
|
|
146
|
+
const frequency = calculateFrequency(nuclei, inputOptions.frequency);
|
|
110
147
|
const spectrumData = signals2DToZ(signals, {
|
|
111
148
|
from: { x: xOption.from, y: yOption.from },
|
|
112
149
|
to: { x: xOption.to, y: yOption.to },
|
|
@@ -115,9 +152,15 @@ function generated2DSpectrum(params) {
|
|
|
115
152
|
y: inputOptions['2d'].nbPoints.y,
|
|
116
153
|
},
|
|
117
154
|
width,
|
|
155
|
+
factor: 3,
|
|
118
156
|
});
|
|
119
157
|
const datum = initiateDatum2D({
|
|
120
158
|
data: { ...spectrumData, noise: 0.01 },
|
|
159
|
+
display: {
|
|
160
|
+
name: inputOptions.name,
|
|
161
|
+
positiveColor: color,
|
|
162
|
+
negativeColor: adjustAlpha(color, 40),
|
|
163
|
+
},
|
|
121
164
|
info: {
|
|
122
165
|
nucleus: nuclei,
|
|
123
166
|
originFrequency: frequency,
|
|
@@ -125,24 +168,26 @@ function generated2DSpectrum(params) {
|
|
|
125
168
|
pulseSequence: experiment,
|
|
126
169
|
experiment: '2d',
|
|
127
170
|
},
|
|
128
|
-
},
|
|
171
|
+
}, []);
|
|
129
172
|
datum.zones.values = mapZones(zones);
|
|
130
173
|
return datum;
|
|
131
174
|
}
|
|
132
175
|
function get2DWidth(nucleus) {
|
|
133
|
-
return nucleus[0] === nucleus[1] ? 0.
|
|
176
|
+
return nucleus[0] === nucleus[1] ? 0.02 : { x: 0.02, y: 0.2133 };
|
|
134
177
|
}
|
|
135
|
-
function
|
|
136
|
-
const ration13C = 0.25;
|
|
178
|
+
function calculateFrequency(nucleus, frequency) {
|
|
137
179
|
if (typeof nucleus === 'string') {
|
|
138
|
-
return nucleus
|
|
180
|
+
return getFrequency(nucleus, { nucleus: '1H', frequency });
|
|
139
181
|
}
|
|
140
182
|
else {
|
|
141
183
|
if (nucleus[0] === nucleus[1]) {
|
|
142
|
-
return `${
|
|
184
|
+
return `${frequency},${frequency}`;
|
|
143
185
|
}
|
|
144
186
|
else {
|
|
145
|
-
return `${
|
|
187
|
+
return `${frequency},${getFrequency(nucleus[1], {
|
|
188
|
+
nucleus: nucleus[0],
|
|
189
|
+
frequency,
|
|
190
|
+
})}`;
|
|
146
191
|
}
|
|
147
192
|
}
|
|
148
193
|
}
|