nmrium 0.33.0 → 0.34.0-pre.1683183916
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/ApodizationLine.d.ts +2 -2
- package/lib/component/1d/ApodizationLine.js +6 -4
- package/lib/component/1d/Chart1D.js +6 -3
- package/lib/component/1d/ExclusionZoneAnnotation.d.ts +2 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +7 -3
- package/lib/component/1d/ExclusionZonesAnnotations.js +22 -7
- package/lib/component/1d/FooterBanner.js +24 -11
- package/lib/component/1d/Line.js +4 -10
- package/lib/component/1d/LinesSeries.js +6 -7
- package/lib/component/1d/SpectraLegends.d.ts +3 -0
- package/lib/component/1d/SpectraLegends.js +60 -0
- package/lib/component/1d/Viewer1D.js +43 -13
- package/lib/component/1d/XAxis.js +5 -5
- package/lib/component/1d/YAxis.js +3 -7
- package/lib/component/1d/database/DatabaseSpectrum.js +11 -10
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +5 -3
- package/lib/component/1d/integral/IntegralIndicator.js +1 -7
- package/lib/component/1d/integral/IntegralResizable.js +6 -2
- package/lib/component/1d/integral/IntegralsSeries.js +2 -2
- package/lib/component/1d/jCouplingGraph/JGraph.js +6 -9
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.d.ts +2 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +17 -17
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +10 -14
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +5 -6
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +143 -158
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib/component/1d/peaks/PeakAnnotation.js +4 -7
- package/lib/component/1d/peaks/PeakAnnotations.js +18 -10
- package/lib/component/1d/peaks/PeaksShapes.js +8 -7
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +5 -5
- package/lib/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +11 -0
- package/lib/component/1d/ranges/AssignmentActionsButtons.js +11 -0
- package/lib/component/1d/ranges/Range.d.ts +3 -10
- package/lib/component/1d/ranges/Range.js +30 -41
- package/lib/component/1d/ranges/Ranges.d.ts +1 -1
- package/lib/component/1d/ranges/Ranges.js +8 -6
- package/lib/component/1d/tool/BaseLineZones.js +3 -2
- package/lib/component/1d/tool/PeakPointer.js +8 -14
- package/lib/component/1d/tool/XLabelPointer.js +1 -1
- package/lib/component/1d/utilities/scale.js +2 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.js +7 -0
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +14 -0
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +77 -0
- package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.d.ts +4 -5
- package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.js +14 -12
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +3 -0
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +35 -0
- package/lib/component/{tool → 1d-2d/tools}/BrushX.js +6 -6
- package/lib/component/{tool → 1d-2d/tools}/BrushXY.js +9 -8
- package/lib/component/{tool → 1d-2d/tools}/CrossLinePointer.js +8 -7
- package/lib/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.d.ts +2 -1
- package/lib/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.js +17 -8
- package/lib/component/2d/{Left1DChart.d.ts → 1d-tracer/Left1DChart.d.ts} +3 -3
- package/lib/component/2d/{Left1DChart.js → 1d-tracer/Left1DChart.js} +7 -7
- package/lib/component/2d/{Top1DChart.d.ts → 1d-tracer/Top1DChart.d.ts} +2 -2
- package/lib/component/2d/{Top1DChart.js → 1d-tracer/Top1DChart.js} +4 -4
- package/lib/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.d.ts +2 -1
- package/lib/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.js +18 -9
- package/lib/component/2d/Chart2D.d.ts +2 -2
- package/lib/component/2d/Chart2D.js +8 -7
- package/lib/component/2d/FooterBanner.js +26 -17
- package/lib/component/2d/{tools/slicing/SlicingView.js → SlicingView.js} +8 -8
- package/lib/component/2d/Viewer2D.js +15 -24
- package/lib/component/2d/XAxis.d.ts +0 -1
- package/lib/component/2d/XAxis.js +12 -19
- package/lib/component/2d/YAxis.js +8 -11
- package/lib/component/2d/fid/FidCanvas.d.ts +2 -0
- package/lib/component/2d/fid/FidCanvas.js +109 -0
- package/lib/component/2d/fid/FidContainer.d.ts +2 -0
- package/lib/component/2d/fid/FidContainer.js +32 -0
- package/lib/component/2d/ft/Contours.js +81 -0
- package/lib/component/2d/ft/FTContainer.d.ts +7 -0
- package/lib/component/2d/ft/FTContainer.js +13 -0
- package/lib/component/2d/tools/XYLabelPointer.js +18 -7
- package/lib/component/2d/utilities/scale.d.ts +1 -1
- package/lib/component/2d/utilities/scale.js +5 -2
- package/lib/component/2d/zones/IndicationLines.js +5 -8
- package/lib/component/2d/zones/Signal.d.ts +1 -1
- package/lib/component/2d/zones/Signal.js +1 -2
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.js +0 -1
- package/lib/component/2d/zones/Zone.d.ts +2 -2
- package/lib/component/2d/zones/Zone.js +9 -7
- package/lib/component/EventsTrackers/KeysListenerTracker.js +65 -55
- package/lib/component/EventsTrackers/MouseTracker.js +2 -2
- package/lib/component/NMRium.d.ts +13 -20
- package/lib/component/NMRium.js +76 -55
- package/lib/component/SplitPaneWrapper.js +12 -4
- package/lib/component/assignment/AssignmentsContext.d.ts +4 -4
- package/lib/component/assignment/AssignmentsReducer.d.ts +8 -9
- package/lib/component/assignment/actions/initAssignment.js +17 -17
- package/lib/component/assignment/actions/removeAssignment.js +2 -2
- package/lib/component/assignment/actions/toggleAssignment.js +1 -1
- package/lib/component/assignment/index.js +2 -2
- package/lib/component/context/LoggerContext.d.ts +19 -0
- package/lib/component/context/LoggerContext.js +42 -0
- package/lib/component/context/PreferencesContext.d.ts +85 -18
- package/lib/component/context/PreferencesContext.js +15 -15
- package/lib/component/context/ScaleContext.d.ts +1 -1
- package/lib/component/elements/ActiveButton.js +12 -6
- package/lib/component/elements/Button.d.ts +15 -5
- package/lib/component/elements/Button.js +101 -30
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBoxCell.js +1 -1
- package/lib/component/elements/ColorInput.js +43 -45
- package/lib/component/elements/ColumnWrapper.d.ts +6 -0
- package/lib/component/elements/ColumnWrapper.js +8 -0
- package/lib/component/elements/ContextMenu.js +5 -5
- package/lib/component/elements/EditableColumn.js +3 -5
- package/lib/component/elements/GroupPane.d.ts +13 -0
- package/lib/component/elements/GroupPane.js +14 -0
- package/lib/component/elements/Header.d.ts +11 -0
- package/lib/component/elements/Header.js +17 -0
- package/lib/component/elements/Input.d.ts +3 -1
- package/lib/component/elements/Input.js +49 -50
- package/lib/component/elements/InputRange.d.ts +1 -0
- package/lib/component/elements/InputRange.js +3 -3
- package/lib/component/elements/IsotopesViewer.js +4 -1
- package/lib/component/elements/Label.d.ts +3 -1
- package/lib/component/elements/Label.js +8 -6
- package/lib/component/elements/MenuButton.js +4 -4
- package/lib/component/elements/Message.d.ts +16 -0
- package/lib/component/elements/Message.js +35 -0
- package/lib/component/elements/MolecularFormulaInput.js +3 -2
- package/lib/component/elements/MoleculeSelection.js +9 -7
- package/lib/component/elements/NextPrev.js +6 -2
- package/lib/component/elements/NumberInput.d.ts +4 -12
- package/lib/component/elements/NumberInput.js +10 -40
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +2 -0
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js +11 -0
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +7 -5
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +24 -4
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +6 -6
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +36 -48
- package/lib/component/elements/ReactTable/ReactTable.d.ts +42 -15
- package/lib/component/elements/ReactTable/ReactTable.js +170 -80
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +7 -4
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +19 -9
- package/lib/component/elements/ReactTable/Style.d.ts +1 -1
- package/lib/component/elements/ReactTable/Style.js +0 -8
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts +3 -3
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +4 -17
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +4 -5
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +6 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib/component/elements/SVGGroup.d.ts +8 -0
- package/lib/component/elements/SVGGroup.js +31 -0
- package/lib/component/elements/SaveButton.js +1 -0
- package/lib/component/elements/Select.d.ts +1 -0
- package/lib/component/elements/Select.js +27 -24
- package/lib/component/elements/Tab/DeleteButton.d.ts +3 -2
- package/lib/component/elements/Tab/DeleteButton.js +7 -7
- package/lib/component/elements/Tab/Tab.d.ts +14 -21
- package/lib/component/elements/Tab/Tab.js +15 -18
- package/lib/component/elements/Tab/Tabs.d.ts +2 -4
- package/lib/component/elements/Tab/Tabs.js +11 -9
- package/lib/component/elements/ToolbarMenu.js +5 -5
- package/lib/component/elements/accordion/Accordion.js +2 -2
- package/lib/component/elements/accordion/AccordionItem.js +0 -1
- package/lib/component/elements/{draggble → draggable}/SVGDraggable.d.ts +2 -2
- package/lib/component/elements/{draggble → draggable}/useDraggable.d.ts +1 -1
- package/lib/component/elements/{draggble → draggable}/useDraggable.js +1 -3
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +10 -6
- package/lib/component/elements/dropDownButton/DropDownButton.js +13 -7
- package/lib/component/elements/dropDownButton/DropDownList.d.ts +5 -2
- package/lib/component/elements/dropDownButton/DropDownList.js +21 -9
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.js +2 -2
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikInput.d.ts +5 -1
- package/lib/component/elements/formik/FormikInput.js +18 -5
- package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -1
- package/lib/component/elements/formik/FormikNumberInput.js +13 -3
- package/lib/component/elements/formik/FormikOnChange.d.ts +2 -0
- package/lib/component/elements/formik/FormikOnChange.js +12 -9
- package/lib/component/elements/formik/FormikSelect.d.ts +1 -0
- package/lib/component/elements/formik/FormikSelect.js +7 -3
- package/lib/component/elements/formik/FormikTextarea.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib/component/elements/popup/Alert/ProgressIndicator.js +5 -2
- package/lib/component/elements/popup/Alert/Provider.js +36 -27
- package/lib/component/elements/popup/Alert/index.d.ts +3 -4
- package/lib/component/elements/popup/Alert/index.js +3 -4
- package/lib/component/elements/popup/Modal/ConfirmDialog.d.ts +15 -8
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +19 -26
- package/lib/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib/component/elements/popup/Modal/Provider.js +64 -68
- package/lib/component/elements/popup/Modal/index.d.ts +4 -5
- package/lib/component/elements/popup/Modal/index.js +4 -5
- package/lib/component/elements/popup/Transition.d.ts +1 -1
- package/lib/component/elements/resizer/Resizer.d.ts +2 -2
- package/lib/component/elements/resizer/SVGResizer.js +1 -3
- package/lib/component/elements/resizer/useResizer.d.ts +1 -1
- package/lib/component/elements/resizer/useResizer.js +1 -1
- package/lib/component/elements/toggle/ToggleButton.js +1 -1
- package/lib/component/header/ApodizationOptionsPanel.js +18 -37
- package/lib/component/header/AutoPeakPickingOptionPanel.js +14 -23
- package/lib/component/header/BaseLineCorrectionPanel.js +17 -50
- package/lib/component/header/Header.d.ts +3 -2
- package/lib/component/header/Header.js +76 -41
- package/lib/component/header/HeaderContainer.js +0 -2
- package/lib/component/header/LogsHistory.d.ts +2 -0
- package/lib/component/header/LogsHistory.js +106 -0
- package/lib/component/header/PhaseCorrectionPanel.d.ts +2 -0
- package/lib/component/header/{ManualPhaseCorrectionPanel.js → PhaseCorrectionPanel.js} +27 -25
- package/lib/component/header/RangesPickingOptionPanel.js +18 -41
- package/lib/component/header/ZeroFillingOptionsPanel.d.ts +1 -2
- package/lib/component/header/ZeroFillingOptionsPanel.js +45 -36
- package/lib/component/header/Zones2DOptionPanel.js +17 -29
- package/lib/component/highlight/index.d.ts +7 -5
- package/lib/component/highlight/index.js +5 -0
- package/lib/component/hooks/useActiveSpectra.d.ts +1 -0
- package/lib/component/hooks/useActiveSpectra.js +6 -0
- package/lib/component/hooks/useActiveSpectrum.d.ts +1 -0
- package/lib/component/hooks/useActiveSpectrum.js +6 -0
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +3 -0
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.js +17 -0
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +5 -4
- package/lib/component/hooks/useCheckExperimentalFeature.js +1 -6
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +2 -3
- package/lib/component/hooks/useCheckToolsVisibility.js +27 -9
- package/lib/component/hooks/useCombinedRefs.js +2 -2
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +2 -3
- package/lib/component/hooks/useDatumWithSpectraStatistics.js +1 -1
- package/lib/component/hooks/useExport.d.ts +1 -1
- package/lib/component/hooks/useExport.js +31 -25
- package/lib/component/hooks/useFilter.d.ts +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.js +6 -4
- package/lib/component/hooks/useIntegralPath.js +4 -2
- package/lib/component/hooks/usePanelPreferences.d.ts +5 -4
- package/lib/component/hooks/usePanelPreferences.js +45 -13
- package/lib/component/hooks/useSaveSettings.d.ts +6 -0
- package/lib/component/hooks/useSaveSettings.js +74 -0
- package/lib/component/hooks/useSpectraPerNucleus.d.ts +2 -3
- package/lib/component/hooks/useSpectrum.d.ts +2 -3
- package/lib/component/hooks/useSpectrum.js +2 -2
- package/lib/component/hooks/useToolsFunctions.js +3 -2
- package/lib/component/hooks/useVerticalAlign.d.ts +1 -0
- package/lib/component/hooks/useVerticalAlign.js +6 -0
- package/lib/component/hooks/useXYReduce.d.ts +1 -1
- package/lib/component/loader/DefaultSpinnerComponent.js +3 -4
- package/lib/component/loader/DropZone.js +61 -17
- package/lib/component/loader/NoData.js +1 -1
- package/lib/component/modal/AboutUsModal.d.ts +1 -4
- package/lib/component/modal/AboutUsModal.js +41 -35
- package/lib/component/modal/AlignSpectraModal.js +4 -4
- package/lib/component/modal/CopyClipboardModal.js +5 -4
- package/lib/component/modal/EditPeakShapeModal.d.ts +2 -2
- package/lib/component/modal/EditPeakShapeModal.js +3 -3
- package/lib/component/modal/ExportAsJcampModal.d.ts +8 -0
- package/lib/component/modal/ExportAsJcampModal.js +62 -0
- package/lib/component/modal/ImportPublicationStringModal.js +3 -3
- package/lib/component/modal/LoadJCAMPModal.d.ts +1 -2
- package/lib/component/modal/LoadJCAMPModal.js +31 -20
- package/lib/component/modal/ModalStyle.d.ts +1 -1
- package/lib/component/modal/ModalStyle.js +0 -13
- package/lib/component/modal/MultipletAnalysisModal.d.ts +2 -2
- package/lib/component/modal/MultipletAnalysisModal.js +12 -6
- package/lib/component/modal/PredictSpectraModal.js +14 -12
- package/lib/component/modal/SaveAsModal.js +17 -15
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +2 -2
- package/lib/component/modal/changeSum/ChangeSumModal.js +7 -3
- package/lib/component/modal/changeSum/SelectMolecule.js +5 -5
- package/lib/component/modal/editRange/EditRangeModal.js +11 -9
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +11 -12
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +2 -2
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts +11 -263
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +21 -25
- package/lib/component/modal/editZone/EditPathLengthFormik.js +12 -17
- package/lib/component/modal/editZone/EditZoneModal.js +8 -5
- package/lib/component/modal/editZone/SignalsForm.js +1 -11
- package/lib/component/modal/editZone/validation/EditZoneValidation.d.ts +13 -533
- package/lib/component/modal/editZone/validation/EditZoneValidation.js +12 -15
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts +6 -0
- package/lib/component/modal/metaImportation/MetaImportationModal.js +189 -0
- package/lib/component/modal/metaImportation/index.d.ts +2 -0
- package/lib/component/modal/metaImportation/index.js +17 -0
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts +1 -0
- package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.js +9 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts +4 -4
- package/lib/component/modal/setting/GeneralSettings.js +139 -53
- package/lib/component/modal/setting/WorkspaceItem.d.ts +6 -4
- package/lib/component/modal/setting/WorkspaceItem.js +88 -51
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +9 -0
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +77 -0
- package/lib/component/modal/setting/{DisplayTabContent.js → settings-tabs/DisplayTabContent.js} +29 -31
- package/lib/component/modal/setting/settings-tabs/FormattingTabContent.js +80 -0
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +40 -0
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +85 -0
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +92 -0
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +3 -0
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +39 -0
- package/lib/component/modal/setting/{ToolsTabContent.js → settings-tabs/ToolsTabContent.js} +25 -22
- package/lib/component/modal/setting/settingsValidation.d.ts +1 -164
- package/lib/component/modal/setting/settingsValidation.js +30 -21
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +14 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -5
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.d.ts +2 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +14 -17
- package/lib/component/panels/InformationPanel.js +84 -59
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +3 -3
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +13 -11
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +17 -17
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts +1 -0
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +47 -0
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.d.ts +1 -0
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +104 -0
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts +5 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +93 -25
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +59 -26
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +2 -3
- package/lib/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +16 -18
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +19 -25
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +5 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +60 -29
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.d.ts +8 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.js +18 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.d.ts +13 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +53 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.d.ts +2 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +55 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.d.ts +3 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +81 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.js → preferences/MultipleAnalysisCodeEditor.js} +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.d.ts +9 -0
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +106 -0
- package/lib/component/panels/PanelNoData.d.ts +6 -0
- package/lib/component/panels/PanelNoData.js +24 -0
- package/lib/component/panels/Panels.js +5 -6
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +5 -0
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +18 -19
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +5 -11
- package/lib/component/panels/PeaksPanel/PeaksTable.js +31 -10
- package/lib/component/panels/RangesPanel/RangesHeader.js +6 -6
- package/lib/component/panels/RangesPanel/RangesPanel.js +12 -7
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +7 -10
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +4 -5
- package/lib/component/panels/RangesPanel/RangesTable.js +17 -22
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +24 -4
- package/lib/component/panels/RangesPanel/RangesTableRow.js +15 -11
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.d.ts +3 -14
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +5 -17
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts +3 -14
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts +7 -11
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +38 -37
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.d.ts +5 -14
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.js +3 -4
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +2 -6
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +8 -11
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.d.ts +4 -0
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.js +8 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +4 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +16 -25
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +4 -9
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +5 -5
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +2 -4
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +55 -39
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.d.ts +3 -0
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +72 -0
- package/lib/component/panels/SpectrumsPanel/SpectraTable.d.ts +13 -0
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +228 -0
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +14 -7
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.d.ts +1 -12
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +34 -100
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.d.ts +5 -21
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +14 -8
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.d.ts +8 -16
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +63 -39
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.d.ts +10 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +58 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectrumName.d.ts +7 -0
- package/lib/component/panels/SpectrumsPanel/base/SpectrumName.js +37 -0
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +4 -3
- package/lib/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +14 -20
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.d.ts +2 -3
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +17 -18
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +15 -10
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +4 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +17 -19
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +0 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -13
- package/lib/component/panels/SummaryPanel/Overview.js +2 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +21 -21
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +17 -21
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +0 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +4 -5
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib/component/panels/SummaryPanel/utilities/useInView.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +2 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +7 -10
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/ZonesTable.js +31 -34
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +3 -3
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +5 -4
- package/lib/component/panels/databasePanel/DatabasePanel.js +90 -16
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -7
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +3 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +36 -13
- package/lib/component/panels/extra/BasicPanelStyle.d.ts +1 -1
- package/lib/component/panels/extra/preferences/NucleusGroup.d.ts +14 -0
- package/lib/component/panels/extra/preferences/NucleusGroup.js +19 -0
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts +4 -6
- package/lib/component/panels/extra/preferences/NucleusPreferences.js +5 -19
- package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts +3 -2
- package/lib/component/panels/extra/preferences/PreferencesContainer.js +3 -3
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +5 -3
- package/lib/component/panels/filtersPanel/FilterPanel.d.ts +1 -5
- package/lib/component/panels/filtersPanel/FilterPanel.js +27 -60
- package/lib/component/panels/filtersPanel/FiltersTable.js +82 -45
- package/lib/component/panels/header/DefaultPanelHeader.d.ts +3 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +6 -5
- package/lib/component/panels/header/PreferencesHeader.js +3 -2
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +3 -3
- package/lib/component/panels/predictionPanel/PredictionOptions.js +4 -4
- package/lib/component/panels/predictionPanel/PredictionPanel.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +4 -8
- package/lib/component/reducer/Reducer.d.ts +32 -815
- package/lib/component/reducer/Reducer.js +45 -87
- package/lib/component/reducer/actions/AssignmentsActions.js +2 -4
- package/lib/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib/component/reducer/actions/DatabaseActions.js +10 -11
- package/lib/component/reducer/actions/DomainActions.d.ts +7 -8
- package/lib/component/reducer/actions/DomainActions.js +83 -78
- package/lib/component/reducer/actions/FiltersActions.d.ts +16 -20
- package/lib/component/reducer/actions/FiltersActions.js +414 -298
- package/lib/component/reducer/actions/HistoryActions.js +5 -5
- package/lib/component/reducer/actions/IntegralsActions.js +3 -2
- package/lib/component/reducer/actions/LoadActions.d.ts +10 -5
- package/lib/component/reducer/actions/LoadActions.js +92 -63
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -1
- package/lib/component/reducer/actions/MoleculeActions.js +42 -25
- package/lib/component/reducer/actions/PeaksActions.d.ts +3 -3
- package/lib/component/reducer/actions/PeaksActions.js +24 -9
- package/lib/component/reducer/actions/PreferencesActions.d.ts +1 -2
- package/lib/component/reducer/actions/PreferencesActions.js +18 -39
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.js +29 -22
- package/lib/component/reducer/actions/SpectraAnalysisAction.d.ts +2 -6
- package/lib/component/reducer/actions/SpectraAnalysisAction.js +20 -31
- package/lib/component/reducer/actions/SpectrumsActions.d.ts +11 -3
- package/lib/component/reducer/actions/SpectrumsActions.js +239 -72
- package/lib/component/reducer/actions/ToolsActions.d.ts +7 -2
- package/lib/component/reducer/actions/ToolsActions.js +146 -101
- package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +17 -11
- package/lib/component/reducer/core/Constants.d.ts +0 -1
- package/lib/component/reducer/core/Constants.js +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +12 -10
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +6 -3
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +3 -0
- package/lib/component/reducer/helper/getActiveSpectra.js +4 -0
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts +4 -0
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js +14 -0
- package/lib/component/reducer/helper/getActiveSpectrum.js +5 -1
- package/lib/component/reducer/helper/getRange.d.ts +1 -0
- package/lib/component/reducer/helper/getRange.js +8 -5
- package/lib/component/reducer/helper/getSpectrum.js +5 -6
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +1 -1
- package/lib/component/reducer/helper/getStrongestPeak.js +4 -4
- package/lib/component/reducer/helper/getVerticalAlign.d.ts +3 -0
- package/lib/component/reducer/helper/getVerticalAlign.js +4 -0
- package/lib/component/reducer/preferences/actions/addWorkspace.js +11 -7
- package/lib/component/reducer/preferences/actions/analyzeSpectra.d.ts +6 -0
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js +48 -0
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/applyGeneralPreferences.js +4 -0
- package/lib/component/reducer/preferences/actions/initPreferences.js +49 -48
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +6 -0
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +42 -0
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +5 -12
- package/lib/component/reducer/preferences/actions/setActiveWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setActiveWorkspace.js +10 -0
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.js +11 -6
- package/lib/component/reducer/preferences/actions/setPreferences.js +19 -22
- package/lib/component/reducer/preferences/actions/setVerticalSplitterPosition.d.ts +3 -0
- package/lib/component/reducer/preferences/actions/setVerticalSplitterPosition.js +6 -0
- package/lib/component/reducer/preferences/actions/setWorkspace.d.ts +2 -2
- package/lib/component/reducer/preferences/actions/setWorkspace.js +14 -4
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +3 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +61 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +77 -258
- package/lib/component/reducer/preferences/preferencesReducer.js +54 -3
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +3 -2
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +2 -3
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +5 -0
- package/lib/component/reducer/preferences/utilities/initWorkspace.js +5 -0
- package/lib/component/reducer/preferences/utilities/isReadOnlyWorkspace.d.ts +3 -0
- package/lib/component/reducer/preferences/utilities/isReadOnlyWorkspace.js +3 -0
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.d.ts +1 -4
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +8 -0
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js +18 -0
- package/lib/component/reducer/scaleReducer.d.ts +3 -1
- package/lib/component/reducer/scaleReducer.js +8 -0
- package/lib/component/reducer/types/Types.d.ts +10 -18
- package/lib/component/reducer/types/Types.js +9 -17
- package/lib/component/toolbar/BasicToolBar.js +30 -30
- package/lib/component/toolbar/FunctionToolBar.js +6 -18
- package/lib/component/toolbar/ToolBar.js +2 -2
- package/lib/component/toolbar/ToolTypes.d.ts +14 -4
- package/lib/component/toolbar/ToolTypes.js +172 -30
- package/lib/component/utility/Evaluate.js +2 -2
- package/lib/component/utility/FileUtility.d.ts +2 -28
- package/lib/component/utility/FileUtility.js +5 -59
- package/lib/component/utility/GroupByInfoKey.d.ts +1 -1
- package/lib/component/utility/GroupByInfoKey.js +11 -13
- package/lib/component/utility/PathBuilder.js +1 -1
- package/lib/component/utility/PreferencesHelper.js +2 -3
- package/lib/component/utility/convertPathArrayToString.d.ts +1 -0
- package/lib/component/utility/convertPathArrayToString.js +3 -0
- package/lib/component/utility/export.d.ts +1 -1
- package/lib/component/utility/export.js +48 -32
- package/lib/component/utility/formatNumber.d.ts +1 -1
- package/lib/component/utility/formatNumber.js +6 -4
- package/lib/component/utility/getSpectraByNucleus.d.ts +2 -3
- package/lib/component/utility/getSpectraObjectPaths.d.ts +5 -0
- package/lib/component/utility/getSpectraObjectPaths.js +22 -0
- package/lib/component/utility/jpathToArray.d.ts +1 -0
- package/lib/component/utility/jpathToArray.js +23 -0
- package/lib/component/utility/parseColor.d.ts +4 -0
- package/lib/component/utility/parseColor.js +15 -0
- package/lib/component/workspaces/Workspace.d.ts +90 -7
- package/lib/component/workspaces/assignment.d.ts +2 -0
- package/lib/component/workspaces/assignment.js +33 -0
- package/lib/component/workspaces/basic.js +5 -3
- package/lib/component/workspaces/embedded.js +3 -2
- package/lib/component/workspaces/exercise.js +1 -1
- package/lib/component/workspaces/index.d.ts +1 -0
- package/lib/component/workspaces/index.js +9 -1
- package/lib/component/workspaces/prediction.js +2 -1
- package/lib/component/workspaces/process1D.js +5 -2
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +2 -2
- package/lib/component/workspaces/workspaceDefaultProperties.js +106 -2
- package/lib/data/Filters.d.ts +12 -17
- package/lib/data/Filters.js +12 -17
- package/lib/data/FiltersManager.d.ts +25 -12
- package/lib/data/FiltersManager.js +65 -30
- package/lib/data/PredictionManager.d.ts +2 -3
- package/lib/data/PredictionManager.js +20 -19
- package/lib/data/SpectraManager.d.ts +26 -7
- package/lib/data/SpectraManager.js +85 -57
- package/lib/data/constants/Multiplets.js +1 -0
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts +5 -0
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js +4 -0
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib/data/data1d/Spectrum1D/generateSpectrumFromPublicationString.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +3 -0
- package/lib/data/data1d/Spectrum1D/get1DColor.js +14 -0
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/get1DDataXY.js +1 -1
- package/lib/data/data1d/Spectrum1D/getShiftX.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/getShiftX.js +6 -0
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +2 -2
- package/lib/data/data1d/Spectrum1D/index.d.ts +23 -25
- package/lib/data/data1d/Spectrum1D/index.js +23 -25
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +7 -2
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +48 -58
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -11
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +14 -3
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +5 -2
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.d.ts +12 -0
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.js +36 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.js +6 -0
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +9 -11
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -6
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +26 -9
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +9 -7
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.js +7 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +8 -9
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +20 -9
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +4 -13
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +27 -7
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +9 -9
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +6 -5
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +4 -4
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +10 -9
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +6 -6
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.d.ts +10 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +20 -5
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +3 -4
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +37 -3
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +37 -2
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +56 -21
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.d.ts +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.js +9 -0
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +2 -2
- package/lib/data/data1d/database.d.ts +18 -3
- package/lib/data/data1d/database.js +50 -31
- package/lib/data/data1d/filter1d/apodization.d.ts +11 -9
- package/lib/data/data1d/filter1d/apodization.js +26 -8
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +8 -6
- package/lib/data/data1d/filter1d/baselineCorrection.js +4 -0
- package/lib/data/data1d/filter1d/digitalFilter.d.ts +12 -5
- package/lib/data/data1d/filter1d/digitalFilter.js +22 -14
- package/lib/data/data1d/filter1d/equallySpaced.d.ts +5 -5
- package/lib/data/data1d/filter1d/equallySpaced.js +10 -10
- package/lib/data/data1d/filter1d/exclusionZones.d.ts +7 -5
- package/lib/data/data1d/filter1d/exclusionZones.js +13 -9
- package/lib/data/data1d/filter1d/fft.d.ts +9 -4
- package/lib/data/data1d/filter1d/fft.js +41 -26
- package/lib/data/data1d/filter1d/phaseCorrection.d.ts +14 -4
- package/lib/data/data1d/filter1d/phaseCorrection.js +46 -18
- package/lib/data/data1d/filter1d/shiftX.d.ts +11 -5
- package/lib/data/data1d/filter1d/shiftX.js +12 -5
- package/lib/data/data1d/filter1d/signalProcessing.d.ts +26 -0
- package/lib/data/data1d/filter1d/signalProcessing.js +65 -0
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.d.ts +2 -2
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +6 -6
- package/lib/data/data1d/filter1d/zeroFilling.d.ts +14 -6
- package/lib/data/data1d/filter1d/zeroFilling.js +31 -22
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +68 -0
- package/lib/data/data1d/multipleSpectraAnalysis.js +211 -0
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +7 -18
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts +1 -0
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js +9 -0
- package/lib/data/data2d/Spectrum2D/contours.d.ts +3 -3
- package/lib/data/data2d/Spectrum2D/contours.js +6 -5
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/get2DColor.js +17 -0
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts +6 -0
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +9 -0
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js +12 -12
- package/lib/data/data2d/Spectrum2D/getShift.d.ts +6 -0
- package/lib/data/data2d/Spectrum2D/getShift.js +15 -0
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +4 -4
- package/lib/data/data2d/Spectrum2D/getSlice.js +17 -14
- package/lib/data/data2d/Spectrum2D/index.d.ts +9 -11
- package/lib/data/data2d/Spectrum2D/index.js +9 -11
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +19 -31
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +2 -3
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +4 -4
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +2 -44
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +31 -2
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +2 -29
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +2 -2
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +7 -7
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +43 -0
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js +14 -0
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +3 -0
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js +15 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +33 -0
- package/lib/data/data2d/Spectrum2D/zones/mapZones.js +63 -0
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts +2 -0
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js +7 -0
- package/lib/data/data2d/filter2d/shiftX.d.ts +8 -4
- package/lib/data/data2d/filter2d/shiftX.js +12 -5
- package/lib/data/data2d/filter2d/shiftY.d.ts +7 -3
- package/lib/data/data2d/filter2d/shiftY.js +11 -4
- package/lib/data/getDefaultMatrixFilters.d.ts +16 -0
- package/lib/data/getDefaultMatrixFilters.js +20 -0
- package/lib/data/matrixGeneration.d.ts +41 -0
- package/lib/data/matrixGeneration.js +120 -0
- package/lib/data/molecules/Molecule.d.ts +21 -12
- package/lib/data/molecules/Molecule.js +6 -0
- package/lib/data/molecules/MoleculeManager.d.ts +1 -1
- package/lib/data/molecules/MoleculeManager.js +3 -3
- package/lib/data/parseMeta/index.d.ts +5 -0
- package/lib/data/parseMeta/index.js +4 -0
- package/lib/data/parseMeta/isMetaFile.d.ts +2 -0
- package/lib/data/parseMeta/isMetaFile.js +7 -0
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +29 -0
- package/lib/data/parseMeta/linkMetaWithSpectra.js +87 -0
- package/lib/data/parseMeta/mapErrors.d.ts +2 -0
- package/lib/data/parseMeta/mapErrors.js +7 -0
- package/lib/data/parseMeta/parseMetaFile.d.ts +3 -0
- package/lib/data/parseMeta/parseMetaFile.js +12 -0
- package/lib/data/parseMeta/prepareKey.d.ts +1 -0
- package/lib/data/parseMeta/prepareKey.js +6 -0
- package/lib/data/types/{data1d/Info1D.d.ts → common/Info.d.ts} +4 -4
- package/lib/data/types/common/MapOptions.d.ts +5 -0
- package/lib/data/types/common/Nucleus.d.ts +2 -0
- package/lib/data/types/data1d/ComplexData1D.d.ts +2 -0
- package/lib/data/types/data1d/MatrixOptions.d.ts +28 -0
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +1 -1
- package/lib/data/types/data1d/index.d.ts +1 -13
- package/lib/data/types/data2d/index.d.ts +1 -9
- package/lib/data/types/view-state/PeaksViewState.d.ts +17 -0
- package/lib/data/utilities/FindUtilities.d.ts +7 -9
- package/lib/data/utilities/RangeUtilities.d.ts +7 -2
- package/lib/data/utilities/RangeUtilities.js +22 -25
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.js +23 -19
- package/lib/data/utilities/calculateSanPlot.d.ts +2 -3
- package/lib/data/utilities/calculateSanPlot.js +0 -1
- package/lib/data/utilities/checkModifierKeyActivated.js +0 -4
- package/lib/data/utilities/convertSpectraListToObject.d.ts +2 -0
- package/lib/data/utilities/convertSpectraListToObject.js +6 -0
- package/lib/data/utilities/generateChar.js +8 -6
- package/lib/data/utilities/generateColor.d.ts +5 -0
- package/lib/data/utilities/{getColor.js → generateColor.js} +6 -6
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getAtomsFromMF.js +2 -2
- package/lib/data/utilities/getSum.js +6 -3
- package/lib/types/NMRiumDataReturn.d.ts +11 -10
- package/lib/types/NMRiumGeneralPreferences.d.ts +0 -2
- package/lib/types/NMRiumPanelPreferences.d.ts +2 -1
- package/lib/types/NMRiumToolBarPreferences.d.ts +2 -1
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +7 -5
- package/lib-cjs/component/1d/Chart1D.js +5 -2
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +30 -3
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +22 -7
- package/lib-cjs/component/1d/FooterBanner.js +24 -11
- package/lib-cjs/component/1d/Line.js +4 -10
- package/lib-cjs/component/1d/LinesSeries.js +6 -7
- package/lib-cjs/component/1d/SpectraLegends.js +65 -0
- package/lib-cjs/component/1d/Viewer1D.js +43 -13
- package/lib-cjs/component/1d/XAxis.js +5 -5
- package/lib-cjs/component/1d/YAxis.js +3 -7
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +11 -10
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +5 -3
- package/lib-cjs/component/1d/integral/IntegralIndicator.js +1 -7
- package/lib-cjs/component/1d/integral/IntegralResizable.js +6 -2
- package/lib-cjs/component/1d/integral/IntegralsSeries.js +3 -3
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +5 -8
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +16 -16
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +9 -13
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +145 -158
- package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +4 -7
- package/lib-cjs/component/1d/peaks/PeakAnnotations.js +19 -11
- package/lib-cjs/component/1d/peaks/PeaksShapes.js +9 -8
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib-cjs/component/1d/ranges/AssignmentActionsButtons.js +18 -0
- package/lib-cjs/component/1d/ranges/Range.js +29 -40
- package/lib-cjs/component/1d/ranges/Ranges.js +8 -6
- package/lib-cjs/component/1d/tool/BaseLineZones.js +3 -2
- package/lib-cjs/component/1d/tool/PeakPointer.js +9 -15
- package/lib-cjs/component/1d/tool/XLabelPointer.js +2 -2
- package/lib-cjs/component/1d/utilities/scale.js +2 -2
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.js +13 -0
- package/lib-cjs/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +84 -0
- package/lib-cjs/component/{tool → 1d-2d/components}/FloatMoleculeStructures/index.js +13 -11
- package/lib-cjs/component/1d-2d/components/SpectrumInfoBlock.js +40 -0
- package/lib-cjs/component/{tool → 1d-2d/tools}/BrushX.js +6 -6
- package/lib-cjs/component/{tool → 1d-2d/tools}/BrushXY.js +9 -8
- package/lib-cjs/component/{tool → 1d-2d/tools}/CrossLinePointer.js +8 -7
- package/lib-cjs/component/2d/{tools/slicing → 1d-tracer}/HorizontalSliceChart.js +17 -8
- package/lib-cjs/component/2d/{Left1DChart.js → 1d-tracer/Left1DChart.js} +7 -7
- package/lib-cjs/component/2d/{Top1DChart.js → 1d-tracer/Top1DChart.js} +4 -4
- package/lib-cjs/component/2d/{tools/slicing → 1d-tracer}/VerticalSliceChart.js +18 -9
- package/lib-cjs/component/2d/Chart2D.js +8 -7
- package/lib-cjs/component/2d/FooterBanner.js +27 -18
- package/lib-cjs/component/2d/{tools/slicing/SlicingView.js → SlicingView.js} +9 -9
- package/lib-cjs/component/2d/Viewer2D.js +15 -24
- package/lib-cjs/component/2d/XAxis.js +15 -19
- package/lib-cjs/component/2d/YAxis.js +11 -11
- package/lib-cjs/component/2d/fid/FidCanvas.js +116 -0
- package/lib-cjs/component/2d/fid/FidContainer.js +39 -0
- package/lib-cjs/component/2d/{Contours.js → ft/Contours.js} +29 -31
- package/lib-cjs/component/2d/ft/FTContainer.js +20 -0
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +22 -8
- package/lib-cjs/component/2d/utilities/scale.js +5 -2
- package/lib-cjs/component/2d/zones/IndicationLines.js +5 -8
- package/lib-cjs/component/2d/zones/Signal.js +1 -2
- package/lib-cjs/component/2d/zones/SignalCrosshair.js +0 -1
- package/lib-cjs/component/2d/zones/Zone.js +9 -7
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +64 -54
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +2 -2
- package/lib-cjs/component/NMRium.js +79 -56
- package/lib-cjs/component/SplitPaneWrapper.js +12 -4
- package/lib-cjs/component/assignment/actions/initAssignment.js +17 -17
- package/lib-cjs/component/assignment/actions/removeAssignment.js +2 -2
- package/lib-cjs/component/assignment/actions/toggleAssignment.js +1 -1
- package/lib-cjs/component/assignment/index.js +2 -2
- package/lib-cjs/component/context/LoggerContext.js +47 -0
- package/lib-cjs/component/context/PreferencesContext.js +14 -17
- package/lib-cjs/component/elements/ActiveButton.js +12 -6
- package/lib-cjs/component/elements/Button.js +100 -29
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBoxCell.js +1 -1
- package/lib-cjs/component/elements/ColorInput.js +43 -45
- package/lib-cjs/component/elements/ColumnWrapper.js +12 -0
- package/lib-cjs/component/elements/ContextMenu.js +5 -5
- package/lib-cjs/component/elements/EditableColumn.js +3 -5
- package/lib-cjs/component/elements/GroupPane.js +18 -0
- package/lib-cjs/component/elements/Header.js +21 -0
- package/lib-cjs/component/elements/Input.js +48 -49
- package/lib-cjs/component/elements/InputRange.js +2 -2
- package/lib-cjs/component/elements/IsotopesViewer.js +4 -1
- package/lib-cjs/component/elements/Label.js +11 -6
- package/lib-cjs/component/elements/MenuButton.js +4 -4
- package/lib-cjs/component/elements/Message.js +38 -0
- package/lib-cjs/component/elements/MolecularFormulaInput.js +3 -2
- package/lib-cjs/component/elements/MoleculeSelection.js +9 -7
- package/lib-cjs/component/elements/NextPrev.js +6 -2
- package/lib-cjs/component/elements/NumberInput.js +8 -38
- package/lib-cjs/component/elements/ReactTable/Elements/EmptyDataRow.js +15 -0
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableHeader.js +24 -4
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +35 -47
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +166 -76
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +18 -8
- package/lib-cjs/component/elements/ReactTable/Style.js +0 -8
- package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +4 -5
- package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib-cjs/component/elements/SVGGroup.js +35 -0
- package/lib-cjs/component/elements/SaveButton.js +1 -0
- package/lib-cjs/component/elements/Select.js +27 -24
- package/lib-cjs/component/elements/Tab/DeleteButton.js +7 -7
- package/lib-cjs/component/elements/Tab/Tab.js +14 -19
- package/lib-cjs/component/elements/Tab/Tabs.js +13 -8
- package/lib-cjs/component/elements/ToolbarMenu.js +6 -6
- package/lib-cjs/component/elements/accordion/Accordion.js +2 -2
- package/lib-cjs/component/elements/accordion/AccordionItem.js +0 -1
- package/lib-cjs/component/elements/{draggble → draggable}/useDraggable.js +1 -3
- package/lib-cjs/component/elements/dropDownButton/DropDownButton.js +13 -7
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +21 -9
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +3 -3
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikInput.js +18 -5
- package/lib-cjs/component/elements/formik/FormikNumberInput.js +13 -3
- package/lib-cjs/component/elements/formik/FormikOnChange.js +15 -9
- package/lib-cjs/component/elements/formik/FormikSelect.js +7 -3
- package/lib-cjs/component/elements/formik/FormikTextarea.js +1 -1
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib-cjs/component/elements/popup/Alert/ProgressIndicator.js +5 -2
- package/lib-cjs/component/elements/popup/Alert/Provider.js +37 -28
- package/lib-cjs/component/elements/popup/Alert/index.js +5 -5
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +19 -26
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +64 -68
- package/lib-cjs/component/elements/popup/Modal/index.js +7 -7
- package/lib-cjs/component/elements/resizer/SVGResizer.js +1 -3
- package/lib-cjs/component/elements/resizer/useResizer.js +1 -1
- package/lib-cjs/component/elements/toggle/ToggleButton.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +15 -34
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +35 -21
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +14 -47
- package/lib-cjs/component/header/Header.js +79 -43
- package/lib-cjs/component/header/HeaderContainer.js +0 -2
- package/lib-cjs/component/header/LogsHistory.js +113 -0
- package/lib-cjs/component/header/{ManualPhaseCorrectionPanel.js → PhaseCorrectionPanel.js} +28 -26
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +39 -39
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +43 -33
- package/lib-cjs/component/header/Zones2DOptionPanel.js +38 -27
- package/lib-cjs/component/highlight/index.js +5 -0
- package/lib-cjs/component/hooks/useActiveSpectra.js +10 -0
- package/lib-cjs/component/hooks/useActiveSpectrum.js +10 -0
- package/lib-cjs/component/hooks/useActiveSpectrumPeaksViewState.js +21 -0
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +5 -4
- package/lib-cjs/component/hooks/useCheckExperimentalFeature.js +1 -9
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +27 -9
- package/lib-cjs/component/hooks/useCombinedRefs.js +2 -2
- package/lib-cjs/component/hooks/useDatumWithSpectraStatistics.js +2 -2
- package/lib-cjs/component/hooks/useExport.js +31 -25
- package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +6 -4
- package/lib-cjs/component/hooks/useIntegralPath.js +6 -4
- package/lib-cjs/component/hooks/usePanelPreferences.js +44 -12
- package/lib-cjs/component/hooks/useSaveSettings.js +104 -0
- package/lib-cjs/component/hooks/useSpectrum.js +3 -3
- package/lib-cjs/component/hooks/useToolsFunctions.js +4 -3
- package/lib-cjs/component/hooks/useVerticalAlign.js +10 -0
- package/lib-cjs/component/loader/DefaultSpinnerComponent.js +3 -4
- package/lib-cjs/component/loader/DropZone.js +61 -17
- package/lib-cjs/component/loader/NoData.js +1 -1
- package/lib-cjs/component/modal/AboutUsModal.js +41 -35
- package/lib-cjs/component/modal/AlignSpectraModal.js +3 -3
- package/lib-cjs/component/modal/CopyClipboardModal.js +5 -4
- package/lib-cjs/component/modal/EditPeakShapeModal.js +2 -2
- package/lib-cjs/component/modal/ExportAsJcampModal.js +67 -0
- package/lib-cjs/component/modal/ImportPublicationStringModal.js +3 -3
- package/lib-cjs/component/modal/LoadJCAMPModal.js +30 -19
- package/lib-cjs/component/modal/ModalStyle.js +0 -13
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +12 -6
- package/lib-cjs/component/modal/PredictSpectraModal.js +13 -11
- package/lib-cjs/component/modal/SaveAsModal.js +15 -13
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +7 -3
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +5 -5
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +9 -7
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +9 -10
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +2 -2
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +21 -25
- package/lib-cjs/component/modal/editZone/EditPathLengthFormik.js +12 -17
- package/lib-cjs/component/modal/editZone/EditZoneModal.js +6 -3
- package/lib-cjs/component/modal/editZone/SignalsForm.js +1 -11
- package/lib-cjs/component/modal/editZone/validation/EditZoneValidation.js +12 -15
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +217 -0
- package/lib-cjs/component/modal/metaImportation/index.js +25 -0
- package/lib-cjs/component/modal/metaImportation/utils/mapColumnToSelectItems.js +13 -0
- package/lib-cjs/component/modal/setting/GeneralSettings.js +137 -51
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +89 -52
- package/lib-cjs/component/modal/setting/settings-tabs/DatabasesTabContent.js +82 -0
- package/lib-cjs/component/modal/setting/{DisplayTabContent.js → settings-tabs/DisplayTabContent.js} +29 -31
- package/lib-cjs/component/modal/setting/settings-tabs/FormattingTabContent.js +85 -0
- package/lib-cjs/component/modal/setting/settings-tabs/GeneralTabContent.js +45 -0
- package/lib-cjs/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +90 -0
- package/lib-cjs/component/modal/setting/settings-tabs/InfoBlockTabContent.js +97 -0
- package/lib-cjs/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +44 -0
- package/lib-cjs/component/modal/setting/{ToolsTabContent.js → settings-tabs/ToolsTabContent.js} +25 -22
- package/lib-cjs/component/modal/setting/settingsValidation.js +30 -44
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignment.js +14 -2
- package/lib-cjs/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -5
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +13 -16
- package/lib-cjs/component/panels/InformationPanel.js +82 -57
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +3 -3
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +13 -11
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +17 -17
- package/lib-cjs/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +54 -0
- package/lib-cjs/component/panels/MatrixGenerationPanel/FiltersOptions.js +111 -0
- package/lib-cjs/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +113 -21
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +5 -5
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +58 -25
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +16 -18
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +17 -23
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +58 -27
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.js +20 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +58 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +62 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.js +86 -0
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.js → preferences/MultipleAnalysisCodeEditor.js} +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +134 -0
- package/lib-cjs/component/panels/PanelNoData.js +28 -0
- package/lib-cjs/component/panels/Panels.js +7 -8
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +16 -17
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +3 -9
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +31 -10
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +5 -5
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +12 -7
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +6 -9
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +17 -22
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +15 -10
- package/lib-cjs/component/panels/RangesPanel/TableColumns/AbsoluteColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +4 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +4 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +37 -39
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeColumn.js +3 -4
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RelativeColumn.js +8 -11
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.js +12 -0
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +15 -24
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +6 -7
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +5 -5
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +53 -37
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +77 -0
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +235 -0
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +12 -5
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +39 -105
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +14 -8
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.js +62 -38
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +65 -0
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectrumName.js +41 -0
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +3 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/SpectrumSetting.js +14 -20
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +17 -18
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +15 -10
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +4 -5
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditLinkModal.js +17 -19
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +0 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -13
- package/lib-cjs/component/panels/SummaryPanel/Overview.js +2 -1
- package/lib-cjs/component/panels/SummaryPanel/SetMolecularFormulaModal.js +21 -21
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +17 -21
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +0 -1
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib-cjs/component/panels/SummaryPanel/utilities/useInView.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +2 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPreferences.js +6 -9
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +30 -33
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +5 -4
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +91 -17
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +3 -6
- package/lib-cjs/component/panels/databasePanel/DatabaseStructureSearchModal.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +34 -11
- package/lib-cjs/component/panels/extra/preferences/NucleusGroup.js +26 -0
- package/lib-cjs/component/panels/extra/preferences/NucleusPreferences.js +4 -18
- package/lib-cjs/component/panels/extra/preferences/PreferencesContainer.js +3 -3
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +5 -3
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +28 -61
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +81 -44
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +6 -5
- package/lib-cjs/component/panels/header/PreferencesHeader.js +3 -2
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +3 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +3 -3
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +2 -2
- package/lib-cjs/component/reducer/IgnoreActions.js +4 -8
- package/lib-cjs/component/reducer/Reducer.js +46 -88
- package/lib-cjs/component/reducer/actions/AssignmentsActions.js +2 -4
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +9 -10
- package/lib-cjs/component/reducer/actions/DomainActions.js +83 -78
- package/lib-cjs/component/reducer/actions/FiltersActions.js +414 -298
- package/lib-cjs/component/reducer/actions/HistoryActions.js +5 -5
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +3 -2
- package/lib-cjs/component/reducer/actions/LoadActions.js +95 -64
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +44 -26
- package/lib-cjs/component/reducer/actions/PeaksActions.js +25 -10
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +17 -38
- package/lib-cjs/component/reducer/actions/RangesActions.js +28 -21
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +21 -62
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +239 -69
- package/lib-cjs/component/reducer/actions/ToolsActions.js +146 -100
- package/lib-cjs/component/reducer/actions/ZonesActions.js +16 -10
- package/lib-cjs/component/reducer/core/Constants.js +1 -2
- package/lib-cjs/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +12 -10
- package/lib-cjs/component/reducer/helper/ZoomHistoryManager.js +6 -3
- package/lib-cjs/component/reducer/helper/getActiveSpectra.js +8 -0
- package/lib-cjs/component/reducer/helper/getActiveSpectraAsObject.js +19 -0
- package/lib-cjs/component/reducer/helper/getActiveSpectrum.js +5 -1
- package/lib-cjs/component/reducer/helper/getRange.js +10 -5
- package/lib-cjs/component/reducer/helper/getSpectrum.js +5 -6
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +4 -4
- package/lib-cjs/component/reducer/helper/getVerticalAlign.js +8 -0
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +14 -7
- package/lib-cjs/component/reducer/preferences/actions/analyzeSpectra.js +78 -0
- package/lib-cjs/component/reducer/preferences/actions/applyGeneralPreferences.js +8 -0
- package/lib-cjs/component/reducer/preferences/actions/initPreferences.js +48 -50
- package/lib-cjs/component/reducer/preferences/actions/matrixGeneration.js +47 -0
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +5 -12
- package/lib-cjs/component/reducer/preferences/actions/setActiveWorkspace.js +14 -0
- package/lib-cjs/component/reducer/preferences/actions/setPanelsPreferences.js +11 -6
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +19 -22
- package/lib-cjs/component/reducer/preferences/actions/setVerticalSplitterPosition.js +10 -0
- package/lib-cjs/component/reducer/preferences/actions/setWorkspace.js +14 -4
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +63 -1
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +54 -3
- package/lib-cjs/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +2 -3
- package/lib-cjs/component/reducer/preferences/utilities/initWorkspace.js +12 -0
- package/lib-cjs/component/reducer/preferences/utilities/isReadOnlyWorkspace.js +7 -0
- package/lib-cjs/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib-cjs/component/reducer/preferences/utilities/mapWorkspaces.js +25 -0
- package/lib-cjs/component/reducer/scaleReducer.js +8 -0
- package/lib-cjs/component/reducer/types/Types.js +12 -20
- package/lib-cjs/component/toolbar/BasicToolBar.js +29 -29
- package/lib-cjs/component/toolbar/FunctionToolBar.js +6 -41
- package/lib-cjs/component/toolbar/ToolBar.js +2 -2
- package/lib-cjs/component/toolbar/ToolTypes.js +172 -30
- package/lib-cjs/component/utility/Evaluate.js +2 -2
- package/lib-cjs/component/utility/FileUtility.js +5 -63
- package/lib-cjs/component/utility/GroupByInfoKey.js +11 -13
- package/lib-cjs/component/utility/PathBuilder.js +1 -1
- package/lib-cjs/component/utility/PreferencesHelper.js +2 -3
- package/lib-cjs/component/utility/convertPathArrayToString.js +7 -0
- package/lib-cjs/component/utility/export.js +48 -55
- package/lib-cjs/component/utility/formatNumber.js +6 -4
- package/lib-cjs/component/utility/getSpectraObjectPaths.js +26 -0
- package/lib-cjs/component/utility/jpathToArray.js +27 -0
- package/lib-cjs/component/utility/parseColor.js +19 -0
- package/lib-cjs/component/workspaces/assignment.js +36 -0
- package/lib-cjs/component/workspaces/basic.js +5 -3
- package/lib-cjs/component/workspaces/embedded.js +3 -2
- package/lib-cjs/component/workspaces/exercise.js +1 -1
- package/lib-cjs/component/workspaces/index.js +9 -1
- package/lib-cjs/component/workspaces/prediction.js +2 -1
- package/lib-cjs/component/workspaces/process1D.js +5 -2
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +129 -2
- package/lib-cjs/data/Filters.js +13 -33
- package/lib-cjs/data/FiltersManager.js +66 -30
- package/lib-cjs/data/PredictionManager.js +21 -20
- package/lib-cjs/data/SpectraManager.js +86 -59
- package/lib-cjs/data/constants/Multiplets.js +1 -0
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/cloneDatum1D.js +8 -0
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/get1DColor.js +18 -0
- package/lib-cjs/data/data1d/Spectrum1D/get1DDataXY.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/{shift/getShiftX.js → getShiftX.js} +5 -5
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/index.js +25 -27
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +48 -61
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +12 -11
- package/lib-cjs/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +5 -2
- package/lib-cjs/data/data1d/Spectrum1D/integrals/mapIntegrals.js +40 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegrals.js +10 -0
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +9 -11
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -6
- package/lib-cjs/data/data1d/Spectrum1D/peaks/initiatePeaks.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +26 -9
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +9 -7
- package/lib-cjs/data/data1d/Spectrum1D/peaks/updatePeaks.js +11 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +20 -9
- package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +4 -13
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +30 -7
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +9 -9
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +6 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +4 -4
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRanges.js +6 -6
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +20 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/generateSpectrumFromRanges.js +3 -4
- package/lib-cjs/data/data1d/Spectrum1D/ranges/initiateRanges.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +56 -21
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRanges.js +13 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +2 -2
- package/lib-cjs/data/data1d/database.js +50 -31
- package/lib-cjs/data/data1d/filter1d/apodization.js +27 -9
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +5 -1
- package/lib-cjs/data/data1d/filter1d/digitalFilter.js +23 -15
- package/lib-cjs/data/data1d/filter1d/equallySpaced.js +10 -10
- package/lib-cjs/data/data1d/filter1d/exclusionZones.js +14 -10
- package/lib-cjs/data/data1d/filter1d/fft.js +41 -26
- package/lib-cjs/data/data1d/filter1d/phaseCorrection.js +46 -18
- package/lib-cjs/data/data1d/filter1d/shiftX.js +13 -6
- package/lib-cjs/data/data1d/filter1d/signalProcessing.js +95 -0
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +6 -6
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +32 -23
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +226 -0
- package/lib-cjs/data/data2d/Processing2D.js +7 -18
- package/lib-cjs/data/data2d/Spectrum2D/cloneDatum2D.js +13 -0
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +6 -5
- package/lib-cjs/data/data2d/Spectrum2D/get2DColor.js +21 -0
- package/lib-cjs/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +13 -0
- package/lib-cjs/data/data2d/Spectrum2D/getMissingProjection.js +12 -12
- package/lib-cjs/data/data2d/Spectrum2D/{shift/getShift.js → getShift.js} +8 -9
- package/lib-cjs/data/data2d/Spectrum2D/getSlice.js +17 -14
- package/lib-cjs/data/data2d/Spectrum2D/index.js +11 -13
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +19 -31
- package/lib-cjs/data/data2d/Spectrum2D/zones/changeZoneSignal.js +4 -4
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +2 -44
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +2 -29
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +7 -7
- package/lib-cjs/data/data2d/Spectrum2D/zones/initiateZones.js +21 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/isZoneExists.js +19 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/mapZones.js +67 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/updateZones.js +11 -0
- package/lib-cjs/data/data2d/filter2d/shiftX.js +13 -6
- package/lib-cjs/data/data2d/filter2d/shiftY.js +12 -5
- package/lib-cjs/data/getDefaultMatrixFilters.js +27 -0
- package/lib-cjs/data/matrixGeneration.js +128 -0
- package/lib-cjs/data/molecules/Molecule.js +7 -1
- package/lib-cjs/data/molecules/MoleculeManager.js +3 -3
- package/lib-cjs/data/parseMeta/index.js +14 -0
- package/lib-cjs/data/parseMeta/isMetaFile.js +11 -0
- package/lib-cjs/data/parseMeta/linkMetaWithSpectra.js +96 -0
- package/lib-cjs/data/parseMeta/mapErrors.js +11 -0
- package/lib-cjs/data/parseMeta/parseMetaFile.js +16 -0
- package/lib-cjs/data/parseMeta/prepareKey.js +10 -0
- package/lib-cjs/data/utilities/RangeUtilities.js +22 -25
- package/lib-cjs/data/utilities/ZoneUtilities.js +23 -19
- package/lib-cjs/data/utilities/calculateSanPlot.js +0 -1
- package/lib-cjs/data/utilities/checkModifierKeyActivated.js +0 -4
- package/lib-cjs/data/utilities/convertSpectraListToObject.js +10 -0
- package/lib-cjs/data/utilities/generateChar.js +8 -6
- package/lib-cjs/data/utilities/{getColor.js → generateColor.js} +9 -9
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getAtomsFromMF.js +2 -2
- package/lib-cjs/data/utilities/getSum.js +6 -3
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +62 -47
- package/lib/component/1d/SpectraTracker.d.ts +0 -3
- package/lib/component/1d/SpectraTracker.js +0 -66
- package/lib/component/1d/utilities/getVerticalShift.d.ts +0 -5
- package/lib/component/1d/utilities/getVerticalShift.js +0 -9
- package/lib/component/2d/Contours.js +0 -83
- package/lib/component/elements/ReactTable/ReactTableExpandable.d.ts +0 -11
- package/lib/component/elements/ReactTable/ReactTableExpandable.js +0 -27
- package/lib/component/elements/formik/FormikForm.d.ts +0 -10
- package/lib/component/elements/formik/FormikForm.js +0 -8
- package/lib/component/elements/popup/helpers.d.ts +0 -1
- package/lib/component/elements/popup/helpers.js +0 -9
- package/lib/component/header/ManualPhaseCorrectionPanel.d.ts +0 -2
- package/lib/component/modal/ExportAsMatrixModal.d.ts +0 -5
- package/lib/component/modal/ExportAsMatrixModal.js +0 -36
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.d.ts +0 -7
- package/lib/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +0 -15
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.d.ts +0 -7
- package/lib/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +0 -11
- package/lib/component/modal/MultipleSpectraFiltersModal/index.d.ts +0 -6
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +0 -119
- package/lib/component/modal/setting/DatabasesTabContent.d.ts +0 -7
- package/lib/component/modal/setting/DatabasesTabContent.js +0 -73
- package/lib/component/modal/setting/FormattingTabContent.js +0 -76
- package/lib/component/modal/setting/GeneralTabContent.js +0 -7
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.d.ts +0 -11
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +0 -59
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.d.ts +0 -6
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +0 -138
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.d.ts +0 -13
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +0 -67
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.d.ts +0 -18
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +0 -16
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.d.ts +0 -3
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.js +0 -6
- package/lib/component/tool/FloatMoleculeStructures/ActionsButton.js +0 -7
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.d.ts +0 -20
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.js +0 -59
- package/lib/data/data1d/MultipleAnalysis.d.ts +0 -53
- package/lib/data/data1d/MultipleAnalysis.js +0 -209
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/getShiftX.js +0 -6
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +0 -7
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +0 -12
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +0 -12
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/shift/updateXShift.js +0 -10
- package/lib/data/data1d/Spectrum1D/toJSON.d.ts +0 -28
- package/lib/data/data1d/Spectrum1D/toJSON.js +0 -28
- package/lib/data/data1d/filter1d/autoPhaseCorrection.d.ts +0 -13
- package/lib/data/data1d/filter1d/autoPhaseCorrection.js +0 -40
- package/lib/data/data1d/filter1d/centerMean.d.ts +0 -13
- package/lib/data/data1d/filter1d/centerMean.js +0 -37
- package/lib/data/data1d/filter1d/fromTo.d.ts +0 -13
- package/lib/data/data1d/filter1d/fromTo.js +0 -31
- package/lib/data/data1d/filter1d/pareto.d.ts +0 -13
- package/lib/data/data1d/filter1d/pareto.js +0 -29
- package/lib/data/data1d/filter1d/standardDeviation.d.ts +0 -13
- package/lib/data/data1d/filter1d/standardDeviation.js +0 -37
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.d.ts +0 -9
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.js +0 -24
- package/lib/data/data2d/Spectrum2D/shift/getShift.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/shift/getShift.js +0 -16
- package/lib/data/data2d/Spectrum2D/shift/updateShift.d.ts +0 -2
- package/lib/data/data2d/Spectrum2D/shift/updateShift.js +0 -18
- package/lib/data/data2d/Spectrum2D/toJSON.d.ts +0 -24
- package/lib/data/data2d/Spectrum2D/toJSON.js +0 -26
- package/lib/data/types/common/Source.d.ts +0 -6
- package/lib/data/types/data1d/Data1D.d.ts +0 -5
- package/lib/data/types/data1d/Datum1D.d.ts +0 -22
- package/lib/data/types/data1d/Display1D.d.ts +0 -7
- package/lib/data/types/data1d/Integral.d.ts +0 -10
- package/lib/data/types/data1d/Integrals.d.ts +0 -6
- package/lib/data/types/data1d/Integrals.js +0 -1
- package/lib/data/types/data1d/Peak.d.ts +0 -5
- package/lib/data/types/data1d/Peak.js +0 -1
- package/lib/data/types/data1d/Peaks.d.ts +0 -5
- package/lib/data/types/data1d/Peaks.js +0 -1
- package/lib/data/types/data1d/Range.d.ts +0 -11
- package/lib/data/types/data1d/Range.js +0 -1
- package/lib/data/types/data1d/Ranges.d.ts +0 -6
- package/lib/data/types/data1d/Ranges.js +0 -1
- package/lib/data/types/data1d/Signal1D.d.ts +0 -5
- package/lib/data/types/data1d/Signal1D.js +0 -1
- package/lib/data/types/data1d/SumOptions.d.ts +0 -7
- package/lib/data/types/data1d/SumOptions.js +0 -1
- package/lib/data/types/data2d/Data2D.d.ts +0 -9
- package/lib/data/types/data2d/Data2D.js +0 -1
- package/lib/data/types/data2d/Datum2D.d.ts +0 -18
- package/lib/data/types/data2d/Datum2D.js +0 -1
- package/lib/data/types/data2d/Display2D.d.ts +0 -10
- package/lib/data/types/data2d/Display2D.js +0 -1
- package/lib/data/types/data2d/Info2D.d.ts +0 -8
- package/lib/data/types/data2d/Info2D.js +0 -1
- package/lib/data/types/data2d/Signal2D.d.ts +0 -7
- package/lib/data/types/data2d/Signal2D.js +0 -1
- package/lib/data/types/data2d/Signal2DAxisData.d.ts +0 -4
- package/lib/data/types/data2d/Signal2DAxisData.js +0 -1
- package/lib/data/types/data2d/Zone.d.ts +0 -9
- package/lib/data/types/data2d/Zone.js +0 -1
- package/lib/data/types/data2d/Zone2DAxisData.d.ts +0 -6
- package/lib/data/types/data2d/Zone2DAxisData.js +0 -1
- package/lib/data/types/data2d/Zones.d.ts +0 -7
- package/lib/data/types/data2d/Zones.js +0 -1
- package/lib/data/utilities/getColor.d.ts +0 -9
- package/lib/types/Preferences.d.ts +0 -5
- package/lib/types/Preferences.js +0 -1
- package/lib-cjs/component/1d/SpectraTracker.js +0 -71
- package/lib-cjs/component/1d/utilities/getVerticalShift.js +0 -12
- package/lib-cjs/component/elements/ReactTable/ReactTableExpandable.js +0 -32
- package/lib-cjs/component/elements/formik/FormikForm.js +0 -10
- package/lib-cjs/component/elements/popup/helpers.js +0 -13
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +0 -41
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/EquallySpacedFilter.js +0 -20
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/FromToFilter.js +0 -16
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +0 -147
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +0 -78
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +0 -81
- package/lib-cjs/component/modal/setting/GeneralTabContent.js +0 -12
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +0 -64
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +0 -166
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +0 -72
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +0 -19
- package/lib-cjs/component/reducer/helper/getActiveSpectrumOrFail.js +0 -10
- package/lib-cjs/component/tool/FloatMoleculeStructures/ActionsButton.js +0 -13
- package/lib-cjs/component/tool/FloatMoleculeStructures/DraggableStructure.js +0 -66
- package/lib-cjs/data/data1d/MultipleAnalysis.js +0 -223
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateIntegralXShift.js +0 -11
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updatePeaksXShift.js +0 -16
- package/lib-cjs/data/data1d/Spectrum1D/shift/internal/updateRangesXShift.js +0 -16
- package/lib-cjs/data/data1d/Spectrum1D/shift/updateXShift.js +0 -14
- package/lib-cjs/data/data1d/Spectrum1D/toJSON.js +0 -32
- package/lib-cjs/data/data1d/filter1d/autoPhaseCorrection.js +0 -46
- package/lib-cjs/data/data1d/filter1d/centerMean.js +0 -43
- package/lib-cjs/data/data1d/filter1d/fromTo.js +0 -37
- package/lib-cjs/data/data1d/filter1d/pareto.js +0 -35
- package/lib-cjs/data/data1d/filter1d/standardDeviation.js +0 -43
- package/lib-cjs/data/data1d/filter1d/zeroFillingAndApodization.js +0 -30
- package/lib-cjs/data/data2d/Spectrum2D/shift/updateShift.js +0 -22
- package/lib-cjs/data/data2d/Spectrum2D/toJSON.js +0 -30
- package/lib-cjs/data/types/data1d/Integrals.js +0 -2
- package/lib-cjs/data/types/data1d/Peak.js +0 -2
- package/lib-cjs/data/types/data1d/Peaks.js +0 -2
- package/lib-cjs/data/types/data1d/Range.js +0 -2
- package/lib-cjs/data/types/data1d/Ranges.js +0 -2
- package/lib-cjs/data/types/data1d/Signal1D.js +0 -2
- package/lib-cjs/data/types/data1d/SumOptions.js +0 -2
- package/lib-cjs/data/types/data2d/Data2D.js +0 -2
- package/lib-cjs/data/types/data2d/Datum2D.js +0 -2
- package/lib-cjs/data/types/data2d/Display2D.js +0 -2
- package/lib-cjs/data/types/data2d/Info2D.js +0 -2
- package/lib-cjs/data/types/data2d/Signal2D.js +0 -2
- package/lib-cjs/data/types/data2d/Signal2DAxisData.js +0 -2
- package/lib-cjs/data/types/data2d/Zone.js +0 -2
- package/lib-cjs/data/types/data2d/Zone2DAxisData.js +0 -2
- package/lib-cjs/data/types/data2d/Zones.js +0 -2
- package/lib-cjs/types/Preferences.js +0 -2
- /package/lib/component/{tool → 1d-2d/components}/FloatMoleculeStructures/ActionsButton.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/BrushX.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/BrushXY.d.ts +0 -0
- /package/lib/component/{tool → 1d-2d/tools}/CrossLinePointer.d.ts +0 -0
- /package/lib/component/2d/{tools/slicing/SlicingView.d.ts → SlicingView.d.ts} +0 -0
- /package/lib/component/2d/{Contours.d.ts → ft/Contours.d.ts} +0 -0
- /package/lib/component/2d/{tools/slicing → utilities}/SliceScale.d.ts +0 -0
- /package/lib/component/2d/{tools/slicing → utilities}/SliceScale.js +0 -0
- /package/lib/component/elements/{draggble → draggable}/SVGDraggable.js +0 -0
- /package/lib/component/modal/setting/{DisplayTabContent.d.ts → settings-tabs/DisplayTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{FormattingTabContent.d.ts → settings-tabs/FormattingTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{GeneralTabContent.d.ts → settings-tabs/GeneralTabContent.d.ts} +0 -0
- /package/lib/component/modal/setting/{ToolsTabContent.d.ts → settings-tabs/ToolsTabContent.d.ts} +0 -0
- /package/lib/component/panels/MultipleSpectraAnalysisPanel/{MultipleAnalysisCodeEditor.d.ts → preferences/MultipleAnalysisCodeEditor.d.ts} +0 -0
- /package/lib/data/types/common/{Source.js → Info.js} +0 -0
- /package/lib/data/types/{data1d/Data1D.js → common/MapOptions.js} +0 -0
- /package/lib/data/types/{data1d/Datum1D.js → common/Nucleus.js} +0 -0
- /package/lib/data/types/data1d/{Display1D.js → ComplexData1D.js} +0 -0
- /package/lib/data/types/data1d/{Info1D.js → MatrixOptions.js} +0 -0
- /package/lib/data/types/{data1d/Integral.js → view-state/PeaksViewState.js} +0 -0
- /package/lib-cjs/component/2d/{tools/slicing → utilities}/SliceScale.js +0 -0
- /package/lib-cjs/component/elements/{draggble → draggable}/SVGDraggable.js +0 -0
- /package/lib-cjs/data/types/common/{Source.js → Info.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Data1D.js → common/MapOptions.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Datum1D.js → common/Nucleus.js} +0 -0
- /package/lib-cjs/data/types/data1d/{Display1D.js → ComplexData1D.js} +0 -0
- /package/lib-cjs/data/types/data1d/{Info1D.js → MatrixOptions.js} +0 -0
- /package/lib-cjs/data/types/{data1d/Integral.js → view-state/PeaksViewState.js} +0 -0
|
@@ -1,31 +1,99 @@
|
|
|
1
|
+
import { Reducer } from 'react';
|
|
2
|
+
import { SplitPaneSize } from 'react-science/ui';
|
|
3
|
+
import { MatrixOptions } from '../../../data/types/data1d/MatrixOptions';
|
|
1
4
|
import { NMRiumWorkspace, NMRiumPreferences } from '../../NMRium';
|
|
2
|
-
import { Workspace } from '../../workspaces/Workspace';
|
|
5
|
+
import { MultipleSpectraAnalysisPreferences, Workspace, WorkSpaceSource } from '../../workspaces/Workspace';
|
|
3
6
|
import { ActionType } from '../types/Types';
|
|
4
|
-
declare
|
|
7
|
+
export declare const WORKSPACES_KEYS: {
|
|
8
|
+
componentKey: string;
|
|
9
|
+
nmriumKey: string;
|
|
10
|
+
};
|
|
11
|
+
type InitPreferencesAction = ActionType<'INIT_PREFERENCES', {
|
|
5
12
|
display: NMRiumPreferences;
|
|
6
13
|
workspace: NMRiumWorkspace;
|
|
14
|
+
customWorkspaces: Record<string, Workspace>;
|
|
7
15
|
dispatch: any;
|
|
8
16
|
}>;
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
type SetPreferencesAction = ActionType<'SET_PREFERENCES', Partial<Workspace>>;
|
|
18
|
+
type SetPanelsPreferencesAction = ActionType<'SET_PANELS_PREFERENCES', {
|
|
11
19
|
key: string;
|
|
12
20
|
value: string;
|
|
13
21
|
}>;
|
|
14
|
-
export
|
|
22
|
+
export type SetWorkspaceAction = ActionType<'SET_WORKSPACE', {
|
|
23
|
+
workspaceSource: 'any';
|
|
15
24
|
workspace: string;
|
|
25
|
+
} | {
|
|
26
|
+
workspaceSource: 'nmriumFile';
|
|
27
|
+
data: Workspace;
|
|
16
28
|
}>;
|
|
17
|
-
export
|
|
29
|
+
export type WorkspaceAction = ActionType<'REMOVE_WORKSPACE' | 'SET_ACTIVE_WORKSPACE', {
|
|
18
30
|
workspace: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type AddWorkspaceAction = ActionType<'ADD_WORKSPACE', {
|
|
33
|
+
workspace: string;
|
|
34
|
+
data?: Omit<Workspace, 'version' | 'label'>;
|
|
35
|
+
}>;
|
|
36
|
+
export type ApplyGeneralPreferences = ActionType<'APPLY_General_PREFERENCES', {
|
|
19
37
|
data: Omit<Workspace, 'version' | 'label'>;
|
|
20
38
|
}>;
|
|
21
|
-
|
|
39
|
+
export type AnalyzeSpectraAction = ActionType<'ANALYZE_SPECTRA', {
|
|
40
|
+
start: number;
|
|
41
|
+
end: number;
|
|
42
|
+
nucleus: string;
|
|
43
|
+
columnKey?: string;
|
|
44
|
+
}>;
|
|
45
|
+
export type ChangeAnalysisColumnValueKeyAction = ActionType<'CHANGE_ANALYSIS_COLUMN_VALUE_KEY', {
|
|
46
|
+
columnKey: string;
|
|
47
|
+
valueKey: string;
|
|
48
|
+
nucleus: string;
|
|
49
|
+
}>;
|
|
50
|
+
export type DeleteAnalysisColumn = ActionType<'DELETE_ANALYSIS_COLUMN', {
|
|
51
|
+
columnKey: string;
|
|
52
|
+
nucleus: string;
|
|
53
|
+
}>;
|
|
54
|
+
export type SetSpectraAnalysisPanelPreferencesAction = ActionType<'SET_SPECTRA_ANALYSIS_PREFERENCES', {
|
|
55
|
+
nucleus: string;
|
|
56
|
+
data: MultipleSpectraAnalysisPreferences;
|
|
57
|
+
}>;
|
|
58
|
+
export type setMatrixGenerationOptionsAction = ActionType<'SET_MATRIX_GENERATION_OPTIONS', {
|
|
59
|
+
nucleus: string;
|
|
60
|
+
options: MatrixOptions;
|
|
61
|
+
}>;
|
|
62
|
+
export type addMatrixGenerationExclusionZoneAction = ActionType<'ADD_MATRIX_GENERATION_EXCLUSION_ZONE', {
|
|
63
|
+
zone: {
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
};
|
|
67
|
+
range: {
|
|
68
|
+
from: number;
|
|
69
|
+
to: number;
|
|
70
|
+
};
|
|
71
|
+
nucleus: string;
|
|
72
|
+
}>;
|
|
73
|
+
export type deleteMatrixGenerationExclusionZoneAction = ActionType<'DELETE_MATRIX_GENERATION_EXCLUSION_ZONE', {
|
|
74
|
+
zone: {
|
|
75
|
+
id: string;
|
|
76
|
+
from: number;
|
|
77
|
+
to: number;
|
|
78
|
+
};
|
|
79
|
+
nucleus: string;
|
|
80
|
+
}>;
|
|
81
|
+
export type SetVerticalSplitterPositionAction = ActionType<'SET_VERTICAL_SPLITTER_POSITION', {
|
|
82
|
+
value: SplitPaneSize;
|
|
83
|
+
}>;
|
|
84
|
+
type PreferencesActions = InitPreferencesAction | SetPreferencesAction | SetPanelsPreferencesAction | SetWorkspaceAction | WorkspaceAction | AddWorkspaceAction | ApplyGeneralPreferences | AnalyzeSpectraAction | ChangeAnalysisColumnValueKeyAction | DeleteAnalysisColumn | SetSpectraAnalysisPanelPreferencesAction | setMatrixGenerationOptionsAction | addMatrixGenerationExclusionZoneAction | deleteMatrixGenerationExclusionZoneAction | SetVerticalSplitterPositionAction;
|
|
22
85
|
export declare const WORKSPACES: Array<{
|
|
23
86
|
key: NMRiumWorkspace;
|
|
24
87
|
label: string;
|
|
25
88
|
}>;
|
|
89
|
+
export type WorkspaceWithSource = Workspace & {
|
|
90
|
+
source: WorkSpaceSource;
|
|
91
|
+
};
|
|
92
|
+
export type WorkspacesWithSource = Record<NMRiumWorkspace, WorkspaceWithSource> | Record<string, WorkspaceWithSource>;
|
|
26
93
|
export interface PreferencesState {
|
|
27
94
|
version: number;
|
|
28
|
-
workspaces:
|
|
95
|
+
workspaces: WorkspacesWithSource;
|
|
96
|
+
originalWorkspaces: WorkspacesWithSource;
|
|
29
97
|
dispatch: (action?: PreferencesActions) => void;
|
|
30
98
|
workspace: {
|
|
31
99
|
current: NMRiumWorkspace;
|
|
@@ -34,254 +102,5 @@ export interface PreferencesState {
|
|
|
34
102
|
}
|
|
35
103
|
export declare const preferencesInitialState: PreferencesState;
|
|
36
104
|
export declare function initPreferencesState(state: PreferencesState): PreferencesState;
|
|
37
|
-
declare const preferencesReducer:
|
|
38
|
-
readonly version: number;
|
|
39
|
-
readonly workspaces: {
|
|
40
|
-
readonly [x: string]: {
|
|
41
|
-
readonly version: number;
|
|
42
|
-
readonly label: string;
|
|
43
|
-
readonly display: {
|
|
44
|
-
readonly general?: {
|
|
45
|
-
readonly hideGeneralSettings?: boolean | undefined;
|
|
46
|
-
readonly experimentalFeatures?: {
|
|
47
|
-
readonly display: boolean;
|
|
48
|
-
readonly open?: boolean | undefined;
|
|
49
|
-
} | undefined;
|
|
50
|
-
readonly hidePanelOnLoad?: boolean | undefined;
|
|
51
|
-
readonly initialPanelWidth?: import("analysis-ui-components").SplitPaneSize | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
readonly panels?: {
|
|
54
|
-
readonly spectraPanel?: {
|
|
55
|
-
readonly display: boolean;
|
|
56
|
-
readonly open?: boolean | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
readonly informationPanel?: {
|
|
59
|
-
readonly display: boolean;
|
|
60
|
-
readonly open?: boolean | undefined;
|
|
61
|
-
} | undefined;
|
|
62
|
-
readonly peaksPanel?: {
|
|
63
|
-
readonly display: boolean;
|
|
64
|
-
readonly open?: boolean | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
readonly integralsPanel?: {
|
|
67
|
-
readonly display: boolean;
|
|
68
|
-
readonly open?: boolean | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
readonly rangesPanel?: {
|
|
71
|
-
readonly display: boolean;
|
|
72
|
-
readonly open?: boolean | undefined;
|
|
73
|
-
} | undefined;
|
|
74
|
-
readonly structuresPanel?: {
|
|
75
|
-
readonly display: boolean;
|
|
76
|
-
readonly open?: boolean | undefined;
|
|
77
|
-
} | undefined;
|
|
78
|
-
readonly filtersPanel?: {
|
|
79
|
-
readonly display: boolean;
|
|
80
|
-
readonly open?: boolean | undefined;
|
|
81
|
-
} | undefined;
|
|
82
|
-
readonly zonesPanel?: {
|
|
83
|
-
readonly display: boolean;
|
|
84
|
-
readonly open?: boolean | undefined;
|
|
85
|
-
} | undefined;
|
|
86
|
-
readonly summaryPanel?: {
|
|
87
|
-
readonly display: boolean;
|
|
88
|
-
readonly open?: boolean | undefined;
|
|
89
|
-
} | undefined;
|
|
90
|
-
readonly multipleSpectraAnalysisPanel?: {
|
|
91
|
-
readonly display: boolean;
|
|
92
|
-
readonly open?: boolean | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
readonly databasePanel?: {
|
|
95
|
-
readonly display: boolean;
|
|
96
|
-
readonly open?: boolean | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
readonly predictionPanel?: {
|
|
99
|
-
readonly display: boolean;
|
|
100
|
-
readonly open?: boolean | undefined;
|
|
101
|
-
} | undefined;
|
|
102
|
-
readonly automaticAssignmentPanel?: {
|
|
103
|
-
readonly display: boolean;
|
|
104
|
-
readonly open?: boolean | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
} | undefined;
|
|
107
|
-
readonly toolBarButtons?: {
|
|
108
|
-
readonly zoom?: boolean | undefined;
|
|
109
|
-
readonly zoomOut?: boolean | undefined;
|
|
110
|
-
readonly import?: boolean | undefined;
|
|
111
|
-
readonly exportAs?: boolean | undefined;
|
|
112
|
-
readonly spectraStackAlignments?: boolean | undefined;
|
|
113
|
-
readonly spectraCenterAlignments?: boolean | undefined;
|
|
114
|
-
readonly realImaginary?: boolean | undefined;
|
|
115
|
-
readonly peakPicking?: boolean | undefined;
|
|
116
|
-
readonly integral?: boolean | undefined;
|
|
117
|
-
readonly zonePicking?: boolean | undefined;
|
|
118
|
-
readonly slicing?: boolean | undefined;
|
|
119
|
-
readonly rangePicking?: boolean | undefined;
|
|
120
|
-
readonly zeroFilling?: boolean | undefined;
|
|
121
|
-
readonly apodization?: boolean | undefined;
|
|
122
|
-
readonly phaseCorrection?: boolean | undefined;
|
|
123
|
-
readonly baselineCorrection?: boolean | undefined;
|
|
124
|
-
readonly fastFourierTransform?: boolean | undefined;
|
|
125
|
-
readonly multipleSpectraAnalysis?: boolean | undefined;
|
|
126
|
-
readonly exclusionZones?: boolean | undefined;
|
|
127
|
-
} | undefined;
|
|
128
|
-
};
|
|
129
|
-
readonly general: {
|
|
130
|
-
readonly dimmedSpectraOpacity: number;
|
|
131
|
-
};
|
|
132
|
-
readonly formatting: {
|
|
133
|
-
readonly nuclei: {
|
|
134
|
-
readonly [x: string]: {
|
|
135
|
-
readonly name: string;
|
|
136
|
-
readonly ppm: string;
|
|
137
|
-
readonly hz: string;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
readonly panels: {
|
|
141
|
-
readonly peaks?: {
|
|
142
|
-
readonly nuclei: {
|
|
143
|
-
readonly [x: string]: {
|
|
144
|
-
readonly peakNumber: {
|
|
145
|
-
readonly show: boolean;
|
|
146
|
-
readonly format: string;
|
|
147
|
-
};
|
|
148
|
-
readonly deltaPPM: {
|
|
149
|
-
readonly show: boolean;
|
|
150
|
-
readonly format: string;
|
|
151
|
-
};
|
|
152
|
-
readonly deltaHz: {
|
|
153
|
-
readonly show: boolean;
|
|
154
|
-
readonly format: string;
|
|
155
|
-
};
|
|
156
|
-
readonly peakWidth: {
|
|
157
|
-
readonly show: boolean;
|
|
158
|
-
readonly format: string;
|
|
159
|
-
};
|
|
160
|
-
readonly intensity: {
|
|
161
|
-
readonly show: boolean;
|
|
162
|
-
readonly format: string;
|
|
163
|
-
};
|
|
164
|
-
readonly showKind: boolean;
|
|
165
|
-
readonly fwhm: {
|
|
166
|
-
readonly show: boolean;
|
|
167
|
-
readonly format: string;
|
|
168
|
-
};
|
|
169
|
-
readonly mu: {
|
|
170
|
-
readonly show: boolean;
|
|
171
|
-
readonly format: string;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
} | undefined;
|
|
176
|
-
readonly integrals?: {
|
|
177
|
-
readonly nuclei: {
|
|
178
|
-
readonly [x: string]: {
|
|
179
|
-
readonly absolute: {
|
|
180
|
-
readonly show: boolean;
|
|
181
|
-
readonly format: string;
|
|
182
|
-
};
|
|
183
|
-
readonly relative: {
|
|
184
|
-
readonly show: boolean;
|
|
185
|
-
readonly format: string;
|
|
186
|
-
};
|
|
187
|
-
readonly color: string;
|
|
188
|
-
readonly strokeWidth: number;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
} | undefined;
|
|
192
|
-
readonly ranges?: {
|
|
193
|
-
readonly nuclei: {
|
|
194
|
-
readonly [x: string]: {
|
|
195
|
-
readonly from: {
|
|
196
|
-
readonly show: boolean;
|
|
197
|
-
readonly format: string;
|
|
198
|
-
};
|
|
199
|
-
readonly to: {
|
|
200
|
-
readonly show: boolean;
|
|
201
|
-
readonly format: string;
|
|
202
|
-
};
|
|
203
|
-
readonly absolute: {
|
|
204
|
-
readonly show: boolean;
|
|
205
|
-
readonly format: string;
|
|
206
|
-
};
|
|
207
|
-
readonly relative: {
|
|
208
|
-
readonly show: boolean;
|
|
209
|
-
readonly format: string;
|
|
210
|
-
};
|
|
211
|
-
readonly deltaPPM: {
|
|
212
|
-
readonly show: boolean;
|
|
213
|
-
readonly format: string;
|
|
214
|
-
};
|
|
215
|
-
readonly deltaHz: {
|
|
216
|
-
readonly show: boolean;
|
|
217
|
-
readonly format: string;
|
|
218
|
-
};
|
|
219
|
-
readonly coupling: {
|
|
220
|
-
readonly show: boolean;
|
|
221
|
-
readonly format: string;
|
|
222
|
-
};
|
|
223
|
-
readonly jGraphTolerance: number;
|
|
224
|
-
readonly showKind: boolean;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
} | undefined;
|
|
228
|
-
readonly zones?: {
|
|
229
|
-
readonly nuclei: {
|
|
230
|
-
readonly [x: string]: {
|
|
231
|
-
readonly deltaPPM: {
|
|
232
|
-
readonly show: boolean;
|
|
233
|
-
readonly format: string;
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
readonly absolute: {
|
|
238
|
-
readonly show: boolean;
|
|
239
|
-
readonly format: string;
|
|
240
|
-
};
|
|
241
|
-
readonly relative: {
|
|
242
|
-
readonly show: boolean;
|
|
243
|
-
readonly format: string;
|
|
244
|
-
};
|
|
245
|
-
} | undefined;
|
|
246
|
-
readonly database?: {
|
|
247
|
-
readonly previewJcamp: boolean;
|
|
248
|
-
readonly showSmiles: boolean;
|
|
249
|
-
readonly showSolvent: boolean;
|
|
250
|
-
readonly showNames: boolean;
|
|
251
|
-
readonly range: {
|
|
252
|
-
readonly show: boolean;
|
|
253
|
-
readonly format: string;
|
|
254
|
-
};
|
|
255
|
-
readonly delta: {
|
|
256
|
-
readonly show: boolean;
|
|
257
|
-
readonly format: string;
|
|
258
|
-
};
|
|
259
|
-
readonly showAssignment: boolean;
|
|
260
|
-
readonly coupling: {
|
|
261
|
-
readonly show: boolean;
|
|
262
|
-
readonly format: string;
|
|
263
|
-
};
|
|
264
|
-
readonly showMultiplicity: boolean;
|
|
265
|
-
readonly color: string;
|
|
266
|
-
readonly marginBottom: number;
|
|
267
|
-
} | undefined;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
readonly databases: {
|
|
271
|
-
readonly data: readonly {
|
|
272
|
-
readonly key: string;
|
|
273
|
-
readonly label: string;
|
|
274
|
-
readonly url: string;
|
|
275
|
-
readonly enabled: boolean;
|
|
276
|
-
}[];
|
|
277
|
-
readonly defaultDatabase: string;
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
readonly dispatch: (action?: PreferencesActions) => void;
|
|
282
|
-
readonly workspace: {
|
|
283
|
-
readonly current: NMRiumWorkspace;
|
|
284
|
-
readonly base: NMRiumWorkspace | null;
|
|
285
|
-
};
|
|
286
|
-
}, action: PreferencesActions) => import("immer/dist/internal").WritableDraft<PreferencesState>;
|
|
105
|
+
declare const preferencesReducer: Reducer<PreferencesState, any>;
|
|
287
106
|
export default preferencesReducer;
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import { produce } from 'immer';
|
|
2
|
-
import { getLocalStorage, removeData } from '../../utility/LocalStorage';
|
|
2
|
+
import { getLocalStorage, removeData, storeData, } from '../../utility/LocalStorage';
|
|
3
3
|
import Workspaces from '../../workspaces';
|
|
4
4
|
import { addWorkspace } from './actions/addWorkspace';
|
|
5
|
+
import { analyzeSpectra, changeAnalysisColumnValueKey, deleteAnalysisColumn, setSpectraAnalysisPanelsPreferences, } from './actions/analyzeSpectra';
|
|
6
|
+
import { applyGeneralPreferences } from './actions/applyGeneralPreferences';
|
|
5
7
|
import { initPreferences } from './actions/initPreferences';
|
|
8
|
+
import { setMatrixGenerationOptions, addExclusionZone, deleteExclusionZone, } from './actions/matrixGeneration';
|
|
6
9
|
import { removeWorkspace } from './actions/removeWorkspace';
|
|
10
|
+
import { setActiveWorkspace } from './actions/setActiveWorkspace';
|
|
7
11
|
import { setPanelsPreferences } from './actions/setPanelsPreferences';
|
|
8
12
|
import { setPreferences } from './actions/setPreferences';
|
|
13
|
+
import { setVerticalSplitterPosition } from './actions/setVerticalSplitterPosition';
|
|
9
14
|
import { setWorkspace } from './actions/setWorkspace';
|
|
10
|
-
|
|
15
|
+
import { mapWorkspaces } from './utilities/mapWorkspaces';
|
|
16
|
+
const LOCAL_STORAGE_VERSION = 16;
|
|
17
|
+
export const WORKSPACES_KEYS = {
|
|
18
|
+
componentKey: `nmrium-component-workspace`,
|
|
19
|
+
nmriumKey: `nmrium-file-workspace`,
|
|
20
|
+
};
|
|
11
21
|
export const WORKSPACES = [
|
|
12
22
|
{
|
|
13
23
|
key: 'default',
|
|
@@ -25,6 +35,10 @@ export const WORKSPACES = [
|
|
|
25
35
|
key: 'prediction',
|
|
26
36
|
label: Workspaces.prediction.label,
|
|
27
37
|
},
|
|
38
|
+
{
|
|
39
|
+
key: 'assignment',
|
|
40
|
+
label: Workspaces.assignment.label,
|
|
41
|
+
},
|
|
28
42
|
{
|
|
29
43
|
key: 'embedded',
|
|
30
44
|
label: Workspaces.embedded.label,
|
|
@@ -33,6 +47,7 @@ export const WORKSPACES = [
|
|
|
33
47
|
export const preferencesInitialState = {
|
|
34
48
|
version: LOCAL_STORAGE_VERSION,
|
|
35
49
|
workspaces: {},
|
|
50
|
+
originalWorkspaces: {},
|
|
36
51
|
dispatch: () => null,
|
|
37
52
|
workspace: {
|
|
38
53
|
current: 'default',
|
|
@@ -49,10 +64,26 @@ export function initPreferencesState(state) {
|
|
|
49
64
|
// if the local setting version != current settings version number
|
|
50
65
|
if (!localData?.version || localData?.version !== LOCAL_STORAGE_VERSION) {
|
|
51
66
|
removeData('nmr-general-settings');
|
|
67
|
+
const data = {
|
|
68
|
+
version: LOCAL_STORAGE_VERSION,
|
|
69
|
+
workspaces: {},
|
|
70
|
+
};
|
|
71
|
+
storeData('nmr-general-settings', JSON.stringify(data));
|
|
52
72
|
}
|
|
73
|
+
const predefinedWorkspaces = mapWorkspaces(Workspaces, {
|
|
74
|
+
source: 'predefined',
|
|
75
|
+
});
|
|
76
|
+
const localWorkspaces = mapWorkspaces(localData?.workspaces || {}, {
|
|
77
|
+
source: 'user',
|
|
78
|
+
});
|
|
53
79
|
return {
|
|
54
80
|
...state,
|
|
55
|
-
|
|
81
|
+
originalWorkspaces: { ...predefinedWorkspaces, ...localWorkspaces },
|
|
82
|
+
workspaces: { ...predefinedWorkspaces, ...localWorkspaces },
|
|
83
|
+
workspace: {
|
|
84
|
+
current: localData?.currentWorkspace || 'default',
|
|
85
|
+
base: null,
|
|
86
|
+
},
|
|
56
87
|
};
|
|
57
88
|
}
|
|
58
89
|
function innerPreferencesReducer(draft, action) {
|
|
@@ -65,10 +96,30 @@ function innerPreferencesReducer(draft, action) {
|
|
|
65
96
|
return setPanelsPreferences(draft, action);
|
|
66
97
|
case 'SET_WORKSPACE':
|
|
67
98
|
return setWorkspace(draft, action);
|
|
99
|
+
case 'SET_ACTIVE_WORKSPACE':
|
|
100
|
+
return setActiveWorkspace(draft, action);
|
|
68
101
|
case 'ADD_WORKSPACE':
|
|
69
102
|
return addWorkspace(draft, action);
|
|
70
103
|
case 'REMOVE_WORKSPACE':
|
|
71
104
|
return removeWorkspace(draft, action);
|
|
105
|
+
case 'APPLY_General_PREFERENCES':
|
|
106
|
+
return applyGeneralPreferences(draft, action);
|
|
107
|
+
case 'ANALYZE_SPECTRA':
|
|
108
|
+
return analyzeSpectra(draft, action);
|
|
109
|
+
case 'CHANGE_ANALYSIS_COLUMN_VALUE_KEY':
|
|
110
|
+
return changeAnalysisColumnValueKey(draft, action);
|
|
111
|
+
case 'DELETE_ANALYSIS_COLUMN':
|
|
112
|
+
return deleteAnalysisColumn(draft, action);
|
|
113
|
+
case 'SET_SPECTRA_ANALYSIS_PREFERENCES':
|
|
114
|
+
return setSpectraAnalysisPanelsPreferences(draft, action);
|
|
115
|
+
case 'SET_MATRIX_GENERATION_OPTIONS':
|
|
116
|
+
return setMatrixGenerationOptions(draft, action);
|
|
117
|
+
case 'ADD_MATRIX_GENERATION_EXCLUSION_ZONE':
|
|
118
|
+
return addExclusionZone(draft, action);
|
|
119
|
+
case 'DELETE_MATRIX_GENERATION_EXCLUSION_ZONE':
|
|
120
|
+
return deleteExclusionZone(draft, action);
|
|
121
|
+
case 'SET_VERTICAL_SPLITTER_POSITION':
|
|
122
|
+
return setVerticalSplitterPosition(draft, action);
|
|
72
123
|
default:
|
|
73
124
|
return draft;
|
|
74
125
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { NMRiumWorkspace } from '../../../NMRium';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { CustomWorkspaces } from '../../../workspaces/Workspace';
|
|
3
|
+
import { WorkspaceWithSource } from '../preferencesReducer';
|
|
4
|
+
export declare function getPreferencesByWorkspace(workspace: NMRiumWorkspace, originalWorkspaces: CustomWorkspaces): WorkspaceWithSource;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import lodashMerge from 'lodash/merge';
|
|
2
|
-
import Workspaces from '../../../workspaces';
|
|
3
2
|
import { workspaceDefaultProperties } from '../../../workspaces/workspaceDefaultProperties';
|
|
4
|
-
export function getPreferencesByWorkspace(workspace) {
|
|
5
|
-
return lodashMerge({}, workspaceDefaultProperties,
|
|
3
|
+
export function getPreferencesByWorkspace(workspace, originalWorkspaces) {
|
|
4
|
+
return lodashMerge({}, workspaceDefaultProperties, originalWorkspaces?.[workspace]);
|
|
6
5
|
}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { Formatting } from '../../../workspaces/Workspace';
|
|
2
|
-
export declare function mapNucleiFormatting(formatting: Formatting):
|
|
3
|
-
panels: Partial<import("../../../workspaces/Workspace").PanelsPreferences>;
|
|
4
|
-
nuclei: {};
|
|
5
|
-
};
|
|
2
|
+
export declare function mapNucleiFormatting(formatting: Formatting): Formatting;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export function mapNucleiFormatting(formatting) {
|
|
2
2
|
const { nuclei, ...res } = formatting;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
return {
|
|
4
|
+
nuclei: Object.fromEntries(Object.keys(nuclei).map((key) => [
|
|
5
|
+
nuclei[key].name.trim().toLowerCase(),
|
|
6
|
+
nuclei[key],
|
|
7
|
+
])),
|
|
8
|
+
...res,
|
|
9
|
+
};
|
|
8
10
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Workspace, WorkSpaceSource } from '../../../workspaces/Workspace';
|
|
2
|
+
interface MapWorkspacesOptions {
|
|
3
|
+
ignoreKeys?: object;
|
|
4
|
+
mergeWithDefaultProperties?: boolean;
|
|
5
|
+
source?: WorkSpaceSource;
|
|
6
|
+
}
|
|
7
|
+
export declare function mapWorkspaces(workspaces: Record<string, Workspace>, options?: MapWorkspacesOptions): {};
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import lodashMerge from 'lodash/merge';
|
|
2
|
+
import { workspaceDefaultProperties } from '../../../workspaces/workspaceDefaultProperties';
|
|
3
|
+
export function mapWorkspaces(workspaces, options = {}) {
|
|
4
|
+
const { mergeWithDefaultProperties = true, ignoreKeys = {}, source, } = options;
|
|
5
|
+
const mapObject = {};
|
|
6
|
+
const sourceObject = source ? { source } : {};
|
|
7
|
+
for (const key in workspaces) {
|
|
8
|
+
if (!(key in ignoreKeys)) {
|
|
9
|
+
if (mergeWithDefaultProperties) {
|
|
10
|
+
mapObject[key] = lodashMerge({}, workspaceDefaultProperties, workspaces[key], sourceObject);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
mapObject[key] = { ...workspaces[key], ...sourceObject };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return mapObject;
|
|
18
|
+
}
|
|
@@ -2,14 +2,16 @@ import { ScaleLinear } from 'd3';
|
|
|
2
2
|
export declare const SET_X_SCALE = "SET_X_SCALE";
|
|
3
3
|
export declare const SET_Y_SCALE = "SET_Y_SCALE";
|
|
4
4
|
export declare const SET_SCALE = "SET_SCALE";
|
|
5
|
-
|
|
5
|
+
type ScaleLinearNumberFunction = (spectrumId?: number | null | string) => ScaleLinear<number, number, number>;
|
|
6
6
|
export interface ScaleState {
|
|
7
7
|
scaleX: ScaleLinearNumberFunction | null;
|
|
8
8
|
scaleY: ScaleLinearNumberFunction | null;
|
|
9
|
+
shiftY: number;
|
|
9
10
|
}
|
|
10
11
|
export declare const scaleInitialState: ScaleState;
|
|
11
12
|
declare const scaleReducer: (base: {
|
|
12
13
|
readonly scaleX: ScaleLinearNumberFunction | null;
|
|
13
14
|
readonly scaleY: ScaleLinearNumberFunction | null;
|
|
15
|
+
readonly shiftY: number;
|
|
14
16
|
}, action: any) => ScaleState;
|
|
15
17
|
export default scaleReducer;
|
|
@@ -6,6 +6,7 @@ export const SET_SCALE = 'SET_SCALE';
|
|
|
6
6
|
export const scaleInitialState = {
|
|
7
7
|
scaleX: null,
|
|
8
8
|
scaleY: null,
|
|
9
|
+
shiftY: 0,
|
|
9
10
|
};
|
|
10
11
|
function innerScaleReducer(draft, action) {
|
|
11
12
|
switch (action.type) {
|
|
@@ -16,6 +17,13 @@ function innerScaleReducer(draft, action) {
|
|
|
16
17
|
draft.scaleY = (spectrumId = null) => getYScale(action, spectrumId);
|
|
17
18
|
break;
|
|
18
19
|
case SET_SCALE: {
|
|
20
|
+
const { yDomains, verticalAlign, height } = action.payload;
|
|
21
|
+
if (verticalAlign === 'stack') {
|
|
22
|
+
draft.shiftY = height / (Object.keys(yDomains).length + 2);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
draft.shiftY = 0;
|
|
26
|
+
}
|
|
19
27
|
draft.scaleX = (spectrumId = null) => getXScale(action.payload, spectrumId);
|
|
20
28
|
draft.scaleY = (spectrumId = null) => getYScale(action.payload, spectrumId);
|
|
21
29
|
break;
|