nmrium 0.31.0 → 0.33.0-pre.1667632695
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/Chart1D.js +1 -1
- package/lib/component/1d/FooterBanner.js +17 -10
- package/lib/component/1d/LinesSeries.js +1 -1
- package/lib/component/1d/SpectraTracker.js +1 -1
- package/lib/component/1d/Viewer1D.js +1 -1
- package/lib/component/1d/XAxis.js +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib/component/1d/{Integral.d.ts → integral/Integral.d.ts} +0 -0
- package/lib/component/1d/{Integral.js → integral/Integral.js} +2 -2
- package/lib/component/1d/integral/IntegralIndicator.d.ts +9 -0
- package/lib/component/1d/integral/IntegralIndicator.js +27 -0
- package/lib/component/1d/{IntegralResizable.d.ts → integral/IntegralResizable.d.ts} +0 -0
- package/lib/component/1d/integral/IntegralResizable.js +69 -0
- package/lib/component/1d/{IntegralsSeries.d.ts → integral/IntegralsSeries.d.ts} +0 -0
- package/lib/component/1d/{IntegralsSeries.js → integral/IntegralsSeries.js} +4 -4
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +4 -4
- package/lib/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib/component/1d/peaks/PeakAnnotation.js +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib/component/1d/ranges/Range.js +27 -50
- package/lib/component/1d/tool/PeakPointer.js +1 -1
- package/lib/component/1d/utilities/scale.js +2 -2
- package/lib/component/2d/Contours.js +61 -42
- package/lib/component/2d/FooterBanner.js +2 -2
- package/lib/component/2d/Left1DChart.js +1 -1
- package/lib/component/2d/Top1DChart.js +1 -1
- package/lib/component/2d/Viewer2D.js +11 -14
- package/lib/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib/component/2d/zones/IndicationLines.js +5 -8
- package/lib/component/EventsTrackers/BrushTracker.js +30 -21
- package/lib/component/EventsTrackers/KeysListenerTracker.js +14 -15
- package/lib/component/NMRium.d.ts +1 -1
- package/lib/component/NMRium.js +6 -6
- package/lib/component/SplitPaneWrapper.js +1 -1
- package/lib/component/assignment/actions/initAssignment.js +17 -17
- package/lib/component/assignment/index.js +2 -2
- package/lib/component/context/PreferencesContext.js +3 -6
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/CheckBoxCell.js +1 -1
- package/lib/component/elements/ContextMenu.js +2 -2
- package/lib/component/elements/EditableColumn.d.ts +3 -1
- package/lib/component/elements/EditableColumn.js +21 -8
- package/lib/component/elements/GroupPane.d.ts +12 -0
- package/lib/component/elements/GroupPane.js +14 -0
- package/lib/component/elements/Input.js +7 -4
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/Label.js +1 -2
- package/lib/component/elements/MolecularFormulaInput.js +2 -0
- package/lib/component/elements/NumberInput.js +2 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +2 -1
- package/lib/component/elements/ReactTable/ReactTable.js +72 -38
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +3 -2
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +3 -3
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib/component/elements/accordion/Accordion.js +2 -2
- package/lib/component/elements/draggble/useDraggable.js +1 -3
- package/lib/component/elements/dropDownButton/DropDownList.js +1 -2
- package/lib/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib/component/elements/formik/FormikColorPicker.d.ts +0 -1
- package/lib/component/elements/formik/FormikColorPicker.js +5 -8
- package/lib/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib/component/elements/formik/FormikForm.js +2 -2
- package/lib/component/elements/formik/FormikInput.d.ts +0 -1
- package/lib/component/elements/formik/FormikInput.js +12 -20
- package/lib/component/elements/formik/FormikOnChange.d.ts +1 -1
- package/lib/component/elements/formik/FormikOnChange.js +13 -10
- package/lib/component/elements/formik/FormikSelect.js +1 -1
- package/lib/component/elements/formik/FormikSlider.d.ts +2 -4
- package/lib/component/elements/formik/FormikSlider.js +8 -11
- package/lib/component/elements/formik/FormikTextarea.js +1 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib/component/elements/popup/Alert/Provider.js +7 -7
- package/lib/component/elements/popup/Alert/index.d.ts +3 -4
- package/lib/component/elements/popup/Alert/index.js +3 -4
- package/lib/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib/component/elements/popup/Modal/Provider.js +16 -31
- package/lib/component/elements/popup/Modal/index.d.ts +4 -5
- package/lib/component/elements/popup/Modal/index.js +4 -5
- package/lib/component/header/Header.js +1 -1
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
- package/lib/component/hooks/useCombinedRefs.js +2 -2
- package/lib/component/hooks/useExport.d.ts +1 -1
- package/lib/component/hooks/useExport.js +9 -6
- package/lib/component/hooks/useFormatNumberByNucleus.js +1 -1
- package/lib/component/hooks/usePanelPreferences.js +9 -7
- package/lib/component/loader/DropZone.js +10 -2
- package/lib/component/modal/AlignSpectraModal.js +1 -1
- package/lib/component/modal/ExportAsMatrixModal.js +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +2 -2
- package/lib/component/modal/MultipleSpectraFiltersModal/index.js +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +3 -3
- package/lib/component/modal/PredictSpectraModal.js +5 -5
- package/lib/component/modal/editRange/EditRangeModal.js +4 -4
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +2 -2
- package/lib/component/modal/setting/DatabasesTabContent.js +25 -20
- package/lib/component/modal/setting/DisplayTabContent.js +21 -27
- package/lib/component/modal/setting/FormattingTabContent.js +10 -10
- package/lib/component/modal/setting/GeneralSettings.js +11 -14
- package/lib/component/modal/setting/GeneralTabContent.js +3 -1
- package/lib/component/modal/setting/ToolsTabContent.js +18 -19
- package/lib/component/modal/setting/WorkspaceItem.d.ts +2 -1
- package/lib/component/modal/setting/WorkspaceItem.js +36 -48
- package/lib/component/modal/setting/settingsValidation.d.ts +58 -57
- package/lib/component/modal/setting/settingsValidation.js +14 -12
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +8 -7
- package/lib/component/panels/InformationPanel.js +52 -56
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +16 -17
- package/lib/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +18 -17
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +2 -2
- package/lib/component/panels/RangesPanel/RangesHeader.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -3
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -6
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.js +3 -3
- package/lib/component/panels/SpectrumsPanel/SpectrumsTabs.js +5 -5
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +2 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +3 -26
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +13 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -12
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +1 -5
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib/component/panels/ZonesPanel/ZonesTable.js +8 -8
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +2 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +20 -5
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +5 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib/component/panels/filtersPanel/FiltersTable.js +1 -1
- package/lib/component/reducer/IgnoreActions.js +3 -3
- package/lib/component/reducer/Reducer.d.ts +26 -45
- package/lib/component/reducer/Reducer.js +13 -12
- package/lib/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib/component/reducer/actions/DomainActions.d.ts +2 -2
- package/lib/component/reducer/actions/DomainActions.js +52 -69
- package/lib/component/reducer/actions/FiltersActions.js +15 -6
- package/lib/component/reducer/actions/HistoryActions.js +5 -5
- package/lib/component/reducer/actions/IntegralsActions.js +6 -5
- package/lib/component/reducer/actions/LoadActions.js +12 -0
- package/lib/component/reducer/actions/PeaksActions.js +7 -6
- package/lib/component/reducer/actions/PreferencesActions.js +20 -38
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -1
- package/lib/component/reducer/actions/RangesActions.js +28 -24
- package/lib/component/reducer/actions/SpectrumsActions.js +13 -6
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +28 -41
- package/lib/component/reducer/actions/ZonesActions.js +11 -10
- package/lib/component/reducer/core/Constants.js +1 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +11 -10
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts +3 -0
- package/lib/component/reducer/helper/getActiveSpectrum.js +4 -0
- package/lib/component/reducer/helper/getSpectrum.js +3 -5
- package/lib/component/reducer/helper/getStrongestPeak.d.ts +1 -1
- package/lib/component/reducer/helper/getStrongestPeak.js +2 -3
- package/lib/component/reducer/preferences/actions/removeWorkspace.js +3 -10
- package/lib/component/reducer/preferences/actions/setPreferences.js +5 -6
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.d.ts +1 -4
- package/lib/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib/component/tool/BrushX.js +3 -3
- package/lib/component/tool/BrushXY.js +5 -5
- package/lib/component/tool/CrossLinePointer.js +3 -3
- package/lib/component/toolbar/BasicToolBar.js +9 -8
- package/lib/component/utility/Evaluate.js +2 -2
- package/lib/component/utility/FileUtility.d.ts +2 -9
- package/lib/component/utility/FileUtility.js +11 -28
- package/lib/component/utility/GroupByInfoKey.d.ts +1 -1
- package/lib/component/utility/GroupByInfoKey.js +11 -13
- package/lib/component/utility/PathBuilder.js +1 -1
- package/lib/component/utility/PreferencesHelper.js +2 -3
- package/lib/component/utility/{Export.d.ts → export.d.ts} +0 -0
- package/lib/component/utility/{Export.js → export.js} +54 -73
- package/lib/component/utility/formatNumber.d.ts +6 -1
- package/lib/component/utility/formatNumber.js +5 -4
- package/lib/component/workspaces/Workspace.d.ts +1 -1
- package/lib/component/workspaces/exercise.js +4 -4
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -1
- package/lib/data/Filters.d.ts +16 -18
- package/lib/data/Filters.js +16 -18
- package/lib/data/FiltersManager.js +4 -3
- package/lib/data/PredictionManager.js +8 -10
- package/lib/data/SpectraManager.d.ts +1 -2
- package/lib/data/SpectraManager.js +25 -60
- package/lib/data/data1d/MultipleAnalysis.js +74 -70
- package/lib/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +24 -25
- package/lib/data/data1d/Spectrum1D/index.js +24 -25
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +6 -5
- package/lib/data/data1d/Spectrum1D/integrals/updateRelatives.js +8 -10
- package/lib/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/addRange.js +3 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRange.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +35 -1
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.d.ts +35 -1
- package/lib/data/data1d/Spectrum1D/ranges/mapRanges.js +6 -7
- package/lib/data/data1d/database.js +45 -28
- package/lib/data/data1d/filter1d/apodization.js +2 -1
- package/lib/data/data1d/filter1d/fft.js +24 -7
- package/lib/data/data1d/filter1d/phaseCorrection.js +11 -5
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +1 -1
- package/lib/data/data1d/filter1d/zeroFilling.js +1 -1
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Processing2D.js +10 -20
- package/lib/data/data2d/Spectrum2D/contours.d.ts +40 -0
- package/lib/data/data2d/Spectrum2D/contours.js +132 -0
- package/lib/data/data2d/Spectrum2D/index.d.ts +10 -11
- package/lib/data/data2d/Spectrum2D/index.js +10 -11
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +3 -4
- package/lib/data/data2d/Spectrum2D/shift/getShift.js +4 -5
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js +11 -8
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +1 -2
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/types/common/Source.d.ts +1 -0
- package/lib/data/types/data1d/index.d.ts +12 -13
- package/lib/data/types/data2d/Data2D.d.ts +2 -0
- package/lib/data/types/data2d/Datum2D.d.ts +0 -1
- package/lib/data/types/data2d/index.d.ts +8 -9
- package/lib/data/utilities/RangeUtilities.js +13 -9
- package/lib/data/utilities/ZoneUtilities.js +17 -13
- package/lib/data/utilities/calculateSanPlot.d.ts +8 -0
- package/lib/data/utilities/calculateSanPlot.js +31 -0
- package/lib/data/utilities/checkModifierKeyActivated.js +1 -2
- package/lib/data/utilities/generateChar.js +8 -6
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getAtomsFromMF.js +2 -2
- package/lib/data/utilities/getColor.js +3 -3
- package/lib/data/utilities/getSum.js +6 -3
- package/lib/types/NMRiumGeneralPreferences.d.ts +2 -2
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/Chart1D.js +1 -1
- package/lib-cjs/component/1d/FooterBanner.js +16 -9
- package/lib-cjs/component/1d/LinesSeries.js +1 -1
- package/lib-cjs/component/1d/SpectraTracker.js +1 -1
- package/lib-cjs/component/1d/Viewer1D.js +1 -1
- package/lib-cjs/component/1d/XAxis.js +1 -1
- package/lib-cjs/component/1d/database/DatabaseSpectrum.js +2 -1
- package/lib-cjs/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib-cjs/component/1d/{Integral.js → integral/Integral.js} +2 -2
- package/lib-cjs/component/1d/integral/IntegralIndicator.js +31 -0
- package/lib-cjs/component/1d/integral/IntegralResizable.js +74 -0
- package/lib-cjs/component/1d/{IntegralsSeries.js → integral/IntegralsSeries.js} +4 -4
- package/lib-cjs/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +4 -4
- package/lib-cjs/component/1d/multiplicityTree/buildTreeNode.js +3 -3
- package/lib-cjs/component/1d/peaks/PeakAnnotation.js +1 -1
- package/lib-cjs/component/1d/peaks/usePeakShapesPath.js +10 -6
- package/lib-cjs/component/1d/ranges/Range.js +27 -50
- package/lib-cjs/component/1d/tool/PeakPointer.js +1 -1
- package/lib-cjs/component/1d/utilities/scale.js +2 -2
- package/lib-cjs/component/2d/Contours.js +60 -41
- package/lib-cjs/component/2d/FooterBanner.js +2 -2
- package/lib-cjs/component/2d/Left1DChart.js +1 -1
- package/lib-cjs/component/2d/Top1DChart.js +1 -1
- package/lib-cjs/component/2d/Viewer2D.js +11 -14
- package/lib-cjs/component/2d/tools/XYLabelPointer.js +2 -2
- package/lib-cjs/component/2d/tools/slicing/VerticalSliceChart.js +1 -1
- package/lib-cjs/component/2d/zones/IndicationLines.js +5 -8
- package/lib-cjs/component/EventsTrackers/BrushTracker.js +30 -21
- package/lib-cjs/component/EventsTrackers/KeysListenerTracker.js +14 -15
- package/lib-cjs/component/NMRium.js +7 -7
- package/lib-cjs/component/SplitPaneWrapper.js +1 -1
- package/lib-cjs/component/assignment/actions/initAssignment.js +17 -17
- package/lib-cjs/component/assignment/index.js +2 -2
- package/lib-cjs/component/context/PreferencesContext.js +3 -6
- package/lib-cjs/component/elements/Button.js +1 -1
- package/lib-cjs/component/elements/CheckBoxCell.js +1 -1
- package/lib-cjs/component/elements/ContextMenu.js +2 -2
- package/lib-cjs/component/elements/EditableColumn.js +21 -8
- package/lib-cjs/component/elements/GroupPane.js +18 -0
- package/lib-cjs/component/elements/Input.js +7 -4
- package/lib-cjs/component/elements/IsotopesViewer.js +1 -1
- package/lib-cjs/component/elements/Label.js +1 -2
- package/lib-cjs/component/elements/MolecularFormulaInput.js +2 -0
- package/lib-cjs/component/elements/NumberInput.js +2 -2
- package/lib-cjs/component/elements/ReactTable/Elements/ReactTableRow.js +1 -1
- package/lib-cjs/component/elements/ReactTable/ReactTable.js +71 -37
- package/lib-cjs/component/elements/ReactTable/ReactTableFlexLayout.js +2 -2
- package/lib-cjs/component/elements/ReactTable/utility/addCustomColumn.js +3 -3
- package/lib-cjs/component/elements/ReactTable/utility/useRowSpan.js +3 -7
- package/lib-cjs/component/elements/accordion/Accordion.js +2 -2
- package/lib-cjs/component/elements/draggble/useDraggable.js +1 -3
- package/lib-cjs/component/elements/dropDownButton/DropDownList.js +1 -2
- package/lib-cjs/component/elements/formik/FormikCheckBox.js +1 -1
- package/lib-cjs/component/elements/formik/FormikColorPicker.js +4 -7
- package/lib-cjs/component/elements/formik/FormikErrorsSummary.js +2 -2
- package/lib-cjs/component/elements/formik/FormikForm.js +2 -2
- package/lib-cjs/component/elements/formik/FormikInput.js +12 -20
- package/lib-cjs/component/elements/formik/FormikOnChange.js +13 -10
- package/lib-cjs/component/elements/formik/FormikSelect.js +1 -1
- package/lib-cjs/component/elements/formik/FormikSlider.js +7 -10
- package/lib-cjs/component/elements/formik/FormikTextarea.js +1 -1
- package/lib-cjs/component/elements/linearAxis/LinearVerticalAxis.js +2 -2
- package/lib-cjs/component/elements/popup/Alert/Provider.js +8 -8
- package/lib-cjs/component/elements/popup/Alert/index.js +5 -5
- package/lib-cjs/component/elements/popup/Modal/ModalContent.js +3 -1
- package/lib-cjs/component/elements/popup/Modal/Provider.js +16 -31
- package/lib-cjs/component/elements/popup/Modal/index.js +7 -7
- package/lib-cjs/component/header/Header.js +1 -1
- package/lib-cjs/component/hooks/useActiveSpectrumStyleOptions.js +1 -1
- package/lib-cjs/component/hooks/useCombinedRefs.js +2 -2
- package/lib-cjs/component/hooks/useExport.js +14 -11
- package/lib-cjs/component/hooks/useFormatNumberByNucleus.js +1 -1
- package/lib-cjs/component/hooks/usePanelPreferences.js +9 -7
- package/lib-cjs/component/loader/DropZone.js +10 -2
- package/lib-cjs/component/modal/AlignSpectraModal.js +1 -1
- package/lib-cjs/component/modal/ExportAsMatrixModal.js +2 -2
- package/lib-cjs/component/modal/LoadJCAMPModal.js +2 -2
- package/lib-cjs/component/modal/MultipleSpectraFiltersModal/index.js +1 -1
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +3 -3
- package/lib-cjs/component/modal/PredictSpectraModal.js +5 -5
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +4 -4
- package/lib-cjs/component/modal/editRange/forms/components/SignalFormInfo.js +1 -1
- package/lib-cjs/component/modal/editRange/forms/validation/EditRangeValidation.js +2 -2
- package/lib-cjs/component/modal/setting/DatabasesTabContent.js +25 -20
- package/lib-cjs/component/modal/setting/DisplayTabContent.js +21 -27
- package/lib-cjs/component/modal/setting/FormattingTabContent.js +10 -10
- package/lib-cjs/component/modal/setting/GeneralSettings.js +11 -14
- package/lib-cjs/component/modal/setting/GeneralTabContent.js +3 -1
- package/lib-cjs/component/modal/setting/ToolsTabContent.js +18 -19
- package/lib-cjs/component/modal/setting/WorkspaceItem.js +37 -49
- package/lib-cjs/component/modal/setting/settingsValidation.js +14 -12
- package/lib-cjs/component/panels/AutomaticAssignment/useAutoAssignments.js +8 -7
- package/lib-cjs/component/panels/InformationPanel.js +51 -55
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +1 -1
- package/lib-cjs/component/panels/MoleculesPanel/MoleculeHeader.js +1 -1
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +4 -4
- package/lib-cjs/component/panels/MoleculesPanel/Utilities.js +6 -6
- package/lib-cjs/component/panels/MoleculesPanel/useAtomAssignment.js +16 -17
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/ColumnHeader.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleAnalysisCodeEditor.js +1 -1
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.js +2 -2
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPreferences.js +18 -17
- package/lib-cjs/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -2
- package/lib-cjs/component/panels/PeaksPanel/PeaksPanel.js +1 -1
- package/lib-cjs/component/panels/PeaksPanel/PeaksTable.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesHeader.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesPanel.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +1 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/CouplingColumn.js +1 -1
- package/lib-cjs/component/panels/RangesPanel/hooks/useEditRangeModal.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/hooks/useMapRanges.js +8 -8
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListItem.js +6 -6
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumListPanel.js +3 -3
- package/lib-cjs/component/panels/SpectrumsPanel/SpectrumsTabs.js +6 -6
- package/lib-cjs/component/panels/SpectrumsPanel/base/ColorIndicator.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.js +2 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/Spectrum2DSetting.js +2 -1
- package/lib-cjs/component/panels/SpectrumsPanel/base/setting/processSnapPlot.js +2 -25
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +13 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +16 -17
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +20 -21
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +12 -12
- package/lib-cjs/component/panels/SummaryPanel/SetShiftTolerancesModal.js +1 -5
- package/lib-cjs/component/panels/SummaryPanel/utilities/Utilities.js +105 -94
- package/lib-cjs/component/panels/ZonesPanel/ZonesTable.js +8 -8
- package/lib-cjs/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib-cjs/component/panels/databasePanel/DatabaseTable.js +20 -5
- package/lib-cjs/component/panels/extra/preferences/ColumnsHelper.js +5 -2
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +2 -2
- package/lib-cjs/component/panels/filtersPanel/FiltersTable.js +1 -1
- package/lib-cjs/component/reducer/IgnoreActions.js +3 -3
- package/lib-cjs/component/reducer/Reducer.js +12 -11
- package/lib-cjs/component/reducer/actions/CorrelationsActions.js +4 -4
- package/lib-cjs/component/reducer/actions/DomainActions.js +52 -69
- package/lib-cjs/component/reducer/actions/FiltersActions.js +15 -6
- package/lib-cjs/component/reducer/actions/HistoryActions.js +5 -5
- package/lib-cjs/component/reducer/actions/IntegralsActions.js +6 -5
- package/lib-cjs/component/reducer/actions/LoadActions.js +12 -0
- package/lib-cjs/component/reducer/actions/PeaksActions.js +7 -6
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +20 -38
- package/lib-cjs/component/reducer/actions/RangesActions.js +28 -24
- package/lib-cjs/component/reducer/actions/SpectrumsActions.js +12 -5
- package/lib-cjs/component/reducer/actions/ToolsActions.js +28 -41
- package/lib-cjs/component/reducer/actions/ZonesActions.js +11 -10
- package/lib-cjs/component/reducer/core/Constants.js +1 -1
- package/lib-cjs/component/reducer/helper/GetClosestNumber.js +2 -1
- package/lib-cjs/component/reducer/helper/Zoom1DManager.js +11 -10
- package/lib-cjs/component/reducer/helper/getActiveSpectrum.js +8 -0
- package/lib-cjs/component/reducer/helper/getSpectrum.js +3 -5
- package/lib-cjs/component/reducer/helper/getStrongestPeak.js +2 -3
- package/lib-cjs/component/reducer/preferences/actions/removeWorkspace.js +3 -10
- package/lib-cjs/component/reducer/preferences/actions/setPreferences.js +5 -9
- package/lib-cjs/component/reducer/preferences/utilities/mapNucleiFormatting.js +7 -5
- package/lib-cjs/component/tool/BrushX.js +3 -3
- package/lib-cjs/component/tool/BrushXY.js +5 -5
- package/lib-cjs/component/tool/CrossLinePointer.js +3 -3
- package/lib-cjs/component/toolbar/BasicToolBar.js +8 -7
- package/lib-cjs/component/utility/Evaluate.js +2 -2
- package/lib-cjs/component/utility/FileUtility.js +11 -29
- package/lib-cjs/component/utility/GroupByInfoKey.js +11 -13
- package/lib-cjs/component/utility/PathBuilder.js +1 -1
- package/lib-cjs/component/utility/PreferencesHelper.js +2 -3
- package/lib-cjs/component/utility/{Export.js → export.js} +78 -74
- package/lib-cjs/component/utility/formatNumber.js +5 -4
- package/lib-cjs/component/workspaces/exercise.js +4 -4
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +1 -1
- package/lib-cjs/data/Filters.js +17 -35
- package/lib-cjs/data/FiltersManager.js +4 -3
- package/lib-cjs/data/PredictionManager.js +8 -10
- package/lib-cjs/data/SpectraManager.js +26 -62
- package/lib-cjs/data/data1d/MultipleAnalysis.js +74 -70
- package/lib-cjs/data/data1d/Spectrum1D/SumManager.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/generateJGraphData.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/index.js +25 -25
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.js +6 -5
- package/lib-cjs/data/data1d/Spectrum1D/integrals/updateRelatives.js +8 -10
- package/lib-cjs/data/data1d/Spectrum1D/peaks/lookupPeak.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/peaks/optimizePeaks.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/addRange.js +3 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/changeRange.js +2 -2
- package/lib-cjs/data/data1d/Spectrum1D/ranges/mapRanges.js +6 -7
- package/lib-cjs/data/data1d/database.js +45 -28
- package/lib-cjs/data/data1d/filter1d/apodization.js +2 -1
- package/lib-cjs/data/data1d/filter1d/fft.js +23 -6
- package/lib-cjs/data/data1d/filter1d/phaseCorrection.js +10 -4
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +1 -1
- package/lib-cjs/data/data1d/filter1d/zeroFilling.js +1 -1
- package/lib-cjs/data/data2d/Processing2D.js +10 -20
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +138 -0
- package/lib-cjs/data/data2d/Spectrum2D/index.js +11 -11
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +3 -4
- package/lib-cjs/data/data2d/Spectrum2D/shift/getShift.js +4 -5
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZones.js +11 -8
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +1 -1
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +1 -2
- package/lib-cjs/data/molecules/MoleculeManager.js +1 -1
- package/lib-cjs/data/utilities/RangeUtilities.js +13 -9
- package/lib-cjs/data/utilities/ZoneUtilities.js +17 -13
- package/lib-cjs/data/utilities/calculateSanPlot.js +35 -0
- package/lib-cjs/data/utilities/checkModifierKeyActivated.js +1 -2
- package/lib-cjs/data/utilities/generateChar.js +8 -6
- package/lib-cjs/data/utilities/getAtom.js +1 -1
- package/lib-cjs/data/utilities/getAtomsFromMF.js +2 -2
- package/lib-cjs/data/utilities/getColor.js +3 -3
- package/lib-cjs/data/utilities/getSum.js +6 -3
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +36 -31
- package/lib/component/1d/IntegralResizable.js +0 -72
- package/lib/component/elements/popup/helpers.d.ts +0 -1
- package/lib/component/elements/popup/helpers.js +0 -9
- package/lib/component/panels/RangesPanel/TableColumns/format.d.ts +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/format.js +0 -8
- package/lib/data/data1d/Data1DManager.d.ts +0 -3
- package/lib/data/data1d/Data1DManager.js +0 -98
- package/lib/data/data1d/filter1d/absolute.d.ts +0 -13
- package/lib/data/data1d/filter1d/absolute.js +0 -26
- package/lib/data/data2d/Data2DManager.d.ts +0 -3
- package/lib/data/data2d/Data2DManager.js +0 -34
- package/lib/data/types/data2d/Contour.d.ts +0 -4
- package/lib/data/types/data2d/Contour.js +0 -1
- package/lib/data/types/data2d/Contours.d.ts +0 -2
- package/lib/data/types/data2d/Contours.js +0 -1
- package/lib-cjs/component/1d/IntegralResizable.js +0 -77
- package/lib-cjs/component/elements/popup/helpers.js +0 -13
- package/lib-cjs/component/panels/RangesPanel/TableColumns/format.js +0 -14
- package/lib-cjs/data/data1d/Data1DManager.js +0 -104
- package/lib-cjs/data/data1d/filter1d/absolute.js +0 -32
- package/lib-cjs/data/data2d/Data2DManager.js +0 -40
- package/lib-cjs/data/types/data2d/Contour.js +0 -2
- package/lib-cjs/data/types/data2d/Contours.js +0 -2
|
@@ -18,18 +18,17 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
18
18
|
if (correlation.pseudo === true) {
|
|
19
19
|
return [];
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
return correlation.link.flatMap((link) => {
|
|
22
|
+
const ids = [];
|
|
23
23
|
if (link.pseudo === false) {
|
|
24
|
-
ids.push(link.signal.id);
|
|
25
|
-
ids.push(buildID(link.signal.id, 'Crosshair_Y'));
|
|
24
|
+
ids.push(link.signal.id, buildID(link.signal.id, 'Crosshair_Y'));
|
|
26
25
|
const _id = findRangeOrZoneID(spectraData, link.experimentID, link.signal.id, true);
|
|
27
26
|
if (_id) {
|
|
28
27
|
ids.push(_id);
|
|
29
28
|
}
|
|
30
29
|
}
|
|
30
|
+
return ids;
|
|
31
31
|
});
|
|
32
|
-
return ids;
|
|
33
32
|
}, [correlation, spectraData]);
|
|
34
33
|
const highlightRow = useHighlight(highlightIDsRow);
|
|
35
34
|
const onSaveEquivalencesHandler = useCallback((e) => {
|
|
@@ -45,8 +44,8 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
45
44
|
const additionalColumnFields = useMemo(() => {
|
|
46
45
|
return additionalColumnData.map((_correlation) => {
|
|
47
46
|
const commonLinks = [];
|
|
48
|
-
correlation.link
|
|
49
|
-
_correlation.link
|
|
47
|
+
for (const link of correlation.link) {
|
|
48
|
+
for (const _link of _correlation.link) {
|
|
50
49
|
if (link.axis !== _link.axis &&
|
|
51
50
|
link.experimentID === _link.experimentID &&
|
|
52
51
|
link.signal.id === _link.signal.id &&
|
|
@@ -62,8 +61,8 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
62
61
|
id: `${_link.id}_${link.id}`,
|
|
63
62
|
}));
|
|
64
63
|
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
67
66
|
return (_jsx(AdditionalColumnField, { rowCorrelation: correlation, columnCorrelation: _correlation, commonLinks: commonLinks, correlations: correlations, spectraData: spectraData, onEdit: onEditCorrelationTableCellHandler }, `addColData_${correlation.id}_${_correlation.id}`));
|
|
68
67
|
});
|
|
69
68
|
}, [
|
|
@@ -90,6 +89,16 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
90
89
|
}, [highlightRow]);
|
|
91
90
|
const isInView = useInView({ correlation });
|
|
92
91
|
const tableDataProps = useMemo(() => {
|
|
92
|
+
const title = [
|
|
93
|
+
...new Set(correlation.link
|
|
94
|
+
.map((link) => {
|
|
95
|
+
if (link.pseudo === false) {
|
|
96
|
+
return link.experimentType.toUpperCase();
|
|
97
|
+
}
|
|
98
|
+
return undefined;
|
|
99
|
+
})
|
|
100
|
+
.sort()),
|
|
101
|
+
].join('/');
|
|
93
102
|
return {
|
|
94
103
|
style: {
|
|
95
104
|
...styleRow,
|
|
@@ -99,17 +108,7 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
99
108
|
? '#f5f5dc'
|
|
100
109
|
: 'inherit',
|
|
101
110
|
},
|
|
102
|
-
title: correlation.pseudo === false &&
|
|
103
|
-
correlation.link
|
|
104
|
-
.reduce((arr, link) => {
|
|
105
|
-
if (link.pseudo === false &&
|
|
106
|
-
!arr.includes(link.experimentType.toUpperCase())) {
|
|
107
|
-
arr.push(link.experimentType.toUpperCase());
|
|
108
|
-
}
|
|
109
|
-
return arr;
|
|
110
|
-
}, [])
|
|
111
|
-
.sort()
|
|
112
|
-
.join('/'),
|
|
111
|
+
title: correlation.pseudo === false && title,
|
|
113
112
|
onMouseEnter: mouseEnterHandler,
|
|
114
113
|
onMouseLeave: mouseLeaveHandler,
|
|
115
114
|
};
|
|
@@ -171,7 +170,7 @@ function CorrelationTableRow({ additionalColumnData, correlations, correlation,
|
|
|
171
170
|
contextRef.current.handleContextMenu(e);
|
|
172
171
|
}, [contextRef]);
|
|
173
172
|
const { title, ...otherTableDataProps } = tableDataProps;
|
|
174
|
-
const t =
|
|
173
|
+
const t = title || '';
|
|
175
174
|
return (_jsxs("tr", { style: styleRow, children: [_jsxs("td", { title: t, ...{
|
|
176
175
|
...otherTableDataProps,
|
|
177
176
|
style: { ...tableDataProps.style, styleLabel },
|
|
@@ -35,24 +35,24 @@ const moveLinkStyles = css `
|
|
|
35
35
|
background-color: gray;
|
|
36
36
|
}
|
|
37
37
|
`;
|
|
38
|
+
function getCorrelationLabel(correlation) {
|
|
39
|
+
const delta = getCorrelationDelta(correlation);
|
|
40
|
+
return `${delta ? delta.toFixed(2) : '?'}`;
|
|
41
|
+
}
|
|
38
42
|
function MoveLink({ correlationDim1, correlationDim2, link, correlations, onEdit, }) {
|
|
39
43
|
const [selectedCorrelationIdDim1, setSelectedCorrelationIdDim1] = useState(correlationDim1.id);
|
|
40
44
|
const [selectedCorrelationIdDim2, setSelectedCorrelationIdDim2] = useState(correlationDim2?.id || undefined);
|
|
41
|
-
function getCorrelationLabel(correlation) {
|
|
42
|
-
const delta = getCorrelationDelta(correlation);
|
|
43
|
-
return `${delta ? delta.toFixed(2) : '?'}`;
|
|
44
|
-
}
|
|
45
45
|
const getSelection = useCallback((correlation, dim) => {
|
|
46
|
-
const selectionData =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
const selectionData = [];
|
|
47
|
+
for (const correlation of correlations) {
|
|
48
|
+
if (correlation.pseudo === false &&
|
|
49
|
+
correlation.atomType === link.atomType[dim]) {
|
|
50
|
+
selectionData.push({
|
|
51
|
+
value: correlation.id,
|
|
52
|
+
label: `${correlation.label.origin}: ${getCorrelationLabel(correlation)}`,
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
-
}, []);
|
|
55
|
+
}
|
|
56
56
|
selectionData.push({
|
|
57
57
|
key: 'new',
|
|
58
58
|
value: 'new',
|
|
@@ -75,11 +75,7 @@ export default function SetShiftToleranceModal({ onClose, onSave, previousTolera
|
|
|
75
75
|
useEffect(() => {
|
|
76
76
|
if (previousTolerance) {
|
|
77
77
|
setTolerance(previousTolerance);
|
|
78
|
-
|
|
79
|
-
Object.keys(previousTolerance).forEach((atomType) => {
|
|
80
|
-
_isValid[atomType] = true;
|
|
81
|
-
});
|
|
82
|
-
setIsValid(_isValid);
|
|
78
|
+
setIsValid(Object.fromEntries(Object.keys(previousTolerance).map((atomType) => [atomType, true])));
|
|
83
79
|
}
|
|
84
80
|
else {
|
|
85
81
|
setTolerance(undefined);
|
|
@@ -49,26 +49,36 @@ function findSignalMatch2D(spectrum, link, factor, xDomain0, xDomain1, yDomain0,
|
|
|
49
49
|
}
|
|
50
50
|
function getAbbreviation(link) {
|
|
51
51
|
let abbreviation = 'X';
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
52
|
+
switch (link.experimentType) {
|
|
53
|
+
case 'hsqc':
|
|
54
|
+
case 'hmqc': {
|
|
55
|
+
abbreviation =
|
|
56
|
+
!link.signal || link.signal.sign === 0
|
|
57
|
+
? 'S'
|
|
58
|
+
: `S${link.signal.sign === 1 ? '+' : '-'}`;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
case 'hmbc':
|
|
62
|
+
case 'cosy':
|
|
63
|
+
case 'tocsy': {
|
|
64
|
+
abbreviation = 'M';
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
case 'noesy':
|
|
68
|
+
case 'roesy': {
|
|
69
|
+
abbreviation = 'NOE';
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
case 'inadequate': {
|
|
73
|
+
abbreviation = 'I';
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
case 'adequate': {
|
|
77
|
+
abbreviation = 'A';
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
// TODO: handle default?
|
|
81
|
+
// No default
|
|
72
82
|
}
|
|
73
83
|
const pathLength = link.signal.j?.pathLength;
|
|
74
84
|
if (pathLength) {
|
|
@@ -123,89 +133,90 @@ function getEditedCorrelations({ correlationDim1, correlationDim2, selectedCorre
|
|
|
123
133
|
const linkDim = getLinkDim(link);
|
|
124
134
|
const editedCorrelations = [];
|
|
125
135
|
const buildCorrelationDataOptions = {};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
136
|
+
switch (action) {
|
|
137
|
+
case 'move': {
|
|
138
|
+
if (linkDim === 1) {
|
|
139
|
+
// modify current cell correlation
|
|
140
|
+
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
141
|
+
// modify selected correlation
|
|
142
|
+
let newCorrelationDim1;
|
|
143
|
+
if (selectedCorrelationDim1) {
|
|
144
|
+
newCorrelationDim1 = cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add');
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
newCorrelationDim1 = buildCorrelation({
|
|
148
|
+
atomType: correlationDim1.atomType,
|
|
149
|
+
link: [buildNewLink1D(link)],
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
editedCorrelations.push(_correlationDim1, newCorrelationDim1);
|
|
153
|
+
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
134
154
|
}
|
|
135
|
-
else {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
155
|
+
else if (linkDim === 2) {
|
|
156
|
+
// modify current cell correlations
|
|
157
|
+
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
158
|
+
editedCorrelations.push(_correlationDim1);
|
|
159
|
+
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
160
|
+
editedCorrelations.push(_correlationDim2);
|
|
161
|
+
// modify selected correlations
|
|
162
|
+
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
163
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'), cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
164
|
+
}
|
|
165
|
+
else if (selectedCorrelationDim1 &&
|
|
166
|
+
selectedCorrelationIdDim2 === 'new') {
|
|
167
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'), buildCorrelation({
|
|
168
|
+
atomType: correlationDim2.atomType,
|
|
169
|
+
link: [buildNewLink2D(link, 'y')],
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
173
|
+
selectedCorrelationDim2) {
|
|
174
|
+
editedCorrelations.push(buildCorrelation({
|
|
175
|
+
atomType: correlationDim1.atomType,
|
|
176
|
+
link: [buildNewLink2D(link, 'x')],
|
|
177
|
+
}), cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
178
|
+
}
|
|
179
|
+
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
180
|
+
selectedCorrelationIdDim2 === 'new') {
|
|
181
|
+
editedCorrelations.push(buildCorrelation({
|
|
182
|
+
atomType: correlationDim1.atomType,
|
|
183
|
+
link: [buildNewLink2D(link, 'x')],
|
|
184
|
+
}), buildCorrelation({
|
|
185
|
+
atomType: correlationDim2.atomType,
|
|
186
|
+
link: [buildNewLink2D(link, 'y')],
|
|
187
|
+
}));
|
|
188
|
+
}
|
|
189
|
+
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
140
190
|
}
|
|
141
|
-
|
|
142
|
-
buildCorrelationDataOptions.skipDataUpdate = true;
|
|
191
|
+
break;
|
|
143
192
|
}
|
|
144
|
-
|
|
145
|
-
// modify current cell correlations
|
|
193
|
+
case 'remove': {
|
|
146
194
|
const _correlationDim1 = cloneCorrelationAndEditLink(correlationDim1, link, 'x', 'remove');
|
|
147
195
|
editedCorrelations.push(_correlationDim1);
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
152
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim1 ? selectedCorrelationDim1 : _correlationDim1, link, 'x', 'add'));
|
|
153
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
196
|
+
if (getLinkDim(link) === 2) {
|
|
197
|
+
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
198
|
+
editedCorrelations.push(_correlationDim2);
|
|
154
199
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
case 'unmove': {
|
|
203
|
+
if (linkDim === 1) {
|
|
204
|
+
if (selectedCorrelationDim1) {
|
|
205
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
206
|
+
}
|
|
162
207
|
}
|
|
163
|
-
else if (
|
|
208
|
+
else if (linkDim === 2 &&
|
|
209
|
+
selectedCorrelationDim1 &&
|
|
164
210
|
selectedCorrelationDim2) {
|
|
165
|
-
editedCorrelations.push(
|
|
166
|
-
atomType: correlationDim1.atomType,
|
|
167
|
-
link: [buildNewLink2D(link, 'x')],
|
|
168
|
-
}));
|
|
169
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(hasChangedDim2 ? selectedCorrelationDim2 : _correlationDim2, link, 'y', 'add'));
|
|
170
|
-
}
|
|
171
|
-
else if (selectedCorrelationIdDim1 === 'new' &&
|
|
172
|
-
selectedCorrelationIdDim2 === 'new') {
|
|
173
|
-
editedCorrelations.push(buildCorrelation({
|
|
174
|
-
atomType: correlationDim1.atomType,
|
|
175
|
-
link: [buildNewLink2D(link, 'x')],
|
|
176
|
-
}));
|
|
177
|
-
editedCorrelations.push(buildCorrelation({
|
|
178
|
-
atomType: correlationDim2.atomType,
|
|
179
|
-
link: [buildNewLink2D(link, 'y')],
|
|
180
|
-
}));
|
|
211
|
+
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'), cloneCorrelationAndEditLink(selectedCorrelationDim2, link, 'y', 'unmove'));
|
|
181
212
|
}
|
|
182
|
-
|
|
213
|
+
break;
|
|
183
214
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
editedCorrelations.push(_correlationDim1);
|
|
188
|
-
if (getLinkDim(link) === 2) {
|
|
189
|
-
const _correlationDim2 = cloneCorrelationAndEditLink(correlationDim2, link, 'y', 'remove');
|
|
190
|
-
editedCorrelations.push(_correlationDim2);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
else if (action === 'unmove') {
|
|
194
|
-
if (linkDim === 1) {
|
|
195
|
-
if (selectedCorrelationDim1) {
|
|
196
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
197
|
-
}
|
|
215
|
+
case 'setPathLength': {
|
|
216
|
+
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim1, link, 'x'), cloneCorrelationAndSetPathLength(correlationDim2, link, 'y'));
|
|
217
|
+
break;
|
|
198
218
|
}
|
|
199
|
-
|
|
200
|
-
if (selectedCorrelationDim1 && selectedCorrelationDim2) {
|
|
201
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim1, link, 'x', 'unmove'));
|
|
202
|
-
editedCorrelations.push(cloneCorrelationAndEditLink(selectedCorrelationDim2, link, 'y', 'unmove'));
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
else if (action === 'setPathLength') {
|
|
207
|
-
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim1, link, 'x'));
|
|
208
|
-
editedCorrelations.push(cloneCorrelationAndSetPathLength(correlationDim2, link, 'y'));
|
|
219
|
+
// No default
|
|
209
220
|
}
|
|
210
221
|
return { editedCorrelations, buildCorrelationDataOptions };
|
|
211
222
|
}
|
|
@@ -247,13 +258,13 @@ function convertValuesString(valuesString, key) {
|
|
|
247
258
|
.join(',');
|
|
248
259
|
valuesString = valuesString.replaceAll('sp', '');
|
|
249
260
|
let values = [];
|
|
250
|
-
const regex = /^(
|
|
261
|
+
const regex = /^(?:\d,{0,1})+$/g;
|
|
251
262
|
if (regex.test(valuesString)) {
|
|
252
263
|
// allow digits followed by optional comma only
|
|
253
264
|
values = valuesString
|
|
254
265
|
.split(',')
|
|
255
266
|
.filter((char) => char.length > 0)
|
|
256
|
-
.map(
|
|
267
|
+
.map(Number);
|
|
257
268
|
}
|
|
258
269
|
// allow key specific values only
|
|
259
270
|
// protonsCount: [0, 1, 2, 3, ...], hybridization: [1, 2, 3]
|
|
@@ -62,10 +62,10 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
62
62
|
}
|
|
63
63
|
}, [contextRef]);
|
|
64
64
|
const data = useMemo(() => {
|
|
65
|
-
const
|
|
66
|
-
tableData.
|
|
65
|
+
const data = [];
|
|
66
|
+
for (const [i, zone] of tableData.entries()) {
|
|
67
67
|
if (zone.signals.length === 1) {
|
|
68
|
-
|
|
68
|
+
data.push({
|
|
69
69
|
...zone,
|
|
70
70
|
tableMetaInfo: {
|
|
71
71
|
...zone.tableMetaInfo,
|
|
@@ -79,7 +79,7 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
else if (zone.signals.length > 1) {
|
|
82
|
-
zone.signals.
|
|
82
|
+
for (const [j, signal] of zone.signals.entries()) {
|
|
83
83
|
let hide = false;
|
|
84
84
|
let rowSpan = null;
|
|
85
85
|
if (j < zone.signals.length - 1) {
|
|
@@ -93,7 +93,7 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
93
93
|
else {
|
|
94
94
|
hide = true;
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
data.push({
|
|
97
97
|
...zone,
|
|
98
98
|
tableMetaInfo: {
|
|
99
99
|
...zone.tableMetaInfo,
|
|
@@ -106,10 +106,10 @@ function ZonesTable({ tableData, onUnlink, context, nuclei, experiment, }) {
|
|
|
106
106
|
experiment,
|
|
107
107
|
},
|
|
108
108
|
});
|
|
109
|
-
}
|
|
109
|
+
}
|
|
110
110
|
}
|
|
111
|
-
}
|
|
112
|
-
return
|
|
111
|
+
}
|
|
112
|
+
return data;
|
|
113
113
|
}, [experiment, nuclei, tableData]);
|
|
114
114
|
const { items: sortedData, isSortedDesc, onSort } = useTableSortBy(data);
|
|
115
115
|
const { deltaPPM: deltaX } = usePanelPreferences('zones', nuclei[0]);
|
|
@@ -143,7 +143,8 @@ function DatabasePanelInner({ nucleus, selectedTool, databases, defaultDatabase,
|
|
|
143
143
|
baseURL: url,
|
|
144
144
|
})));
|
|
145
145
|
}
|
|
146
|
-
catch (
|
|
146
|
+
catch (error) {
|
|
147
|
+
reportError(error);
|
|
147
148
|
alert.error(`Failed to load ${url}`);
|
|
148
149
|
}
|
|
149
150
|
finally {
|
|
@@ -192,7 +193,7 @@ function DatabasePanelInner({ nucleus, selectedTool, databases, defaultDatabase,
|
|
|
192
193
|
payload: { file: result, ranges, jcampURL },
|
|
193
194
|
});
|
|
194
195
|
}
|
|
195
|
-
catch
|
|
196
|
+
catch {
|
|
196
197
|
alert.error(`Failed to load Jcamp`);
|
|
197
198
|
}
|
|
198
199
|
finally {
|
|
@@ -250,7 +251,7 @@ function DatabasePanelInner({ nucleus, selectedTool, databases, defaultDatabase,
|
|
|
250
251
|
fontSize: '14px',
|
|
251
252
|
} })) : (_jsx(BsHexagonFill, { style: {
|
|
252
253
|
fontSize: '14px',
|
|
253
|
-
} })) })] })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: !isFlipped ? (tableData && tableData.length > 0 ? (_jsx(DatabaseTable, { data: tableData, onAdd: resurrectHandler })) : (_jsx(NoTableData, { text: databases && databases?.length > 0
|
|
254
|
+
} })) })] })), isFlipped && (_jsx(PreferencesHeader, { onSave: saveSettingHandler, onClose: settingsPanelHandler })), _jsx("div", { className: "inner-container", children: !isFlipped ? (tableData && tableData.length > 0 ? (_jsx(DatabaseTable, { data: tableData, totalCount: result.data.length, onAdd: resurrectHandler })) : (_jsx(NoTableData, { text: databases && databases?.length > 0
|
|
254
255
|
? 'Please select a database'
|
|
255
256
|
: 'Please add databases URL in the general preferences' }))) : (_jsx(DatabasePreferences, { ref: settingRef })) })] }));
|
|
256
257
|
}
|
|
@@ -270,7 +271,7 @@ function mapSolventsToSelect(solvents) {
|
|
|
270
271
|
label: key,
|
|
271
272
|
value: key,
|
|
272
273
|
};
|
|
273
|
-
}
|
|
274
|
+
});
|
|
274
275
|
result.unshift({ label: 'All', value: '-1' });
|
|
275
276
|
return result;
|
|
276
277
|
}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
interface DatabaseTableProps {
|
|
3
3
|
data: any;
|
|
4
4
|
onAdd: (row: any) => void;
|
|
5
|
+
totalCount: number;
|
|
5
6
|
}
|
|
6
|
-
declare function DatabaseTable({ data, onAdd }: DatabaseTableProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DatabaseTable({ data, onAdd, totalCount }: DatabaseTableProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
8
|
declare const _default: import("react").MemoExoticComponent<typeof DatabaseTable>;
|
|
8
9
|
export default _default;
|
|
@@ -35,7 +35,9 @@ const databaseTableColumns = (databasePreferences) => [
|
|
|
35
35
|
Header: 'From - To',
|
|
36
36
|
accessor: (row) => {
|
|
37
37
|
const rangeFormat = databasePreferences.range.format;
|
|
38
|
-
return
|
|
38
|
+
return row?.from && row?.to
|
|
39
|
+
? `${formatNumber(row.from, rangeFormat)} - ${formatNumber(row.to, rangeFormat)}`
|
|
40
|
+
: '';
|
|
39
41
|
},
|
|
40
42
|
enableRowSpan: true,
|
|
41
43
|
},
|
|
@@ -43,7 +45,18 @@ const databaseTableColumns = (databasePreferences) => [
|
|
|
43
45
|
showWhen: 'delta.show',
|
|
44
46
|
index: 3,
|
|
45
47
|
Header: 'δ (ppm)',
|
|
46
|
-
|
|
48
|
+
style: overFlowStyle,
|
|
49
|
+
accessor: (row) => {
|
|
50
|
+
if (typeof row.delta === 'string' && !row?.delta) {
|
|
51
|
+
return row.delta
|
|
52
|
+
.split(',')
|
|
53
|
+
.map((value) => formatNumber(value, databasePreferences.delta.format))
|
|
54
|
+
.join(',');
|
|
55
|
+
}
|
|
56
|
+
return row?.delta
|
|
57
|
+
? formatNumber(row.delta, databasePreferences.delta.format)
|
|
58
|
+
: '';
|
|
59
|
+
},
|
|
47
60
|
},
|
|
48
61
|
{
|
|
49
62
|
showWhen: 'showAssignment',
|
|
@@ -61,7 +74,9 @@ const databaseTableColumns = (databasePreferences) => [
|
|
|
61
74
|
showWhen: 'coupling.show',
|
|
62
75
|
index: 6,
|
|
63
76
|
Header: 'J (Hz)',
|
|
64
|
-
accessor: (row) =>
|
|
77
|
+
accessor: (row) => row?.coupling
|
|
78
|
+
? formatNumber(row.coupling, databasePreferences.coupling.format)
|
|
79
|
+
: '',
|
|
65
80
|
style: {
|
|
66
81
|
width: '60px',
|
|
67
82
|
minWidth: '60px',
|
|
@@ -103,7 +118,7 @@ const databaseTableColumns = (databasePreferences) => [
|
|
|
103
118
|
},
|
|
104
119
|
},
|
|
105
120
|
];
|
|
106
|
-
function DatabaseTable({ data, onAdd }) {
|
|
121
|
+
function DatabaseTable({ data, onAdd, totalCount }) {
|
|
107
122
|
const databasePreferences = usePanelPreferences('database');
|
|
108
123
|
const initialColumns = useMemo(() => [
|
|
109
124
|
{
|
|
@@ -128,6 +143,6 @@ function DatabaseTable({ data, onAdd }) {
|
|
|
128
143
|
}
|
|
129
144
|
return columns.sort((object1, object2) => object1.index - object2.index);
|
|
130
145
|
}, [databasePreferences, initialColumns]);
|
|
131
|
-
return (_jsx(ReactTable, { data: data, columns: tableColumns, highlightedSource: HighlightEventSource.DATABASE, groupKey: "index", approxItemHeight:
|
|
146
|
+
return (_jsx(ReactTable, { data: data, columns: tableColumns, highlightedSource: HighlightEventSource.DATABASE, groupKey: "index", approxItemHeight: 23.5, enableVirtualScroll: true, totalCount: totalCount }));
|
|
132
147
|
}
|
|
133
148
|
export default memo(DatabaseTable);
|
|
@@ -29,10 +29,13 @@ export default class ColumnsHelper {
|
|
|
29
29
|
: this.defaultPreference[formatKey];
|
|
30
30
|
const { formatPrefix = '', formatSuffix = '', showPrefixSuffixCallback = () => true, } = options;
|
|
31
31
|
if (showPrefixSuffixCallback(row)) {
|
|
32
|
-
return formatNumber(row.original[columnKey], format,
|
|
32
|
+
return formatNumber(row.original[columnKey], format, {
|
|
33
|
+
prefix: formatPrefix,
|
|
34
|
+
suffix: formatSuffix,
|
|
35
|
+
});
|
|
33
36
|
}
|
|
34
37
|
else {
|
|
35
|
-
return formatNumber(row.original[columnKey], format
|
|
38
|
+
return formatNumber(row.original[columnKey], format);
|
|
36
39
|
}
|
|
37
40
|
});
|
|
38
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare function getMultiplicityNumber(string: any): number | null;
|
|
2
2
|
declare function checkMultiplet(multiplet: any, rejected?: Array<any>): boolean | undefined;
|
|
3
|
-
declare function checkMultiplicity(multiplicity: any, rejected?: Array<string>):
|
|
3
|
+
declare function checkMultiplicity(multiplicity: any, rejected?: Array<string>): any;
|
|
4
4
|
declare function translateMultiplet(multiplet: any): string | undefined;
|
|
5
|
-
declare function hasCouplingConstant(multiplet: any):
|
|
5
|
+
declare function hasCouplingConstant(multiplet: any): any;
|
|
6
6
|
declare function getPascal(n: any, spin: any): any[];
|
|
7
7
|
export { checkMultiplet, checkMultiplicity, getMultiplicityNumber, getPascal, hasCouplingConstant, translateMultiplet, };
|
|
@@ -18,9 +18,9 @@ function checkMultiplicity(multiplicity, rejected = []) {
|
|
|
18
18
|
if (multiplicity === undefined || multiplicity.length === 0) {
|
|
19
19
|
return false;
|
|
20
20
|
}
|
|
21
|
-
return
|
|
21
|
+
return multiplicity
|
|
22
22
|
.split('')
|
|
23
|
-
.
|
|
23
|
+
.every((_multiplet) => checkMultiplet(_multiplet, rejected));
|
|
24
24
|
}
|
|
25
25
|
function translateMultiplet(multiplet) {
|
|
26
26
|
return multiplet.length === 1
|
|
@@ -90,7 +90,7 @@ function FiltersTableInner({ filters, spectraCounter, selectedTool, activeFilter
|
|
|
90
90
|
}, [activeFilterID, selectedTool]);
|
|
91
91
|
const filtersTableRow = useMemo(() => {
|
|
92
92
|
return filters?.map((d, index) => {
|
|
93
|
-
return (_jsxs(TableRow, { className: getStyle(d, index), children: [_jsx(TableCell, { align: "center", size: 2, onClick: () => filterSnapShotHandler(d.id), children: d.label }), _jsx(TableCell, { align: "left", size: 3, children: _jsx("div", { onClick: (e) => e.stopPropagation(), children: _jsx(ObjectInspector, { data: d.error
|
|
93
|
+
return (_jsxs(TableRow, { className: getStyle(d, index), children: [_jsx(TableCell, { align: "center", size: 2, onClick: () => filterSnapShotHandler(d.id), children: d.label }), _jsx(TableCell, { align: "left", size: 3, children: _jsx("div", { onClick: (e) => e.stopPropagation(), children: _jsx(ObjectInspector, { data: d.error || d.value }) }) }), _jsxs(TableCell, { align: "center", vAlign: "center", size: 1, children: [_jsx(CheckBox, { checked: d.flag, onChange: (event) => handelFilterCheck(d.id, event.target.checked) }), d.isDeleteAllow && (_jsx("button", { className: "btn", type: "button", onClick: () => handelDeleteFilter(d), children: _jsx(FaRegTrashAlt, {}) }))] })] }, d.id));
|
|
94
94
|
});
|
|
95
95
|
}, [
|
|
96
96
|
filterSnapShotHandler,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as types from './types/Types';
|
|
2
|
-
const ignoreActions = [
|
|
2
|
+
const ignoreActions = new Set([
|
|
3
3
|
types.APPLY_KEY_PREFERENCES,
|
|
4
4
|
types.BRUSH_END,
|
|
5
5
|
types.RESET_DOMAIN,
|
|
@@ -34,9 +34,9 @@ const ignoreActions = [
|
|
|
34
34
|
types.SHOW_MULTIPLICTY_TREES,
|
|
35
35
|
types.SHOW_RANGES_INTEGRALS,
|
|
36
36
|
types.CHANGE_FLOAT_MOLECULE_POSITION,
|
|
37
|
-
];
|
|
37
|
+
]);
|
|
38
38
|
function checkActionType(type) {
|
|
39
|
-
if (!ignoreActions.
|
|
39
|
+
if (!ignoreActions.has(type))
|
|
40
40
|
return true;
|
|
41
41
|
return false;
|
|
42
42
|
}
|