nmrium 0.29.0 → 0.31.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 +49 -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/FooterBanner.js +3 -1
- package/lib/component/1d/IntegralResizable.js +5 -4
- package/lib/component/1d/IntegralsSeries.js +3 -1
- package/lib/component/1d/LinesSeries.js +7 -5
- package/lib/component/1d/SpectraTracker.js +1 -1
- package/lib/component/1d/Viewer1D.js +10 -13
- package/lib/component/1d/database/DatabaseElements.js +2 -2
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +3 -3
- package/lib/component/1d/jCouplingGraph/JGraph.js +5 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js +16 -14
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +6 -5
- package/lib/component/1d/{PeakAnnotation.d.ts → peaks/PeakAnnotation.d.ts} +1 -2
- package/lib/component/1d/{PeakAnnotation.js → peaks/PeakAnnotation.js} +8 -9
- package/lib/component/1d/{PeakAnnotations.d.ts → peaks/PeakAnnotations.d.ts} +0 -0
- package/lib/component/1d/peaks/PeakAnnotations.js +28 -0
- package/lib/component/1d/peaks/PeaksShapes.d.ts +3 -0
- package/lib/component/1d/peaks/PeaksShapes.js +37 -0
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +13 -0
- package/lib/component/1d/peaks/usePeakShapesPath.js +49 -0
- package/lib/component/1d/ranges/Range.js +4 -4
- package/lib/component/1d/ranges/Ranges.js +8 -2
- package/lib/component/1d/tool/PeakPointer.js +3 -1
- package/lib/component/1d/tool/XLabelPointer.js +3 -1
- package/lib/component/2d/Contours.js +3 -1
- package/lib/component/2d/FooterBanner.js +5 -3
- package/lib/component/2d/Viewer2D.js +6 -6
- package/lib/component/2d/XAxis.js +2 -2
- package/lib/component/2d/YAxis.js +2 -2
- package/lib/component/2d/tools/XYLabelPointer.js +3 -1
- package/lib/component/2d/tools/slicing/SlicingView.js +3 -1
- package/lib/component/2d/zones/IndicationLines.js +1 -1
- 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/2d/zones/Zones.js +14 -19
- package/lib/component/EventsTrackers/KeysListenerTracker.js +91 -52
- package/lib/component/NMRium.d.ts +2 -0
- package/lib/component/NMRium.js +14 -3
- 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/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 +5 -5
- 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/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/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 +2 -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/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 +3 -2
- package/lib/component/elements/accordion/AccordionItem.js +2 -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/popup/Modal/ConfirmDialog.js +1 -1
- package/lib/component/elements/popup/Modal/Provider.d.ts +3 -3
- package/lib/component/elements/popup/Modal/Provider.js +8 -11
- 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/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 +84 -52
- package/lib/component/header/Header.js +5 -2
- 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 +52 -47
- 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 +10 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +31 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.js +3 -1
- package/lib/component/hooks/useExport.d.ts +0 -1
- package/lib/component/hooks/useExport.js +1 -17
- package/lib/component/hooks/useFilter.d.ts +1 -0
- package/lib/component/hooks/useFilter.js +7 -0
- package/lib/component/hooks/useIntegralPath.js +5 -2
- package/lib/component/hooks/useNucleus.js +4 -4
- package/lib/component/hooks/useSpectraPerNucleus.js +1 -1
- package/lib/component/hooks/useSpectrum.js +3 -1
- package/lib/component/hooks/useToolsFunctions.js +1 -1
- package/lib/component/loader/DropZone.js +8 -148
- 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 +2 -3
- 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 +2 -2
- package/lib/component/modal/editRange/EditRangeModal.js +3 -3
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +4 -9
- package/lib/component/modal/setting/DatabasesTabContent.js +2 -2
- package/lib/component/modal/setting/DisplayTabContent.js +1 -1
- package/lib/component/modal/setting/FormattingTabContent.js +2 -2
- package/lib/component/modal/setting/GeneralSettings.js +1 -1
- package/lib/component/modal/setting/ToolsTabContent.js +17 -13
- package/lib/component/modal/setting/WorkspaceItem.d.ts +2 -2
- package/lib/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +1 -1
- 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 +13 -10
- 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 +12 -4
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/Panels.js +3 -3
- 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.d.ts +2 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +10 -9
- package/lib/component/panels/RangesPanel/RangesPanel.js +7 -3
- 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/hooks/useMapRanges.js +3 -3
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.js +3 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -1
- 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 +4 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +4 -4
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +2 -3
- package/lib/component/panels/SummaryPanel/utilities/useInView.js +3 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +19 -10
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -13
- package/lib/component/panels/databasePanel/DatabaseTable.js +3 -3
- 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 -12
- 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 +5 -0
- package/lib/component/reducer/Reducer.d.ts +141 -51
- package/lib/component/reducer/Reducer.js +69 -45
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -1
- package/lib/component/reducer/actions/DomainActions.js +11 -9
- package/lib/component/reducer/actions/FiltersActions.d.ts +13 -7
- package/lib/component/reducer/actions/FiltersActions.js +326 -204
- package/lib/component/reducer/actions/IntegralsActions.js +15 -10
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -5
- package/lib/component/reducer/actions/LoadActions.js +19 -34
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -1
- package/lib/component/reducer/actions/MoleculeActions.js +48 -19
- package/lib/component/reducer/actions/PeaksActions.d.ts +4 -1
- package/lib/component/reducer/actions/PeaksActions.js +52 -13
- package/lib/component/reducer/actions/PreferencesActions.js +8 -10
- package/lib/component/reducer/actions/RangesActions.d.ts +3 -3
- package/lib/component/reducer/actions/RangesActions.js +87 -29
- package/lib/component/reducer/actions/SpectraAnalysisAction.js +5 -5
- package/lib/component/reducer/actions/SpectrumsActions.js +14 -11
- package/lib/component/reducer/actions/ToolsActions.js +47 -95
- package/lib/component/reducer/actions/ZonesActions.d.ts +4 -1
- package/lib/component/reducer/actions/ZonesActions.js +68 -17
- package/lib/component/reducer/helper/Zoom1DManager.js +2 -1
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.d.ts +3 -0
- package/lib/component/reducer/helper/getActiveSpectrumOrFail.js +6 -0
- package/lib/component/reducer/helper/getSpectrum.js +3 -2
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +7 -0
- package/lib/component/reducer/helper/getStrongestPeak.js +15 -0
- package/lib/component/reducer/preferences/actions/addWorkspace.js +2 -2
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +3 -0
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +23 -15
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib/component/reducer/types/Types.d.ts +12 -0
- package/lib/component/reducer/types/Types.js +12 -0
- package/lib/component/tool/BrushX.js +1 -1
- package/lib/component/tool/BrushXY.js +4 -3
- package/lib/component/tool/CrossLinePointer.js +5 -4
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.d.ts +8 -2
- package/lib/component/tool/FloatMoleculeStructures/DraggableStructure.js +22 -7
- package/lib/component/tool/FloatMoleculeStructures/index.d.ts +3 -2
- package/lib/component/tool/FloatMoleculeStructures/index.js +19 -6
- package/lib/component/toolbar/BasicToolBar.js +7 -14
- package/lib/component/toolbar/FunctionToolBar.js +13 -23
- package/lib/component/toolbar/ToolTypes.d.ts +7 -1
- package/lib/component/toolbar/ToolTypes.js +119 -9
- package/lib/component/utility/assert.d.ts +1 -0
- package/lib/component/utility/assert.js +5 -0
- package/lib/component/workspaces/Workspace.d.ts +4 -1
- package/lib/component/workspaces/basic.js +12 -11
- package/lib/component/workspaces/embedded.js +14 -13
- package/lib/component/workspaces/exercise.js +10 -6
- package/lib/component/workspaces/prediction.js +14 -13
- package/lib/component/workspaces/process1D.js +20 -19
- package/lib/component/workspaces/workspaceDefaultProperties.js +14 -15
- 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 +3 -3
- package/lib/data/PredictionManager.d.ts +0 -1
- package/lib/data/PredictionManager.js +15 -15
- package/lib/data/SpectraManager.d.ts +2 -5
- package/lib/data/SpectraManager.js +4 -95
- package/lib/data/constants/SignalsKinds.d.ts +0 -1
- package/lib/data/constants/SignalsKinds.js +0 -8
- package/lib/data/data1d/Data1DManager.js +5 -5
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +5 -5
- package/lib/data/data1d/Spectrum1D/SumManager.js +18 -12
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +2 -2
- 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 +3 -3
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -2
- 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.js +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +2 -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/mapRanges.js +3 -3
- package/lib/data/data1d/database.js +4 -6
- package/lib/data/data1d/filter1d/apodization.d.ts +25 -0
- package/lib/data/data1d/filter1d/apodization.js +63 -0
- package/lib/data/data1d/filter1d/baselineCorrection.d.ts +24 -7
- package/lib/data/data1d/filter1d/baselineCorrection.js +10 -17
- package/lib/data/data1d/filter1d/fft.js +11 -0
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.d.ts +2 -0
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +35 -0
- 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 +3 -2
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +3 -3
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +3 -3
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +3 -3
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -1
- package/lib/data/molecules/Molecule.d.ts +20 -6
- package/lib/data/molecules/Molecule.js +5 -8
- 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/generateNumbersPowerOfX.d.ts +0 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js +0 -1
- package/lib/data/utilities/isInRange.d.ts +7 -0
- package/lib/data/utilities/isInRange.js +4 -0
- package/lib/types/NMRiumDataReturn.d.ts +2 -2
- package/lib/types/NMRiumGeneralPreferences.d.ts +0 -2
- package/lib/types/NMRiumToolBarPreferences.d.ts +14 -13
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/ApodizationLine.js +77 -0
- package/lib-cjs/component/1d/Chart1D.js +4 -2
- package/lib-cjs/component/1d/ExclusionZoneAnnotation.js +15 -8
- package/lib-cjs/component/1d/FooterBanner.js +3 -1
- package/lib-cjs/component/1d/IntegralResizable.js +4 -3
- package/lib-cjs/component/1d/IntegralsSeries.js +3 -1
- package/lib-cjs/component/1d/LinesSeries.js +6 -4
- package/lib-cjs/component/1d/SpectraTracker.js +1 -1
- package/lib-cjs/component/1d/Viewer1D.js +10 -13
- package/lib-cjs/component/1d/database/DatabaseElements.js +1 -1
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +2 -2
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib-cjs/component/1d/jCouplingGraph/JGraph.js +5 -1
- package/lib-cjs/component/1d/multiAnalysis/AnalysisRange.js +15 -13
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +4 -3
- package/lib-cjs/component/1d/{PeakAnnotation.js → peaks/PeakAnnotation.js} +8 -9
- package/lib-cjs/component/1d/peaks/PeakAnnotations.js +33 -0
- package/lib-cjs/component/1d/peaks/PeaksShapes.js +42 -0
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +53 -0
- package/lib-cjs/component/1d/ranges/Range.js +3 -3
- package/lib-cjs/component/1d/ranges/Ranges.js +7 -1
- package/lib-cjs/component/1d/tool/PeakPointer.js +3 -1
- package/lib-cjs/component/1d/tool/XLabelPointer.js +3 -1
- package/lib-cjs/component/2d/Contours.js +3 -1
- package/lib-cjs/component/2d/FooterBanner.js +5 -3
- package/lib-cjs/component/2d/Viewer2D.js +6 -6
- package/lib-cjs/component/2d/XAxis.js +2 -2
- package/lib-cjs/component/2d/YAxis.js +2 -2
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +3 -1
- package/lib-cjs/component/2d/tools/slicing/SlicingView.js +3 -1
- package/lib-cjs/component/2d/zones/IndicationLines.js +1 -1
- package/lib-cjs/component/2d/zones/Signal.js +3 -3
- package/lib-cjs/component/2d/zones/Zone.js +3 -3
- package/lib-cjs/component/2d/zones/Zones.js +13 -18
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +89 -50
- package/lib-cjs/component/NMRium.js +14 -3
- 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 +5 -5
- package/lib-cjs/component/elements/ButtonToolTip.js +1 -1
- package/lib-cjs/component/elements/CheckBox.js +3 -5
- package/lib-cjs/component/elements/Input.js +1 -1
- package/lib-cjs/component/elements/Label.js +3 -3
- 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 +1 -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/Table/Table.js +2 -2
- package/lib-cjs/component/elements/ToggleButton.js +3 -2
- package/lib-cjs/component/elements/accordion/AccordionItem.js +2 -2
- package/lib-cjs/component/elements/formik/FormikOnChange.js +10 -4
- package/lib-cjs/component/elements/popup/Modal/ConfirmDialog.js +1 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +8 -11
- package/lib-cjs/component/elements/resizer/DivResizer.js +3 -3
- package/lib-cjs/component/elements/resizer/SVGResizer.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 +82 -49
- package/lib-cjs/component/header/Header.js +5 -2
- 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 +73 -45
- 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 +31 -1
- package/lib-cjs/component/hooks/useDatumWithSpectraStatistics.js +3 -1
- package/lib-cjs/component/hooks/useExport.js +0 -16
- package/lib-cjs/component/hooks/useFilter.js +14 -0
- package/lib-cjs/component/hooks/useIntegralPath.js +5 -2
- package/lib-cjs/component/hooks/useNucleus.js +4 -4
- package/lib-cjs/component/hooks/useSpectraPerNucleus.js +1 -1
- package/lib-cjs/component/hooks/useSpectrum.js +3 -1
- package/lib-cjs/component/hooks/useToolsFunctions.js +1 -1
- package/lib-cjs/component/loader/DropZone.js +7 -150
- 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 +2 -3
- 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 +2 -2
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +3 -3
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +3 -8
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +1 -1
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +2 -2
- package/lib-cjs/component/modal/setting/GeneralSettings.js +1 -1
- package/lib-cjs/component/modal/setting/ToolsTabContent.js +17 -13
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +2 -2
- package/lib-cjs/component/panels/IntegralsPanel/IntegralPanel.js +1 -1
- 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 +12 -9
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +11 -3
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib-cjs/component/panels/Panels.js +3 -3
- 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 +10 -9
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +7 -3
- 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/useMapRanges.js +3 -6
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPanelHeader.js +3 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +1 -1
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +3 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/ShowHideMarkersButton.js +4 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +4 -4
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +1 -2
- package/lib-cjs/component/panels/SummaryPanel/SummaryPanel.js +2 -3
- package/lib-cjs/component/panels/SummaryPanel/utilities/useInView.js +3 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ActionsColumn.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/ZonesPanel.js +18 -9
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +5 -13
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +2 -2
- 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 -12
- 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 +5 -0
- package/lib-cjs/component/reducer/Reducer.js +72 -50
- package/lib-cjs/component/reducer/actions/DomainActions.js +11 -9
- package/lib-cjs/component/reducer/actions/FiltersActions.js +332 -205
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +15 -10
- package/lib-cjs/component/reducer/actions/LoadActions.js +18 -36
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +49 -19
- package/lib-cjs/component/reducer/actions/PeaksActions.js +54 -12
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +8 -10
- package/lib-cjs/component/reducer/actions/RangesActions.js +87 -29
- package/lib-cjs/component/reducer/actions/SpectraAnalysisAction.js +5 -5
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +14 -11
- package/lib-cjs/component/reducer/actions/ToolsActions.js +46 -94
- package/lib-cjs/component/reducer/actions/ZonesActions.js +71 -17
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +2 -1
- package/lib-cjs/component/reducer/helper/getActiveSpectrumOrFail.js +10 -0
- package/lib-cjs/component/reducer/helper/getSpectrum.js +3 -2
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +19 -0
- package/lib-cjs/component/reducer/preferences/actions/addWorkspace.js +2 -5
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +3 -0
- package/lib-cjs/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib-cjs/component/reducer/types/Types.js +15 -3
- package/lib-cjs/component/tool/BrushX.js +1 -1
- package/lib-cjs/component/tool/BrushXY.js +4 -3
- package/lib-cjs/component/tool/CrossLinePointer.js +5 -4
- package/lib-cjs/component/tool/FloatMoleculeStructures/DraggableStructure.js +21 -6
- package/lib-cjs/component/tool/FloatMoleculeStructures/index.js +19 -6
- package/lib-cjs/component/toolbar/BasicToolBar.js +7 -14
- package/lib-cjs/component/toolbar/FunctionToolBar.js +12 -22
- package/lib-cjs/component/toolbar/ToolTypes.js +119 -9
- package/lib-cjs/component/utility/assert.js +9 -0
- package/lib-cjs/component/workspaces/basic.js +12 -11
- package/lib-cjs/component/workspaces/embedded.js +14 -13
- package/lib-cjs/component/workspaces/exercise.js +10 -6
- package/lib-cjs/component/workspaces/prediction.js +14 -13
- package/lib-cjs/component/workspaces/process1D.js +20 -19
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +14 -15
- package/lib-cjs/constants.js +1 -1
- package/lib-cjs/data/Filters.js +3 -3
- package/lib-cjs/data/FiltersManager.js +3 -6
- package/lib-cjs/data/PredictionManager.js +15 -15
- package/lib-cjs/data/SpectraManager.js +5 -100
- package/lib-cjs/data/constants/SignalsKinds.js +0 -8
- package/lib-cjs/data/data1d/Data1DManager.js +5 -5
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +18 -12
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +2 -5
- package/lib-cjs/data/data1d/Spectrum1D/index.js +3 -1
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +5 -2
- 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 +3 -3
- package/lib-cjs/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +2 -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/mapRanges.js +3 -6
- package/lib-cjs/data/data1d/database.js +4 -6
- package/lib-cjs/data/data1d/filter1d/apodization.js +70 -0
- package/lib-cjs/data/data1d/filter1d/baselineCorrection.js +11 -18
- package/lib-cjs/data/data1d/filter1d/fft.js +11 -0
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +39 -0
- package/lib-cjs/data/data1d/filter1d/zeroFillingAndApodization.js +30 -0
- package/lib-cjs/data/data2d/Processing2D.js +3 -2
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +3 -6
- 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/molecules/Molecule.js +5 -8
- package/lib-cjs/data/molecules/MoleculeManager.js +5 -5
- package/lib-cjs/data/utilities/generateNumbersPowerOfX.js +0 -1
- package/lib-cjs/data/utilities/isInRange.js +7 -0
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +36 -35
- package/lib/component/1d/PeakAnnotations.js +0 -41
- package/lib/component/utility/nmredataToNmrium.d.ts +0 -4
- package/lib/component/utility/nmredataToNmrium.js +0 -66
- package/lib/component/utility/nmriumToNmredata.d.ts +0 -2
- package/lib/component/utility/nmriumToNmredata.js +0 -80
- package/lib/component/utility/util/nmredata/addRanges.d.ts +0 -1
- package/lib/component/utility/util/nmredata/addRanges.js +0 -52
- package/lib/component/utility/util/nmredata/addSource.d.ts +0 -6
- package/lib/component/utility/util/nmredata/addSource.js +0 -54
- package/lib/component/utility/util/nmredata/addZones.d.ts +0 -1
- package/lib/component/utility/util/nmredata/addZones.js +0 -41
- package/lib/component/utility/util/nmredata/flat2DSignals.d.ts +0 -1
- package/lib/component/utility/util/nmredata/flat2DSignals.js +0 -7
- package/lib/component/utility/util/nmredata/get1DSignals.d.ts +0 -10
- package/lib/component/utility/util/nmredata/get1DSignals.js +0 -96
- package/lib/component/utility/util/nmredata/get2DSignals.d.ts +0 -8
- package/lib/component/utility/util/nmredata/get2DSignals.js +0 -59
- package/lib/component/utility/util/nmredata/getCouplingObserved.d.ts +0 -1
- package/lib/component/utility/util/nmredata/getCouplingObserved.js +0 -11
- package/lib/component/utility/util/nmredata/getLabels.d.ts +0 -9
- package/lib/component/utility/util/nmredata/getLabels.js +0 -66
- package/lib/component/utility/util/nmredata/getToFix.d.ts +0 -1
- package/lib/component/utility/util/nmredata/getToFix.js +0 -19
- package/lib/data/data1d/filter1d/lineBroadening.d.ts +0 -14
- package/lib/data/data1d/filter1d/lineBroadening.js +0 -57
- package/lib/data/migration/MigrationManager.d.ts +0 -2
- package/lib/data/migration/MigrationManager.js +0 -17
- package/lib/data/migration/changeKeys.d.ts +0 -1
- package/lib/data/migration/changeKeys.js +0 -9
- package/lib/data/migration/migrateToVersion1.d.ts +0 -11
- package/lib/data/migration/migrateToVersion1.js +0 -32
- package/lib/data/migration/migrateToVersion2.d.ts +0 -1
- package/lib/data/migration/migrateToVersion2.js +0 -111
- 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 -46
- package/lib-cjs/component/utility/nmredataToNmrium.js +0 -73
- package/lib-cjs/component/utility/nmriumToNmredata.js +0 -87
- package/lib-cjs/component/utility/util/nmredata/addRanges.js +0 -56
- package/lib-cjs/component/utility/util/nmredata/addSource.js +0 -61
- package/lib-cjs/component/utility/util/nmredata/addZones.js +0 -48
- package/lib-cjs/component/utility/util/nmredata/flat2DSignals.js +0 -11
- package/lib-cjs/component/utility/util/nmredata/get1DSignals.js +0 -100
- package/lib-cjs/component/utility/util/nmredata/get2DSignals.js +0 -63
- package/lib-cjs/component/utility/util/nmredata/getCouplingObserved.js +0 -15
- package/lib-cjs/component/utility/util/nmredata/getLabels.js +0 -70
- package/lib-cjs/component/utility/util/nmredata/getToFix.js +0 -23
- package/lib-cjs/data/data1d/filter1d/lineBroadening.js +0 -63
- package/lib-cjs/data/migration/MigrationManager.js +0 -24
- package/lib-cjs/data/migration/changeKeys.js +0 -13
- package/lib-cjs/data/migration/migrateToVersion1.js +0 -35
- package/lib-cjs/data/migration/migrateToVersion2.js +0 -114
- package/lib-cjs/data/utilities/generateID.js +0 -12
|
@@ -39,10 +39,10 @@ const ToggleButtonGroup_1 = __importDefault(require("../elements/toggle/ToggleBu
|
|
|
39
39
|
const useCheckToolsVisibility_1 = require("../hooks/useCheckToolsVisibility");
|
|
40
40
|
const useDatumWithSpectraStatistics_1 = __importDefault(require("../hooks/useDatumWithSpectraStatistics"));
|
|
41
41
|
const useToolsFunctions_1 = __importDefault(require("../hooks/useToolsFunctions"));
|
|
42
|
-
const
|
|
42
|
+
const Reducer_1 = require("../reducer/Reducer");
|
|
43
43
|
const Types_1 = require("../reducer/types/Types");
|
|
44
44
|
const ToolTypes_1 = require("./ToolTypes");
|
|
45
|
-
function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum,
|
|
45
|
+
function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum, ftCounter, }) {
|
|
46
46
|
const [option, setOption] = (0, react_1.useState)('');
|
|
47
47
|
const isButtonVisible = (0, useCheckToolsVisibility_1.useCheckToolsVisibility)();
|
|
48
48
|
const dispatch = (0, DispatchContext_1.useDispatch)();
|
|
@@ -61,32 +61,23 @@ function FunctionToolBarInner({ defaultValue, activeSpectrum, info, datum, displ
|
|
|
61
61
|
});
|
|
62
62
|
dispatch({ type: Types_1.SET_SELECTED_FILTER, selectedFilter: null });
|
|
63
63
|
}, [dispatch]);
|
|
64
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ToggleButtonGroup_1.default, { value: option, onChange: handleChange, children: [isButtonVisible('
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
isButtonVisible('
|
|
68
|
-
isButtonVisible('rangePickingTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.rangesPicking.id, isVisible: !!(activeSpectrum && !info?.isFid), title: `${ToolTypes_1.options.rangesPicking.label} ( Press r )`, id: "ranges-pick", children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrRangePicking, {}) }, ToolTypes_1.options.rangesPicking.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
69
|
-
isButtonVisible('multipleSpectraAnalysisTool') &&
|
|
70
|
-
ftCounter > 1 &&
|
|
71
|
-
mode === 'RTL' && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.multipleSpectraAnalysis.id, id: "multipleSpectraAnalysis", title: ToolTypes_1.options.multipleSpectraAnalysis.label, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrMultipleAnalysis, {}) }, ToolTypes_1.options.multipleSpectraAnalysis.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
72
|
-
isButtonVisible('zeroFillingTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.zeroFilling.id, isVisible: Filters.zeroFilling.isApplicable({ info }), id: "zeroFilling", title: ToolTypes_1.options.zeroFilling.label, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrZeroFilling, {}) }, ToolTypes_1.options.zeroFilling.id)), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
73
|
-
isButtonVisible('phaseCorrectionTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.phaseCorrection.id, id: "phaseCorrection", title: `${ToolTypes_1.options.phaseCorrection.label} ( Press a )`, isVisible: !!(activeSpectrum &&
|
|
64
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ToggleButtonGroup_1.default, { value: option, onChange: handleChange, children: [isButtonVisible('zoom') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.zoom.id, id: ToolTypes_1.options.zoom.id, title: `${ToolTypes_1.options.zoom.label} ( Press z )`, children: (0, jsx_runtime_1.jsx)("div", { style: { fontSize: 14 }, children: (0, jsx_runtime_1.jsx)(fa_1.FaSearchPlus, {}) }) }, ToolTypes_1.options.zoom.id)), isButtonVisible('zoomOut') && ((0, jsx_runtime_1.jsx)(analysis_ui_components_1.Toolbar.Item, { id: "zoom-out", onClick: handleFullZoomOut, title: "Horizontal zoom out ( Press f ), Horizontal and Vertical zoom out, double click ( Press ff )", children: (0, jsx_runtime_1.jsx)("div", { style: { fontSize: 14 }, children: (0, jsx_runtime_1.jsx)(fa_1.FaExpand, {}) }) })), isButtonVisible('peakPicking') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.peakPicking.id, title: `${ToolTypes_1.options.peakPicking.label} ( Press p )`, isVisible: !!(activeSpectrum && !info?.isFid), id: ToolTypes_1.options.peakPicking.id, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrPeakPicking, {}) }, ToolTypes_1.options.peakPicking.id)), isButtonVisible('integral') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.integral.id, isVisible: !!(activeSpectrum && !info?.isFid), id: ToolTypes_1.options.integral.id, title: `${ToolTypes_1.options.integral.label} ( Press i )`, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrIntegrate, {}) }, ToolTypes_1.options.integral.id)), isButtonVisible('zonePicking') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.zonePicking.id, id: ToolTypes_1.options.zonePicking.id, isVisible: !!(activeSpectrum && !info?.isFid), title: `${ToolTypes_1.options.zonePicking.label} ( Press r )`, children: (0, jsx_runtime_1.jsx)(fa_1.FaDiceFour, {}) }, ToolTypes_1.options.zonePicking.id)), isButtonVisible('slicing') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.slicing.id, isVisible: !!(activeSpectrum && !info?.isFid), id: ToolTypes_1.options.slicing.id, title: `${ToolTypes_1.options.slicing.label}`, children: (0, jsx_runtime_1.jsx)("p", { children: "Slic" }) }, ToolTypes_1.options.slicing.id)), isButtonVisible('rangePicking') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.rangePicking.id, isVisible: !!(activeSpectrum && !info?.isFid), title: `${ToolTypes_1.options.rangePicking.label} ( Press r )`, id: ToolTypes_1.options.rangePicking.id, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrRangePicking, {}) }, ToolTypes_1.options.rangePicking.id)), isButtonVisible('multipleSpectraAnalysis', {
|
|
65
|
+
checkSpectrumType: false,
|
|
66
|
+
}) &&
|
|
67
|
+
ftCounter > 1 && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.multipleSpectraAnalysis.id, id: ToolTypes_1.options.multipleSpectraAnalysis.id, title: ToolTypes_1.options.multipleSpectraAnalysis.label, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrMultipleAnalysis, {}) }, ToolTypes_1.options.multipleSpectraAnalysis.id)), isButtonVisible('apodization') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.apodization.id, isVisible: Filters.apodization.isApplicable({ info }), id: ToolTypes_1.options.apodization.id, title: ToolTypes_1.options.apodization.label, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrApodization, {}) }, ToolTypes_1.options.apodization.id)), isButtonVisible('zeroFilling') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.zeroFilling.id, isVisible: Filters.zeroFilling.isApplicable({ info }), id: ToolTypes_1.options.zeroFilling.id, title: ToolTypes_1.options.zeroFilling.label, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrZeroFilling, {}) }, ToolTypes_1.options.zeroFilling.id)), isButtonVisible('phaseCorrection') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.phaseCorrection.id, id: ToolTypes_1.options.phaseCorrection.id, title: `${ToolTypes_1.options.phaseCorrection.label} ( Press a )`, isVisible: !!(activeSpectrum &&
|
|
74
68
|
info &&
|
|
75
69
|
Filters.phaseCorrection.isApplicable({ info }) &&
|
|
76
|
-
datum.im), children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrPhaseCorrection, {}) }, ToolTypes_1.options.phaseCorrection.id)),
|
|
77
|
-
isButtonVisible('baselineCorrectionTool') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.baselineCorrection.id, id: "baselineCorrection", title: `${ToolTypes_1.options.baselineCorrection.label} ( Press b )`, isVisible: !!(activeSpectrum &&
|
|
70
|
+
datum.im), children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrPhaseCorrection, {}) }, ToolTypes_1.options.phaseCorrection.id)), isButtonVisible('baselineCorrection') && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.baselineCorrection.id, id: ToolTypes_1.options.baselineCorrection.id, title: `${ToolTypes_1.options.baselineCorrection.label} ( Press b )`, isVisible: !!(activeSpectrum &&
|
|
78
71
|
info &&
|
|
79
|
-
Filters.baselineCorrection.isApplicable({ info })), children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrBaselineCorrection, {}) }, ToolTypes_1.options.baselineCorrection.id)),
|
|
80
|
-
isButtonVisible('
|
|
81
|
-
!info?.isFid &&
|
|
82
|
-
ftCounter > 0 && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.exclusionZones.id, title: `${ToolTypes_1.options.exclusionZones.label} ( Press e )`, id: "exclusionZones", children: (0, jsx_runtime_1.jsx)("div", { style: { fontSize: 18 }, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrMultipleAnalysis, {}) }) }, ToolTypes_1.options.exclusionZones.id))] }), displayerMode === Constants_1.DISPLAYER_MODE.DM_1D &&
|
|
83
|
-
isButtonVisible('FFTTool') &&
|
|
72
|
+
Filters.baselineCorrection.isApplicable({ info })), children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrBaselineCorrection, {}) }, ToolTypes_1.options.baselineCorrection.id)), isButtonVisible('exclusionZones', { checkSpectrumType: false }) &&
|
|
73
|
+
ftCounter > 0 && ((0, jsx_runtime_1.jsx)(ToggleButton_1.default, { value: ToolTypes_1.options.exclusionZones.id, title: `${ToolTypes_1.options.exclusionZones.label} ( Press e )`, id: ToolTypes_1.options.exclusionZones.id, children: (0, jsx_runtime_1.jsx)("div", { style: { fontSize: 18 }, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrMultipleAnalysis, {}) }) }, ToolTypes_1.options.exclusionZones.id))] }), isButtonVisible('fastFourierTransform') &&
|
|
84
74
|
info &&
|
|
85
|
-
Filters.fft.isApplicable({ info }) && ((0, jsx_runtime_1.jsx)(analysis_ui_components_1.Toolbar.Item, { id:
|
|
75
|
+
Filters.fft.isApplicable({ info }) && ((0, jsx_runtime_1.jsx)(analysis_ui_components_1.Toolbar.Item, { id: ToolTypes_1.options.fastFourierTransform.id, className: "cheminfo", title: ToolTypes_1.options.fastFourierTransform.label, onClick: handleOnFFTFilter, children: (0, jsx_runtime_1.jsx)(cheminfo_font_1.SvgNmrFourierTransform, {}) }))] }));
|
|
86
76
|
}
|
|
87
77
|
const MemoizedFunctionToolBar = (0, react_1.memo)(FunctionToolBarInner);
|
|
88
78
|
function FunctionToolBar({ defaultValue = ToolTypes_1.options.zoom.id, }) {
|
|
89
|
-
const {
|
|
79
|
+
const { displayerMode, view: { spectra: { activeTab }, }, } = (0, ChartContext_1.useChartData)();
|
|
80
|
+
const activeSpectrum = (0, Reducer_1.useActiveSpectrum)();
|
|
90
81
|
const data = (0, useDatumWithSpectraStatistics_1.default)();
|
|
91
82
|
return ((0, jsx_runtime_1.jsx)(MemoizedFunctionToolBar, { ...{
|
|
92
83
|
...data,
|
|
@@ -94,7 +85,6 @@ function FunctionToolBar({ defaultValue = ToolTypes_1.options.zoom.id, }) {
|
|
|
94
85
|
displayerMode,
|
|
95
86
|
activeTab,
|
|
96
87
|
defaultValue,
|
|
97
|
-
mode,
|
|
98
88
|
} }));
|
|
99
89
|
}
|
|
100
90
|
exports.default = FunctionToolBar;
|
|
@@ -25,101 +25,211 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.options = void 0;
|
|
27
27
|
const Filters = __importStar(require("../../data/Filters"));
|
|
28
|
+
const Constants_1 = require("../reducer/core/Constants");
|
|
28
29
|
exports.options = {
|
|
29
30
|
zoom: {
|
|
30
31
|
id: 'zoom',
|
|
31
|
-
label: 'Zoom',
|
|
32
|
+
label: 'Zoom in',
|
|
32
33
|
hasOptionPanel: false,
|
|
33
34
|
isFilter: false,
|
|
35
|
+
isToggle: true,
|
|
34
36
|
},
|
|
35
37
|
peakPicking: {
|
|
36
38
|
id: 'peakPicking',
|
|
37
39
|
label: 'Peaks Picking',
|
|
38
40
|
hasOptionPanel: true,
|
|
39
41
|
isFilter: false,
|
|
42
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
43
|
+
spectrumType: 'FT',
|
|
44
|
+
isToggle: true,
|
|
40
45
|
},
|
|
41
46
|
integral: {
|
|
42
47
|
id: 'integral',
|
|
43
48
|
label: 'integral Tool',
|
|
44
49
|
hasOptionPanel: false,
|
|
45
50
|
isFilter: false,
|
|
51
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
52
|
+
spectrumType: 'FT',
|
|
53
|
+
isToggle: true,
|
|
46
54
|
},
|
|
47
|
-
|
|
48
|
-
id: '
|
|
55
|
+
zonePicking: {
|
|
56
|
+
id: 'zonePicking',
|
|
49
57
|
label: 'Zone Tool',
|
|
50
58
|
hasOptionPanel: true,
|
|
51
59
|
isFilter: false,
|
|
60
|
+
mode: Constants_1.DISPLAYER_MODE.DM_2D,
|
|
61
|
+
spectrumType: 'FT',
|
|
62
|
+
isToggle: true,
|
|
52
63
|
},
|
|
53
|
-
|
|
54
|
-
id: '
|
|
64
|
+
slicing: {
|
|
65
|
+
id: 'slicing',
|
|
55
66
|
label: 'Slicing Tool',
|
|
56
67
|
hasOptionPanel: false,
|
|
57
68
|
isFilter: false,
|
|
69
|
+
mode: Constants_1.DISPLAYER_MODE.DM_2D,
|
|
70
|
+
spectrumType: 'FT',
|
|
71
|
+
isToggle: true,
|
|
58
72
|
},
|
|
59
73
|
HMove: {
|
|
60
74
|
id: 'HMove',
|
|
61
75
|
label: 'Move spectrum horizontally',
|
|
62
76
|
hasOptionPanel: false,
|
|
63
77
|
isFilter: false,
|
|
78
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
79
|
+
spectrumType: 'FT',
|
|
80
|
+
isToggle: true,
|
|
64
81
|
},
|
|
65
|
-
|
|
66
|
-
id: '
|
|
82
|
+
equalizer: {
|
|
83
|
+
id: 'equalizer',
|
|
67
84
|
label: 'Equalizer Tool',
|
|
68
85
|
hasOptionPanel: false,
|
|
69
86
|
isFilter: false,
|
|
87
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
88
|
+
spectrumType: 'FT',
|
|
89
|
+
isToggle: true,
|
|
70
90
|
},
|
|
71
|
-
|
|
72
|
-
id: '
|
|
91
|
+
rangePicking: {
|
|
92
|
+
id: 'rangePicking',
|
|
73
93
|
label: 'Ranges Picking',
|
|
74
94
|
hasOptionPanel: true,
|
|
75
95
|
isFilter: false,
|
|
96
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
97
|
+
spectrumType: 'FT',
|
|
98
|
+
isToggle: true,
|
|
99
|
+
},
|
|
100
|
+
apodization: {
|
|
101
|
+
id: Filters.apodization.id,
|
|
102
|
+
label: Filters.apodization.name,
|
|
103
|
+
hasOptionPanel: true,
|
|
104
|
+
isFilter: true,
|
|
105
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
106
|
+
spectrumType: 'FID',
|
|
107
|
+
isToggle: true,
|
|
76
108
|
},
|
|
77
109
|
zeroFilling: {
|
|
78
110
|
id: Filters.zeroFilling.id,
|
|
79
111
|
label: Filters.zeroFilling.name,
|
|
80
112
|
hasOptionPanel: true,
|
|
81
113
|
isFilter: true,
|
|
114
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
115
|
+
spectrumType: 'FID',
|
|
116
|
+
isToggle: true,
|
|
82
117
|
},
|
|
83
118
|
phaseCorrection: {
|
|
84
119
|
id: Filters.phaseCorrection.id,
|
|
85
120
|
label: Filters.phaseCorrection.name,
|
|
86
121
|
hasOptionPanel: true,
|
|
87
122
|
isFilter: true,
|
|
123
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
124
|
+
spectrumType: 'FT',
|
|
125
|
+
isToggle: true,
|
|
88
126
|
},
|
|
89
127
|
baselineCorrection: {
|
|
90
128
|
id: Filters.baselineCorrection.id,
|
|
91
129
|
label: Filters.baselineCorrection.name,
|
|
92
130
|
hasOptionPanel: true,
|
|
93
131
|
isFilter: true,
|
|
132
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
133
|
+
spectrumType: 'FT',
|
|
134
|
+
isToggle: true,
|
|
94
135
|
},
|
|
95
136
|
generalSelector: {
|
|
96
137
|
id: 'generalSelector',
|
|
97
138
|
label: 'range general selector',
|
|
98
139
|
hasOptionPanel: false,
|
|
99
140
|
isFilter: false,
|
|
141
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
142
|
+
spectrumType: 'FT',
|
|
143
|
+
isToggle: true,
|
|
100
144
|
},
|
|
101
145
|
editRange: {
|
|
102
146
|
id: 'editRange',
|
|
103
147
|
label: 'edit range',
|
|
104
148
|
hasOptionPanel: false,
|
|
105
149
|
isFilter: false,
|
|
150
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
151
|
+
spectrumType: 'FT',
|
|
152
|
+
isToggle: true,
|
|
106
153
|
},
|
|
107
154
|
multipleSpectraAnalysis: {
|
|
108
155
|
id: 'multipleSpectraAnalysis',
|
|
109
156
|
label: 'Multiple Spectra Analysis',
|
|
110
157
|
hasOptionPanel: false,
|
|
111
158
|
isFilter: false,
|
|
159
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
160
|
+
spectrumType: 'FT',
|
|
161
|
+
isToggle: true,
|
|
112
162
|
},
|
|
113
163
|
exclusionZones: {
|
|
114
164
|
id: 'exclusionZones',
|
|
115
165
|
label: 'Exclusion Zones',
|
|
116
166
|
hasOptionPanel: false,
|
|
117
167
|
isFilter: false,
|
|
168
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
169
|
+
spectrumType: 'FT',
|
|
170
|
+
isToggle: true,
|
|
118
171
|
},
|
|
119
172
|
databaseRangesSelection: {
|
|
120
173
|
id: 'databaseRangesSelection',
|
|
121
174
|
label: 'Filter Database',
|
|
122
175
|
hasOptionPanel: false,
|
|
123
176
|
isFilter: false,
|
|
177
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
178
|
+
spectrumType: 'FT',
|
|
179
|
+
isToggle: true,
|
|
180
|
+
},
|
|
181
|
+
exportAs: {
|
|
182
|
+
id: 'exportAs',
|
|
183
|
+
label: 'export as',
|
|
184
|
+
hasOptionPanel: false,
|
|
185
|
+
isFilter: false,
|
|
186
|
+
isToggle: false,
|
|
187
|
+
},
|
|
188
|
+
fastFourierTransform: {
|
|
189
|
+
id: 'fft',
|
|
190
|
+
label: 'Fourier transform',
|
|
191
|
+
hasOptionPanel: false,
|
|
192
|
+
isFilter: true,
|
|
193
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
194
|
+
spectrumType: 'FID',
|
|
195
|
+
isToggle: false,
|
|
196
|
+
},
|
|
197
|
+
import: {
|
|
198
|
+
id: 'import',
|
|
199
|
+
label: 'import',
|
|
200
|
+
hasOptionPanel: false,
|
|
201
|
+
isFilter: false,
|
|
202
|
+
isToggle: false,
|
|
203
|
+
},
|
|
204
|
+
realImaginary: {
|
|
205
|
+
id: 'realImaginary',
|
|
206
|
+
label: 'real/imaginary',
|
|
207
|
+
hasOptionPanel: false,
|
|
208
|
+
isFilter: false,
|
|
209
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
210
|
+
isToggle: false,
|
|
211
|
+
},
|
|
212
|
+
spectraCenterAlignments: {
|
|
213
|
+
id: 'spectraCenterAlignments',
|
|
214
|
+
label: 'Align spectrum',
|
|
215
|
+
hasOptionPanel: false,
|
|
216
|
+
isFilter: false,
|
|
217
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
218
|
+
isToggle: false,
|
|
219
|
+
},
|
|
220
|
+
spectraStackAlignments: {
|
|
221
|
+
id: 'spectraStackAlignments',
|
|
222
|
+
label: 'Stack spectra',
|
|
223
|
+
hasOptionPanel: false,
|
|
224
|
+
isFilter: false,
|
|
225
|
+
mode: Constants_1.DISPLAYER_MODE.DM_1D,
|
|
226
|
+
isToggle: false,
|
|
227
|
+
},
|
|
228
|
+
zoomOut: {
|
|
229
|
+
id: 'zoomOut',
|
|
230
|
+
label: 'Zoom out',
|
|
231
|
+
hasOptionPanel: false,
|
|
232
|
+
isFilter: false,
|
|
233
|
+
isToggle: false,
|
|
124
234
|
},
|
|
125
235
|
};
|
|
@@ -16,22 +16,23 @@ exports.basic = {
|
|
|
16
16
|
zonesPanel: { display: true, open: false },
|
|
17
17
|
},
|
|
18
18
|
toolBarButtons: {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
zoom: true,
|
|
20
|
+
zoomOut: true,
|
|
21
21
|
import: true,
|
|
22
22
|
exportAs: true,
|
|
23
23
|
spectraStackAlignments: true,
|
|
24
24
|
spectraCenterAlignments: true,
|
|
25
25
|
realImaginary: true,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
peakPicking: true,
|
|
27
|
+
integral: true,
|
|
28
|
+
zonePicking: true,
|
|
29
|
+
rangePicking: true,
|
|
30
|
+
slicing: true,
|
|
31
|
+
apodization: true,
|
|
32
|
+
zeroFilling: true,
|
|
33
|
+
fastFourierTransform: true,
|
|
34
|
+
phaseCorrection: true,
|
|
35
|
+
baselineCorrection: true,
|
|
35
36
|
},
|
|
36
37
|
},
|
|
37
38
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.embedded = void 0;
|
|
4
4
|
exports.embedded = {
|
|
5
5
|
version: 1,
|
|
6
|
-
label: 'Embedded
|
|
6
|
+
label: 'Embedded',
|
|
7
7
|
display: {
|
|
8
8
|
general: {
|
|
9
9
|
experimentalFeatures: { display: true },
|
|
@@ -20,23 +20,24 @@ exports.embedded = {
|
|
|
20
20
|
zonesPanel: { display: true, open: false },
|
|
21
21
|
},
|
|
22
22
|
toolBarButtons: {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
baselineCorrection: true,
|
|
24
|
+
exclusionZones: true,
|
|
25
25
|
exportAs: true,
|
|
26
|
-
|
|
26
|
+
fastFourierTransform: true,
|
|
27
27
|
import: true,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
integral: true,
|
|
29
|
+
multipleSpectraAnalysis: true,
|
|
30
|
+
phaseCorrection: true,
|
|
31
|
+
rangePicking: true,
|
|
32
32
|
realImaginary: true,
|
|
33
|
-
|
|
33
|
+
slicing: true,
|
|
34
34
|
spectraCenterAlignments: true,
|
|
35
35
|
spectraStackAlignments: true,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
apodization: true,
|
|
37
|
+
zeroFilling: true,
|
|
38
|
+
zonePicking: true,
|
|
39
|
+
zoomOut: true,
|
|
40
|
+
zoom: true,
|
|
40
41
|
},
|
|
41
42
|
},
|
|
42
43
|
};
|
|
@@ -3,11 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.exercise = void 0;
|
|
4
4
|
exports.exercise = {
|
|
5
5
|
version: 1,
|
|
6
|
-
label: 'Exercise
|
|
6
|
+
label: 'Exercise',
|
|
7
7
|
display: {
|
|
8
8
|
general: {
|
|
9
|
-
disableMultipletAnalysis: true,
|
|
10
|
-
hideSetSumFromMolecule: true,
|
|
11
9
|
hideGeneralSettings: true,
|
|
12
10
|
},
|
|
13
11
|
panels: {
|
|
@@ -15,11 +13,17 @@ exports.exercise = {
|
|
|
15
13
|
integralsPanel: { display: true },
|
|
16
14
|
},
|
|
17
15
|
toolBarButtons: {
|
|
18
|
-
|
|
16
|
+
peakPicking: true,
|
|
17
|
+
apodization: true,
|
|
18
|
+
zeroFilling: true,
|
|
19
|
+
fastFourierTransform: true,
|
|
20
|
+
phaseCorrection: true,
|
|
21
|
+
baselineCorrection: true,
|
|
22
|
+
integral: true,
|
|
19
23
|
spectraCenterAlignments: true,
|
|
20
24
|
spectraStackAlignments: true,
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
zoomOut: true,
|
|
26
|
+
zoom: true,
|
|
23
27
|
},
|
|
24
28
|
},
|
|
25
29
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.prediction = void 0;
|
|
4
4
|
exports.prediction = {
|
|
5
5
|
version: 1,
|
|
6
|
-
label: 'Prediction
|
|
6
|
+
label: 'Prediction',
|
|
7
7
|
display: {
|
|
8
8
|
panels: {
|
|
9
9
|
spectraPanel: { display: true },
|
|
@@ -12,23 +12,24 @@ exports.prediction = {
|
|
|
12
12
|
predictionPanel: { display: true, open: true },
|
|
13
13
|
},
|
|
14
14
|
toolBarButtons: {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
baselineCorrection: true,
|
|
16
|
+
exclusionZones: true,
|
|
17
17
|
exportAs: true,
|
|
18
|
-
|
|
18
|
+
fastFourierTransform: true,
|
|
19
19
|
import: true,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
integral: true,
|
|
21
|
+
multipleSpectraAnalysis: true,
|
|
22
|
+
phaseCorrection: true,
|
|
23
|
+
rangePicking: true,
|
|
24
24
|
realImaginary: true,
|
|
25
|
-
|
|
25
|
+
slicing: true,
|
|
26
26
|
spectraCenterAlignments: true,
|
|
27
27
|
spectraStackAlignments: true,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
apodization: true,
|
|
29
|
+
zeroFilling: true,
|
|
30
|
+
zonePicking: true,
|
|
31
|
+
zoomOut: true,
|
|
32
|
+
zoom: true,
|
|
32
33
|
},
|
|
33
34
|
},
|
|
34
35
|
};
|
|
@@ -2,31 +2,32 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.process1D = void 0;
|
|
4
4
|
exports.process1D = {
|
|
5
|
-
version:
|
|
6
|
-
label: '
|
|
5
|
+
version: 2,
|
|
6
|
+
label: '1D multiple spectra analysis',
|
|
7
7
|
display: {
|
|
8
|
-
general: {
|
|
9
|
-
disableMultipletAnalysis: true,
|
|
10
|
-
},
|
|
8
|
+
general: {},
|
|
11
9
|
panels: {
|
|
12
|
-
zonesPanel: { display: true },
|
|
13
|
-
summaryPanel: { display: true },
|
|
14
|
-
multipleSpectraAnalysisPanel: { display: true, open: true },
|
|
15
10
|
spectraPanel: { display: true, open: true },
|
|
11
|
+
informationPanel: { display: true },
|
|
12
|
+
peaksPanel: { display: true },
|
|
13
|
+
filtersPanel: { display: true },
|
|
14
|
+
multipleSpectraAnalysisPanel: { display: true },
|
|
16
15
|
},
|
|
17
16
|
toolBarButtons: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
realImaginary: true,
|
|
23
|
-
slicingTool: true,
|
|
24
|
-
spectraCenterAlignments: true,
|
|
17
|
+
zoom: true,
|
|
18
|
+
zoomOut: true,
|
|
19
|
+
import: true,
|
|
20
|
+
exportAs: true,
|
|
25
21
|
spectraStackAlignments: true,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
spectraCenterAlignments: true,
|
|
23
|
+
peakPicking: true,
|
|
24
|
+
apodization: true,
|
|
25
|
+
zeroFilling: true,
|
|
26
|
+
fastFourierTransform: true,
|
|
27
|
+
phaseCorrection: true,
|
|
28
|
+
baselineCorrection: true,
|
|
29
|
+
exclusionZones: true,
|
|
30
|
+
multipleSpectraAnalysis: true,
|
|
30
31
|
},
|
|
31
32
|
},
|
|
32
33
|
};
|
|
@@ -4,8 +4,6 @@ exports.workspaceDefaultProperties = void 0;
|
|
|
4
4
|
exports.workspaceDefaultProperties = {
|
|
5
5
|
display: {
|
|
6
6
|
general: {
|
|
7
|
-
disableMultipletAnalysis: false,
|
|
8
|
-
hideSetSumFromMolecule: false,
|
|
9
7
|
hideGeneralSettings: false,
|
|
10
8
|
experimentalFeatures: { display: false },
|
|
11
9
|
hidePanelOnLoad: false,
|
|
@@ -26,24 +24,25 @@ exports.workspaceDefaultProperties = {
|
|
|
26
24
|
summaryPanel: { display: false, open: false },
|
|
27
25
|
},
|
|
28
26
|
toolBarButtons: {
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
baselineCorrection: false,
|
|
28
|
+
exclusionZones: false,
|
|
31
29
|
exportAs: false,
|
|
32
|
-
|
|
30
|
+
fastFourierTransform: false,
|
|
33
31
|
import: false,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
integral: false,
|
|
33
|
+
multipleSpectraAnalysis: false,
|
|
34
|
+
phaseCorrection: false,
|
|
35
|
+
rangePicking: false,
|
|
38
36
|
realImaginary: false,
|
|
39
|
-
|
|
37
|
+
slicing: false,
|
|
40
38
|
spectraCenterAlignments: false,
|
|
41
39
|
spectraStackAlignments: false,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
apodization: false,
|
|
41
|
+
zeroFilling: false,
|
|
42
|
+
zonePicking: false,
|
|
43
|
+
zoomOut: false,
|
|
44
|
+
zoom: false,
|
|
45
|
+
peakPicking: false,
|
|
47
46
|
},
|
|
48
47
|
},
|
|
49
48
|
general: {
|
package/lib-cjs/constants.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.helpList = exports.docsBaseUrl = void 0;
|
|
4
4
|
exports.docsBaseUrl = 'https://docs.nmrium.org';
|
|
5
5
|
exports.helpList = {
|
|
6
|
-
|
|
6
|
+
zoom: {
|
|
7
7
|
text: 'Zoom Tool',
|
|
8
8
|
url: `${exports.docsBaseUrl}/help/zoom-and-scale`,
|
|
9
9
|
},
|
package/lib-cjs/data/Filters.js
CHANGED
|
@@ -23,9 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.shift2DY = exports.shift2DX = exports.exclusionZones = exports.pareto = exports.centerMean = exports.standardDeviation = exports.equallySpaced = exports.fromTo = exports.digitalFilter = exports.zeroFilling = exports.shiftX = exports.autoPhaseCorrection = exports.phaseCorrection = exports.fft = exports.
|
|
26
|
+
exports.shift2DY = exports.shift2DX = exports.exclusionZones = exports.pareto = exports.centerMean = exports.standardDeviation = exports.equallySpaced = exports.fromTo = exports.digitalFilter = exports.zeroFilling = exports.shiftX = exports.autoPhaseCorrection = exports.phaseCorrection = exports.fft = exports.apodization = exports.baselineCorrection = exports.absolute = void 0;
|
|
27
27
|
const absolute = __importStar(require("./data1d/filter1d/absolute"));
|
|
28
28
|
exports.absolute = absolute;
|
|
29
|
+
const apodization = __importStar(require("./data1d/filter1d/apodization"));
|
|
30
|
+
exports.apodization = apodization;
|
|
29
31
|
const autoPhaseCorrection = __importStar(require("./data1d/filter1d/autoPhaseCorrection"));
|
|
30
32
|
exports.autoPhaseCorrection = autoPhaseCorrection;
|
|
31
33
|
const baselineCorrection = __importStar(require("./data1d/filter1d/baselineCorrection"));
|
|
@@ -42,8 +44,6 @@ const fft = __importStar(require("./data1d/filter1d/fft"));
|
|
|
42
44
|
exports.fft = fft;
|
|
43
45
|
const fromTo = __importStar(require("./data1d/filter1d/fromTo"));
|
|
44
46
|
exports.fromTo = fromTo;
|
|
45
|
-
const lineBroadening = __importStar(require("./data1d/filter1d/lineBroadening"));
|
|
46
|
-
exports.lineBroadening = lineBroadening;
|
|
47
47
|
const pareto = __importStar(require("./data1d/filter1d/pareto"));
|
|
48
48
|
exports.pareto = pareto;
|
|
49
49
|
const phaseCorrection = __importStar(require("./data1d/filter1d/phaseCorrection"));
|
|
@@ -22,14 +22,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
26
|
exports.deleteFilter = exports.addFilter = exports.enableFilter = exports.reapplyFilters = exports.applyFilter = void 0;
|
|
30
27
|
/* eslint-disable import/namespace */
|
|
28
|
+
const uuid_1 = require("@lukeed/uuid");
|
|
31
29
|
const Filters = __importStar(require("./Filters"));
|
|
32
|
-
const generateID_1 = __importDefault(require("./utilities/generateID"));
|
|
33
30
|
/***
|
|
34
31
|
* @param {object} Filters [{name:'',options:{}},{...}]
|
|
35
32
|
*/
|
|
@@ -151,7 +148,7 @@ function deleteFilter(datum, id) {
|
|
|
151
148
|
}
|
|
152
149
|
exports.deleteFilter = deleteFilter;
|
|
153
150
|
function addFilter(datum, filter, isDeleteAllow = true) {
|
|
154
|
-
const id = (0,
|
|
151
|
+
const id = (0, uuid_1.v4)();
|
|
155
152
|
datum.filters = datum.filters.slice(0);
|
|
156
153
|
delete filter.isSnapshot;
|
|
157
154
|
datum.filters.push({
|
|
@@ -163,7 +160,7 @@ function addFilter(datum, filter, isDeleteAllow = true) {
|
|
|
163
160
|
}
|
|
164
161
|
exports.addFilter = addFilter;
|
|
165
162
|
function replaceFilter(datum, filterID, value) {
|
|
166
|
-
datum.filters = datum.filters.slice(0);
|
|
163
|
+
// datum.filters = datum.filters.slice(0);
|
|
167
164
|
const index = datum.filters.findIndex((f) => f.id === filterID);
|
|
168
165
|
delete datum.filters[index].isSnapshot;
|
|
169
166
|
datum.filters[index] = {
|