nmrium 0.38.0 → 0.38.2
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.js +27 -4
- package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.js +1 -1
- package/lib/component/1d/FooterBanner.js +5 -5
- package/lib/component/1d/SpectraLegends.js +2 -3
- package/lib/component/1d/Viewer1D.js +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib/component/1d/integral/Integral.d.ts +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/buildTreeNode.d.ts +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +2 -1
- package/lib/component/1d/ranges/Range.d.ts +1 -1
- package/lib/component/1d/tool/PeakPointer.js +6 -6
- package/lib/component/1d/tool/XLabelPointer.js +5 -5
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/index.d.ts +1 -1
- package/lib/component/1d-2d/tools/BrushX.js +2 -3
- package/lib/component/1d-2d/tools/BrushXY.js +2 -3
- package/lib/component/1d-2d/tools/CrossLinePointer.js +4 -5
- package/lib/component/2d/Chart2D.js +4 -4
- package/lib/component/2d/FooterBanner.js +5 -5
- package/lib/component/2d/Viewer2D.js +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +5 -5
- package/lib/component/2d/zones/Signal.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +20 -12
- package/lib/component/EventsTrackers/BrushTracker.js +35 -22
- package/lib/component/EventsTrackers/MouseTracker.d.ts +6 -2
- package/lib/component/EventsTrackers/MouseTracker.js +4 -1
- package/lib/component/NMRium.d.ts +4 -5
- package/lib/component/NMRium.js +11 -14
- package/lib/component/assignment/AssignmentsReducer.d.ts +2 -2
- package/lib/component/context/PreferencesContext.d.ts +6 -6
- package/lib/component/elements/Button.d.ts +13 -11
- package/lib/component/elements/Button.js +16 -25
- package/lib/component/elements/ColorInput.d.ts +0 -1
- package/lib/component/elements/ColorInput.js +2 -2
- package/lib/component/elements/EditableColumn.js +5 -2
- package/lib/component/elements/Input.js +2 -4
- package/lib/component/elements/Label.d.ts +1 -0
- package/lib/component/elements/Label.js +2 -2
- package/lib/component/elements/MolecularFormulaInput.d.ts +2 -2
- package/lib/component/elements/MolecularFormulaInput.js +15 -18
- package/lib/component/elements/NextPrev.d.ts +5 -3
- package/lib/component/elements/NextPrev.js +26 -8
- package/lib/component/elements/NumberInput.js +2 -2
- package/lib/component/elements/ReactTable/ReactTable.js +4 -4
- package/lib/component/elements/formik/FormikCheckBox.d.ts +2 -1
- package/lib/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib/component/elements/formik/FormikColumnFormatField.d.ts +4 -0
- package/lib/component/elements/formik/FormikColumnFormatField.js +19 -16
- package/lib/component/elements/formik/FormikInput.js +10 -6
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/header/ApodizationOptionsPanel.js +4 -3
- package/lib/component/header/AutoPeakPickingOptionPanel.js +16 -7
- package/lib/component/header/BaseLineCorrectionPanel.js +5 -2
- package/lib/component/header/PhaseCorrectionPanel.js +5 -2
- package/lib/component/header/RangesPickingOptionPanel.js +15 -7
- package/lib/component/header/ZeroFillingOptionsPanel.js +1 -1
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrum.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +1 -1
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.d.ts +2 -0
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js +17 -0
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +2 -2
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +3 -2
- package/lib/component/hooks/useExport.js +1 -1
- package/lib/component/hooks/useFilter.d.ts +2 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +3 -3
- package/lib/component/hooks/usePanelPreferences.js +4 -0
- package/lib/component/hooks/useSaveSettings.d.ts +1 -1
- package/lib/component/hooks/useSaveSettings.js +1 -1
- package/lib/component/hooks/useVerticalAlign.d.ts +1 -1
- package/lib/component/loader/DropZone.js +1 -2
- package/lib/component/modal/EditPeakShapeModal.d.ts +2 -2
- package/lib/component/modal/LoadJCAMPModal.d.ts +3 -3
- package/lib/component/modal/LoadJCAMPModal.js +35 -66
- package/lib/component/modal/ModalStyle.js +0 -10
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts +2 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +12 -6
- package/lib/component/modal/MultipletAnalysisModal.d.ts +2 -2
- package/lib/component/modal/PredictSpectraModal.d.ts +4 -2
- package/lib/component/modal/PredictSpectraModal.js +43 -105
- package/lib/component/modal/SaveAsModal.d.ts +2 -0
- package/lib/component/modal/SaveAsModal.js +21 -14
- package/lib/component/modal/changeSum/ChangeSumModal.js +25 -38
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +2 -0
- package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +2 -2
- package/lib/component/modal/metaImportation/MetaImportationModal.js +15 -5
- package/lib/component/modal/setting/GeneralSettings.js +1 -6
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +7 -15
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +2 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts +1 -11
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +20 -25
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +6 -11
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +71 -81
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +3 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +6 -6
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +39 -53
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +7 -22
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraTable.js +5 -1
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +10 -4
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.d.ts +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +11 -28
- package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -2
- package/lib/component/panels/header/DefaultPanelHeader.d.ts +2 -3
- package/lib/component/panels/header/DefaultPanelHeader.js +18 -26
- package/lib/component/panels/header/PanelHeader.d.ts +7 -0
- package/lib/component/panels/header/PanelHeader.js +12 -0
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +9 -0
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +94 -0
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +107 -37
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +3 -0
- package/lib/component/panels/predictionPanel/PredictionPreferences.js +24 -0
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.d.ts +2 -0
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +44 -0
- package/lib/component/reducer/Reducer.d.ts +5 -87
- package/lib/component/reducer/Reducer.js +1 -25
- package/lib/component/reducer/actions/FiltersActions.d.ts +1 -2
- package/lib/component/reducer/actions/FiltersActions.js +47 -52
- package/lib/component/reducer/actions/HistoryActions.d.ts +4 -0
- package/lib/component/reducer/actions/HistoryActions.js +40 -0
- package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -2
- package/lib/component/reducer/actions/LoadActions.js +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +7 -4
- package/lib/component/reducer/actions/MoleculeActions.js +57 -28
- package/lib/component/reducer/actions/PeaksActions.d.ts +1 -2
- package/lib/component/reducer/actions/PeaksActions.js +3 -3
- package/lib/component/reducer/actions/RangesActions.d.ts +4 -5
- package/lib/component/reducer/actions/RangesActions.js +5 -27
- package/lib/component/reducer/actions/SpectrumsActions.js +2 -2
- package/lib/component/reducer/actions/ToolsActions.d.ts +2 -2
- package/lib/component/reducer/actions/ZonesActions.d.ts +2 -1
- package/lib/component/reducer/actions/ZonesActions.js +1 -2
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +1 -1
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts +1 -1
- package/lib/component/reducer/helper/getVerticalAlign.d.ts +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +2 -3
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +1 -1
- package/lib/component/toolbar/BasicToolBar.js +6 -11
- package/lib/component/toolbar/ToolTypes.d.ts +2 -2
- package/lib/component/toolbar/ToolTypes.js +1 -1
- package/lib/component/workspaces/assignment.d.ts +1 -1
- package/lib/component/workspaces/basic.d.ts +1 -1
- package/lib/component/workspaces/embedded.d.ts +1 -1
- package/lib/component/workspaces/exercise.d.ts +1 -1
- package/lib/component/workspaces/index.d.ts +6 -6
- package/lib/component/workspaces/prediction.d.ts +1 -1
- package/lib/component/workspaces/prediction.js +193 -0
- package/lib/component/workspaces/process1D.d.ts +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -1
- package/lib/data/PredictionManager.d.ts +2 -1
- package/lib/data/PredictionManager.js +16 -2
- package/lib/data/SpectraManager.d.ts +1 -2
- package/lib/data/constants/DefaultApodizationOptions.d.ts +2 -0
- package/lib/data/constants/DefaultApodizationOptions.js +5 -0
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +1 -5
- package/lib/data/data1d/Spectrum1D/index.js +1 -5
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +3 -3
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -2
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +3 -2
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +1 -2
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +7 -7
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +5 -24
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -2
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +37 -2
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js +1 -1
- package/lib/data/data1d/database.js +2 -4
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +3 -30
- package/lib/data/data1d/multipleSpectraAnalysis.js +4 -15
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +3 -2
- package/lib/data/data2d/Spectrum2D/getShift.js +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +3 -2
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +2 -1
- package/lib/data/data2d/Spectrum2D/zones/mapZones.d.ts +3 -2
- package/lib/data/getDefaultMatrixFilters.d.ts +1 -1
- package/lib/data/types/data1d/ComplexData1D.d.ts +2 -2
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +1 -1
- package/lib/data/utilities/FindUtilities.d.ts +2 -1
- package/lib/data/utilities/RangeUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/calculateSanPlot.d.ts +2 -2
- package/lib/types/NMRiumDataReturn.d.ts +1 -3
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +28 -5
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +3 -26
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +5 -28
- package/lib-cjs/component/1d/FooterBanner.js +2 -2
- package/lib-cjs/component/1d/SpectraLegends.js +1 -2
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +2 -2
- package/lib-cjs/component/1d/tool/PeakPointer.js +3 -3
- package/lib-cjs/component/1d/tool/XLabelPointer.js +2 -2
- package/lib-cjs/component/1d-2d/tools/BrushX.js +1 -2
- package/lib-cjs/component/1d-2d/tools/BrushXY.js +1 -2
- package/lib-cjs/component/1d-2d/tools/CrossLinePointer.js +2 -3
- package/lib-cjs/component/2d/Chart2D.js +4 -4
- package/lib-cjs/component/2d/FooterBanner.js +2 -2
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +36 -22
- package/lib-cjs/component/EventsTrackers/MouseTracker.js +4 -1
- package/lib-cjs/component/NMRium.js +8 -11
- package/lib-cjs/component/elements/Button.js +16 -25
- package/lib-cjs/component/elements/ColorInput.js +2 -2
- package/lib-cjs/component/elements/EditableColumn.js +5 -2
- package/lib-cjs/component/elements/Input.js +2 -4
- package/lib-cjs/component/elements/Label.js +2 -2
- package/lib-cjs/component/elements/MolecularFormulaInput.js +14 -16
- package/lib-cjs/component/elements/NextPrev.js +26 -8
- package/lib-cjs/component/elements/NumberInput.js +2 -2
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +4 -4
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +2 -2
- package/lib-cjs/component/elements/formik/FormikColumnFormatField.js +20 -16
- package/lib-cjs/component/elements/formik/FormikInput.js +10 -6
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +6 -5
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +15 -6
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +6 -3
- package/lib-cjs/component/header/PhaseCorrectionPanel.js +6 -26
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +15 -7
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +2 -25
- package/lib-cjs/component/hooks/useCheckPointsNumberInWindowArea.js +24 -0
- package/lib-cjs/component/hooks/useExport.js +1 -1
- package/lib-cjs/component/hooks/usePanelPreferences.js +4 -0
- package/lib-cjs/component/hooks/useSaveSettings.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +1 -2
- package/lib-cjs/component/modal/LoadJCAMPModal.js +60 -67
- package/lib-cjs/component/modal/ModalStyle.js +0 -10
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +12 -6
- package/lib-cjs/component/modal/PredictSpectraModal.js +43 -126
- package/lib-cjs/component/modal/SaveAsModal.js +22 -14
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +24 -37
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +2 -0
- package/lib-cjs/component/modal/metaImportation/MetaImportationModal.js +15 -5
- package/lib-cjs/component/modal/setting/GeneralSettings.js +1 -6
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +6 -14
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +2 -2
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +19 -24
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +76 -86
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +3 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.js +6 -6
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/preferences/index.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +38 -52
- package/lib-cjs/component/panels/RangesPanel/RangesPreferences.js +5 -20
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraTable.js +5 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +10 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +11 -28
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +25 -2
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +18 -26
- package/lib-cjs/component/panels/header/PanelHeader.js +15 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionOptionsPanel.js +122 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +107 -37
- package/lib-cjs/component/panels/predictionPanel/PredictionPreferences.js +29 -0
- package/lib-cjs/component/panels/predictionPanel/PredictionSimpleOptions.js +72 -0
- package/lib-cjs/component/reducer/Reducer.js +2 -27
- package/lib-cjs/component/reducer/actions/FiltersActions.js +66 -94
- package/lib-cjs/component/reducer/actions/HistoryActions.js +45 -0
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +58 -32
- package/lib-cjs/component/reducer/actions/PeaksActions.js +3 -3
- package/lib-cjs/component/reducer/actions/RangesActions.js +7 -52
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +4 -27
- package/lib-cjs/component/reducer/actions/ZonesActions.js +4 -28
- package/lib-cjs/component/toolbar/BasicToolBar.js +5 -10
- package/lib-cjs/component/toolbar/ToolTypes.js +9 -32
- package/lib-cjs/component/workspaces/prediction.js +193 -0
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +21 -44
- package/lib-cjs/data/PredictionManager.js +16 -2
- package/lib-cjs/data/constants/DefaultApodizationOptions.js +8 -0
- package/lib-cjs/data/data1d/Spectrum1D/index.js +7 -11
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +9 -32
- package/lib-cjs/data/data1d/Spectrum1D/integrals/initiateIntegrals.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/initiatePeaks.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +1 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +7 -26
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRanges.js +3 -4
- package/lib-cjs/data/data1d/Spectrum1D/ranges/initiateRanges.js +2 -2
- package/lib-cjs/data/data1d/database.js +2 -4
- package/lib-cjs/data/data1d/multipleSpectraAnalysis.js +5 -16
- package/lib-cjs/data/data2d/Spectrum2D/getShift.js +3 -26
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +2 -25
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +25 -25
- package/lib/component/panels/predictionPanel/PredictionOptions.d.ts +0 -7
- package/lib/component/panels/predictionPanel/PredictionOptions.js +0 -74
- package/lib/component/workspaces/Workspace.d.ts +0 -188
- package/lib/component/workspaces/Workspace.js +0 -1
- package/lib/data/Filters.d.ts +0 -12
- package/lib/data/Filters.js +0 -12
- package/lib/data/FiltersManager.d.ts +0 -30
- package/lib/data/FiltersManager.js +0 -175
- package/lib/data/data1d/Spectrum1D/getShiftX.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/getShiftX.js +0 -6
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/getSpectrumErrorValue.js +0 -4
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.d.ts +0 -7
- package/lib/data/data1d/Spectrum1D/integrals/checkIntegralKind.js +0 -9
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.d.ts +0 -12
- package/lib/data/data1d/Spectrum1D/integrals/mapIntegrals.js +0 -36
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegrals.js +0 -6
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +0 -5
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +0 -26
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +0 -3
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +0 -45
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/peaks/updatePeaks.js +0 -7
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +0 -4
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +0 -78
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/ranges/updateRanges.js +0 -9
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.d.ts +0 -2
- package/lib/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +0 -5
- package/lib/data/data1d/filter1d/apodization.d.ts +0 -27
- package/lib/data/data1d/filter1d/apodization.js +0 -81
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +0 -33
- package/lib/data/data1d/filter1d/baselineCorrection.js +0 -51
- package/lib/data/data1d/filter1d/digitalFilter.d.ts +0 -20
- package/lib/data/data1d/filter1d/digitalFilter.js +0 -44
- package/lib/data/data1d/filter1d/equallySpaced.d.ts +0 -33
- package/lib/data/data1d/filter1d/equallySpaced.js +0 -52
- package/lib/data/data1d/filter1d/exclusionZones.d.ts +0 -15
- package/lib/data/data1d/filter1d/exclusionZones.js +0 -32
- package/lib/data/data1d/filter1d/fft.d.ts +0 -18
- package/lib/data/data1d/filter1d/fft.js +0 -90
- package/lib/data/data1d/filter1d/phaseCorrection.d.ts +0 -26
- package/lib/data/data1d/filter1d/phaseCorrection.js +0 -64
- package/lib/data/data1d/filter1d/shiftX.d.ts +0 -20
- package/lib/data/data1d/filter1d/shiftX.js +0 -26
- package/lib/data/data1d/filter1d/signalProcessing.d.ts +0 -26
- package/lib/data/data1d/filter1d/signalProcessing.js +0 -65
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.d.ts +0 -2
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +0 -35
- package/lib/data/data1d/filter1d/zeroFilling.d.ts +0 -22
- package/lib/data/data1d/filter1d/zeroFilling.js +0 -60
- package/lib/data/data2d/filter2d/shiftX.d.ts +0 -18
- package/lib/data/data2d/filter2d/shiftX.js +0 -27
- package/lib/data/data2d/filter2d/shiftY.d.ts +0 -18
- package/lib/data/data2d/filter2d/shiftY.js +0 -27
- package/lib/data/types/view-state/PeaksViewState.d.ts +0 -17
- package/lib/data/types/view-state/PeaksViewState.js +0 -1
- package/lib/types/NMRiumGeneralPreferences.d.ts +0 -7
- package/lib/types/NMRiumGeneralPreferences.js +0 -1
- package/lib/types/NMRiumPanelPreferences.d.ts +0 -17
- package/lib/types/NMRiumPanelPreferences.js +0 -1
- package/lib/types/NMRiumToolBarPreferences.d.ts +0 -22
- package/lib/types/NMRiumToolBarPreferences.js +0 -1
- package/lib/types/PanelPreferencesType.d.ts +0 -4
- package/lib/types/PanelPreferencesType.js +0 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +0 -102
- package/lib-cjs/component/workspaces/Workspace.js +0 -2
- package/lib-cjs/data/Filters.js +0 -38
- package/lib-cjs/data/FiltersManager.js +0 -206
- package/lib-cjs/data/data1d/Spectrum1D/getShiftX.js +0 -33
- package/lib-cjs/data/data1d/Spectrum1D/getSpectrumErrorValue.js +0 -8
- package/lib-cjs/data/data1d/Spectrum1D/integrals/checkIntegralKind.js +0 -13
- package/lib-cjs/data/data1d/Spectrum1D/integrals/mapIntegrals.js +0 -40
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegrals.js +0 -10
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateIntegralsRelativeValues.js +0 -9
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +0 -30
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +0 -49
- package/lib-cjs/data/data1d/Spectrum1D/peaks/updatePeaks.js +0 -11
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +0 -82
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRanges.js +0 -13
- package/lib-cjs/data/data1d/Spectrum1D/ranges/updateRangesRelativeValues.js +0 -9
- package/lib-cjs/data/data1d/filter1d/apodization.js +0 -88
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +0 -60
- package/lib-cjs/data/data1d/filter1d/digitalFilter.js +0 -50
- package/lib-cjs/data/data1d/filter1d/equallySpaced.js +0 -61
- package/lib-cjs/data/data1d/filter1d/exclusionZones.js +0 -38
- package/lib-cjs/data/data1d/filter1d/fft.js +0 -96
- package/lib-cjs/data/data1d/filter1d/phaseCorrection.js +0 -70
- package/lib-cjs/data/data1d/filter1d/shiftX.js +0 -32
- package/lib-cjs/data/data1d/filter1d/signalProcessing.js +0 -95
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +0 -39
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +0 -66
- package/lib-cjs/data/data2d/filter2d/shiftX.js +0 -33
- package/lib-cjs/data/data2d/filter2d/shiftY.js +0 -33
- package/lib-cjs/data/types/view-state/PeaksViewState.js +0 -2
- package/lib-cjs/types/NMRiumGeneralPreferences.js +0 -2
- package/lib-cjs/types/NMRiumPanelPreferences.js +0 -2
- package/lib-cjs/types/NMRiumToolBarPreferences.js +0 -2
- package/lib-cjs/types/PanelPreferencesType.js +0 -2
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.detectRange = void 0;
|
|
4
4
|
const uuid_1 = require("@lukeed/uuid");
|
|
5
5
|
const ml_spectra_processing_1 = require("ml-spectra-processing");
|
|
6
|
-
const
|
|
6
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
7
7
|
function detectRange(spectrum, options) {
|
|
8
8
|
const { from, to } = options;
|
|
9
9
|
const { x, re: y } = spectrum.data;
|
|
10
10
|
const absolute = (0, ml_spectra_processing_1.xyIntegration)({ x, y }, { from, to, reverse: true });
|
|
11
11
|
const min = (0, ml_spectra_processing_1.xyMinYPoint)({ x, y }, { from, to }).y;
|
|
12
12
|
const max = (0, ml_spectra_processing_1.xyMaxYPoint)({ x, y }, { from, to }).y;
|
|
13
|
-
const shiftX = (0,
|
|
13
|
+
const shiftX = (0, nmr_processing_1.getShiftX)(spectrum);
|
|
14
14
|
return {
|
|
15
15
|
id: (0, uuid_1.v4)(),
|
|
16
16
|
originFrom: from - shiftX,
|
|
@@ -4,10 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.detectRanges = void 0;
|
|
7
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
7
8
|
const SumManager_1 = require("../SumManager");
|
|
8
9
|
const autoRangesDetection_1 = __importDefault(require("./autoRangesDetection"));
|
|
9
|
-
const mapRanges_1 = require("./mapRanges");
|
|
10
|
-
const updateRangesRelativeValues_1 = require("./updateRangesRelativeValues");
|
|
11
10
|
function detectRanges(spectrum, options) {
|
|
12
11
|
const { molecules, nucleus, ...detectOptions } = options;
|
|
13
12
|
detectOptions.impurities = { solvent: spectrum.info.solvent || '' };
|
|
@@ -16,7 +15,7 @@ function detectRanges(spectrum, options) {
|
|
|
16
15
|
molecules,
|
|
17
16
|
nucleus,
|
|
18
17
|
});
|
|
19
|
-
spectrum.ranges.values = spectrum.ranges.values.concat((0,
|
|
20
|
-
(0,
|
|
18
|
+
spectrum.ranges.values = spectrum.ranges.values.concat((0, nmr_processing_1.mapRanges)(ranges, spectrum));
|
|
19
|
+
(0, nmr_processing_1.updateRangesRelativeValues)(spectrum);
|
|
21
20
|
}
|
|
22
21
|
exports.detectRanges = detectRanges;
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.initiateRanges = void 0;
|
|
7
7
|
const merge_1 = __importDefault(require("lodash/merge"));
|
|
8
|
-
const
|
|
8
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
9
9
|
function initiateRanges(options, spectrum) {
|
|
10
10
|
return (0, merge_1.default)({
|
|
11
11
|
values: [],
|
|
@@ -15,7 +15,7 @@ function initiateRanges(options, spectrum) {
|
|
|
15
15
|
sumAuto: true,
|
|
16
16
|
},
|
|
17
17
|
}, options.ranges, {
|
|
18
|
-
values: (0,
|
|
18
|
+
values: (0, nmr_processing_1.mapRanges)(options?.ranges?.values || [], spectrum),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
exports.initiateRanges = initiateRanges;
|
|
@@ -60,8 +60,7 @@ function prepareMoleculesDB(array) {
|
|
|
60
60
|
index: entry.ocl.index,
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
catch
|
|
64
|
-
reportError(error);
|
|
63
|
+
catch {
|
|
65
64
|
// eslint-disable-next-line no-console
|
|
66
65
|
console.error(`Could not parse idCode: ${JSON.stringify(entry.ocl)}`);
|
|
67
66
|
}
|
|
@@ -71,8 +70,7 @@ function prepareMoleculesDB(array) {
|
|
|
71
70
|
const molecule = full_1.default.Molecule.fromSmiles(entry.smiles);
|
|
72
71
|
moleculesDB.pushEntry(molecule, entry);
|
|
73
72
|
}
|
|
74
|
-
catch
|
|
75
|
-
reportError(error);
|
|
73
|
+
catch {
|
|
76
74
|
// eslint-disable-next-line no-console
|
|
77
75
|
console.error(`Could not parse smiles: ${entry.smiles}`);
|
|
78
76
|
}
|
|
@@ -3,23 +3,12 @@ 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.getDataAsString = exports.deleteSpectraAnalysis = exports.generateAnalyzeSpectra = exports.analyzeSpectra = exports.changeColumnValueKey = exports.mapColumns = exports.getSpectraAnalysis = exports.getValue = exports.getColumns =
|
|
6
|
+
exports.getDataAsString = exports.deleteSpectraAnalysis = exports.generateAnalyzeSpectra = exports.analyzeSpectra = exports.changeColumnValueKey = exports.mapColumns = exports.getSpectraAnalysis = exports.getValue = exports.getColumns = void 0;
|
|
7
7
|
const get_1 = __importDefault(require("lodash/get"));
|
|
8
|
+
const nmr_load_save_1 = require("nmr-load-save");
|
|
8
9
|
const convertSpectraListToObject_1 = require("../utilities/convertSpectraListToObject");
|
|
9
10
|
const generateChar_1 = __importDefault(require("../utilities/generateChar"));
|
|
10
11
|
const index_1 = require("./Spectrum1D/index");
|
|
11
|
-
var COLUMNS_TYPES;
|
|
12
|
-
(function (COLUMNS_TYPES) {
|
|
13
|
-
COLUMNS_TYPES["NORMAL"] = "NORMAL";
|
|
14
|
-
COLUMNS_TYPES["FORMULA"] = "FORMULA";
|
|
15
|
-
})(COLUMNS_TYPES || (exports.COLUMNS_TYPES = COLUMNS_TYPES = {}));
|
|
16
|
-
var COLUMNS_VALUES_KEYS;
|
|
17
|
-
(function (COLUMNS_VALUES_KEYS) {
|
|
18
|
-
COLUMNS_VALUES_KEYS["RELATIVE"] = "relative";
|
|
19
|
-
COLUMNS_VALUES_KEYS["ABSOLUTE"] = "absolute";
|
|
20
|
-
COLUMNS_VALUES_KEYS["MIN"] = "min";
|
|
21
|
-
COLUMNS_VALUES_KEYS["MAX"] = "max";
|
|
22
|
-
})(COLUMNS_VALUES_KEYS || (exports.COLUMNS_VALUES_KEYS = COLUMNS_VALUES_KEYS = {}));
|
|
23
12
|
function addColumnKey(spectraAnalysis, nucleus, columnProps, columnKey) {
|
|
24
13
|
const spectraAnalysisOptions = spectraAnalysis[nucleus].analysisOptions;
|
|
25
14
|
const key = columnKey || (0, generateChar_1.default)(spectraAnalysisOptions.columnIndex).toUpperCase();
|
|
@@ -89,8 +78,8 @@ function analyzeSpectra(spectraAnalysis, options) {
|
|
|
89
78
|
const { from, to, nucleus, columnKey = null } = options;
|
|
90
79
|
init(spectraAnalysis, nucleus);
|
|
91
80
|
addColumnKey(spectraAnalysis, nucleus, {
|
|
92
|
-
type:
|
|
93
|
-
valueKey:
|
|
81
|
+
type: nmr_load_save_1.AnalysisColumnsTypes.NORMAL,
|
|
82
|
+
valueKey: nmr_load_save_1.AnalisisColumnsValuesKeys.ABSOLUTE,
|
|
94
83
|
from,
|
|
95
84
|
to,
|
|
96
85
|
index: 1,
|
|
@@ -121,7 +110,7 @@ function generateAnalyzeSpectra(multipleSpectraAnalysis, spectra, nucleus) {
|
|
|
121
110
|
}
|
|
122
111
|
const newData = Object.fromEntries(Object.entries(data).map((spectra) => {
|
|
123
112
|
const result = Object.fromEntries(Object.keys(columns).map((key) => {
|
|
124
|
-
const isFormula = columns[key].type ===
|
|
113
|
+
const isFormula = columns[key].type === nmr_load_save_1.AnalysisColumnsTypes.FORMULA;
|
|
125
114
|
return [
|
|
126
115
|
key,
|
|
127
116
|
isFormula
|
|
@@ -1,38 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.getShift = void 0;
|
|
27
|
-
const
|
|
4
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
28
5
|
function getShift(spectrum) {
|
|
29
6
|
let shift = { x: 0, y: 0 };
|
|
30
7
|
if (spectrum?.filters) {
|
|
31
8
|
for (const filter of spectrum.filters) {
|
|
32
|
-
if (filter.name === Filters.shift2DX.id) {
|
|
9
|
+
if (filter.name === nmr_processing_1.Filters.shift2DX.id) {
|
|
33
10
|
shift.x = filter?.flag ? filter.value.shift : 0;
|
|
34
11
|
}
|
|
35
|
-
if (filter.name === Filters.shift2DY.id) {
|
|
12
|
+
if (filter.name === nmr_processing_1.Filters.shift2DY.id) {
|
|
36
13
|
shift.y = filter?.flag ? filter.value.shift : 0;
|
|
37
14
|
}
|
|
38
15
|
}
|
|
@@ -1,31 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.initiateDatum2D = void 0;
|
|
27
4
|
const uuid_1 = require("@lukeed/uuid");
|
|
28
|
-
const
|
|
5
|
+
const nmr_processing_1 = require("nmr-processing");
|
|
29
6
|
const contours_1 = require("./contours");
|
|
30
7
|
const get2DColor_1 = require("./get2DColor");
|
|
31
8
|
const initiateZones_1 = require("./zones/initiateZones");
|
|
@@ -58,7 +35,7 @@ function initiateDatum2D(spectrum, usedColors = {}) {
|
|
|
58
35
|
datum.filters = Object.assign([], spectrum.filters);
|
|
59
36
|
datum.zones = (0, initiateZones_1.initiateZones)(spectrum, datum);
|
|
60
37
|
//reapply filters after load the original data
|
|
61
|
-
FiltersManager.reapplyFilters(datum);
|
|
38
|
+
nmr_processing_1.FiltersManager.reapplyFilters(datum);
|
|
62
39
|
return datum;
|
|
63
40
|
}
|
|
64
41
|
exports.initiateDatum2D = initiateDatum2D;
|
package/lib-cjs/versionInfo.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nmrium",
|
|
3
3
|
"description": "React component to display and process nuclear magnetic resonance (NMR) spectra.",
|
|
4
|
-
"version": "0.38.
|
|
4
|
+
"version": "0.38.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib-cjs/component/NMRium.js",
|
|
7
7
|
"module": "lib/component/NMRium.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"url": "git+https://github.com/cheminfo/nmrium.git"
|
|
48
48
|
},
|
|
49
49
|
"volta": {
|
|
50
|
-
"node": "18.16.
|
|
50
|
+
"node": "18.16.1"
|
|
51
51
|
},
|
|
52
52
|
"overrides": {
|
|
53
53
|
"react": "$react",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"@emotion/react": "^11.11.1",
|
|
62
62
|
"@lukeed/uuid": "^2.0.1",
|
|
63
63
|
"cheminfo-font": "^1.10.0",
|
|
64
|
-
"cheminfo-types": "^1.7.
|
|
64
|
+
"cheminfo-types": "^1.7.2",
|
|
65
65
|
"clipboard-polyfill": "^4.0.0",
|
|
66
|
-
"convert-to-jcamp": "^5.4.
|
|
66
|
+
"convert-to-jcamp": "^5.4.7",
|
|
67
67
|
"d3": "^7.8.5",
|
|
68
68
|
"eventemitter3": "^5.0.1",
|
|
69
69
|
"fifo-logger": "^0.6.1",
|
|
70
70
|
"file-saver": "^2.0.5",
|
|
71
|
-
"filelist-utils": "^1.
|
|
72
|
-
"formik": "^2.4.
|
|
71
|
+
"filelist-utils": "^1.10.0",
|
|
72
|
+
"formik": "^2.4.2",
|
|
73
73
|
"immer": "^10.0.2",
|
|
74
74
|
"jszip": "^3.10.1",
|
|
75
75
|
"lodash": "^4.17.21",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"ml-stat": "^1.3.3",
|
|
86
86
|
"multiplet-analysis": "^2.1.1",
|
|
87
87
|
"nmr-correlation": "^2.3.3",
|
|
88
|
-
"nmr-load-save": "^0.
|
|
89
|
-
"nmr-processing": "^9.
|
|
88
|
+
"nmr-load-save": "^0.13.2",
|
|
89
|
+
"nmr-processing": "^9.7.1",
|
|
90
90
|
"nmredata": "^0.9.2",
|
|
91
91
|
"numeral": "^2.0.6",
|
|
92
92
|
"openchemlib": "^8.3.0",
|
|
@@ -95,15 +95,15 @@
|
|
|
95
95
|
"re-resizable": "^6.9.9",
|
|
96
96
|
"react-d3-utils": "^1.0.0",
|
|
97
97
|
"react-dropzone": "^14.2.3",
|
|
98
|
-
"react-error-boundary": "^4.0.
|
|
99
|
-
"react-icons": "^4.
|
|
98
|
+
"react-error-boundary": "^4.0.10",
|
|
99
|
+
"react-icons": "^4.10.1",
|
|
100
100
|
"react-inspector": "^6.0.2",
|
|
101
101
|
"react-mf": "^2.0.2",
|
|
102
|
-
"react-ocl": "^5.0.
|
|
102
|
+
"react-ocl": "^5.0.1",
|
|
103
103
|
"react-ocl-nmr": "^2.0.0",
|
|
104
104
|
"react-plot": "^1.4.2",
|
|
105
105
|
"react-rnd": "^10.4.1",
|
|
106
|
-
"react-science": "^0.
|
|
106
|
+
"react-science": "^0.24.2",
|
|
107
107
|
"react-slider": "^2.0.5",
|
|
108
108
|
"react-table": "^7.8.0",
|
|
109
109
|
"react-transition-group": "^4.4.5",
|
|
@@ -112,23 +112,23 @@
|
|
|
112
112
|
"yup": "^1.2.0"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
116
|
-
"@babel/preset-react": "^7.22.
|
|
117
|
-
"@babel/preset-typescript": "^7.
|
|
118
|
-
"@playwright/test": "^1.
|
|
115
|
+
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
|
|
116
|
+
"@babel/preset-react": "^7.22.5",
|
|
117
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
118
|
+
"@playwright/test": "^1.35.1",
|
|
119
119
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
120
120
|
"@types/d3": "^7.4.0",
|
|
121
|
-
"@types/node": "^20.
|
|
121
|
+
"@types/node": "^20.3.1",
|
|
122
122
|
"@types/papaparse": "^5.3.7",
|
|
123
|
-
"@types/react": "^18.2.
|
|
124
|
-
"@types/react-dom": "^18.2.
|
|
123
|
+
"@types/react": "^18.2.13",
|
|
124
|
+
"@types/react-dom": "^18.2.6",
|
|
125
125
|
"@types/react-table": "^7.7.14",
|
|
126
126
|
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
127
|
-
"@vitest/coverage-v8": "^0.32.
|
|
127
|
+
"@vitest/coverage-v8": "^0.32.2",
|
|
128
128
|
"cross-env": "^7.0.3",
|
|
129
129
|
"cspell": "^6.31.1",
|
|
130
|
-
"eslint": "^8.
|
|
131
|
-
"eslint-config-cheminfo-react": "^9.1.
|
|
130
|
+
"eslint": "^8.43.0",
|
|
131
|
+
"eslint-config-cheminfo-react": "^9.1.1",
|
|
132
132
|
"eslint-config-cheminfo-typescript": "^11.3.1",
|
|
133
133
|
"modern-normalize": "^2.0.0",
|
|
134
134
|
"postcss-styled-syntax": "^0.4.0",
|
|
@@ -136,14 +136,14 @@
|
|
|
136
136
|
"rc-menu": "^9.9.2",
|
|
137
137
|
"react": "^18.2.0",
|
|
138
138
|
"react-dom": "^18.2.0",
|
|
139
|
-
"react-router-dom": "^6.
|
|
139
|
+
"react-router-dom": "^6.13.0",
|
|
140
140
|
"rimraf": "^5.0.1",
|
|
141
141
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
142
142
|
"serve": "^14.2.0",
|
|
143
|
-
"stylelint": "^15.
|
|
143
|
+
"stylelint": "^15.8.0",
|
|
144
144
|
"stylelint-config-standard": "^33.0.0",
|
|
145
145
|
"typescript": "~5.1.3",
|
|
146
146
|
"vite": "^4.3.9",
|
|
147
|
-
"vitest": "^0.32.
|
|
147
|
+
"vitest": "^0.32.2"
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PredictionOptions as PredictionOptionsInterface } from '../../../data/PredictionManager';
|
|
2
|
-
interface PredictionOptionsProps {
|
|
3
|
-
onPredict?: (options?: PredictionOptionsInterface) => void;
|
|
4
|
-
disabled: boolean;
|
|
5
|
-
}
|
|
6
|
-
declare function PredictionOptions({ onPredict, disabled, }: PredictionOptionsProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PredictionOptions;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
2
|
-
/** @jsxImportSource @emotion/react */
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { Formik } from 'formik';
|
|
5
|
-
import { useCallback, useRef } from 'react';
|
|
6
|
-
import * as Yup from 'yup';
|
|
7
|
-
import { defaultPredictionOptions, FREQUENCIES, } from '../../../data/PredictionManager';
|
|
8
|
-
import Button from '../../elements/Button';
|
|
9
|
-
import IsotopesViewer from '../../elements/IsotopesViewer';
|
|
10
|
-
import Label from '../../elements/Label';
|
|
11
|
-
import FormikErrorsSummary from '../../elements/formik/FormikErrorsSummary';
|
|
12
|
-
import FormikInput from '../../elements/formik/FormikInput';
|
|
13
|
-
import FormikSelect from '../../elements/formik/FormikSelect';
|
|
14
|
-
const styles = css `
|
|
15
|
-
padding: 10px;
|
|
16
|
-
border-top: solid #f2f2f2 1px;
|
|
17
|
-
|
|
18
|
-
.row {
|
|
19
|
-
flex: row;
|
|
20
|
-
display: flex;
|
|
21
|
-
padding-bottom: 10px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.inner-content {
|
|
25
|
-
flex: 1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.custom-label {
|
|
29
|
-
width: 160px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.footer-container {
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: row-reverse;
|
|
35
|
-
align-items: flex-end;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.input {
|
|
39
|
-
font-size: 14px;
|
|
40
|
-
border-radius: 5px;
|
|
41
|
-
border: 1px solid #ccc;
|
|
42
|
-
padding: 5px;
|
|
43
|
-
width: 100px;
|
|
44
|
-
margin-right: 10px;
|
|
45
|
-
height: initial !important;
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
const predictionFormValidation = Yup.object().shape({
|
|
49
|
-
frequency: Yup.number().integer().required().label('Frequency'),
|
|
50
|
-
'1d': Yup.object({
|
|
51
|
-
'1H': Yup.object({
|
|
52
|
-
from: Yup.number().integer().required().label("1H ' From ' "),
|
|
53
|
-
to: Yup.number().integer().required().label("1H ' To ' "),
|
|
54
|
-
}),
|
|
55
|
-
'13C': Yup.object().shape({
|
|
56
|
-
from: Yup.number().integer().required().label("13C ' From ' "),
|
|
57
|
-
to: Yup.number().integer().required().label("13C ' To ' "),
|
|
58
|
-
}),
|
|
59
|
-
lineWidth: Yup.number().integer().min(1).required().label('Line Width'),
|
|
60
|
-
}),
|
|
61
|
-
});
|
|
62
|
-
function PredictionOptions({ onPredict = () => null, disabled = false, }) {
|
|
63
|
-
const refForm = useRef();
|
|
64
|
-
const handleSave = useCallback(() => {
|
|
65
|
-
refForm.current.submitForm();
|
|
66
|
-
}, []);
|
|
67
|
-
const submitHandler = useCallback((values) => {
|
|
68
|
-
void (async () => {
|
|
69
|
-
onPredict(values);
|
|
70
|
-
})();
|
|
71
|
-
}, [onPredict]);
|
|
72
|
-
return (_jsxs("div", { css: styles, children: [_jsx("div", { children: _jsx(Formik, { innerRef: refForm, initialValues: defaultPredictionOptions, validationSchema: predictionFormValidation, onSubmit: submitHandler, children: _jsxs(_Fragment, { children: [_jsx(FormikErrorsSummary, {}), _jsxs("div", { className: "row margin-10", children: [_jsx("span", { className: "custom-label", children: "Frequency : " }), _jsx(FormikSelect, { items: FREQUENCIES, style: { width: 290, height: 30, margin: 0 }, name: "frequency" })] }), _jsxs("div", { className: "row", children: [_jsx(IsotopesViewer, { value: "1H", className: "custom-label" }), _jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "1d.1H.from", type: "number" }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "1d.1H.to", type: "number" }) })] }), _jsxs("div", { className: "row", children: [_jsx(IsotopesViewer, { value: "13C", className: "custom-label" }), _jsx(Label, { title: "From", children: _jsx(FormikInput, { name: "1d.13C.from", type: "number" }) }), _jsx(Label, { title: "To", style: { label: { padding: '0 10px' } }, children: _jsx(FormikInput, { name: "1d.13C.to", type: "number" }) })] }), _jsxs("div", { className: "row margin-10 padding-h-10", children: [_jsx("span", { className: "custom-label", children: "Line Width : " }), _jsx(FormikInput, { name: "1d.lineWidth", type: "number", style: { input: { margin: 0 } } }), _jsx("span", { style: { paddingLeft: '0.4rem' }, children: " Hz " })] })] }) }) }), _jsx("div", { children: _jsx(Button.Done, { onClick: handleSave, disabled: disabled, children: "Predict spectra" }) })] }));
|
|
73
|
-
}
|
|
74
|
-
export default PredictionOptions;
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { FifoLoggerOptions } from 'fifo-logger';
|
|
2
|
-
import { BrukerLoaderSelector, GeneralLoadersSelector } from 'nmr-load-save';
|
|
3
|
-
import { SplitPaneSize } from 'react-science/ui';
|
|
4
|
-
import { BaseFilter } from '../../data/FiltersManager';
|
|
5
|
-
import { AnalysisOptions } from '../../data/data1d/multipleSpectraAnalysis';
|
|
6
|
-
import { Nuclei, Nucleus } from '../../data/types/common/Nucleus';
|
|
7
|
-
import { MatrixOptions } from '../../data/types/data1d/MatrixOptions';
|
|
8
|
-
import { NMRiumGeneralPreferences } from '../../types/NMRiumGeneralPreferences';
|
|
9
|
-
import { NMRiumPanelPreferences } from '../../types/NMRiumPanelPreferences';
|
|
10
|
-
import { NMRiumToolBarPreferences } from '../../types/NMRiumToolBarPreferences';
|
|
11
|
-
interface NucleusFormat {
|
|
12
|
-
name: string;
|
|
13
|
-
ppm: string;
|
|
14
|
-
hz: string;
|
|
15
|
-
}
|
|
16
|
-
export type spectraRendering = 'auto' | 'optimizeSpeed' | 'crispEdges' | 'geometricPrecision';
|
|
17
|
-
export interface GeneralPreferences {
|
|
18
|
-
dimmedSpectraOpacity: number;
|
|
19
|
-
verticalSplitterPosition: SplitPaneSize;
|
|
20
|
-
verticalSplitterCloseThreshold: number;
|
|
21
|
-
spectraRendering: spectraRendering;
|
|
22
|
-
loggingLevel: FifoLoggerOptions['level'];
|
|
23
|
-
}
|
|
24
|
-
interface ColumnPreferences {
|
|
25
|
-
show: boolean;
|
|
26
|
-
format: string;
|
|
27
|
-
}
|
|
28
|
-
interface IntegralsNucleusPreferences {
|
|
29
|
-
absolute: ColumnPreferences;
|
|
30
|
-
relative: ColumnPreferences;
|
|
31
|
-
color: string;
|
|
32
|
-
strokeWidth: number;
|
|
33
|
-
showKind: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface ZonesNucleusPreferences {
|
|
36
|
-
deltaPPM: ColumnPreferences;
|
|
37
|
-
}
|
|
38
|
-
interface ZonesGeneralPanelPreferences {
|
|
39
|
-
absolute: ColumnPreferences;
|
|
40
|
-
relative: ColumnPreferences;
|
|
41
|
-
}
|
|
42
|
-
interface NucleusPreferences<T> {
|
|
43
|
-
nuclei: Partial<Record<Nucleus, T>>;
|
|
44
|
-
}
|
|
45
|
-
interface BasicColumnPreferences {
|
|
46
|
-
visible: boolean;
|
|
47
|
-
label: string;
|
|
48
|
-
}
|
|
49
|
-
export type PredefinedSpectraColumn = 'visible' | 'name' | 'color' | 'solvent';
|
|
50
|
-
export interface PredefinedTableColumn<T> extends BasicColumnPreferences {
|
|
51
|
-
name: T;
|
|
52
|
-
description: string;
|
|
53
|
-
jpath?: string[];
|
|
54
|
-
}
|
|
55
|
-
export interface JpathTableColumn extends BasicColumnPreferences {
|
|
56
|
-
jpath: string[];
|
|
57
|
-
}
|
|
58
|
-
export type SpectraTableColumn = PredefinedTableColumn<PredefinedSpectraColumn> | JpathTableColumn;
|
|
59
|
-
export interface SpectraNucleusPreferences {
|
|
60
|
-
columns: Array<SpectraTableColumn>;
|
|
61
|
-
}
|
|
62
|
-
interface RangesNucleusPreferences {
|
|
63
|
-
from: ColumnPreferences;
|
|
64
|
-
to: ColumnPreferences;
|
|
65
|
-
absolute: ColumnPreferences;
|
|
66
|
-
relative: ColumnPreferences;
|
|
67
|
-
deltaPPM: ColumnPreferences;
|
|
68
|
-
deltaHz: ColumnPreferences;
|
|
69
|
-
coupling: ColumnPreferences;
|
|
70
|
-
jGraphTolerance: number;
|
|
71
|
-
showKind: boolean;
|
|
72
|
-
}
|
|
73
|
-
export interface PeaksNucleusPreferences {
|
|
74
|
-
peakNumber: ColumnPreferences;
|
|
75
|
-
deltaPPM: ColumnPreferences;
|
|
76
|
-
deltaHz: ColumnPreferences;
|
|
77
|
-
peakWidth: ColumnPreferences;
|
|
78
|
-
intensity: ColumnPreferences;
|
|
79
|
-
showKind: boolean;
|
|
80
|
-
fwhm: ColumnPreferences;
|
|
81
|
-
mu: ColumnPreferences;
|
|
82
|
-
}
|
|
83
|
-
export interface DatabasePanelPreferences {
|
|
84
|
-
previewJcamp: boolean;
|
|
85
|
-
showSmiles: boolean;
|
|
86
|
-
showSolvent: boolean;
|
|
87
|
-
showNames: boolean;
|
|
88
|
-
range: ColumnPreferences;
|
|
89
|
-
delta: ColumnPreferences;
|
|
90
|
-
showAssignment: boolean;
|
|
91
|
-
coupling: ColumnPreferences;
|
|
92
|
-
showMultiplicity: boolean;
|
|
93
|
-
color: string;
|
|
94
|
-
marginBottom: number;
|
|
95
|
-
allowSaveAsNMRium: boolean;
|
|
96
|
-
}
|
|
97
|
-
type PredefinedLegend = 'intensity' | 'name';
|
|
98
|
-
export type JpathLegendField = Omit<JpathTableColumn, 'label'>;
|
|
99
|
-
export type PredefinedLegendField = Omit<PredefinedTableColumn<PredefinedLegend>, 'description'>;
|
|
100
|
-
export type legendField = JpathLegendField | PredefinedLegendField;
|
|
101
|
-
export interface AnalysisPreferences extends AnalysisOptions {
|
|
102
|
-
resortSpectra: boolean;
|
|
103
|
-
}
|
|
104
|
-
export interface MultipleSpectraAnalysisPreferences {
|
|
105
|
-
analysisOptions: AnalysisPreferences;
|
|
106
|
-
legendsFields: legendField[];
|
|
107
|
-
}
|
|
108
|
-
export type MultipleSpectraAnalysis = Record<Nuclei, MultipleSpectraAnalysisPreferences> | {};
|
|
109
|
-
export type MatrixGeneration = Record<Nuclei, MatrixOptions> | {};
|
|
110
|
-
export interface WorkSpacePanelPreferences {
|
|
111
|
-
spectra: SpectraNucleusPreferences;
|
|
112
|
-
peaks: PeaksNucleusPreferences;
|
|
113
|
-
integrals: IntegralsNucleusPreferences;
|
|
114
|
-
ranges: RangesNucleusPreferences;
|
|
115
|
-
zones: ZonesNucleusPreferences & ZonesGeneralPanelPreferences;
|
|
116
|
-
database: DatabasePanelPreferences;
|
|
117
|
-
multipleSpectraAnalysis: MultipleSpectraAnalysis;
|
|
118
|
-
matrixGeneration: MatrixGeneration;
|
|
119
|
-
}
|
|
120
|
-
export interface PanelsPreferences {
|
|
121
|
-
spectra: NucleusPreferences<SpectraNucleusPreferences>;
|
|
122
|
-
peaks: NucleusPreferences<PeaksNucleusPreferences>;
|
|
123
|
-
integrals: NucleusPreferences<IntegralsNucleusPreferences>;
|
|
124
|
-
ranges: NucleusPreferences<RangesNucleusPreferences>;
|
|
125
|
-
zones: NucleusPreferences<ZonesNucleusPreferences> & ZonesGeneralPanelPreferences;
|
|
126
|
-
database: DatabasePanelPreferences;
|
|
127
|
-
multipleSpectraAnalysis: MultipleSpectraAnalysis;
|
|
128
|
-
matrixGeneration: MatrixGeneration;
|
|
129
|
-
}
|
|
130
|
-
export interface Formatting {
|
|
131
|
-
nuclei: Record<string, NucleusFormat>;
|
|
132
|
-
panels: Partial<PanelsPreferences>;
|
|
133
|
-
}
|
|
134
|
-
export interface Database {
|
|
135
|
-
key: string;
|
|
136
|
-
label: string;
|
|
137
|
-
url: string;
|
|
138
|
-
enabled: boolean;
|
|
139
|
-
}
|
|
140
|
-
export interface WorkspaceMeta {
|
|
141
|
-
version: number;
|
|
142
|
-
label: string;
|
|
143
|
-
/**
|
|
144
|
-
* boolean indicator to hide/show Workspace
|
|
145
|
-
* @default false
|
|
146
|
-
*/
|
|
147
|
-
visible?: boolean;
|
|
148
|
-
}
|
|
149
|
-
export interface Databases {
|
|
150
|
-
data: Database[];
|
|
151
|
-
defaultDatabase: string;
|
|
152
|
-
}
|
|
153
|
-
export interface LoadersPreferences {
|
|
154
|
-
general: GeneralLoadersSelector;
|
|
155
|
-
bruker: BrukerLoaderSelector;
|
|
156
|
-
}
|
|
157
|
-
export interface InfoBlock {
|
|
158
|
-
visible: boolean;
|
|
159
|
-
fields: JpathTableColumn[];
|
|
160
|
-
}
|
|
161
|
-
export type OnLoadProcessing = Partial<Record<Nucleus, BaseFilter[]>>;
|
|
162
|
-
export interface DisplayPreferences {
|
|
163
|
-
general?: Partial<NMRiumGeneralPreferences>;
|
|
164
|
-
panels?: Partial<NMRiumPanelPreferences>;
|
|
165
|
-
toolBarButtons?: Partial<NMRiumToolBarPreferences>;
|
|
166
|
-
}
|
|
167
|
-
export interface WorkspacePreferences {
|
|
168
|
-
display?: DisplayPreferences;
|
|
169
|
-
general?: GeneralPreferences;
|
|
170
|
-
formatting?: Formatting;
|
|
171
|
-
databases?: Databases;
|
|
172
|
-
nmrLoaders?: LoadersPreferences;
|
|
173
|
-
infoBlock?: InfoBlock;
|
|
174
|
-
onLoadProcessing?: OnLoadProcessing;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* custom : workspace which come form the component level <NMRium customWorkspaces = {} />
|
|
178
|
-
* predefined : workspace which hardcoded in NMRium
|
|
179
|
-
* user: workspaces which the user create from the general settings
|
|
180
|
-
* component: workspaces which specified at the level of the component `preferences` property
|
|
181
|
-
* nmriumFile: workspaces which is come from the the numrium file
|
|
182
|
-
*
|
|
183
|
-
* */
|
|
184
|
-
export type WorkSpaceSource = 'custom' | 'predefined' | 'user' | 'component' | 'nmriumFile';
|
|
185
|
-
export type InnerWorkspace = WorkspaceMeta & WorkspacePreferences;
|
|
186
|
-
export type CustomWorkspaces = Record<string, InnerWorkspace>;
|
|
187
|
-
export type Workspace = WorkspaceMeta & Required<WorkspacePreferences>;
|
|
188
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/data/Filters.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * as apodization from './data1d/filter1d/apodization';
|
|
2
|
-
export * as baselineCorrection from './data1d/filter1d/baselineCorrection';
|
|
3
|
-
export * as digitalFilter from './data1d/filter1d/digitalFilter';
|
|
4
|
-
export * as equallySpaced from './data1d/filter1d/equallySpaced';
|
|
5
|
-
export * as exclusionZones from './data1d/filter1d/exclusionZones';
|
|
6
|
-
export * as fft from './data1d/filter1d/fft';
|
|
7
|
-
export * as phaseCorrection from './data1d/filter1d/phaseCorrection';
|
|
8
|
-
export * as shiftX from './data1d/filter1d/shiftX';
|
|
9
|
-
export * as signalProcessing from './data1d/filter1d/signalProcessing';
|
|
10
|
-
export * as zeroFilling from './data1d/filter1d/zeroFilling';
|
|
11
|
-
export * as shift2DX from './data2d/filter2d/shiftX';
|
|
12
|
-
export * as shift2DY from './data2d/filter2d/shiftY';
|
package/lib/data/Filters.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * as apodization from './data1d/filter1d/apodization';
|
|
2
|
-
export * as baselineCorrection from './data1d/filter1d/baselineCorrection';
|
|
3
|
-
export * as digitalFilter from './data1d/filter1d/digitalFilter';
|
|
4
|
-
export * as equallySpaced from './data1d/filter1d/equallySpaced';
|
|
5
|
-
export * as exclusionZones from './data1d/filter1d/exclusionZones';
|
|
6
|
-
export * as fft from './data1d/filter1d/fft';
|
|
7
|
-
export * as phaseCorrection from './data1d/filter1d/phaseCorrection';
|
|
8
|
-
export * as shiftX from './data1d/filter1d/shiftX';
|
|
9
|
-
export * as signalProcessing from './data1d/filter1d/signalProcessing';
|
|
10
|
-
export * as zeroFilling from './data1d/filter1d/zeroFilling';
|
|
11
|
-
export * as shift2DX from './data2d/filter2d/shiftX';
|
|
12
|
-
export * as shift2DY from './data2d/filter2d/shiftY';
|