nmrium 0.27.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/lib/component/1d/ApodizationLine.d.ts +3 -0
- package/lib/component/1d/ApodizationLine.js +47 -0
- package/lib/component/1d/Chart1D.js +4 -2
- package/lib/component/1d/ExclusionZoneAnnotation.d.ts +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +14 -7
- package/lib/component/1d/ExclusionZonesAnnotations.js +1 -1
- package/lib/component/1d/IntegralResizable.js +5 -4
- package/lib/component/1d/IntegralsSeries.js +2 -6
- package/lib/component/1d/LinesSeries.js +6 -6
- package/lib/component/1d/SpectraTracker.js +2 -2
- package/lib/component/1d/Viewer1D.js +8 -13
- package/lib/component/1d/database/DatabaseElements.js +2 -2
- package/lib/component/1d/database/DatabaseSpectrum.js +33 -28
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +11 -9
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +16 -14
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +3 -4
- package/lib/component/1d/{PeakAnnotation.d.ts → peaks/PeakAnnotation.d.ts} +1 -2
- package/lib/component/1d/{PeakAnnotation.js → peaks/PeakAnnotation.js} +10 -11
- package/lib/component/1d/{PeakAnnotations.d.ts → peaks/PeakAnnotations.d.ts} +0 -0
- package/lib/component/1d/peaks/PeakAnnotations.js +26 -0
- package/lib/component/1d/peaks/PeaksShapes.d.ts +3 -0
- package/lib/component/1d/peaks/PeaksShapes.js +35 -0
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +13 -0
- package/lib/component/1d/peaks/usePeakShapesPath.js +45 -0
- package/lib/component/1d/ranges/Range.d.ts +1 -2
- package/lib/component/1d/ranges/Range.js +7 -8
- package/lib/component/1d/ranges/Ranges.js +3 -4
- package/lib/component/1d/tool/BaseLineZones.js +3 -6
- package/lib/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib/component/2d/Contours.js +9 -13
- package/lib/component/2d/FooterBanner.js +2 -2
- package/lib/component/2d/SignalDeltaLine.js +1 -1
- package/lib/component/2d/Viewer2D.js +3 -3
- package/lib/component/2d/YAxis.js +2 -2
- package/lib/component/2d/zones/IndicationLines.js +2 -3
- package/lib/component/2d/zones/Signal.d.ts +3 -2
- package/lib/component/2d/zones/Signal.js +3 -3
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.js +4 -4
- package/lib/component/EventsTrackers/KeysListenerTracker.js +132 -75
- package/lib/component/NMRium.d.ts +14 -49
- package/lib/component/NMRium.js +14 -6
- package/lib/component/SplitPaneWrapper.js +2 -2
- package/lib/component/assignment/AssignmentsContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.js +3 -3
- package/lib/component/context/PreferencesContext.d.ts +3 -45
- package/lib/component/elements/ActiveButton.d.ts +17 -0
- package/lib/component/elements/ActiveButton.js +28 -0
- package/lib/component/elements/Button.d.ts +6 -6
- package/lib/component/elements/Button.js +6 -6
- package/lib/component/elements/ButtonToolTip.js +1 -1
- package/lib/component/elements/CheckBox.d.ts +2 -6
- package/lib/component/elements/CheckBox.js +4 -6
- package/lib/component/elements/CheckBoxCell.d.ts +3 -0
- package/lib/component/elements/CheckBoxCell.js +8 -0
- package/lib/component/elements/Input.d.ts +5 -4
- package/lib/component/elements/Input.js +1 -1
- package/lib/component/elements/Label.d.ts +8 -6
- package/lib/component/elements/Label.js +3 -3
- package/lib/component/elements/Logo.js +1 -1
- package/lib/component/elements/MoleculeSelection.d.ts +2 -2
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/NextPrev.js +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +2 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +3 -2
- package/lib/component/elements/ReactTable/ReactTable.d.ts +2 -2
- package/lib/component/elements/Select.d.ts +7 -11
- package/lib/component/elements/Select.js +6 -8
- package/lib/component/elements/Tab/Tab.js +1 -1
- package/lib/component/elements/Tab/Tabs.js +2 -1
- package/lib/component/elements/Table/Table.d.ts +1 -2
- package/lib/component/elements/Table/Table.js +2 -2
- package/lib/component/elements/ToggleButton.d.ts +1 -2
- package/lib/component/elements/ToggleButton.js +5 -4
- package/lib/component/elements/accordion/Accordion.js +2 -6
- package/lib/component/elements/accordion/AccordionItem.js +2 -2
- package/lib/component/elements/formik/FormikCheckBox.d.ts +2 -1
- package/lib/component/elements/formik/FormikCheckBox.js +4 -2
- package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -1
- package/lib/component/elements/formik/FormikOnChange.d.ts +3 -2
- package/lib/component/elements/formik/FormikOnChange.js +11 -5
- package/lib/component/elements/formik/Input.js +1 -1
- package/lib/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib/component/elements/popup/Modal/Modal.js +1 -1
- package/lib/component/elements/popup/Modal/ModalContent.js +1 -1
- package/lib/component/elements/resizer/DivResizer.js +3 -3
- package/lib/component/elements/resizer/Resizer.d.ts +1 -0
- package/lib/component/elements/resizer/SVGResizer.js +3 -3
- package/lib/component/elements/toggle/ToggleButtonGroup.js +2 -2
- package/lib/component/header/ApodizationOptionsPanel.d.ts +2 -0
- package/lib/component/header/ApodizationOptionsPanel.js +81 -0
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts +2 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +40 -36
- package/lib/component/header/BaseLineCorrectionPanel.d.ts +1 -2
- package/lib/component/header/BaseLineCorrectionPanel.js +89 -53
- package/lib/component/header/Header.js +7 -4
- package/lib/component/header/HeaderContainer.d.ts +7 -0
- package/lib/component/header/HeaderContainer.js +10 -0
- package/lib/component/header/ManualPhaseCorrectionPanel.js +27 -29
- package/lib/component/header/RangesPickingOptionPanel.js +19 -21
- package/lib/component/header/ZeroFillingOptionsPanel.js +49 -46
- package/lib/component/header/Zones2DOptionPanel.js +11 -13
- package/lib/component/highlight/index.d.ts +27 -10
- package/lib/component/highlight/index.js +19 -17
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +2 -2
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +11 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +32 -1
- package/lib/component/hooks/useExport.js +2 -2
- package/lib/component/hooks/useFilter.d.ts +1 -0
- package/lib/component/hooks/useFilter.js +7 -0
- package/lib/component/hooks/useFormatNumberByNucleus.js +3 -4
- package/lib/component/hooks/useToolsFunctions.js +1 -1
- package/lib/component/loader/DropZone.js +9 -3
- package/lib/component/loader/NoData.d.ts +3 -2
- package/lib/component/loader/NoData.js +31 -30
- package/lib/component/modal/AlignSpectraModal.js +1 -2
- package/lib/component/modal/EditPeakShapeModal.d.ts +9 -0
- package/lib/component/modal/EditPeakShapeModal.js +85 -0
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts +3 -3
- package/lib/component/modal/MoleculeStructureEditorModal.js +4 -5
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +1 -2
- package/lib/component/modal/PredictSpectraModal.js +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.js +9 -11
- package/lib/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts +3 -3
- package/lib/component/modal/editRange/EditRangeModal.js +51 -56
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +9 -22
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +15 -58
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.d.ts +2 -0
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +34 -0
- package/lib/component/modal/editRange/forms/components/SignalFormTab.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/SignalFormTab.js +11 -14
- package/lib/component/modal/editRange/forms/components/SignalsForm.d.ts +2 -1
- package/lib/component/modal/editRange/forms/components/SignalsForm.js +18 -29
- package/lib/component/modal/editZone/SignalsForm.js +1 -1
- package/lib/component/modal/setting/DatabasesTabContent.d.ts +2 -1
- package/lib/component/modal/setting/DatabasesTabContent.js +29 -31
- package/lib/component/modal/setting/DisplayTabContent.d.ts +1 -5
- package/lib/component/modal/setting/DisplayTabContent.js +6 -15
- package/lib/component/modal/setting/FormattingTabContent.js +2 -2
- package/lib/component/modal/setting/GeneralSettings.js +19 -12
- package/lib/component/modal/setting/GeneralTabContent.d.ts +3 -0
- package/lib/component/modal/setting/{ControllersTabContent.js → GeneralTabContent.js} +3 -3
- package/lib/component/modal/setting/ToolsTabContent.d.ts +3 -0
- package/lib/component/modal/setting/ToolsTabContent.js +100 -0
- package/lib/component/modal/setting/WorkspaceItem.d.ts +2 -2
- package/lib/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib/component/modal/setting/settingsValidation.d.ts +150 -42
- package/lib/component/modal/setting/settingsValidation.js +6 -4
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +13 -15
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +3 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts +5 -4
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +17 -21
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +4 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +1 -2
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +5 -3
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +13 -5
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +2 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib/component/panels/Panels.js +10 -7
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +47 -22
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +17 -0
- package/lib/component/panels/PeaksPanel/PeaksTable.js +44 -13
- package/lib/component/panels/RangesPanel/RangesHeader.js +13 -4
- package/lib/component/panels/RangesPanel/RangesPanel.js +19 -19
- package/lib/component/panels/RangesPanel/RangesTableRow.js +4 -4
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +3 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts +3 -3
- package/lib/component/panels/RangesPanel/TableColumns/format.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts +4 -4
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +48 -30
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +3 -3
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -3
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +5 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +7 -7
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +7 -10
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +6 -8
- package/lib/component/panels/SummaryPanel/utilities/{IsInView.d.ts → useInView.d.ts} +2 -2
- package/lib/component/panels/SummaryPanel/utilities/{IsInView.js → useInView.js} +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +13 -13
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +4 -0
- package/lib/component/panels/databasePanel/DatabasePanel.js +80 -34
- package/lib/component/panels/databasePanel/DatabasePreferences.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts +7 -0
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +8 -0
- package/lib/component/panels/databasePanel/DatabaseTable.js +17 -12
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +2 -4
- package/lib/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib/component/panels/header/DefaultPanelHeader.js +3 -14
- package/lib/component/panels/header/SpectraAutomaticPickingButton.js +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.d.ts +2 -1
- package/lib/component/panels/predictionPanel/PredictionOptions.js +2 -2
- package/lib/component/panels/predictionPanel/PredictionPanel.js +15 -3
- package/lib/component/reducer/IgnoreActions.js +4 -0
- package/lib/component/reducer/Reducer.d.ts +45 -72
- package/lib/component/reducer/Reducer.js +38 -13
- package/lib/component/reducer/actions/DatabaseActions.d.ts +3 -2
- package/lib/component/reducer/actions/DatabaseActions.js +21 -3
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +14 -7
- package/lib/component/reducer/actions/FiltersActions.js +192 -32
- package/lib/component/reducer/actions/IntegralsActions.js +2 -2
- package/lib/component/reducer/actions/MoleculeActions.js +27 -14
- package/lib/component/reducer/actions/PeaksActions.d.ts +4 -1
- package/lib/component/reducer/actions/PeaksActions.js +38 -5
- package/lib/component/reducer/actions/PreferencesActions.js +32 -20
- package/lib/component/reducer/actions/RangesActions.d.ts +2 -2
- package/lib/component/reducer/actions/RangesActions.js +45 -11
- package/lib/component/reducer/actions/SpectrumsActions.js +7 -10
- package/lib/component/reducer/actions/ToolsActions.js +34 -84
- package/lib/component/reducer/helper/getSpectrum.d.ts +5 -0
- package/lib/component/reducer/helper/getSpectrum.js +14 -0
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +7 -0
- package/lib/component/reducer/helper/getStrongestPeak.js +14 -0
- package/lib/component/reducer/preferences/actions/addWorkspace.js +4 -4
- package/lib/component/reducer/preferences/actions/initPreferences.js +5 -5
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +1 -1
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.js +1 -1
- package/lib/component/reducer/preferences/actions/setPreferences.js +13 -16
- package/lib/component/reducer/preferences/actions/setWorkspace.js +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +7 -4
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +46 -67
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -4
- package/lib/component/reducer/preferences/{utilites → utilities}/checkKeysExists.d.ts +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/checkKeysExists.js +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/filterObject.d.ts +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/filterObject.js +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/flatObject.d.ts +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/flatObject.js +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.d.ts +2 -1
- package/lib/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.js +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/getPreferencesByWorkspace.d.ts +2 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +6 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.d.ts +0 -0
- package/lib/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.js +0 -0
- package/lib/component/reducer/types/Types.d.ts +10 -1
- package/lib/component/reducer/types/Types.js +10 -1
- package/lib/component/tool/BrushX.js +2 -2
- package/lib/component/tool/BrushXY.js +5 -4
- package/lib/component/tool/CrossLinePointer.js +6 -5
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.d.ts +2 -2
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.js +12 -3
- package/lib/component/tool/FloatMoleculeStructures/index.d.ts +3 -2
- package/lib/component/tool/FloatMoleculeStructures/index.js +13 -6
- package/lib/component/toolbar/BasicToolBar.js +3 -9
- package/lib/component/toolbar/FunctionToolBar.js +11 -27
- package/lib/component/toolbar/ToolTypes.d.ts +7 -1
- package/lib/component/toolbar/ToolTypes.js +122 -12
- package/lib/component/utility/Evaluate.js +1 -0
- package/lib/component/utility/Export.d.ts +7 -1
- package/lib/component/utility/Export.js +3 -3
- package/lib/component/utility/formatNumber.d.ts +1 -1
- package/lib/component/utility/formatNumber.js +4 -2
- package/lib/component/utility/isGoogleDocument.d.ts +1 -0
- package/lib/component/utility/isGoogleDocument.js +3 -0
- package/lib/component/utility/nmredataToNmrium.js +1 -2
- package/lib/component/utility/nmriumToNmredata.d.ts +2 -2
- package/lib/component/utility/nmriumToNmredata.js +2 -2
- package/lib/component/utility/util/nmredata/addSource.js +2 -2
- package/lib/component/utility/util/nmredata/addZones.js +3 -3
- package/lib/component/workspaces/Workspace.d.ts +22 -10
- package/lib/component/workspaces/basic.d.ts +2 -2
- package/lib/component/workspaces/basic.js +19 -32
- package/lib/component/workspaces/embedded.d.ts +2 -2
- package/lib/component/workspaces/embedded.js +21 -13
- package/lib/component/workspaces/exercise.d.ts +2 -2
- package/lib/component/workspaces/exercise.js +5 -36
- package/lib/component/workspaces/index.d.ts +5 -5
- package/lib/component/workspaces/prediction.d.ts +2 -2
- package/lib/component/workspaces/prediction.js +21 -17
- package/lib/component/workspaces/process1D.d.ts +2 -2
- package/lib/component/workspaces/process1D.js +21 -26
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +2 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js +70 -0
- package/lib/constants.js +1 -1
- package/lib/data/Filters.d.ts +2 -2
- package/lib/data/Filters.js +2 -2
- package/lib/data/FiltersManager.js +4 -4
- package/lib/data/PredictionManager.d.ts +0 -1
- package/lib/data/PredictionManager.js +22 -24
- package/lib/data/SpectraManager.d.ts +5 -12
- package/lib/data/SpectraManager.js +14 -29
- package/lib/data/constants/SignalsKinds.d.ts +0 -1
- package/lib/data/constants/SignalsKinds.js +0 -8
- package/lib/data/data1d/Data1DManager.js +13 -6
- package/lib/data/data1d/MultipleAnalysis.js +1 -0
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +5 -5
- package/lib/data/data1d/Spectrum1D/SumManager.js +18 -12
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +10 -12
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/index.js +2 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +14 -15
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +5 -7
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -3
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/mapPeaks.js +15 -16
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +8 -0
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +24 -0
- package/lib/data/data1d/Spectrum1D/ranges/addRange.d.ts +36 -2
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +39 -16
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +4 -4
- package/lib/data/data1d/database.d.ts +5 -3
- package/lib/data/data1d/database.js +48 -7
- package/lib/data/data1d/filter1d/apodization.d.ts +25 -0
- package/lib/data/data1d/filter1d/apodization.js +63 -0
- package/lib/data/data1d/filter1d/autoPhaseCorrection.js +1 -1
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +24 -7
- package/lib/data/data1d/filter1d/baselineCorrection.js +10 -17
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.d.ts +9 -0
- package/lib/data/data1d/filter1d/zeroFillingAndApodization.js +24 -0
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +4 -3
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +17 -13
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +3 -3
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +3 -3
- package/lib/data/migration/MigrationManager.d.ts +1 -1
- package/lib/data/migration/MigrationManager.js +3 -1
- package/lib/data/migration/migrateToVersion3.d.ts +1 -0
- package/lib/data/migration/migrateToVersion3.js +55 -0
- package/lib/data/molecules/Molecule.d.ts +15 -7
- package/lib/data/molecules/Molecule.js +5 -6
- package/lib/data/molecules/MoleculeManager.d.ts +4 -4
- package/lib/data/molecules/MoleculeManager.js +5 -5
- package/lib/data/types/data1d/SumOptions.d.ts +1 -1
- package/lib/data/utilities/FindUtilities.js +1 -3
- package/lib/data/utilities/RangeUtilities.js +5 -6
- package/lib/data/utilities/ZoneUtilities.js +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.d.ts +0 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js +0 -1
- package/lib/data/utilities/getSum.js +1 -3
- package/lib/data/utilities/isInRange.d.ts +7 -0
- package/lib/data/utilities/isInRange.js +4 -0
- package/lib/data/utilities/isMolFileEmpty.d.ts +1 -0
- package/lib/data/utilities/isMolFileEmpty.js +6 -0
- package/lib/types/NMRiumDataReturn.d.ts +15 -0
- package/lib/types/NMRiumDataReturn.js +1 -0
- package/lib/types/NMRiumGeneralPreferences.d.ts +8 -0
- package/lib/types/NMRiumGeneralPreferences.js +1 -0
- package/lib/types/NMRiumPanelPreferences.d.ts +16 -0
- package/lib/types/NMRiumPanelPreferences.js +1 -0
- package/lib/types/NMRiumToolBarPreferences.d.ts +21 -0
- package/lib/types/NMRiumToolBarPreferences.js +1 -0
- package/lib/types/PanelPreferencesType.d.ts +1 -7
- package/lib/types/Preferences.d.ts +5 -0
- package/lib/types/Preferences.js +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +75 -0
- package/lib-cjs/component/1d/Chart1D.js +4 -2
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +15 -8
- package/lib-cjs/component/1d/ExclusionZonesAnnotations.js +1 -1
- package/lib-cjs/component/1d/IntegralResizable.js +4 -3
- package/lib-cjs/component/1d/IntegralsSeries.js +2 -6
- package/lib-cjs/component/1d/LinesSeries.js +5 -5
- package/lib-cjs/component/1d/SpectraTracker.js +2 -2
- package/lib-cjs/component/1d/Viewer1D.js +8 -13
- package/lib-cjs/component/1d/database/DatabaseElements.js +1 -1
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +34 -26
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +10 -8
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +15 -13
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +1 -2
- package/lib-cjs/component/1d/{PeakAnnotation.js → peaks/PeakAnnotation.js} +10 -11
- package/lib-cjs/component/1d/peaks/PeakAnnotations.js +31 -0
- package/lib-cjs/component/1d/peaks/PeaksShapes.js +40 -0
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +49 -0
- package/lib-cjs/component/1d/ranges/Range.js +6 -7
- package/lib-cjs/component/1d/ranges/Ranges.js +3 -4
- package/lib-cjs/component/1d/tool/BaseLineZones.js +3 -6
- package/lib-cjs/component/1d/tool/VerticalIndicator.js +1 -1
- package/lib-cjs/component/2d/Contours.js +9 -13
- package/lib-cjs/component/2d/FooterBanner.js +2 -2
- package/lib-cjs/component/2d/SignalDeltaLine.js +1 -1
- package/lib-cjs/component/2d/Viewer2D.js +3 -3
- package/lib-cjs/component/2d/YAxis.js +1 -1
- package/lib-cjs/component/2d/zones/IndicationLines.js +2 -3
- package/lib-cjs/component/2d/zones/Signal.js +3 -3
- package/lib-cjs/component/2d/zones/Zone.js +3 -3
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +130 -73
- package/lib-cjs/component/NMRium.js +13 -5
- package/lib-cjs/component/SplitPaneWrapper.js +2 -2
- package/lib-cjs/component/context/GlobalContext.js +4 -4
- package/lib-cjs/component/elements/ActiveButton.js +33 -0
- package/lib-cjs/component/elements/Button.js +6 -6
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBox.js +3 -5
- package/lib-cjs/component/elements/CheckBoxCell.js +15 -0
- package/lib-cjs/component/elements/Input.js +1 -1
- package/lib-cjs/component/elements/Label.js +3 -3
- package/lib-cjs/component/elements/Logo.js +1 -1
- package/lib-cjs/component/elements/MoleculeSelection.js +1 -1
- package/lib-cjs/component/elements/NextPrev.js +1 -1
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +2 -1
- package/lib-cjs/component/elements/Select.js +6 -8
- package/lib-cjs/component/elements/Tab/Tab.js +1 -1
- package/lib-cjs/component/elements/Tab/Tabs.js +2 -1
- package/lib-cjs/component/elements/Table/Table.js +2 -2
- package/lib-cjs/component/elements/ToggleButton.js +5 -4
- package/lib-cjs/component/elements/accordion/Accordion.js +2 -6
- package/lib-cjs/component/elements/accordion/AccordionItem.js +2 -2
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +4 -2
- package/lib-cjs/component/elements/formik/FormikOnChange.js +10 -4
- package/lib-cjs/component/elements/formik/Input.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Modal.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +1 -1
- package/lib-cjs/component/elements/resizer/DivResizer.js +3 -3
- package/lib-cjs/component/elements/resizer/SVGResizer.js +2 -2
- package/lib-cjs/component/elements/toggle/ToggleButtonGroup.js +2 -2
- package/lib-cjs/component/header/ApodizationOptionsPanel.js +110 -0
- package/lib-cjs/component/header/AutoPeakPickingOptionPanel.js +39 -35
- package/lib-cjs/component/header/BaseLineCorrectionPanel.js +87 -50
- package/lib-cjs/component/header/Header.js +7 -4
- package/lib-cjs/component/header/HeaderContainer.js +14 -0
- package/lib-cjs/component/header/ManualPhaseCorrectionPanel.js +26 -28
- package/lib-cjs/component/header/RangesPickingOptionPanel.js +19 -21
- package/lib-cjs/component/header/ZeroFillingOptionsPanel.js +70 -44
- package/lib-cjs/component/header/Zones2DOptionPanel.js +11 -13
- package/lib-cjs/component/highlight/index.js +20 -18
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +2 -2
- package/lib-cjs/component/hooks/useCheckToolsVisibility.js +32 -1
- package/lib-cjs/component/hooks/useExport.js +2 -2
- package/lib-cjs/component/hooks/useFilter.js +14 -0
- package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +2 -3
- package/lib-cjs/component/hooks/useToolsFunctions.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +9 -3
- package/lib-cjs/component/loader/NoData.js +31 -30
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -2
- package/lib-cjs/component/modal/EditPeakShapeModal.js +113 -0
- package/lib-cjs/component/modal/MoleculeStructureEditorModal.js +4 -5
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +1 -2
- package/lib-cjs/component/modal/PredictSpectraModal.js +1 -1
- package/lib-cjs/component/modal/changeSum/ChangeSumModal.js +9 -11
- package/lib-cjs/component/modal/changeSum/SelectMolecule.js +1 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +49 -54
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +9 -22
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +14 -57
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +38 -0
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormTab.js +13 -16
- package/lib-cjs/component/modal/editRange/forms/components/SignalsForm.js +18 -29
- package/lib-cjs/component/modal/editZone/SignalsForm.js +1 -1
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +32 -34
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +6 -15
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/GeneralSettings.js +19 -12
- package/lib-cjs/component/modal/setting/{ControllersTabContent.js → GeneralTabContent.js} +3 -3
- package/lib-cjs/component/modal/setting/ToolsTabContent.js +105 -0
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib-cjs/component/modal/setting/settingsValidation.js +6 -4
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +12 -14
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +3 -3
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanel.js +16 -20
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +12 -4
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +1 -1
- package/lib-cjs/component/panels/Panels.js +10 -7
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +45 -20
- package/lib-cjs/component/panels/PeaksPanel/PeaksPreferences.js +17 -0
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +42 -11
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +11 -2
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +18 -18
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +3 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -1
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +47 -29
- package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +3 -6
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +5 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +7 -7
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +2 -2
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -2
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +7 -10
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +6 -8
- package/lib-cjs/component/panels/SummaryPanel/utilities/{IsInView.js → useInView.js} +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +12 -12
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +78 -32
- package/lib-cjs/component/panels/databasePanel/DatabasePreferences.js +1 -1
- package/lib-cjs/component/panels/databasePanel/DatabaseStructureSearchModal.js +15 -0
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +16 -11
- package/lib-cjs/component/panels/extra/preferences/ColumnsHelper.js +2 -4
- package/lib-cjs/component/panels/filtersPanel/FilterPanel.js +1 -1
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +2 -2
- package/lib-cjs/component/panels/header/DefaultPanelHeader.js +3 -14
- package/lib-cjs/component/panels/header/SpectraAutomaticPickingButton.js +1 -1
- package/lib-cjs/component/panels/predictionPanel/PredictionOptions.js +2 -2
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +15 -3
- package/lib-cjs/component/reducer/IgnoreActions.js +4 -0
- package/lib-cjs/component/reducer/Reducer.js +38 -16
- package/lib-cjs/component/reducer/actions/DatabaseActions.js +22 -3
- package/lib-cjs/component/reducer/actions/DomainActions.js +1 -1
- package/lib-cjs/component/reducer/actions/FiltersActions.js +198 -32
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +2 -2
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +27 -14
- package/lib-cjs/component/reducer/actions/PeaksActions.js +40 -4
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +30 -18
- package/lib-cjs/component/reducer/actions/RangesActions.js +46 -12
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +5 -8
- package/lib-cjs/component/reducer/actions/ToolsActions.js +31 -104
- package/lib-cjs/component/reducer/helper/getSpectrum.js +18 -0
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +18 -0
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +4 -7
- package/lib-cjs/component/reducer/preferences/actions/initPreferences.js +5 -5
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +1 -1
- package/lib-cjs/component/reducer/preferences/actions/setPanelsPreferences.js +1 -1
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +16 -16
- package/lib-cjs/component/reducer/preferences/actions/setWorkspace.js +1 -1
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +7 -4
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +1 -4
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/checkKeysExists.js +0 -0
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/filterObject.js +0 -0
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/flatObject.js +0 -0
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/getActiveWorkspace.js +0 -0
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/getPreferencesByWorkspace.js +3 -1
- package/lib-cjs/component/reducer/preferences/{utilites → utilities}/mapNucleiFormatting.js +0 -0
- package/lib-cjs/component/reducer/types/Types.js +13 -4
- package/lib-cjs/component/tool/BrushX.js +2 -2
- package/lib-cjs/component/tool/BrushXY.js +5 -4
- package/lib-cjs/component/tool/CrossLinePointer.js +6 -5
- package/lib-cjs/component/tool/FloatMoleculeStructures/DraggableStructure.js +11 -2
- package/lib-cjs/component/tool/FloatMoleculeStructures/index.js +13 -6
- package/lib-cjs/component/toolbar/BasicToolBar.js +3 -9
- package/lib-cjs/component/toolbar/FunctionToolBar.js +10 -26
- package/lib-cjs/component/toolbar/ToolTypes.js +122 -12
- package/lib-cjs/component/utility/Evaluate.js +1 -0
- package/lib-cjs/component/utility/Export.js +4 -3
- package/lib-cjs/component/utility/formatNumber.js +3 -1
- package/lib-cjs/component/utility/isGoogleDocument.js +7 -0
- package/lib-cjs/component/utility/nmredataToNmrium.js +1 -2
- package/lib-cjs/component/utility/util/nmredata/addSource.js +2 -2
- package/lib-cjs/component/utility/util/nmredata/addZones.js +3 -6
- package/lib-cjs/component/workspaces/basic.js +19 -32
- package/lib-cjs/component/workspaces/embedded.js +21 -13
- package/lib-cjs/component/workspaces/exercise.js +5 -36
- package/lib-cjs/component/workspaces/prediction.js +21 -17
- package/lib-cjs/component/workspaces/process1D.js +21 -26
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +73 -0
- package/lib-cjs/constants.js +1 -1
- package/lib-cjs/data/Filters.js +3 -3
- package/lib-cjs/data/FiltersManager.js +4 -7
- package/lib-cjs/data/PredictionManager.js +22 -24
- package/lib-cjs/data/SpectraManager.js +14 -29
- package/lib-cjs/data/constants/SignalsKinds.js +0 -8
- package/lib-cjs/data/data1d/Data1DManager.js +13 -6
- package/lib-cjs/data/data1d/MultipleAnalysis.js +1 -0
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +18 -12
- package/lib-cjs/data/data1d/Spectrum1D/convertDataToFloat64Array.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +10 -15
- package/lib-cjs/data/data1d/Spectrum1D/getReferenceShift.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/index.js +3 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +14 -15
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +5 -7
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -3
- package/lib-cjs/data/data1d/Spectrum1D/peaks/mapPeaks.js +15 -19
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +28 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +41 -17
- package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -0
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectRange.js +2 -5
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +4 -7
- package/lib-cjs/data/data1d/database.js +49 -8
- package/lib-cjs/data/data1d/filter1d/apodization.js +70 -0
- package/lib-cjs/data/data1d/filter1d/autoPhaseCorrection.js +1 -1
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +11 -18
- package/lib-cjs/data/data1d/filter1d/zeroFillingAndApodization.js +30 -0
- package/lib-cjs/data/data2d/Processing2D.js +4 -3
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +17 -16
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +3 -6
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +3 -6
- package/lib-cjs/data/migration/MigrationManager.js +3 -1
- package/lib-cjs/data/migration/migrateToVersion3.js +58 -0
- package/lib-cjs/data/molecules/Molecule.js +5 -6
- package/lib-cjs/data/molecules/MoleculeManager.js +5 -5
- package/lib-cjs/data/utilities/FindUtilities.js +1 -3
- package/lib-cjs/data/utilities/RangeUtilities.js +8 -6
- package/lib-cjs/data/utilities/ZoneUtilities.js +1 -1
- package/lib-cjs/data/utilities/generateNumbersPowerOfX.js +0 -1
- package/lib-cjs/data/utilities/getSum.js +1 -3
- package/lib-cjs/data/utilities/isInRange.js +7 -0
- package/lib-cjs/data/utilities/isMolFileEmpty.js +10 -0
- package/lib-cjs/types/NMRiumDataReturn.js +2 -0
- package/lib-cjs/types/NMRiumGeneralPreferences.js +2 -0
- package/lib-cjs/types/NMRiumPanelPreferences.js +2 -0
- package/lib-cjs/types/NMRiumToolBarPreferences.js +2 -0
- package/lib-cjs/types/Preferences.js +2 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +48 -46
- package/lib/component/1d/PeakAnnotations.js +0 -43
- package/lib/component/1d/multiplicityTree/TempMultiplicityTree.d.ts +0 -2
- package/lib/component/1d/multiplicityTree/TempMultiplicityTree.js +0 -14
- package/lib/component/modal/setting/ControllersTabContent.d.ts +0 -3
- package/lib/component/panels/databasePanel/useDatabases.d.ts +0 -5
- package/lib/component/panels/databasePanel/useDatabases.js +0 -10
- package/lib/component/reducer/preferences/actions/resetPreferences.d.ts +0 -3
- package/lib/component/reducer/preferences/actions/resetPreferences.js +0 -14
- package/lib/component/reducer/preferences/utilites/getPreferencesByWorkspace.js +0 -4
- package/lib/data/data1d/filter1d/lineBroadening.d.ts +0 -14
- package/lib/data/data1d/filter1d/lineBroadening.js +0 -57
- package/lib/data/utilities/generateID.d.ts +0 -1
- package/lib/data/utilities/generateID.js +0 -9
- package/lib-cjs/component/1d/PeakAnnotations.js +0 -48
- package/lib-cjs/component/1d/multiplicityTree/TempMultiplicityTree.js +0 -20
- package/lib-cjs/component/panels/databasePanel/useDatabases.js +0 -14
- package/lib-cjs/component/reducer/preferences/actions/resetPreferences.js +0 -18
- package/lib-cjs/data/data1d/filter1d/lineBroadening.js +0 -63
- package/lib-cjs/data/utilities/generateID.js +0 -12
|
@@ -18,7 +18,7 @@ export declare type AddWorkspaceAction = ActionType<'ADD_WORKSPACE', {
|
|
|
18
18
|
workspace: string;
|
|
19
19
|
data: Omit<Workspace, 'version' | 'label'>;
|
|
20
20
|
}>;
|
|
21
|
-
declare type PreferencesActions = InitPreferencesAction | SetPreferencesAction |
|
|
21
|
+
declare type PreferencesActions = InitPreferencesAction | SetPreferencesAction | SetPanelsPreferencesAction | WorkspaceAction | AddWorkspaceAction;
|
|
22
22
|
export declare const WORKSPACES: Array<{
|
|
23
23
|
key: NMRiumWorkspace;
|
|
24
24
|
label: string;
|
|
@@ -42,15 +42,10 @@ declare const preferencesReducer: (base: {
|
|
|
42
42
|
readonly label: string;
|
|
43
43
|
readonly display: {
|
|
44
44
|
readonly general?: {
|
|
45
|
-
readonly disableMultipletAnalysis?: boolean | undefined;
|
|
46
|
-
readonly hideSetSumFromMolecule?: boolean | undefined;
|
|
47
45
|
readonly hideGeneralSettings?: boolean | undefined;
|
|
48
46
|
readonly experimentalFeatures?: {
|
|
49
47
|
readonly display: boolean;
|
|
50
48
|
readonly open?: boolean | undefined;
|
|
51
|
-
readonly hidden?: false | undefined;
|
|
52
|
-
} | {
|
|
53
|
-
readonly hidden: true;
|
|
54
49
|
} | undefined;
|
|
55
50
|
readonly hidePanelOnLoad?: boolean | undefined;
|
|
56
51
|
readonly initialPanelWidth?: import("analysis-ui-components/lib-esm/components/SplitPane").InitialSeparation | undefined;
|
|
@@ -59,117 +54,79 @@ declare const preferencesReducer: (base: {
|
|
|
59
54
|
readonly spectraPanel?: {
|
|
60
55
|
readonly display: boolean;
|
|
61
56
|
readonly open?: boolean | undefined;
|
|
62
|
-
readonly hidden?: false | undefined;
|
|
63
|
-
} | {
|
|
64
|
-
readonly hidden: true;
|
|
65
57
|
} | undefined;
|
|
66
58
|
readonly informationPanel?: {
|
|
67
59
|
readonly display: boolean;
|
|
68
60
|
readonly open?: boolean | undefined;
|
|
69
|
-
readonly hidden?: false | undefined;
|
|
70
|
-
} | {
|
|
71
|
-
readonly hidden: true;
|
|
72
61
|
} | undefined;
|
|
73
62
|
readonly peaksPanel?: {
|
|
74
63
|
readonly display: boolean;
|
|
75
64
|
readonly open?: boolean | undefined;
|
|
76
|
-
readonly hidden?: false | undefined;
|
|
77
|
-
} | {
|
|
78
|
-
readonly hidden: true;
|
|
79
65
|
} | undefined;
|
|
80
66
|
readonly integralsPanel?: {
|
|
81
67
|
readonly display: boolean;
|
|
82
68
|
readonly open?: boolean | undefined;
|
|
83
|
-
readonly hidden?: false | undefined;
|
|
84
|
-
} | {
|
|
85
|
-
readonly hidden: true;
|
|
86
69
|
} | undefined;
|
|
87
70
|
readonly rangesPanel?: {
|
|
88
71
|
readonly display: boolean;
|
|
89
72
|
readonly open?: boolean | undefined;
|
|
90
|
-
readonly hidden?: false | undefined;
|
|
91
|
-
} | {
|
|
92
|
-
readonly hidden: true;
|
|
93
73
|
} | undefined;
|
|
94
74
|
readonly structuresPanel?: {
|
|
95
75
|
readonly display: boolean;
|
|
96
76
|
readonly open?: boolean | undefined;
|
|
97
|
-
readonly hidden?: false | undefined;
|
|
98
|
-
} | {
|
|
99
|
-
readonly hidden: true;
|
|
100
77
|
} | undefined;
|
|
101
78
|
readonly filtersPanel?: {
|
|
102
79
|
readonly display: boolean;
|
|
103
80
|
readonly open?: boolean | undefined;
|
|
104
|
-
readonly hidden?: false | undefined;
|
|
105
|
-
} | {
|
|
106
|
-
readonly hidden: true;
|
|
107
81
|
} | undefined;
|
|
108
82
|
readonly zonesPanel?: {
|
|
109
83
|
readonly display: boolean;
|
|
110
84
|
readonly open?: boolean | undefined;
|
|
111
|
-
readonly hidden?: false | undefined;
|
|
112
|
-
} | {
|
|
113
|
-
readonly hidden: true;
|
|
114
85
|
} | undefined;
|
|
115
86
|
readonly summaryPanel?: {
|
|
116
87
|
readonly display: boolean;
|
|
117
88
|
readonly open?: boolean | undefined;
|
|
118
|
-
readonly hidden?: false | undefined;
|
|
119
|
-
} | {
|
|
120
|
-
readonly hidden: true;
|
|
121
89
|
} | undefined;
|
|
122
90
|
readonly multipleSpectraAnalysisPanel?: {
|
|
123
91
|
readonly display: boolean;
|
|
124
92
|
readonly open?: boolean | undefined;
|
|
125
|
-
readonly hidden?: false | undefined;
|
|
126
|
-
} | {
|
|
127
|
-
readonly hidden: true;
|
|
128
93
|
} | undefined;
|
|
129
94
|
readonly databasePanel?: {
|
|
130
95
|
readonly display: boolean;
|
|
131
96
|
readonly open?: boolean | undefined;
|
|
132
|
-
readonly hidden?: false | undefined;
|
|
133
|
-
} | {
|
|
134
|
-
readonly hidden: true;
|
|
135
97
|
} | undefined;
|
|
136
98
|
readonly predictionPanel?: {
|
|
137
99
|
readonly display: boolean;
|
|
138
100
|
readonly open?: boolean | undefined;
|
|
139
|
-
readonly hidden?: false | undefined;
|
|
140
|
-
} | {
|
|
141
|
-
readonly hidden: true;
|
|
142
101
|
} | undefined;
|
|
143
102
|
readonly automaticAssignmentPanel?: {
|
|
144
103
|
readonly display: boolean;
|
|
145
104
|
readonly open?: boolean | undefined;
|
|
146
|
-
readonly hidden?: false | undefined;
|
|
147
|
-
} | {
|
|
148
|
-
readonly hidden: true;
|
|
149
105
|
} | undefined;
|
|
150
106
|
} | undefined;
|
|
151
107
|
readonly toolBarButtons?: {
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
108
|
+
readonly zoom?: boolean | undefined;
|
|
109
|
+
readonly zoomOut?: boolean | undefined;
|
|
154
110
|
readonly import?: boolean | undefined;
|
|
155
111
|
readonly exportAs?: boolean | undefined;
|
|
156
112
|
readonly spectraStackAlignments?: boolean | undefined;
|
|
157
113
|
readonly spectraCenterAlignments?: boolean | undefined;
|
|
158
114
|
readonly realImaginary?: boolean | undefined;
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
115
|
+
readonly peakPicking?: boolean | undefined;
|
|
116
|
+
readonly integral?: boolean | undefined;
|
|
117
|
+
readonly zonePicking?: boolean | undefined;
|
|
118
|
+
readonly slicing?: boolean | undefined;
|
|
119
|
+
readonly rangePicking?: boolean | undefined;
|
|
120
|
+
readonly zeroFilling?: boolean | undefined;
|
|
121
|
+
readonly apodization?: boolean | undefined;
|
|
122
|
+
readonly phaseCorrection?: boolean | undefined;
|
|
123
|
+
readonly baselineCorrection?: boolean | undefined;
|
|
124
|
+
readonly fastFourierTransform?: boolean | undefined;
|
|
125
|
+
readonly multipleSpectraAnalysis?: boolean | undefined;
|
|
126
|
+
readonly exclusionZones?: boolean | undefined;
|
|
170
127
|
} | undefined;
|
|
171
128
|
};
|
|
172
|
-
readonly
|
|
129
|
+
readonly general: {
|
|
173
130
|
readonly dimmedSpectraTransparency: number;
|
|
174
131
|
};
|
|
175
132
|
readonly formatting: {
|
|
@@ -204,6 +161,15 @@ declare const preferencesReducer: (base: {
|
|
|
204
161
|
readonly show: boolean;
|
|
205
162
|
readonly format: string;
|
|
206
163
|
};
|
|
164
|
+
readonly showKind: boolean;
|
|
165
|
+
readonly fwhm: {
|
|
166
|
+
readonly show: boolean;
|
|
167
|
+
readonly format: string;
|
|
168
|
+
};
|
|
169
|
+
readonly mu: {
|
|
170
|
+
readonly show: boolean;
|
|
171
|
+
readonly format: string;
|
|
172
|
+
};
|
|
207
173
|
};
|
|
208
174
|
};
|
|
209
175
|
} | undefined;
|
|
@@ -282,21 +248,34 @@ declare const preferencesReducer: (base: {
|
|
|
282
248
|
readonly showSmiles: boolean;
|
|
283
249
|
readonly showSolvent: boolean;
|
|
284
250
|
readonly showNames: boolean;
|
|
285
|
-
readonly
|
|
286
|
-
|
|
251
|
+
readonly range: {
|
|
252
|
+
readonly show: boolean;
|
|
253
|
+
readonly format: string;
|
|
254
|
+
};
|
|
255
|
+
readonly delta: {
|
|
256
|
+
readonly show: boolean;
|
|
257
|
+
readonly format: string;
|
|
258
|
+
};
|
|
287
259
|
readonly showAssignment: boolean;
|
|
288
|
-
readonly
|
|
260
|
+
readonly coupling: {
|
|
261
|
+
readonly show: boolean;
|
|
262
|
+
readonly format: string;
|
|
263
|
+
};
|
|
289
264
|
readonly showMultiplicity: boolean;
|
|
290
265
|
readonly color: string;
|
|
291
266
|
readonly marginBottom: number;
|
|
292
267
|
} | undefined;
|
|
293
268
|
};
|
|
294
269
|
};
|
|
295
|
-
readonly databases:
|
|
296
|
-
readonly
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
270
|
+
readonly databases: {
|
|
271
|
+
readonly data: readonly {
|
|
272
|
+
readonly key: string;
|
|
273
|
+
readonly label: string;
|
|
274
|
+
readonly url: string;
|
|
275
|
+
readonly enabled: boolean;
|
|
276
|
+
}[];
|
|
277
|
+
readonly defaultDatabase: string;
|
|
278
|
+
};
|
|
300
279
|
};
|
|
301
280
|
};
|
|
302
281
|
readonly dispatch: (action?: PreferencesActions) => void;
|
|
@@ -4,11 +4,10 @@ import Workspaces from '../../workspaces';
|
|
|
4
4
|
import { addWorkspace } from './actions/addWorkspace';
|
|
5
5
|
import { initPreferences } from './actions/initPreferences';
|
|
6
6
|
import { removeWorkspace } from './actions/removeWorkspace';
|
|
7
|
-
import { resetPreferences } from './actions/resetPreferences';
|
|
8
7
|
import { setPanelsPreferences } from './actions/setPanelsPreferences';
|
|
9
8
|
import { setPreferences } from './actions/setPreferences';
|
|
10
9
|
import { setWorkspace } from './actions/setWorkspace';
|
|
11
|
-
const LOCAL_STORAGE_VERSION =
|
|
10
|
+
const LOCAL_STORAGE_VERSION = 10;
|
|
12
11
|
export const WORKSPACES = [
|
|
13
12
|
{
|
|
14
13
|
key: 'default',
|
|
@@ -64,8 +63,6 @@ function innerPreferencesReducer(draft, action) {
|
|
|
64
63
|
return setPreferences(draft, action);
|
|
65
64
|
case 'SET_PANELS_PREFERENCES':
|
|
66
65
|
return setPanelsPreferences(draft, action);
|
|
67
|
-
case 'RESET_PREFERENCES':
|
|
68
|
-
return resetPreferences(draft);
|
|
69
66
|
case 'SET_WORKSPACE':
|
|
70
67
|
return setWorkspace(draft, action);
|
|
71
68
|
case 'ADD_WORKSPACE':
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Draft } from 'immer';
|
|
2
|
+
import { Workspace } from '../../../workspaces/Workspace';
|
|
2
3
|
import { PreferencesState } from '../preferencesReducer';
|
|
3
|
-
export declare function getActiveWorkspace(draft: Draft<PreferencesState>):
|
|
4
|
+
export declare function getActiveWorkspace(draft: Draft<PreferencesState>): Required<Workspace>;
|
|
File without changes
|
package/lib/component/reducer/preferences/{utilites → utilities}/getPreferencesByWorkspace.d.ts
RENAMED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { NMRiumWorkspace } from '../../../NMRium';
|
|
2
|
-
|
|
2
|
+
import { Workspace } from '../../../workspaces/Workspace';
|
|
3
|
+
export declare function getPreferencesByWorkspace(workspace: NMRiumWorkspace): Workspace;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import lodashMerge from 'lodash/merge';
|
|
2
|
+
import Workspaces from '../../../workspaces';
|
|
3
|
+
import { workspaceDefaultProperties } from '../../../workspaces/workspaceDefaultProperties';
|
|
4
|
+
export function getPreferencesByWorkspace(workspace) {
|
|
5
|
+
return lodashMerge({}, workspaceDefaultProperties, Workspaces?.[workspace]);
|
|
6
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -14,6 +14,7 @@ export declare const LOAD_ZIP_FILE = "LOAD_ZIP_FILE";
|
|
|
14
14
|
export declare const LOAD_JDF_FILE = "LOAD_JDF_FILE";
|
|
15
15
|
export declare const ADD_PEAK = "ADD_PEAK";
|
|
16
16
|
export declare const ADD_PEAKS = "ADD_PEAKS";
|
|
17
|
+
export declare const CHANGE_PEAK_SHAPE = "CHANGE_PEAK_SHAPE";
|
|
17
18
|
export declare const DELETE_PEAK_NOTATION = "DELETE_PEAK_NOTATION";
|
|
18
19
|
export declare const SHIFT_SPECTRUM = "SHIFT_SPECTRUM";
|
|
19
20
|
export declare const SET_X_DOMAIN = "SET_X_DOMAIN";
|
|
@@ -53,13 +54,19 @@ export declare const ENABLE_FILTER = "ENABLE_FILTER";
|
|
|
53
54
|
export declare const DELETE_FILTER = "DELETE_FILTER";
|
|
54
55
|
export declare const DELETE_SPECTRA_FILTER = "DELETE_SPECTRA_FILTER";
|
|
55
56
|
export declare const APPLY_ZERO_FILLING_FILTER = "APPLY_ZERO_FILLING_FILTER";
|
|
57
|
+
export declare const APPLY_APODIZATION_FILTER = "APPLY_APODIZATION_FILTER";
|
|
56
58
|
export declare const APPLY_FFT_FILTER = "APPLY_FFT_FILTER";
|
|
57
59
|
export declare const CALCULATE_MANUAL_PHASE_CORRECTION_FILTER = "CALCULATE_MANUAL_PHASE_CORRECTION_FILTER";
|
|
60
|
+
export declare const CALCULATE_BASE_LINE_CORRECTION_FILTER = "CALCULATE_BASE_LINE_CORRECTION_FILTER";
|
|
61
|
+
export declare const CALCULATE_APODIZATION_FILTER = "CALCULATE_APODIZATION_FILTER`";
|
|
62
|
+
export declare const CALCULATE_ZERO_FILLING_FILTER = "CALCULATE_ZERO_FILLING_FILTER`";
|
|
58
63
|
export declare const APPLY_MANUAL_PHASE_CORRECTION_FILTER = "APPLY_MANUAL_PHASE_CORRECTION_FILTER";
|
|
59
64
|
export declare const APPLY_AUTO_PHASE_CORRECTION_FILTER = "APPLY_AUTO_PHASE_CORRECTION_FILTER";
|
|
60
65
|
export declare const APPLY_ABSOLUTE_FILTER = "APPLY_ABSOLUTE_FILTER";
|
|
66
|
+
export declare const DISABLE_FILTER_LIVE_PREVIEW = "DISABLE_FILTER_LIVE_PREVIEW`";
|
|
61
67
|
export declare const SET_VERTICAL_INDICATOR_X_POSITION = "SET_VERTICAL_INDICATOR_X_POSITION";
|
|
62
68
|
export declare const AUTO_PEAK_PICKING = "AUTO_PEAK_PICKING";
|
|
69
|
+
export declare const OPTIMIZE_PEAKS = "OPTIMIZE_PEAKS";
|
|
63
70
|
export declare const AUTO_RANGES_DETECTION = "AUTO_RANGES_DETECTION";
|
|
64
71
|
export declare const AUTO_ZONES_DETECTION = "AUTO_ZONES_DETECTION";
|
|
65
72
|
export declare const DELETE_RANGE = "DELETE_RANGE";
|
|
@@ -115,12 +122,14 @@ export declare const DELETE_EXCLUSION_ZONE = "DELETE_EXCLUSION_ZONE";
|
|
|
115
122
|
export declare const CHANGE_RANGES_SUM_FLAG = "CHANGE_RANGES_SUM_FLAG";
|
|
116
123
|
export declare const CHANGE_INTEGRALS_SUM_FLAG = "CHANGE_INTEGRALS_SUM_FLAG";
|
|
117
124
|
export declare const CHANGE_ZONES_NOISE_FACTOR = "CHANGE_ZONES_NOISE_FACTOR";
|
|
118
|
-
export declare const
|
|
125
|
+
export declare const UPDATE_RANGE = "UPDATE_RANGE";
|
|
119
126
|
export declare const SHOW_MULTIPLICTY_TREES = "SHOW_MULTIPLICTY_TREES";
|
|
120
127
|
export declare const SHOW_RANGES_INTEGRALS = "SHOW_RANGES_INTEGRALS";
|
|
121
128
|
export declare const AUTO_RANGES_SPECTRA_PICKING = "AUTO_RANGES_SPECTRA_PICKING";
|
|
122
129
|
export declare const AUTO_ZONES_SPECTRA_PICKING = "AUTO_ZONES_SPECTRA_PICKING";
|
|
123
130
|
export declare const GENERATE_SPECTRUM_FROM_PUBLICATION_STRING = "GENERATE_SPECTRUM_FROM_PUBLICATION_STRING";
|
|
124
131
|
export declare const RESURRECTING_SPECTRUM_FROM_RANGES = "RESURRECTING_SPECTRUM_FROM_RANGES";
|
|
132
|
+
export declare const RESURRECTING_SPECTRUM_FROM_JCAMP = "RESURRECTING_SPECTRUM_FROM_JCAMP";
|
|
125
133
|
export declare const SHOW_J_GRAPH = "SHOW_J_GRAPH";
|
|
126
134
|
export declare const SET_AUTOMATIC_ASSIGNMENTS = "SET_AUTOMATIC_ASSIGNMENTS";
|
|
135
|
+
export declare const TOGGLE_PEAKS_SHAPES = "TOGGLE_PEAKS_SHAPES";
|
|
@@ -8,6 +8,7 @@ export const LOAD_ZIP_FILE = 'LOAD_ZIP_FILE';
|
|
|
8
8
|
export const LOAD_JDF_FILE = 'LOAD_JDF_FILE';
|
|
9
9
|
export const ADD_PEAK = 'ADD_PEAK';
|
|
10
10
|
export const ADD_PEAKS = 'ADD_PEAKS';
|
|
11
|
+
export const CHANGE_PEAK_SHAPE = 'CHANGE_PEAK_SHAPE';
|
|
11
12
|
export const DELETE_PEAK_NOTATION = 'DELETE_PEAK_NOTATION';
|
|
12
13
|
export const SHIFT_SPECTRUM = 'SHIFT_SPECTRUM';
|
|
13
14
|
export const SET_X_DOMAIN = 'SET_X_DOMAIN';
|
|
@@ -47,13 +48,19 @@ export const ENABLE_FILTER = 'ENABLE_FILTER';
|
|
|
47
48
|
export const DELETE_FILTER = 'DELETE_FILTER';
|
|
48
49
|
export const DELETE_SPECTRA_FILTER = 'DELETE_SPECTRA_FILTER';
|
|
49
50
|
export const APPLY_ZERO_FILLING_FILTER = 'APPLY_ZERO_FILLING_FILTER';
|
|
51
|
+
export const APPLY_APODIZATION_FILTER = 'APPLY_APODIZATION_FILTER';
|
|
50
52
|
export const APPLY_FFT_FILTER = 'APPLY_FFT_FILTER';
|
|
51
53
|
export const CALCULATE_MANUAL_PHASE_CORRECTION_FILTER = 'CALCULATE_MANUAL_PHASE_CORRECTION_FILTER';
|
|
54
|
+
export const CALCULATE_BASE_LINE_CORRECTION_FILTER = 'CALCULATE_BASE_LINE_CORRECTION_FILTER';
|
|
55
|
+
export const CALCULATE_APODIZATION_FILTER = 'CALCULATE_APODIZATION_FILTER`';
|
|
56
|
+
export const CALCULATE_ZERO_FILLING_FILTER = 'CALCULATE_ZERO_FILLING_FILTER`';
|
|
52
57
|
export const APPLY_MANUAL_PHASE_CORRECTION_FILTER = 'APPLY_MANUAL_PHASE_CORRECTION_FILTER';
|
|
53
58
|
export const APPLY_AUTO_PHASE_CORRECTION_FILTER = 'APPLY_AUTO_PHASE_CORRECTION_FILTER';
|
|
54
59
|
export const APPLY_ABSOLUTE_FILTER = 'APPLY_ABSOLUTE_FILTER';
|
|
60
|
+
export const DISABLE_FILTER_LIVE_PREVIEW = 'DISABLE_FILTER_LIVE_PREVIEW`';
|
|
55
61
|
export const SET_VERTICAL_INDICATOR_X_POSITION = 'SET_VERTICAL_INDICATOR_X_POSITION';
|
|
56
62
|
export const AUTO_PEAK_PICKING = 'AUTO_PEAK_PICKING';
|
|
63
|
+
export const OPTIMIZE_PEAKS = 'OPTIMIZE_PEAKS';
|
|
57
64
|
export const AUTO_RANGES_DETECTION = 'AUTO_RANGES_DETECTION';
|
|
58
65
|
export const AUTO_ZONES_DETECTION = 'AUTO_ZONES_DETECTION';
|
|
59
66
|
export const DELETE_RANGE = 'DELETE_RANGE';
|
|
@@ -109,12 +116,14 @@ export const DELETE_EXCLUSION_ZONE = 'DELETE_EXCLUSION_ZONE';
|
|
|
109
116
|
export const CHANGE_RANGES_SUM_FLAG = 'CHANGE_RANGES_SUM_FLAG';
|
|
110
117
|
export const CHANGE_INTEGRALS_SUM_FLAG = 'CHANGE_INTEGRALS_SUM_FLAG';
|
|
111
118
|
export const CHANGE_ZONES_NOISE_FACTOR = 'CHANGE_ZONES_NOISE_FACTOR';
|
|
112
|
-
export const
|
|
119
|
+
export const UPDATE_RANGE = 'UPDATE_RANGE';
|
|
113
120
|
export const SHOW_MULTIPLICTY_TREES = 'SHOW_MULTIPLICTY_TREES';
|
|
114
121
|
export const SHOW_RANGES_INTEGRALS = 'SHOW_RANGES_INTEGRALS';
|
|
115
122
|
export const AUTO_RANGES_SPECTRA_PICKING = 'AUTO_RANGES_SPECTRA_PICKING';
|
|
116
123
|
export const AUTO_ZONES_SPECTRA_PICKING = 'AUTO_ZONES_SPECTRA_PICKING';
|
|
117
124
|
export const GENERATE_SPECTRUM_FROM_PUBLICATION_STRING = 'GENERATE_SPECTRUM_FROM_PUBLICATION_STRING';
|
|
118
125
|
export const RESURRECTING_SPECTRUM_FROM_RANGES = 'RESURRECTING_SPECTRUM_FROM_RANGES';
|
|
126
|
+
export const RESURRECTING_SPECTRUM_FROM_JCAMP = 'RESURRECTING_SPECTRUM_FROM_JCAMP';
|
|
119
127
|
export const SHOW_J_GRAPH = 'SHOW_J_GRAPH';
|
|
120
128
|
export const SET_AUTOMATIC_ASSIGNMENTS = 'SET_AUTOMATIC_ASSIGNMENTS';
|
|
129
|
+
export const TOGGLE_PEAKS_SHAPES = 'TOGGLE_PEAKS_SHAPES';
|
|
@@ -17,8 +17,8 @@ const allowTools = [
|
|
|
17
17
|
options.peakPicking.id,
|
|
18
18
|
options.integral.id,
|
|
19
19
|
options.phaseCorrection.id,
|
|
20
|
-
options.
|
|
21
|
-
options.
|
|
20
|
+
options.baselineCorrection.id,
|
|
21
|
+
options.rangePicking.id,
|
|
22
22
|
options.exclusionZones.id,
|
|
23
23
|
];
|
|
24
24
|
export default function BrushX() {
|
|
@@ -14,14 +14,15 @@ const styles = {
|
|
|
14
14
|
};
|
|
15
15
|
const allowTools = [
|
|
16
16
|
options.zoom.id,
|
|
17
|
+
options.apodization.id,
|
|
17
18
|
options.zeroFilling.id,
|
|
18
19
|
options.peakPicking.id,
|
|
19
20
|
options.integral.id,
|
|
20
21
|
options.phaseCorrection.id,
|
|
21
|
-
options.
|
|
22
|
-
options.
|
|
23
|
-
options.
|
|
24
|
-
options.
|
|
22
|
+
options.baselineCorrection.id,
|
|
23
|
+
options.rangePicking.id,
|
|
24
|
+
options.zonePicking.id,
|
|
25
|
+
options.slicing.id,
|
|
25
26
|
options.editRange.id,
|
|
26
27
|
options.multipleSpectraAnalysis.id,
|
|
27
28
|
options.exclusionZones.id,
|
|
@@ -15,12 +15,13 @@ const styles = {
|
|
|
15
15
|
};
|
|
16
16
|
const allowTools = [
|
|
17
17
|
options.zoom.id,
|
|
18
|
-
options.
|
|
19
|
-
options.
|
|
20
|
-
options.
|
|
21
|
-
options.
|
|
18
|
+
options.apodization.id,
|
|
19
|
+
options.equalizer.id,
|
|
20
|
+
options.baselineCorrection.id,
|
|
21
|
+
options.zonePicking.id,
|
|
22
|
+
options.slicing.id,
|
|
22
23
|
options.integral.id,
|
|
23
|
-
options.
|
|
24
|
+
options.rangePicking.id,
|
|
24
25
|
options.editRange.id,
|
|
25
26
|
options.multipleSpectraAnalysis.id,
|
|
26
27
|
options.exclusionZones.id,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateMoleculeExtended } from '../../../data/molecules/Molecule';
|
|
2
2
|
import { Ranges } from '../../../data/types/data1d';
|
|
3
3
|
import { Zones } from '../../../data/types/data2d';
|
|
4
4
|
import { DISPLAYER_MODE } from '../../reducer/core/Constants';
|
|
5
5
|
interface DraggableStructureProps {
|
|
6
6
|
zones: Zones;
|
|
7
7
|
ranges: Ranges;
|
|
8
|
-
molecule:
|
|
8
|
+
molecule: StateMoleculeExtended;
|
|
9
9
|
activeTab: string;
|
|
10
10
|
displayerMode: DISPLAYER_MODE;
|
|
11
11
|
index?: number;
|
|
@@ -9,7 +9,7 @@ import { useGlobal } from '../../context/GlobalContext';
|
|
|
9
9
|
import SVGDraggable from '../../elements/draggble/SVGDraggable';
|
|
10
10
|
import { useMoleculeEditor } from '../../modal/MoleculeStructureEditorModal';
|
|
11
11
|
import useAtomAssignment from '../../panels/MoleculesPanel/useAtomAssignment';
|
|
12
|
-
import { FLOAT_MOLECULE_OVER_SPECTRUM } from '../../reducer/types/Types';
|
|
12
|
+
import { FLOAT_MOLECULE_OVER_SPECTRUM, SET_MOLECULE, } from '../../reducer/types/Types';
|
|
13
13
|
import ActionsButton from './ActionsButton';
|
|
14
14
|
const style = css `
|
|
15
15
|
border: 1px solid transparent;
|
|
@@ -34,10 +34,19 @@ export function DraggableStructure(props) {
|
|
|
34
34
|
const floatMoleculeHandler = useCallback(() => {
|
|
35
35
|
dispatch({
|
|
36
36
|
type: FLOAT_MOLECULE_OVER_SPECTRUM,
|
|
37
|
-
payload: {
|
|
37
|
+
payload: { id: molecule.id },
|
|
38
38
|
});
|
|
39
39
|
}, [dispatch, molecule]);
|
|
40
40
|
return (_jsx(SVGDraggable, { width: 150, height: 100, initialPosition: { x: 100, y: 50 }, dragHandleClassName: "handle", parentElement: viewerRef, children: (width, height) => (_jsxs("foreignObject", { width: width, height: height + 30, "data-replace-float-structure": "true", css: style, onDoubleClick: () => openMoleculeEditor(molecule), children: [_jsx(ActionsButton, { onFloatBtnClick: floatMoleculeHandler }), _jsx(OCLnmr, { OCL: OCL, autoCrop: true, id: `molSVG${index || ''}`, width: width - 20, height: height, molfile: molecule.molfile, setSelectedAtom: handleOnClickAtom, atomHighlightColor: currentDiaIDsToHighlight?.length > 0 ? 'red' : '#FFD700', atomHighlightOpacity: 0.35, highlights: currentDiaIDsToHighlight?.length > 0
|
|
41
41
|
? currentDiaIDsToHighlight
|
|
42
|
-
: assignedDiaIDsMerged, setHoverAtom: handleOnAtomHover, setMolfile: () =>
|
|
42
|
+
: assignedDiaIDsMerged, setHoverAtom: handleOnAtomHover, setMolfile: (molfile) => {
|
|
43
|
+
dispatch({
|
|
44
|
+
type: SET_MOLECULE,
|
|
45
|
+
payload: {
|
|
46
|
+
molfile,
|
|
47
|
+
id: molecule.id,
|
|
48
|
+
label: molecule.label,
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
} })] })) }, molecule.id));
|
|
43
52
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { FloatingMolecules, StateMoleculeExtended } from '../../../data/molecules/Molecule';
|
|
3
3
|
import { Ranges } from '../../../data/types/data1d';
|
|
4
4
|
import { Zones } from '../../../data/types/data2d';
|
|
5
5
|
import { DISPLAYER_MODE } from '../../reducer/core/Constants';
|
|
6
6
|
interface FloatMoleculeStructuresProps {
|
|
7
7
|
zones: Zones;
|
|
8
8
|
ranges: Ranges;
|
|
9
|
-
molecules: Array<
|
|
9
|
+
molecules: Array<StateMoleculeExtended>;
|
|
10
|
+
floatingMolecules: Array<FloatingMolecules>;
|
|
10
11
|
activeTab: string;
|
|
11
12
|
displayerMode: DISPLAYER_MODE;
|
|
12
13
|
}
|
|
@@ -4,21 +4,28 @@ import { useChartData } from '../../context/ChartContext';
|
|
|
4
4
|
import useSpectrum from '../../hooks/useSpectrum';
|
|
5
5
|
import { DraggableStructure } from './DraggableStructure';
|
|
6
6
|
export function FloatMoleculeStructuresInner(props) {
|
|
7
|
-
const { zones, ranges, molecules, activeTab, displayerMode } = props;
|
|
8
|
-
if (!
|
|
7
|
+
const { zones, ranges, floatingMolecules, molecules, activeTab, displayerMode, } = props;
|
|
8
|
+
if (!floatingMolecules || floatingMolecules.length === 0)
|
|
9
9
|
return null;
|
|
10
|
-
return (_jsx("g", { children:
|
|
11
|
-
.filter((molecule) => molecule.
|
|
12
|
-
.map((molecule) => (_jsx(DraggableStructure, { ...{
|
|
10
|
+
return (_jsx("g", { children: floatingMolecules
|
|
11
|
+
.filter((molecule) => molecule.visible)
|
|
12
|
+
.map((molecule) => (_jsx(DraggableStructure, { ...{
|
|
13
|
+
zones,
|
|
14
|
+
ranges,
|
|
15
|
+
activeTab,
|
|
16
|
+
displayerMode,
|
|
17
|
+
molecule: molecules.find((m) => m.id === molecule.id),
|
|
18
|
+
} }, molecule.id))) }));
|
|
13
19
|
}
|
|
14
20
|
const MemoizedFloatMoleculeStructures = memo(FloatMoleculeStructuresInner);
|
|
15
21
|
const emptyData = { ranges: {}, zones: {} };
|
|
16
22
|
export default function FloatMoleculeStructures() {
|
|
17
|
-
const { molecules, displayerMode, activeTab } = useChartData();
|
|
23
|
+
const { molecules, displayerMode, activeTab, view: { floatingMolecules }, } = useChartData();
|
|
18
24
|
const data = useSpectrum(emptyData);
|
|
19
25
|
const ranges = data?.ranges || {};
|
|
20
26
|
const zones = data?.zones || {};
|
|
21
27
|
return (_jsx(MemoizedFloatMoleculeStructures, { ...{
|
|
28
|
+
floatingMolecules,
|
|
22
29
|
molecules,
|
|
23
30
|
displayerMode,
|
|
24
31
|
activeTab,
|
|
@@ -16,7 +16,6 @@ import useExport from '../hooks/useExport';
|
|
|
16
16
|
import useToolsFunctions from '../hooks/useToolsFunctions';
|
|
17
17
|
import ImportPublicationStringModal from '../modal/ImportPublicationStringModal';
|
|
18
18
|
import LoadJCAMPModal from '../modal/LoadJCAMPModal';
|
|
19
|
-
import { DISPLAYER_MODE } from '../reducer/core/Constants';
|
|
20
19
|
import { LOAD_JCAMP_FILE, SET_LOADING_FLAG } from '../reducer/types/Types';
|
|
21
20
|
const IMPORT_MENU = [
|
|
22
21
|
{
|
|
@@ -67,7 +66,7 @@ const EXPORT_MENU = [
|
|
|
67
66
|
label: 'Copy image to Clipboard ( Press Ctrl + C )',
|
|
68
67
|
},
|
|
69
68
|
];
|
|
70
|
-
function BasicToolBarInner({ info, verticalAlign,
|
|
69
|
+
function BasicToolBarInner({ info, verticalAlign, ftCounter, fidCounter, activeSpectrum, }) {
|
|
71
70
|
const dispatch = useDispatch();
|
|
72
71
|
const alert = useAlert();
|
|
73
72
|
const modal = useModal();
|
|
@@ -112,7 +111,6 @@ function BasicToolBarInner({ info, verticalAlign, displayerMode, ftCounter, fidC
|
|
|
112
111
|
openImportPublicationStringModal();
|
|
113
112
|
break;
|
|
114
113
|
default:
|
|
115
|
-
return;
|
|
116
114
|
}
|
|
117
115
|
}, [openLoader, importJCAMPFile, openImportPublicationStringModal]);
|
|
118
116
|
const exportHandler = useCallback(({ id }) => {
|
|
@@ -152,13 +150,9 @@ function BasicToolBarInner({ info, verticalAlign, displayerMode, ftCounter, fidC
|
|
|
152
150
|
}, items: importMenu })), isButtonVisible('exportAs') && (_jsx(ToolbarMenu, { component: _jsx(FaFileExport, {}), toolTip: "Export As", onClick: (element) => {
|
|
153
151
|
exportHandler(element);
|
|
154
152
|
return null;
|
|
155
|
-
}, items: EXPORT_MENU })),
|
|
156
|
-
isButtonVisible('spectraStackAlignments') &&
|
|
153
|
+
}, items: EXPORT_MENU })), isButtonVisible('spectraStackAlignments') &&
|
|
157
154
|
ftCounter > 1 &&
|
|
158
|
-
(info?.isFt || !activeSpectrum) && (_jsx(Toolbar.Item, { id: "spectra-alignment", className: "cheminfo", title: "Spectra alignment ( Press s )", onClick: changeDisplayViewModeHandler, children: verticalAlign.align === 'stack' ? (_jsx(SvgNmrOverlay3Aligned, {})) : (_jsx(SvgNmrOverlay3, {})) })),
|
|
159
|
-
isButtonVisible('realImaginary') &&
|
|
160
|
-
info.isComplex && (_jsx(Toolbar.Item, { id: "display", title: isRealSpectrumShown ? 'Display Real ' : 'Display Imaginary', onClick: changeSpectrumViewHandler, className: "cheminfo", children: _jsx(SvgNmrRealImag, {}) })), displayerMode === DISPLAYER_MODE.DM_1D &&
|
|
161
|
-
isButtonVisible('spectraCenterAlignments') &&
|
|
155
|
+
(info?.isFt || !activeSpectrum) && (_jsx(Toolbar.Item, { id: "spectra-alignment", className: "cheminfo", title: "Spectra alignment ( Press s )", onClick: changeDisplayViewModeHandler, children: verticalAlign.align === 'stack' ? (_jsx(SvgNmrOverlay3Aligned, {})) : (_jsx(SvgNmrOverlay3, {})) })), isButtonVisible('realImaginary') && info.isComplex && (_jsx(Toolbar.Item, { id: "display", title: isRealSpectrumShown ? 'Display Real ' : 'Display Imaginary', onClick: changeSpectrumViewHandler, className: "cheminfo", children: _jsx(SvgNmrRealImag, {}) })), isButtonVisible('spectraCenterAlignments') &&
|
|
162
156
|
(ftCounter > 0 || fidCounter > 0) && (_jsx(Toolbar.Item, { id: "baseline-position", title: verticalAlign.align === 'bottom'
|
|
163
157
|
? 'Baseline Center ( Press c )'
|
|
164
158
|
: 'Baseline Bottom ( Press c )', onClick: alignSpectrumsVerticallyHandler, className: "cheminfo", children: _jsx("div", { style: { fontSize: 24 }, children: verticalAlign.align === 'bottom' ? (_jsx(SvgNmrAlignCenter, {})) : (_jsx(SvgNmrAlignBottom, {})) }) }))] }));
|