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
|
@@ -17,12 +17,15 @@ const ToolTypes_1 = require("../../toolbar/ToolTypes");
|
|
|
17
17
|
const IntegralIndicator_1 = require("./IntegralIndicator");
|
|
18
18
|
const stylesOnHover = (0, react_1.css) `
|
|
19
19
|
pointer-events: bounding-box;
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
@-moz-document url-prefix("") {
|
|
21
22
|
pointer-events: fill;
|
|
22
23
|
}
|
|
24
|
+
|
|
23
25
|
.highlight {
|
|
24
26
|
fill: transparent;
|
|
25
27
|
}
|
|
28
|
+
|
|
26
29
|
.target {
|
|
27
30
|
visibility: hidden;
|
|
28
31
|
}
|
|
@@ -30,9 +33,10 @@ const stylesOnHover = (0, react_1.css) `
|
|
|
30
33
|
const stylesHighlighted = (0, react_1.css) `
|
|
31
34
|
pointer-events: bounding-box;
|
|
32
35
|
|
|
33
|
-
@-moz-document url-prefix() {
|
|
36
|
+
@-moz-document url-prefix("") {
|
|
34
37
|
pointer-events: fill;
|
|
35
38
|
}
|
|
39
|
+
|
|
36
40
|
fill: #ff6f0057;
|
|
37
41
|
|
|
38
42
|
.target {
|
|
@@ -7,11 +7,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const Spectrum1D_1 = require("../../../data/data1d/Spectrum1D");
|
|
9
9
|
const ChartContext_1 = require("../../context/ChartContext");
|
|
10
|
-
const
|
|
10
|
+
const useActiveSpectrum_1 = require("../../hooks/useActiveSpectrum");
|
|
11
11
|
const Integral_1 = __importDefault(require("./Integral"));
|
|
12
12
|
function IntegralsSeries() {
|
|
13
13
|
const { xDomains, data, displayerKey, view: { spectra: { activeTab: nucleus }, }, } = (0, ChartContext_1.useChartData)();
|
|
14
|
-
const activeSpectrum = (0,
|
|
14
|
+
const activeSpectrum = (0, useActiveSpectrum_1.useActiveSpectrum)();
|
|
15
15
|
const Integrals = (0, react_1.useMemo)(() => {
|
|
16
16
|
const isActive = (id) => {
|
|
17
17
|
return activeSpectrum === null ? true : id === activeSpectrum.id;
|
|
@@ -19,7 +19,7 @@ function IntegralsSeries() {
|
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)("g", { className: "integrals", children: data?.[0] &&
|
|
20
20
|
data
|
|
21
21
|
.filter((d) => d.display.isVisible && xDomains[d.id])
|
|
22
|
-
.filter(Spectrum1D_1.isSpectrum1D)
|
|
22
|
+
.filter((element) => (0, Spectrum1D_1.isSpectrum1D)(element))
|
|
23
23
|
.map((spectrum) => spectrum.integrals.values.map((integral) => ((0, jsx_runtime_1.jsx)(Integral_1.default, { nucleus: nucleus, integral: integral, isActive: isActive(spectrum.id) }, integral.id)))) }));
|
|
24
24
|
}, [activeSpectrum, data, nucleus, xDomains]);
|
|
25
25
|
return (0, jsx_runtime_1.jsx)("g", { clipPath: `url(#${displayerKey}clip-chart-1d)`, children: Integrals });
|
|
@@ -20,21 +20,18 @@ function InnerJGraph(props) {
|
|
|
20
20
|
const { signals, links } = props;
|
|
21
21
|
return ((0, jsx_runtime_1.jsxs)("g", { className: "j-graph", transform: `translate(0,${marginTop})`, children: [(0, jsx_runtime_1.jsx)(JGraphVerticalAxis_1.JGraphVerticalAxis, {}), (0, jsx_runtime_1.jsx)(JsCouplingLinks_1.default, { links: links }), (0, jsx_runtime_1.jsx)(JsCouplings_1.default, { signals: signals })] }));
|
|
22
22
|
}
|
|
23
|
-
const emptyData = { ranges: {} };
|
|
24
23
|
const MemoizedJGraph = (0, react_1.memo)(InnerJGraph);
|
|
25
24
|
function JGraph() {
|
|
26
25
|
const { height, view: { ranges: rangeState, spectra: { activeTab }, }, } = (0, ChartContext_1.useChartData)();
|
|
27
|
-
const
|
|
28
|
-
const { showJGraph } = rangeState.find((r) => r.spectrumID ===
|
|
29
|
-
Reducer_1.rangeStateInit;
|
|
26
|
+
const spectrum = (0, useSpectrum_1.default)();
|
|
27
|
+
const { showJGraph } = rangeState.find((r) => r.spectrumID === spectrum?.id) || Reducer_1.rangeStateInit;
|
|
30
28
|
const rangesPreferences = (0, usePanelPreferences_1.usePanelPreferences)('ranges', activeTab);
|
|
31
29
|
const graphHeight = height / 4;
|
|
32
|
-
const {
|
|
33
|
-
const { signals, jCouplingMax: maxValue, links, } = (0, react_1.useMemo)(() => (0, generateJGraphData_1.default)(ranges.values, rangesPreferences.jGraphTolerance) || {
|
|
30
|
+
const { signals, jCouplingMax: maxValue, links, } = (0, react_1.useMemo)(() => (0, generateJGraphData_1.default)(spectrum?.ranges.values, rangesPreferences.jGraphTolerance) || {
|
|
34
31
|
signals: [],
|
|
35
32
|
jCouplingMax: 0,
|
|
36
33
|
links: [],
|
|
37
|
-
}, [rangesPreferences.jGraphTolerance, ranges.values]);
|
|
34
|
+
}, [rangesPreferences.jGraphTolerance, spectrum?.ranges.values]);
|
|
38
35
|
const scaleY = (0, react_1.useMemo)(() => {
|
|
39
36
|
const maxRange = maxValue + maxValue * 0.1;
|
|
40
37
|
return (0, d3_1.scaleLinear)().range([graphHeight, 0]).domain([0, maxRange]);
|
|
@@ -42,7 +39,7 @@ function JGraph() {
|
|
|
42
39
|
const JGraphState = (0, react_1.useMemo)(() => {
|
|
43
40
|
return { scaleY, height: graphHeight, maxValue };
|
|
44
41
|
}, [graphHeight, scaleY, maxValue]);
|
|
45
|
-
if (!showJGraph)
|
|
42
|
+
if (!showJGraph || !spectrum?.display?.isVisible)
|
|
46
43
|
return null;
|
|
47
44
|
return ((0, jsx_runtime_1.jsx)(JGraphContext_1.JGraphContextProvider, { value: JGraphState, children: (0, jsx_runtime_1.jsx)(MemoizedJGraph, { signals: signals, links: links }) }));
|
|
48
45
|
}
|
|
@@ -7,17 +7,16 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
7
7
|
/** @jsxImportSource @emotion/react */
|
|
8
8
|
const react_1 = require("@emotion/react");
|
|
9
9
|
const react_2 = require("react");
|
|
10
|
-
const DispatchContext_1 = require("../../context/DispatchContext");
|
|
11
10
|
const GlobalContext_1 = require("../../context/GlobalContext");
|
|
11
|
+
const PreferencesContext_1 = require("../../context/PreferencesContext");
|
|
12
12
|
const ScaleContext_1 = require("../../context/ScaleContext");
|
|
13
13
|
const Resizer_1 = __importDefault(require("../../elements/resizer/Resizer"));
|
|
14
14
|
const highlight_1 = require("../../highlight");
|
|
15
|
-
const Types_1 = require("../../reducer/types/Types");
|
|
16
15
|
const styles = {
|
|
17
16
|
common: (0, react_1.css) `
|
|
18
17
|
pointer-events: bounding-box;
|
|
19
18
|
|
|
20
|
-
@-moz-document url-prefix() {
|
|
19
|
+
@-moz-document url-prefix("") {
|
|
21
20
|
pointer-events: fill;
|
|
22
21
|
}
|
|
23
22
|
`,
|
|
@@ -31,36 +30,37 @@ const styles = {
|
|
|
31
30
|
height: 100%;
|
|
32
31
|
fill: #ff6f0057;
|
|
33
32
|
}
|
|
33
|
+
|
|
34
34
|
.delete-button {
|
|
35
35
|
visibility: visible;
|
|
36
36
|
cursor: pointer;
|
|
37
37
|
}
|
|
38
38
|
`,
|
|
39
39
|
};
|
|
40
|
-
function AnalysisRange({ rangeData, columnKey }) {
|
|
40
|
+
function AnalysisRange({ rangeData, columnKey, activeTab, }) {
|
|
41
41
|
const highlight = (0, highlight_1.useHighlight)([columnKey], {
|
|
42
42
|
type: 'MULTIPLE_ANALYSIS_ZONE',
|
|
43
43
|
extra: { colKey: columnKey },
|
|
44
44
|
});
|
|
45
45
|
const { scaleX } = (0, ScaleContext_1.useScaleChecked)();
|
|
46
|
-
const dispatch = (0,
|
|
46
|
+
const { dispatch } = (0, PreferencesContext_1.usePreferences)();
|
|
47
47
|
const { viewerRef } = (0, GlobalContext_1.useGlobal)();
|
|
48
48
|
const resizeEndHandler = (0, react_2.useCallback)((resized) => {
|
|
49
49
|
const { x1, x2 } = resized;
|
|
50
|
-
const
|
|
51
|
-
const
|
|
50
|
+
const start = scaleX().invert(x2);
|
|
51
|
+
const end = scaleX().invert(x1);
|
|
52
52
|
dispatch({
|
|
53
|
-
type:
|
|
54
|
-
payload: {
|
|
53
|
+
type: 'ANALYZE_SPECTRA',
|
|
54
|
+
payload: { start, end, columnKey, nucleus: activeTab },
|
|
55
55
|
});
|
|
56
|
-
}, [columnKey, dispatch,
|
|
56
|
+
}, [activeTab, columnKey, dispatch, scaleX]);
|
|
57
57
|
const from = scaleX()(rangeData.from);
|
|
58
58
|
const to = scaleX()(rangeData.to);
|
|
59
|
-
return ((0, jsx_runtime_1.jsx)("g", { ...highlight.onHover, ...highlight.onHover, children: (0, jsx_runtime_1.jsx)(Resizer_1.default, { tag: "svg", onEnd: resizeEndHandler, initialPosition: { x2: from, x1: to }, parentElement: viewerRef, children: ({ x1, x2 }, isActive) => ((0, jsx_runtime_1.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)("g", { ...highlight.onHover, ...highlight.onHover, children: (0, jsx_runtime_1.jsx)(Resizer_1.default, { tag: "svg", onEnd: resizeEndHandler, initialPosition: { x2: from, x1: to }, parentElement: viewerRef, children: ({ x1, x2 }, isActive) => ((0, jsx_runtime_1.jsxs)("g", { transform: `translate(0,25)`, css: [
|
|
60
|
+
styles.common,
|
|
61
|
+
highlight.isActive || isActive
|
|
62
|
+
? styles.Highlighted
|
|
63
|
+
: styles.hover,
|
|
64
|
+
], children: [(0, jsx_runtime_1.jsx)("rect", { x: "0", width: x2 - x1, height: "6", className: "range-area", fill: "green" }), (0, jsx_runtime_1.jsx)("text", { textAnchor: "middle", x: (x2 - x1) / 2, y: "-5", fontSize: "12", fill: "red", fontWeight: "bolder", fillOpacity: highlight.isActive ? 1 : 0.6, children: columnKey })] })) }, `${columnKey}_${to}_${from}`) }));
|
|
65
65
|
}
|
|
66
66
|
exports.default = AnalysisRange;
|
|
@@ -5,26 +5,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
+
const multipleSpectraAnalysis_1 = require("../../../data/data1d/multipleSpectraAnalysis");
|
|
8
9
|
const ChartContext_1 = require("../../context/ChartContext");
|
|
10
|
+
const usePanelPreferences_1 = require("../../hooks/usePanelPreferences");
|
|
9
11
|
const AnalysisRange_1 = __importDefault(require("./AnalysisRange"));
|
|
10
|
-
function MultiAnalysisRangesInner({
|
|
11
|
-
const
|
|
12
|
-
const { options: { columns }, } = spectraAnalysis[activeTab] || {
|
|
13
|
-
options: { columns: {} },
|
|
14
|
-
};
|
|
15
|
-
return columns;
|
|
16
|
-
}, [activeTab, spectraAnalysis]);
|
|
17
|
-
const ranges = (0, react_1.useMemo)(() => {
|
|
18
|
-
return Object.keys(columns).map((key) => key, []);
|
|
19
|
-
}, [columns]);
|
|
12
|
+
function MultiAnalysisRangesInner({ columns, displayerKey, activeTab, }) {
|
|
13
|
+
const ranges = Object.keys(columns).filter((key) => columns[key].type !== multipleSpectraAnalysis_1.COLUMNS_TYPES.FORMULA);
|
|
20
14
|
if (!ranges || ranges.length === 0) {
|
|
21
15
|
return null;
|
|
22
16
|
}
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)("g", { clipPath: `url(#${displayerKey}clip-chart-1d)`, children: ranges.map((columnKey) => ((0, jsx_runtime_1.jsx)(AnalysisRange_1.default, { columnKey: columnKey, rangeData: columns[columnKey] }, columnKey))) }));
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("g", { clipPath: `url(#${displayerKey}clip-chart-1d)`, children: ranges.map((columnKey) => ((0, jsx_runtime_1.jsx)(AnalysisRange_1.default, { columnKey: columnKey, rangeData: columns[columnKey], activeTab: activeTab }, columnKey))) }));
|
|
24
18
|
}
|
|
25
19
|
const MemoizedMultiAnalysisRanges = (0, react_1.memo)(MultiAnalysisRangesInner);
|
|
26
20
|
function MultiAnalysisRanges() {
|
|
27
|
-
const { view: { spectra: { activeTab }, },
|
|
28
|
-
|
|
21
|
+
const { view: { spectra: { activeTab }, }, displayerKey, } = (0, ChartContext_1.useChartData)();
|
|
22
|
+
const multipleSpectraAnalysis = (0, usePanelPreferences_1.usePanelPreferences)('multipleSpectraAnalysis', activeTab);
|
|
23
|
+
const columns = multipleSpectraAnalysis.analysisOptions.columns;
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(MemoizedMultiAnalysisRanges, { ...{ columns, displayerKey, activeTab } }));
|
|
29
25
|
}
|
|
30
26
|
exports.default = MultiAnalysisRanges;
|
|
@@ -3,17 +3,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MultiplicityTree = void 0;
|
|
6
7
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
7
8
|
/** @jsxImportSource @emotion/react */
|
|
8
|
-
const
|
|
9
|
-
const
|
|
9
|
+
const react_1 = require("@emotion/react");
|
|
10
|
+
const react_2 = require("react");
|
|
10
11
|
const AssignmentsContext_1 = require("../../assignment/AssignmentsContext");
|
|
11
12
|
const ChartContext_1 = require("../../context/ChartContext");
|
|
12
13
|
const ScaleContext_1 = require("../../context/ScaleContext");
|
|
13
14
|
const highlight_1 = require("../../highlight");
|
|
15
|
+
const useSpectrum_1 = __importDefault(require("../../hooks/useSpectrum"));
|
|
14
16
|
const MultiplicityUtilities_1 = require("../../panels/extra/utilities/MultiplicityUtilities");
|
|
15
|
-
const
|
|
16
|
-
const ToolTypes_1 = require("../../toolbar/ToolTypes");
|
|
17
|
+
const AssignmentActionsButtons_1 = require("../ranges/AssignmentActionsButtons");
|
|
17
18
|
const LevelNode_1 = __importDefault(require("./LevelNode"));
|
|
18
19
|
const StringNode_1 = __importDefault(require("./StringNode"));
|
|
19
20
|
const TreeNodes_1 = __importDefault(require("./TreeNodes"));
|
|
@@ -23,176 +24,162 @@ const styles = {
|
|
|
23
24
|
opacity: 0.6,
|
|
24
25
|
strokeWidth: 1,
|
|
25
26
|
};
|
|
27
|
+
const cssStyle = (0, react_1.css) `
|
|
28
|
+
.signal-target {
|
|
29
|
+
visibility: hidden;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:hover {
|
|
33
|
+
.signal-target {
|
|
34
|
+
visibility: visible;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
const BOX_PADDING = 5;
|
|
26
39
|
function extractID(assignment) {
|
|
27
40
|
return [assignment.id].concat(assignment.assigned?.x || []);
|
|
28
41
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
42
|
+
function InnerMultiplicityTree({ labelOptions, onUnlink, data, width: widthProp, index, }) {
|
|
43
|
+
const { startX, signal, width, height, startY } = data;
|
|
44
|
+
const { scaleX } = (0, ScaleContext_1.useScaleChecked)();
|
|
45
|
+
const showLabels = width / widthProp >= 0.1;
|
|
46
|
+
labelOptions = labelOptions || {
|
|
47
|
+
distance: 10,
|
|
48
|
+
fontSize: 11,
|
|
49
|
+
};
|
|
36
50
|
const assignment = (0, AssignmentsContext_1.useAssignment)(signal.id);
|
|
37
51
|
const highlight = (0, highlight_1.useHighlight)(extractID(assignment), {
|
|
38
52
|
type: highlight_1.HighlightEventSource.SIGNAL,
|
|
39
53
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
function assignHandler() {
|
|
55
|
+
assignment.setActive('x');
|
|
56
|
+
}
|
|
57
|
+
function unAssignHandler() {
|
|
58
|
+
onUnlink(index);
|
|
59
|
+
}
|
|
60
|
+
const isHighlighted = highlight.isActive || assignment.isActive;
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)("g", { style: isHighlighted ? { ...styles, opacity: 1, strokeWidth: 1.5 } : styles, ...{
|
|
62
|
+
onMouseEnter: () => {
|
|
63
|
+
assignment.show('x');
|
|
64
|
+
highlight.show();
|
|
65
|
+
},
|
|
66
|
+
onMouseLeave: () => {
|
|
67
|
+
assignment.hide();
|
|
68
|
+
highlight.hide();
|
|
69
|
+
},
|
|
70
|
+
}, pointerEvents: "bounding-box", ...(!assignment.isActive && { css: cssStyle }), children: [drawTree(data, { scaleX, labelOptions, showLabels }), (0, jsx_runtime_1.jsx)("rect", { x: startX - BOX_PADDING, y: startY - BOX_PADDING, width: width + BOX_PADDING * 2, height: height + BOX_PADDING * 2, fill: isHighlighted ? '#ff6f0057' : 'transparent', "data-no-export": "true" }), (0, jsx_runtime_1.jsx)(AssignmentActionsButtons_1.AssignmentActionsButtons, { className: "signal-target", isActive: !!(assignment.isActive || signal?.diaIDs), y: startY, x: scaleX()(signal.delta) - 30, onAssign: assignHandler, onUnAssign: unAssignHandler, borderRadius: 16 })] }));
|
|
71
|
+
}
|
|
72
|
+
function MultiplicityTree(props) {
|
|
73
|
+
const { width } = (0, ChartContext_1.useChartData)();
|
|
74
|
+
const spectrum = (0, useSpectrum_1.default)(null);
|
|
75
|
+
const { scaleX, scaleY } = (0, ScaleContext_1.useScaleChecked)();
|
|
76
|
+
const treeData = (0, react_2.useMemo)(() => spectrum
|
|
77
|
+
? getTree(props.range, spectrum, { scaleX, scaleY })
|
|
78
|
+
: [], [props.range, scaleX, scaleY, spectrum]);
|
|
79
|
+
if (!spectrum)
|
|
80
|
+
return null;
|
|
81
|
+
return ((0, jsx_runtime_1.jsx)("g", { children: treeData?.map((data, index) => ((0, jsx_runtime_1.jsx)(InnerMultiplicityTree, { index: index, data: data, width: width, ...props }, data.signal.id))) }));
|
|
82
|
+
}
|
|
83
|
+
exports.MultiplicityTree = MultiplicityTree;
|
|
84
|
+
function getTree(range, spectrum, scale) {
|
|
85
|
+
const SHIFT_X = 30;
|
|
86
|
+
const treeResult = [];
|
|
87
|
+
const { signals = [], ...otherRangeProps } = range;
|
|
88
|
+
for (const signal of signals) {
|
|
89
|
+
const isMassive = !(0, MultiplicityUtilities_1.checkMultiplicity)(signal.multiplicity, ['m']);
|
|
60
90
|
const length = signal?.multiplicity?.length || 0;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
levelHeight: _treeLevelHeight,
|
|
68
|
-
});
|
|
69
|
-
setDrawInFullRange(_drawInFullRange);
|
|
70
|
-
}, [
|
|
71
|
-
labelOptions.distance,
|
|
72
|
-
scaleX,
|
|
73
|
-
signal.multiplicity,
|
|
74
|
-
xRange.x1,
|
|
75
|
-
xRange.x2,
|
|
76
|
-
]);
|
|
77
|
-
(0, react_1.useEffect)(() => {
|
|
78
|
-
if (treeProps.width / width >= 0.1) {
|
|
79
|
-
setShowLabels(true);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
setShowLabels(false);
|
|
83
|
-
}
|
|
84
|
-
}, [treeProps.width, width]);
|
|
85
|
-
const startY = (0, react_1.useMemo)(() => {
|
|
86
|
-
let yMax;
|
|
87
|
-
spectrumData.data.x.forEach((_x, i) => {
|
|
88
|
-
if (_x >= rangeFrom &&
|
|
89
|
-
_x <= rangeTo &&
|
|
90
|
-
(!yMax || spectrumData.data.re[i] > yMax)) {
|
|
91
|
-
yMax = spectrumData.data.re[i];
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
return scaleY(spectrumData.id)(yMax) - treeProps.height - 30;
|
|
95
|
-
}, [
|
|
96
|
-
spectrumData.data.x,
|
|
97
|
-
spectrumData.data.re,
|
|
98
|
-
spectrumData.id,
|
|
99
|
-
scaleY,
|
|
100
|
-
treeProps.height,
|
|
101
|
-
rangeFrom,
|
|
102
|
-
rangeTo,
|
|
103
|
-
]);
|
|
104
|
-
const treeNodesData = (0, react_1.useMemo)(() => {
|
|
91
|
+
let width = 0;
|
|
92
|
+
let height = 0;
|
|
93
|
+
let levelHeight = 0;
|
|
94
|
+
let nodes = [];
|
|
95
|
+
let startX = 0;
|
|
96
|
+
const { from, to } = range;
|
|
105
97
|
if (signal.multiplicity) {
|
|
106
|
-
const buildTreeNodesData = (0, buildTreeNode_1.default)(signal,
|
|
98
|
+
const buildTreeNodesData = (0, buildTreeNode_1.default)(signal, spectrum);
|
|
107
99
|
const jIndices = signal.multiplicity
|
|
108
100
|
.split('')
|
|
109
101
|
.map((_mult, i) => ((0, MultiplicityUtilities_1.hasCouplingConstant)(_mult) ? i : undefined))
|
|
110
102
|
.filter((_i) => _i !== undefined);
|
|
111
|
-
|
|
103
|
+
nodes = buildTreeNodesData(0, jIndices, [], signal.delta);
|
|
112
104
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
105
|
+
// +2 because of multiplicity text and start level node before the actual tree starts
|
|
106
|
+
// 2* for levels between nodes (edges)
|
|
107
|
+
if (isMassive) {
|
|
108
|
+
startX = scale.scaleX()(to);
|
|
109
|
+
width = Math.abs(scale.scaleX()(from)) - Math.abs(startX);
|
|
110
|
+
height = width / 3;
|
|
111
|
+
levelHeight = height / (length + 2);
|
|
118
112
|
}
|
|
119
113
|
else {
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
_xRange.x2 = _treeNodeData._startX;
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
setXRange(_xRange);
|
|
114
|
+
const treeRange = getTreeRange(nodes, signal.delta);
|
|
115
|
+
startX = scale.scaleX()(treeRange.to);
|
|
116
|
+
width = Math.abs(scale.scaleX()(treeRange.from)) - Math.abs(startX);
|
|
117
|
+
height = width / 2;
|
|
118
|
+
if (signal.multiplicity !== 's') {
|
|
119
|
+
levelHeight = height / (2 * length + 2);
|
|
120
|
+
height = width / 2;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
levelHeight = 3;
|
|
124
|
+
height = levelHeight * 4;
|
|
125
|
+
}
|
|
136
126
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
127
|
+
const startY = scale.scaleY(spectrum.id)(getStartY(spectrum, { from, to })) -
|
|
128
|
+
height -
|
|
129
|
+
SHIFT_X;
|
|
130
|
+
treeResult.push({
|
|
131
|
+
isMassive,
|
|
132
|
+
startX,
|
|
133
|
+
startY,
|
|
134
|
+
width,
|
|
135
|
+
height,
|
|
136
|
+
levelHeight,
|
|
137
|
+
nodes,
|
|
138
|
+
signal,
|
|
139
|
+
range: otherRangeProps,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
return treeResult;
|
|
143
|
+
}
|
|
144
|
+
function getStartY(spectrum, options) {
|
|
145
|
+
const { data: { x, re }, } = spectrum;
|
|
146
|
+
const { from, to } = options;
|
|
147
|
+
let max = Number.NEGATIVE_INFINITY;
|
|
148
|
+
for (const i in x) {
|
|
149
|
+
if (x[i] >= from && x[i] <= to && re[i] > max) {
|
|
150
|
+
max = re[i];
|
|
160
151
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
}, children: multiplicityTree }));
|
|
152
|
+
}
|
|
153
|
+
return max;
|
|
154
|
+
}
|
|
155
|
+
function getTreeRange(nodes, delta) {
|
|
156
|
+
const range = { from: delta, to: delta };
|
|
157
|
+
for (const node of nodes) {
|
|
158
|
+
if (node._startX < range.from) {
|
|
159
|
+
range.from = node._startX;
|
|
160
|
+
}
|
|
161
|
+
if (node._startX > range.to) {
|
|
162
|
+
range.to = node._startX;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return range;
|
|
166
|
+
}
|
|
167
|
+
function drawTree(treeData, { scaleX, labelOptions, showLabels }) {
|
|
168
|
+
const { isMassive, signal, levelHeight, range, nodes, startY } = treeData;
|
|
169
|
+
// const { levelHeight } = treeProps;
|
|
170
|
+
// first tree level
|
|
171
|
+
const firstLevelStartY = startY;
|
|
172
|
+
let _startY = firstLevelStartY;
|
|
173
|
+
// second tree level
|
|
174
|
+
const secondLevelStartY = startY + levelHeight;
|
|
175
|
+
_startY = secondLevelStartY;
|
|
176
|
+
// third tree level
|
|
177
|
+
_startY += levelHeight;
|
|
178
|
+
if (isMassive) {
|
|
179
|
+
const _rangeFrom = scaleX()(range.from);
|
|
180
|
+
const _rangeTo = scaleX()(range.to);
|
|
181
|
+
const pathData = `M ${_rangeFrom} ${_startY + levelHeight} ${_rangeFrom} ${_startY} ${scaleX()(signal.delta)} ${_startY} ${_rangeTo} ${_startY} ${_rangeTo} ${_startY + levelHeight}`;
|
|
182
|
+
return ((0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)(StringNode_1.default, { signal: signal, startY: firstLevelStartY, levelHeight: levelHeight, fontSize: labelOptions.fontSize, showLabels: showLabels }), (0, jsx_runtime_1.jsx)(LevelNode_1.default, { signal: signal, startY: secondLevelStartY, levelHeight: levelHeight }), (0, jsx_runtime_1.jsx)("path", { d: pathData, stroke: "blue", fill: "none" })] }));
|
|
183
|
+
}
|
|
184
|
+
return ((0, jsx_runtime_1.jsxs)("g", { children: [(0, jsx_runtime_1.jsx)(StringNode_1.default, { signal: signal, startY: firstLevelStartY, levelHeight: levelHeight, fontSize: labelOptions.fontSize, showLabels: showLabels }), (0, jsx_runtime_1.jsx)(LevelNode_1.default, { signal: signal, startY: secondLevelStartY, levelHeight: levelHeight }), (0, jsx_runtime_1.jsx)(TreeNodes_1.default, { nodesData: nodes, signalID: nodes, showLabels: showLabels, startY: startY, labelOptions: labelOptions, levelHeight: levelHeight })] }));
|
|
197
185
|
}
|
|
198
|
-
exports.default = MultiplicityTree;
|
|
@@ -16,7 +16,7 @@ function createTreeNodes(signal, spectrumData) {
|
|
|
16
16
|
}
|
|
17
17
|
// re-use colors if needed
|
|
18
18
|
const color = TreeColors_1.TREE_LEVEL_COLORS[multiplicityIndex % TreeColors_1.TREE_LEVEL_COLORS.length];
|
|
19
|
-
const jIndex = jIndices.
|
|
19
|
+
const jIndex = jIndices.indexOf(multiplicityIndex);
|
|
20
20
|
const frequency = (0, get_1.default)(spectrumData, 'info.originFrequency', 0);
|
|
21
21
|
const coupling = jIndex >= 0 && frequency > 0 && signal?.js?.[jIndex]
|
|
22
22
|
? signal.js[jIndex].coupling / frequency // convert to ppm
|
|
@@ -40,7 +40,7 @@ function createTreeNodes(signal, spectrumData) {
|
|
|
40
40
|
let _startX = pascal.length % 2 === 0
|
|
41
41
|
? startX - (pascal.length / 2) * coupling + coupling / 2 // in case of even number of nodes
|
|
42
42
|
: startX - (pascal.length / 2 - 0.5) * coupling; // in case of odd number of nodes
|
|
43
|
-
pascal.
|
|
43
|
+
for (const [k, ratio] of pascal.entries()) {
|
|
44
44
|
if (k > 0) {
|
|
45
45
|
_startX += coupling;
|
|
46
46
|
}
|
|
@@ -53,7 +53,7 @@ function createTreeNodes(signal, spectrumData) {
|
|
|
53
53
|
});
|
|
54
54
|
// go to next multiplet in multiplicity string
|
|
55
55
|
buildTreeNodesData(multiplicityIndex + 1, jIndices, treeNodesData, _startX);
|
|
56
|
-
}
|
|
56
|
+
}
|
|
57
57
|
}
|
|
58
58
|
return treeNodesData;
|
|
59
59
|
}
|
|
@@ -11,20 +11,17 @@ const Types_1 = require("../../reducer/types/Types");
|
|
|
11
11
|
const formatNumber_1 = require("../../utility/formatNumber");
|
|
12
12
|
const styles = (0, react_1.css) `
|
|
13
13
|
input {
|
|
14
|
-
|
|
15
|
-
-moz-user-select: text; /* Firefox 2+ */
|
|
16
|
-
-ms-user-select: text; /* IE 10+ */
|
|
17
|
-
user-select: text; /* Standard syntax */
|
|
14
|
+
user-select: text;
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
input[type='number']::-webkit-outer-spin-button,
|
|
21
18
|
input[type='number']::-webkit-inner-spin-button {
|
|
22
|
-
|
|
19
|
+
appearance: none;
|
|
23
20
|
margin: 0;
|
|
24
21
|
}
|
|
25
22
|
|
|
26
23
|
input[type='number'] {
|
|
27
|
-
|
|
24
|
+
appearance: textfield;
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
.notification-input-normal {
|
|
@@ -72,7 +69,7 @@ value, color, nucleus, }) {
|
|
|
72
69
|
const handleKeyDown = (0, react_2.useCallback)((event) => {
|
|
73
70
|
if (event.key === 'Enter') {
|
|
74
71
|
const newValue = event.currentTarget.valueAsNumber;
|
|
75
|
-
if (!isNaN(newValue)) {
|
|
72
|
+
if (!Number.isNaN(newValue)) {
|
|
76
73
|
const shiftValue = newValue - value;
|
|
77
74
|
handleOnPeakChange({
|
|
78
75
|
id,
|