nmrium 1.8.0 → 1.10.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/lib/component/1d/ApodizationLine.js +1 -1
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/LinesSeries.js +2 -2
- package/lib/component/1d/LinesSeries.js.map +1 -1
- package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +2 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/SimilarityTree.d.ts.map +1 -1
- package/lib/component/1d/SimilarityTree.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +13 -20
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +1 -0
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.js +2 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.js +2 -2
- package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +4 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts +2 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +6 -4
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/Atoms.js +2 -2
- package/lib/component/1d/ranges/Atoms.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +2 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +28 -56
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +19 -13
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts +14 -0
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts.map +1 -0
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js +67 -0
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js.map +1 -0
- package/lib/component/1d/tool/BaseLineZones.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLineZones.js.map +1 -1
- package/lib/component/1d/utilities/intersectionResolver.d.ts.map +1 -1
- package/lib/component/1d/utilities/intersectionResolver.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.js +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +41 -46
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts +2 -2
- package/lib/component/2d/FooterBanner.d.ts.map +1 -1
- package/lib/component/2d/FooterBanner.js +63 -97
- package/lib/component/2d/FooterBanner.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +2 -2
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/SlicingView.js +1 -1
- package/lib/component/2d/SlicingView.js.map +1 -1
- package/lib/component/2d/Viewer2D.js +1 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +2 -2
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/ft/FTContainer.js +1 -1
- package/lib/component/2d/ft/FTContainer.js.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.d.ts +2 -2
- package/lib/component/2d/tools/XYLabelPointer.d.ts.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +10 -9
- package/lib/component/2d/tools/XYLabelPointer.js.map +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts +3 -2
- package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.js +17 -9
- package/lib/component/2d/useTracesSpectra.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js +2 -2
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/zones/Signal.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +15 -13
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +5 -6
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +2 -0
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +6 -0
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js +1 -2
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +3 -2
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +7 -4
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +17 -3
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/AssignmentsCell.d.ts.map +1 -1
- package/lib/component/elements/AssignmentsCell.js.map +1 -1
- package/lib/component/elements/Button.d.ts.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/CheckController.d.ts.map +1 -1
- package/lib/component/elements/CheckController.js.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.d.ts.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.js.map +1 -1
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/Input2.d.ts.map +1 -1
- package/lib/component/elements/Input2.js.map +1 -1
- package/lib/component/elements/Input2Controller.d.ts.map +1 -1
- package/lib/component/elements/Input2Controller.js.map +1 -1
- package/lib/component/elements/Label.d.ts.map +1 -1
- package/lib/component/elements/Label.js.map +1 -1
- package/lib/component/elements/NumberInput2.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2.js.map +1 -1
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
- package/lib/component/elements/ReadOnly.d.ts.map +1 -1
- package/lib/component/elements/ReadOnly.js.map +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select.js.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.js +2 -4
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.js +2 -4
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js +2 -4
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +2 -2
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.js +2 -4
- package/lib/component/hooks/useActiveSpectrumZonesViewState.js.map +1 -1
- package/lib/component/hooks/useExport.js +1 -1
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +28 -47
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.d.ts +2 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.d.ts.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js +2 -2
- package/lib/component/hooks/useSetActiveSpectrumAction.js.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.js +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -1
- package/lib/component/hooks/useWorkspaceAction.d.ts +1 -1
- package/lib/component/hooks/useWorkspaceAction.d.ts.map +1 -1
- package/lib/component/hooks/useWorkspaceAction.js +3 -0
- package/lib/component/hooks/useWorkspaceAction.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +5 -1
- package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +16 -14
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +27 -18
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +0 -3
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +5 -20
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +9 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +19 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +6 -6
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.d.ts +5 -0
- package/lib/component/panels/databasePanel/DatabaseInfo.d.ts.map +1 -0
- package/lib/component/panels/databasePanel/DatabaseInfo.js +29 -0
- package/lib/component/panels/databasePanel/DatabaseInfo.js.map +1 -0
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +21 -3
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +13 -9
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/reducer/Reducer.js +7 -7
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.js +9 -9
- package/lib/component/reducer/actions/AssignmentsActions.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +21 -21
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +5 -3
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +10 -18
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +28 -44
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +9 -18
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +43 -48
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +64 -10
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +110 -121
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +2 -1
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +18 -18
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +148 -171
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +29 -31
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +10 -11
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +8 -9
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +123 -151
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/get2DRange.d.ts +3 -1
- package/lib/component/reducer/helper/get2DRange.d.ts.map +1 -1
- package/lib/component/reducer/helper/get2DRange.js.map +1 -1
- package/lib/component/reducer/helper/getSpectrum.js +1 -1
- package/lib/component/reducer/helper/getSpectrum.js.map +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.js +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.js.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.js +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +5 -1
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.js +1 -1
- package/lib/component/toolbar/ToolTypes.js.map +1 -1
- package/lib/component/useWatchForm.d.ts.map +1 -1
- package/lib/component/useWatchForm.js.map +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.d.ts +3 -0
- package/lib/component/utility/filterDatabaseInfoEntry.d.ts.map +1 -0
- package/lib/component/utility/filterDatabaseInfoEntry.js +9 -0
- package/lib/component/utility/filterDatabaseInfoEntry.js.map +1 -0
- package/lib/component/utility/stackOverlappingLabels.d.ts +1 -1
- package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.js.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -1
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/simulation.js +1 -1
- package/lib/component/workspaces/simulation.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.js +0 -3
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +8 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -2
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +4 -14
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +2 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +3 -5
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +3 -5
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +2 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +7 -63
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +9 -14
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +2 -10
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +23 -43
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +1 -54
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js.map +1 -1
- package/lib/data/molecules/Molecule.d.ts.map +1 -1
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +2 -1
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +30 -3
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/types/data1d/RangeDetectionResult.d.ts.map +1 -1
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/data/utilities/FindUtilities.js +11 -11
- package/lib/data/utilities/FindUtilities.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.d.ts +2 -2
- package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.js +8 -2
- package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +28 -25
- package/src/component/1d/ApodizationLine.tsx +1 -1
- package/src/component/1d/BrushTracker1D.tsx +10 -10
- package/src/component/1d/FooterBanner.tsx +2 -2
- package/src/component/1d/LinesSeries.tsx +2 -2
- package/src/component/1d/SVGContent1D.tsx +6 -2
- package/src/component/1d/SimilarityTree.tsx +3 -2
- package/src/component/1d/inset/InsetProvider.tsx +4 -2
- package/src/component/1d/integral/IntegralResizable.tsx +2 -1
- package/src/component/1d/matrix/Boxplot.tsx +3 -3
- package/src/component/1d/multiAnalysis/AnalysisRange.tsx +2 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +24 -23
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +10 -1
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +4 -2
- package/src/component/1d/peaks/PeakEditionManager.tsx +8 -3
- package/src/component/1d/peaks/Peaks.tsx +5 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +8 -5
- package/src/component/1d/ranges/Atoms.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +42 -74
- package/src/component/1d/ranges/Ranges.tsx +33 -28
- package/src/component/1d/ranges/useAssignmentsPopoverActionsButtons.tsx +93 -0
- package/src/component/1d/tool/BaseLineZones.tsx +2 -1
- package/src/component/1d/utilities/intersectionResolver.ts +3 -4
- package/src/component/1d-2d/FieldEdition.tsx +2 -2
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +2 -2
- package/src/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.tsx +1 -1
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +1 -1
- package/src/component/2d/BrushTracker2D.tsx +50 -55
- package/src/component/2d/FooterBanner.tsx +80 -105
- package/src/component/2d/SVGContent2D.tsx +2 -3
- package/src/component/2d/SlicingView.tsx +1 -1
- package/src/component/2d/Viewer2D.tsx +2 -2
- package/src/component/2d/ft/FTContainer.tsx +4 -5
- package/src/component/2d/tools/XYLabelPointer.tsx +12 -11
- package/src/component/2d/useTracesSpectra.ts +26 -13
- package/src/component/2d/utilities/extractSpectrumSignals.ts +2 -2
- package/src/component/2d/zones/Signal.tsx +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +21 -19
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +4 -4
- package/src/component/EventsTrackers/BrushTracker.tsx +24 -17
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +6 -0
- package/src/component/assignment/utilities/getAssignments.ts +1 -2
- package/src/component/context/KeyModifierContext.tsx +13 -5
- package/src/component/elements/ActionsButtonsPopover.tsx +25 -8
- package/src/component/elements/AssignmentsCell.tsx +1 -2
- package/src/component/elements/Button.tsx +3 -2
- package/src/component/elements/CheckController.tsx +2 -1
- package/src/component/elements/ContextMenuBluePrint.tsx +2 -1
- package/src/component/elements/D3Axis.tsx +3 -3
- package/src/component/elements/DraggableDialog.tsx +2 -1
- package/src/component/elements/Input.tsx +4 -2
- package/src/component/elements/Input2.tsx +1 -2
- package/src/component/elements/Input2Controller.tsx +2 -1
- package/src/component/elements/Label.tsx +2 -1
- package/src/component/elements/NumberInput2.tsx +4 -2
- package/src/component/elements/NumberInput2Controller.tsx +3 -1
- package/src/component/elements/ReactTable/ReactTable.tsx +1 -3
- package/src/component/elements/ReadOnly.tsx +4 -2
- package/src/component/elements/Sections.tsx +5 -4
- package/src/component/elements/Select.tsx +4 -2
- package/src/component/elements/ToolbarPopoverItem.tsx +3 -3
- package/src/component/elements/export/ExportContent.tsx +1 -2
- package/src/component/elements/print/PrintContent.tsx +1 -2
- package/src/component/hooks/useActiveSpectrumIntegralsViewState.ts +2 -6
- package/src/component/hooks/useActiveSpectrumPeaksViewState.ts +2 -6
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +2 -6
- package/src/component/hooks/useActiveSpectrumStyleOptions.ts +2 -2
- package/src/component/hooks/useActiveSpectrumZonesViewState.ts +2 -6
- package/src/component/hooks/useExport.tsx +1 -1
- package/src/component/hooks/useSaveSettings.tsx +68 -81
- package/src/component/hooks/useSetActiveSpectrumAction.ts +3 -2
- package/src/component/hooks/useSpectrumWithDataSource.ts +1 -1
- package/src/component/hooks/useWorkspaceAction.ts +5 -0
- package/src/component/modal/ImportPublicationStringModal.tsx +1 -2
- package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
- package/src/component/modal/changeSum/ChangeSumModal.tsx +4 -2
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +1 -2
- package/src/component/modal/setting/GeneralSettings.tsx +7 -2
- package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +1 -1
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +4 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +24 -18
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +32 -16
- package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +0 -4
- package/src/component/panels/RangesPanel/RangesPanel.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTable.tsx +3 -8
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +14 -47
- package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +1 -2
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +40 -0
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -2
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +2 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +6 -6
- package/src/component/panels/accordionItems.tsx +4 -2
- package/src/component/panels/databasePanel/DatabaseInfo.tsx +43 -0
- package/src/component/panels/databasePanel/DatabaseTable.tsx +33 -1
- package/src/component/panels/extra/preferences/NucleusPreferences.tsx +2 -2
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +6 -2
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +17 -9
- package/src/component/reducer/Reducer.ts +8 -8
- package/src/component/reducer/actions/AssignmentsActions.ts +8 -13
- package/src/component/reducer/actions/CorrelationsActions.ts +21 -22
- package/src/component/reducer/actions/DatabaseActions.ts +5 -3
- package/src/component/reducer/actions/DomainActions.ts +16 -22
- package/src/component/reducer/actions/FiltersActions.ts +34 -58
- package/src/component/reducer/actions/InsetActions.ts +9 -19
- package/src/component/reducer/actions/IntegralsActions.ts +48 -59
- package/src/component/reducer/actions/MoleculeActions.ts +94 -14
- package/src/component/reducer/actions/PeaksActions.ts +112 -136
- package/src/component/reducer/actions/PreferencesActions.ts +4 -3
- package/src/component/reducer/actions/RangesActions.ts +196 -244
- package/src/component/reducer/actions/SpectraActions.ts +40 -45
- package/src/component/reducer/actions/ToolsActions.ts +9 -13
- package/src/component/reducer/actions/ZonesActions.ts +158 -218
- package/src/component/reducer/helper/get2DRange.ts +4 -1
- package/src/component/reducer/helper/getSpectrum.ts +1 -1
- package/src/component/reducer/helper/setIntegralsViewProperty.ts +1 -1
- package/src/component/reducer/helper/setRangesViewProperty.ts +1 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
- package/src/component/toolbar/ToolBar.tsx +6 -1
- package/src/component/toolbar/ToolTypes.ts +1 -1
- package/src/component/useWatchForm.tsx +2 -1
- package/src/component/utility/filterDatabaseInfoEntry.ts +10 -0
- package/src/component/utility/stackOverlappingLabels.ts +4 -1
- package/src/component/workspaces/prediction.ts +1 -1
- package/src/component/workspaces/simulation.ts +1 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +1 -1
- package/src/data/SpectraManager.ts +0 -2
- package/src/data/data1d/Spectrum1D/isRangeAssigned.ts +0 -4
- package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +15 -5
- package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +5 -5
- package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +5 -14
- package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +2 -1
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +2 -2
- package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +3 -5
- package/src/data/data2d/Spectrum2D/zones/detectZones.ts +3 -2
- package/src/data/data2d/Spectrum2D/zones/detectZonesManual.ts +19 -16
- package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +35 -56
- package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
- package/src/data/molecules/Molecule.ts +2 -1
- package/src/data/molecules/MoleculeManager.ts +40 -4
- package/src/data/types/data1d/RangeDetectionResult.ts +4 -2
- package/src/data/utilities/FindUtilities.ts +9 -8
- package/src/utils/clipboard/clipboardComponents.tsx +2 -1
- package/src/utils/clipboard/clipboardHooks.ts +12 -6
- package/src/versionInfo.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.d.ts +0 -8
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.d.ts.map +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js +0 -17
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js.map +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts +0 -17
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts.map +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +0 -40
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js.map +0 -1
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.tsx +0 -36
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.tsx +0 -89
|
@@ -12,15 +12,14 @@ import { filterAssignedIDs } from '../../assignment/utilities/filterAssignedIDs.
|
|
|
12
12
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
13
13
|
import { ContextMenu } from '../../elements/ContextMenuBluePrint.js';
|
|
14
14
|
import type { TableContextMenuProps } from '../../elements/ReactTable/ReactTable.js';
|
|
15
|
-
import { useHighlight
|
|
15
|
+
import { useHighlight } from '../../highlight/index.js';
|
|
16
16
|
|
|
17
17
|
import AbsoluteColumn from './TableColumns/AbsoluteColumn.js';
|
|
18
18
|
import ActionsColumn from './TableColumns/ActionsColumn.js';
|
|
19
19
|
import CouplingColumn from './TableColumns/CouplingColumn.js';
|
|
20
|
-
import { RangeAssignmentColumn } from './TableColumns/RangeAssignmentColumn.js';
|
|
21
|
-
import RangeAssignmentsColumn from './TableColumns/RangeAssignmentsColumn.js';
|
|
22
20
|
import RangeColumn from './TableColumns/RangeColumn.js';
|
|
23
21
|
import RelativeColumn from './TableColumns/RelativeColumn.js';
|
|
22
|
+
import { SignalAssignmentColumn } from './TableColumns/SignalAssignmentColumn.tsx';
|
|
24
23
|
import SignalAssignmentsColumn from './TableColumns/SignalAssignmentsColumn.js';
|
|
25
24
|
import SignalDeltaColumn from './TableColumns/SignalDeltaColumn.js';
|
|
26
25
|
import SignalDeltaHzColumn from './TableColumns/SignalDeltaHzColumn.js';
|
|
@@ -83,10 +82,6 @@ function RangesTableRow({
|
|
|
83
82
|
),
|
|
84
83
|
{ type: 'RANGE' },
|
|
85
84
|
);
|
|
86
|
-
const highlightRangeAssignmentsColumn = useHighlight(
|
|
87
|
-
assignmentRange.assignedDiaIds?.x || [],
|
|
88
|
-
{ type: 'RANGE' },
|
|
89
|
-
);
|
|
90
85
|
const signalKey = rowData?.tableMetaInfo?.id || '';
|
|
91
86
|
const assignmentSignal = useAssignment(signalKey);
|
|
92
87
|
|
|
@@ -96,8 +91,6 @@ function RangesTableRow({
|
|
|
96
91
|
: [],
|
|
97
92
|
{ type: 'SIGNAL' },
|
|
98
93
|
);
|
|
99
|
-
const highlightData = useHighlightData();
|
|
100
|
-
|
|
101
94
|
const rowSpanTags: any = useMemo(() => {
|
|
102
95
|
return {
|
|
103
96
|
rowSpan: rowData.tableMetaInfo.rowSpan,
|
|
@@ -118,7 +111,7 @@ function RangesTableRow({
|
|
|
118
111
|
const signalIndex = isOnRangeLevel ? -1 : tableMetaInfo.signalIndex;
|
|
119
112
|
|
|
120
113
|
dispatch({
|
|
121
|
-
type: '
|
|
114
|
+
type: 'UNASSIGN_1D_SIGNAL',
|
|
122
115
|
payload: {
|
|
123
116
|
rangeKey,
|
|
124
117
|
signalIndex,
|
|
@@ -150,19 +143,6 @@ function RangesTableRow({
|
|
|
150
143
|
};
|
|
151
144
|
}, [assignmentRange, highlightRange]);
|
|
152
145
|
|
|
153
|
-
const onHoverRangeAssignmentsColumn = useMemo(() => {
|
|
154
|
-
return {
|
|
155
|
-
onMouseEnter: () => {
|
|
156
|
-
assignmentRange.highlight('x');
|
|
157
|
-
highlightRangeAssignmentsColumn.show();
|
|
158
|
-
},
|
|
159
|
-
onMouseLeave: () => {
|
|
160
|
-
assignmentRange.clearHighlight();
|
|
161
|
-
highlightRangeAssignmentsColumn.hide();
|
|
162
|
-
},
|
|
163
|
-
};
|
|
164
|
-
}, [assignmentRange, highlightRangeAssignmentsColumn]);
|
|
165
|
-
|
|
166
146
|
const onHoverSignal = useMemo(() => {
|
|
167
147
|
return {
|
|
168
148
|
onMouseEnter: () => {
|
|
@@ -201,10 +181,10 @@ function RangesTableRow({
|
|
|
201
181
|
</td>
|
|
202
182
|
)}
|
|
203
183
|
{preferences.showAssignmentLabel && (
|
|
204
|
-
<
|
|
184
|
+
<SignalAssignmentColumn
|
|
205
185
|
row={rowData}
|
|
206
|
-
|
|
207
|
-
|
|
186
|
+
highlight={highlightSignal}
|
|
187
|
+
onHover={onHoverSignal}
|
|
208
188
|
/>
|
|
209
189
|
)}
|
|
210
190
|
|
|
@@ -274,27 +254,14 @@ function RangesTableRow({
|
|
|
274
254
|
/>
|
|
275
255
|
)}
|
|
276
256
|
{preferences.showAssignment && (
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
/>
|
|
286
|
-
|
|
287
|
-
<RangeAssignmentsColumn
|
|
288
|
-
row={rowData}
|
|
289
|
-
assignment={assignmentRange}
|
|
290
|
-
highlight={highlightRangeAssignmentsColumn}
|
|
291
|
-
onHover={onHoverRangeAssignmentsColumn}
|
|
292
|
-
onLink={linkHandler}
|
|
293
|
-
onUnlink={unlinkHandler}
|
|
294
|
-
rowSpanTags={rowSpanTags}
|
|
295
|
-
highlightData={highlightData}
|
|
296
|
-
/>
|
|
297
|
-
</>
|
|
257
|
+
<SignalAssignmentsColumn
|
|
258
|
+
row={rowData}
|
|
259
|
+
assignment={assignmentSignal}
|
|
260
|
+
highlight={highlightSignal}
|
|
261
|
+
onHover={onHoverSignal}
|
|
262
|
+
onLink={linkHandler}
|
|
263
|
+
onUnlink={unlinkHandler}
|
|
264
|
+
/>
|
|
298
265
|
)}
|
|
299
266
|
<ActionsColumn
|
|
300
267
|
row={rowData}
|
|
@@ -29,8 +29,7 @@ const ActionsCell = styled.td`
|
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
31
|
interface ActionsColumnProps
|
|
32
|
-
extends Omit<BaseRangeColumnProps, 'format'>,
|
|
33
|
-
RowSpanTags {
|
|
32
|
+
extends Omit<BaseRangeColumnProps, 'format'>, RowSpanTags {
|
|
34
33
|
onHoverSignal?: OnHoverEvent['onHover'];
|
|
35
34
|
onHoverRange?: OnHoverEvent['onHover'];
|
|
36
35
|
showKind: boolean;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useDispatch } from '../../../context/DispatchContext.tsx';
|
|
2
|
+
import { EditableColumn } from '../../../elements/EditableColumn.tsx';
|
|
3
|
+
import type { BaseRangeColumnProps, OnHoverEvent } from '../RangesTableRow.tsx';
|
|
4
|
+
|
|
5
|
+
interface SignalAssignmentColumnProps
|
|
6
|
+
extends Omit<BaseRangeColumnProps, 'format'>, OnHoverEvent {
|
|
7
|
+
highlight: {
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function SignalAssignmentColumn({
|
|
13
|
+
row,
|
|
14
|
+
onHover,
|
|
15
|
+
}: SignalAssignmentColumnProps) {
|
|
16
|
+
const dispatch = useDispatch();
|
|
17
|
+
const signal = row?.tableMetaInfo?.signal;
|
|
18
|
+
|
|
19
|
+
function saveHandler(event: any) {
|
|
20
|
+
dispatch({
|
|
21
|
+
type: 'CHANGE_1D_SIGNAL_ASSIGNMENT_LABEL',
|
|
22
|
+
payload: {
|
|
23
|
+
value: event.target.value,
|
|
24
|
+
rangeId: row.id,
|
|
25
|
+
signalId: signal.id,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<td {...onHover}>
|
|
32
|
+
<EditableColumn
|
|
33
|
+
value={signal?.assignment || ''}
|
|
34
|
+
onSave={saveHandler}
|
|
35
|
+
style={{ padding: '0.1rem 0.4rem' }}
|
|
36
|
+
type="text"
|
|
37
|
+
/>
|
|
38
|
+
</td>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -6,8 +6,7 @@ import { AssignmentsCell } from '../../../elements/AssignmentsCell.js';
|
|
|
6
6
|
import type { BaseRangeColumnProps, OnHoverEvent } from '../RangesTableRow.js';
|
|
7
7
|
|
|
8
8
|
interface SignalAssignmentsColumnProps
|
|
9
|
-
extends Omit<BaseRangeColumnProps, 'format'>,
|
|
10
|
-
OnHoverEvent {
|
|
9
|
+
extends Omit<BaseRangeColumnProps, 'format'>, OnHoverEvent {
|
|
11
10
|
assignment: AssignmentsData;
|
|
12
11
|
highlight: {
|
|
13
12
|
isActive: boolean;
|
|
@@ -369,9 +369,9 @@ function SummaryPanel() {
|
|
|
369
369
|
dispatch({
|
|
370
370
|
type: 'DELETE_1D_SIGNAL',
|
|
371
371
|
payload: {
|
|
372
|
-
spectrum,
|
|
372
|
+
spectrumId: spectrum.id,
|
|
373
373
|
range,
|
|
374
|
-
signal,
|
|
374
|
+
signalId: signal.id,
|
|
375
375
|
},
|
|
376
376
|
});
|
|
377
377
|
}
|
|
@@ -388,9 +388,9 @@ function SummaryPanel() {
|
|
|
388
388
|
dispatch({
|
|
389
389
|
type: 'DELETE_2D_SIGNAL',
|
|
390
390
|
payload: {
|
|
391
|
-
spectrum,
|
|
391
|
+
spectrumId: spectrum.id,
|
|
392
392
|
zone,
|
|
393
|
-
signal,
|
|
393
|
+
signalId: signal.id,
|
|
394
394
|
},
|
|
395
395
|
});
|
|
396
396
|
}
|
|
@@ -414,9 +414,9 @@ function SummaryPanel() {
|
|
|
414
414
|
dispatch({
|
|
415
415
|
type: 'SET_2D_SIGNAL_PATH_LENGTH',
|
|
416
416
|
payload: {
|
|
417
|
-
spectrum,
|
|
417
|
+
spectrumId: spectrum.id,
|
|
418
418
|
zone,
|
|
419
|
-
signal,
|
|
419
|
+
signalId: signal.id,
|
|
420
420
|
pathLength: link.signal.j?.pathLength,
|
|
421
421
|
},
|
|
422
422
|
});
|
|
@@ -30,8 +30,10 @@ import MultipleSpectraAnalysisPanel from './multipleAnalysisPanel/MultipleSpectr
|
|
|
30
30
|
import PredictionPane from './predictionPanel/PredictionPanel.js';
|
|
31
31
|
import SpectrumSimulation from './spectrumSimulation/SpectrumSimulation.js';
|
|
32
32
|
|
|
33
|
-
export interface AccordionItem
|
|
34
|
-
|
|
33
|
+
export interface AccordionItem extends Omit<
|
|
34
|
+
AccordionItemProps,
|
|
35
|
+
'children' | 'defaultOpened'
|
|
36
|
+
> {
|
|
35
37
|
id: keyof NMRiumPanelPreferences;
|
|
36
38
|
component: ReactElement;
|
|
37
39
|
style?: CSSProperties;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import styled from '@emotion/styled';
|
|
2
|
+
import type { DatabaseNMREntry } from 'nmr-processing';
|
|
3
|
+
|
|
4
|
+
import { filterDatabaseInfoEntry } from '../../utility/filterDatabaseInfoEntry.ts';
|
|
5
|
+
|
|
6
|
+
const Container = styled.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
const Column = styled.div`
|
|
11
|
+
padding: 5px;
|
|
12
|
+
color: white;
|
|
13
|
+
border-radius: 5px;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
margin: 2px 0;
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
const Key = styled(Column)`
|
|
20
|
+
background-color: rgb(0 0 0 / 10%);
|
|
21
|
+
flex: 1;
|
|
22
|
+
margin-right: 5px;
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
export function DatabaseInfo(props: { data: DatabaseNMREntry }) {
|
|
26
|
+
const { data } = props;
|
|
27
|
+
const meta = filterDatabaseInfoEntry(data);
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<Container>
|
|
31
|
+
<Column>
|
|
32
|
+
{Object.keys(meta).map((key, index) => {
|
|
33
|
+
return <Key key={index}>{key}</Key>;
|
|
34
|
+
})}
|
|
35
|
+
</Column>
|
|
36
|
+
<Column>
|
|
37
|
+
{Object.keys(meta).map((key, index) => {
|
|
38
|
+
return <Column key={index}>{meta[key]}</Column>;
|
|
39
|
+
})}
|
|
40
|
+
</Column>
|
|
41
|
+
</Container>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Classes } from '@blueprintjs/core';
|
|
2
2
|
import dlv from 'dlv';
|
|
3
|
+
import type { DatabaseNMREntry } from 'nmr-processing';
|
|
3
4
|
import type { CSSProperties } from 'react';
|
|
4
5
|
import { memo, useMemo } from 'react';
|
|
5
6
|
import { ResponsiveChart } from 'react-d3-utils';
|
|
6
|
-
import { FaDownload, FaMinus, FaPlus } from 'react-icons/fa';
|
|
7
|
+
import { FaDownload, FaInfoCircle, FaMinus, FaPlus } from 'react-icons/fa';
|
|
7
8
|
import { IdcodeSvgRenderer, SmilesSvgRenderer } from 'react-ocl';
|
|
8
9
|
import { Button } from 'react-science/ui';
|
|
9
10
|
import type { CellProps } from 'react-table';
|
|
@@ -18,6 +19,8 @@ import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
|
18
19
|
import useSpectraByActiveNucleus from '../../hooks/useSpectraPerNucleus.js';
|
|
19
20
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
20
21
|
|
|
22
|
+
import { DatabaseInfo } from './DatabaseInfo.tsx';
|
|
23
|
+
|
|
21
24
|
interface ToggleEvent {
|
|
22
25
|
onAdd: (row: any) => void;
|
|
23
26
|
onRemove: (row: any) => void;
|
|
@@ -144,6 +147,7 @@ const databaseTableColumns = (
|
|
|
144
147
|
width={width}
|
|
145
148
|
idcode={idCode}
|
|
146
149
|
coordinates={coordinates}
|
|
150
|
+
noAtomCustomLabels
|
|
147
151
|
/>
|
|
148
152
|
);
|
|
149
153
|
} else if (smiles) {
|
|
@@ -152,6 +156,7 @@ const databaseTableColumns = (
|
|
|
152
156
|
height={height}
|
|
153
157
|
width={width}
|
|
154
158
|
smiles={smiles}
|
|
159
|
+
noAtomCustomLabels
|
|
155
160
|
/>
|
|
156
161
|
);
|
|
157
162
|
} else {
|
|
@@ -177,6 +182,33 @@ function DatabaseTable({
|
|
|
177
182
|
|
|
178
183
|
const initialColumns = useMemo<ColumnDef[]>(
|
|
179
184
|
() => [
|
|
185
|
+
{
|
|
186
|
+
index: 0,
|
|
187
|
+
id: 'meta',
|
|
188
|
+
Header: '',
|
|
189
|
+
style: {
|
|
190
|
+
width: '1%',
|
|
191
|
+
maxWidth: '25px',
|
|
192
|
+
minWidth: '25px',
|
|
193
|
+
padding: 0,
|
|
194
|
+
},
|
|
195
|
+
Cell: ({ row }: CellProps<PrepareDataResult>) => {
|
|
196
|
+
return (
|
|
197
|
+
<Button
|
|
198
|
+
style={{ padding: 0 }}
|
|
199
|
+
minimal
|
|
200
|
+
small
|
|
201
|
+
icon={<FaInfoCircle />}
|
|
202
|
+
tooltipProps={{
|
|
203
|
+
content: (
|
|
204
|
+
<DatabaseInfo data={row.original as DatabaseNMREntry} />
|
|
205
|
+
),
|
|
206
|
+
}}
|
|
207
|
+
/>
|
|
208
|
+
);
|
|
209
|
+
},
|
|
210
|
+
enableRowSpan: true,
|
|
211
|
+
},
|
|
180
212
|
{
|
|
181
213
|
index: 10,
|
|
182
214
|
id: 'add-button',
|
|
@@ -12,8 +12,8 @@ export type NucleusPreferenceField = Omit<FormatFieldProps, 'control'> & {
|
|
|
12
12
|
|
|
13
13
|
interface NucleusPreferencesProps<
|
|
14
14
|
TFieldValues extends FieldValues = FieldValues,
|
|
15
|
-
>
|
|
16
|
-
|
|
15
|
+
>
|
|
16
|
+
extends NucleusGroupProps, Pick<ControllerProps<TFieldValues>, 'control'> {
|
|
17
17
|
fields: NucleusPreferenceField[];
|
|
18
18
|
nucleusTitle?: string;
|
|
19
19
|
}
|
|
@@ -50,8 +50,10 @@ interface InformationEditionModalProps {
|
|
|
50
50
|
isOpen: boolean;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
interface InnerInformationPanelProps
|
|
54
|
-
|
|
53
|
+
interface InnerInformationPanelProps extends Omit<
|
|
54
|
+
InformationEditionModalProps,
|
|
55
|
+
'isOpen'
|
|
56
|
+
> {
|
|
55
57
|
metaInfo: MetaInfoItem[];
|
|
56
58
|
}
|
|
57
59
|
|
|
@@ -151,6 +153,7 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
151
153
|
<Input2Controller
|
|
152
154
|
control={control}
|
|
153
155
|
name={`metaInfo.${row.index}.value`}
|
|
156
|
+
mapValue={String}
|
|
154
157
|
noShadowBox
|
|
155
158
|
/>
|
|
156
159
|
);
|
|
@@ -196,6 +199,7 @@ function InnerInformationPanel(props: InnerInformationPanelProps) {
|
|
|
196
199
|
);
|
|
197
200
|
|
|
198
201
|
const values = watch('metaInfo');
|
|
202
|
+
|
|
199
203
|
return (
|
|
200
204
|
<>
|
|
201
205
|
<StyledDialogBody>
|
|
@@ -53,6 +53,7 @@ export default function PredictionPanel() {
|
|
|
53
53
|
const dispatch = useDispatch();
|
|
54
54
|
const toaster = useToaster();
|
|
55
55
|
const { logger } = useLogger();
|
|
56
|
+
|
|
56
57
|
const [currentIndex, setCurrentIndex] = useState(0);
|
|
57
58
|
const [molfile, setMolfile] = useState<string | null>(null);
|
|
58
59
|
const [isFlipped, setFlipStatus] = useState(false);
|
|
@@ -60,21 +61,28 @@ export default function PredictionPanel() {
|
|
|
60
61
|
const { open: openAccordionPanel } = useAccordionControls();
|
|
61
62
|
const predictionPreferences = usePanelPreferences('prediction');
|
|
62
63
|
const { modal, openMoleculeEditor } = useMoleculeEditor(true);
|
|
63
|
-
const refreshSlider = useRef<boolean>(
|
|
64
|
+
const refreshSlider = useRef<boolean>(true);
|
|
64
65
|
|
|
65
66
|
const [initialMolfile] = useState(molfile ?? '');
|
|
66
67
|
|
|
67
68
|
useEffect(() => {
|
|
68
69
|
if (
|
|
69
|
-
Array.isArray(molecules)
|
|
70
|
-
molecules.length
|
|
71
|
-
refreshSlider.current
|
|
70
|
+
!Array.isArray(molecules) ||
|
|
71
|
+
molecules.length === 0 ||
|
|
72
|
+
!refreshSlider.current
|
|
72
73
|
) {
|
|
73
|
-
|
|
74
|
-
setCurrentIndex(newIndex);
|
|
75
|
-
setMolfile(molecules[newIndex].molfile);
|
|
76
|
-
refreshSlider.current = false;
|
|
74
|
+
return;
|
|
77
75
|
}
|
|
76
|
+
|
|
77
|
+
const lastIndex = molecules.length - 1;
|
|
78
|
+
const lastMolfile = molecules[lastIndex]?.molfile ?? null;
|
|
79
|
+
|
|
80
|
+
if (!lastMolfile) return;
|
|
81
|
+
|
|
82
|
+
setCurrentIndex(lastIndex);
|
|
83
|
+
setMolfile(lastMolfile);
|
|
84
|
+
|
|
85
|
+
refreshSlider.current = false;
|
|
78
86
|
}, [molecules]);
|
|
79
87
|
|
|
80
88
|
function changeHandler(event: CanvasEditorOnChangeMolecule) {
|
|
@@ -169,7 +177,7 @@ export default function PredictionPanel() {
|
|
|
169
177
|
renderSource="predictionPanel"
|
|
170
178
|
onClickPreferences={settingsPanelHandler}
|
|
171
179
|
onOpenMoleculeEditor={() => openMoleculeEditor()}
|
|
172
|
-
|
|
180
|
+
onClickPasteMolecule={() => {
|
|
173
181
|
refreshSlider.current = true;
|
|
174
182
|
}}
|
|
175
183
|
>
|
|
@@ -715,10 +715,10 @@ function innerSpectrumReducer(draft: Draft<State>, action: Action) {
|
|
|
715
715
|
return RangesActions.handleChangeRangeSignalKind(draft, action);
|
|
716
716
|
case 'SAVE_EDITED_RANGE':
|
|
717
717
|
return RangesActions.handleSaveEditedRange(draft, action);
|
|
718
|
-
case '
|
|
719
|
-
return RangesActions.
|
|
720
|
-
case '
|
|
721
|
-
return RangesActions.
|
|
718
|
+
case 'UNASSIGN_1D_SIGNAL':
|
|
719
|
+
return RangesActions.handleUnAssign1DSignal(draft, action);
|
|
720
|
+
case 'ASSIGN_1D_SIGNAL':
|
|
721
|
+
return RangesActions.handleAssign1DSignal(draft, action);
|
|
722
722
|
case 'UPDATE_RANGE':
|
|
723
723
|
return RangesActions.handleUpdateRange(draft, action);
|
|
724
724
|
case 'TOGGLE_RANGES_VIEW_PROPERTY':
|
|
@@ -731,8 +731,8 @@ function innerSpectrumReducer(draft: Draft<State>, action: Action) {
|
|
|
731
731
|
return RangesActions.handleChangePeaksDisplayingMode(draft);
|
|
732
732
|
case 'DELETE_RANGE_PEAK':
|
|
733
733
|
return RangesActions.handleDeleteRangePeak(draft, action);
|
|
734
|
-
case '
|
|
735
|
-
return RangesActions.
|
|
734
|
+
case 'CHANGE_1D_SIGNAL_ASSIGNMENT_LABEL':
|
|
735
|
+
return RangesActions.handleChange1DSignalAssignmentLabel(draft, action);
|
|
736
736
|
case 'CHANGE_RANGES_VIEW_FLOATING_BOX_BOUNDING':
|
|
737
737
|
return RangesActions.handleChangeRangesViewFloatingBoxBounding(
|
|
738
738
|
draft,
|
|
@@ -842,7 +842,7 @@ function innerSpectrumReducer(draft: Draft<State>, action: Action) {
|
|
|
842
842
|
export const spectrumReducer: Reducer<State, Action> =
|
|
843
843
|
produce(innerSpectrumReducer);
|
|
844
844
|
|
|
845
|
-
function getDebugState(draft:
|
|
845
|
+
function getDebugState(draft: Draft<State>) {
|
|
846
846
|
const state = original(draft);
|
|
847
847
|
const string = JSON.stringify(state, (key, value: any) => {
|
|
848
848
|
if (ArrayBuffer.isView(value)) {
|
|
@@ -854,7 +854,7 @@ function getDebugState(draft: any) {
|
|
|
854
854
|
return value;
|
|
855
855
|
});
|
|
856
856
|
if (string.length > 800000) {
|
|
857
|
-
// fallback, better to have something as a string
|
|
857
|
+
// fallback, better to have something as a string than nothing
|
|
858
858
|
return string.slice(0, 800000);
|
|
859
859
|
}
|
|
860
860
|
return JSON.parse(string);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { Range, Zone } from '@zakodium/nmr-types';
|
|
2
|
-
import type { Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
|
|
3
2
|
import type { Draft } from 'immer';
|
|
4
3
|
import type { SpectraData1D, SpectraData2D } from 'nmr-processing';
|
|
5
4
|
|
|
5
|
+
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.ts';
|
|
6
|
+
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.ts';
|
|
6
7
|
import type { State } from '../Reducer.js';
|
|
8
|
+
import { getSpectrum } from '../helper/getSpectrum.ts';
|
|
7
9
|
import type { ActionType } from '../types/ActionType.js';
|
|
8
10
|
|
|
9
11
|
type SetAutomaticAssignmentsAction = ActionType<
|
|
@@ -20,18 +22,11 @@ function handleSetAutomaticAssignments(
|
|
|
20
22
|
const assignments = action.payload.assignments;
|
|
21
23
|
|
|
22
24
|
for (const datum of assignments) {
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
datum as SpectraData1D
|
|
29
|
-
).ranges as Range[];
|
|
30
|
-
} else if (dimension === 2) {
|
|
31
|
-
(draft.data[index] as Spectrum2D).zones.values = (
|
|
32
|
-
datum as SpectraData2D
|
|
33
|
-
).zones as Zone[];
|
|
34
|
-
}
|
|
25
|
+
const spectrum = getSpectrum(draft, datum.id);
|
|
26
|
+
if (isSpectrum1D(spectrum)) {
|
|
27
|
+
spectrum.ranges.values = (datum as SpectraData1D).ranges as Range[];
|
|
28
|
+
} else if (isSpectrum2D(spectrum)) {
|
|
29
|
+
spectrum.zones.values = (datum as SpectraData2D).zones as Zone[];
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
32
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
1
|
import type { Draft } from 'immer';
|
|
3
2
|
import { original } from 'immer';
|
|
4
3
|
import lodashCloneDeep from 'lodash/cloneDeep.js';
|
|
@@ -11,6 +10,8 @@ import type {
|
|
|
11
10
|
} from 'nmr-correlation';
|
|
12
11
|
import { buildCorrelationData, setCorrelation } from 'nmr-correlation';
|
|
13
12
|
|
|
13
|
+
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/index.ts';
|
|
14
|
+
import { isSpectrum2D } from '../../../data/data2d/Spectrum2D/index.ts';
|
|
14
15
|
import {
|
|
15
16
|
findRange,
|
|
16
17
|
findSignal1D,
|
|
@@ -143,27 +144,25 @@ function handleDeleteCorrelation(
|
|
|
143
144
|
// delete all signals linked to the correlation
|
|
144
145
|
for (const link of correlation.links) {
|
|
145
146
|
const spectrum = findSpectrum(draft.data, link.experimentID, false);
|
|
146
|
-
if (spectrum) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
});
|
|
166
|
-
}
|
|
147
|
+
if (isSpectrum1D(spectrum)) {
|
|
148
|
+
const range = findRange(spectrum, link.signal.id);
|
|
149
|
+
const signal = findSignal1D(spectrum, link.signal.id);
|
|
150
|
+
if (range && signal) {
|
|
151
|
+
deleteSignal1D(draft, {
|
|
152
|
+
spectrumId: spectrum.id,
|
|
153
|
+
range,
|
|
154
|
+
signalId: signal.id,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
} else if (isSpectrum2D(spectrum)) {
|
|
158
|
+
const zone = findZone(spectrum, link.signal.id);
|
|
159
|
+
const signal = findSignal2D(spectrum, link.signal.id);
|
|
160
|
+
if (zone && signal) {
|
|
161
|
+
deleteSignal2D(draft, {
|
|
162
|
+
spectrumId: spectrum.id,
|
|
163
|
+
zone,
|
|
164
|
+
signalId: signal.id,
|
|
165
|
+
});
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
}
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
resurrectSpectrumFromRanges,
|
|
13
13
|
resurrectSpectrumFromSignals,
|
|
14
14
|
} from '../../../data/data1d/Spectrum1D/ranges/resurrectSpectrum.js';
|
|
15
|
+
import { filterDatabaseInfoEntry } from '../../utility/filterDatabaseInfoEntry.ts';
|
|
15
16
|
import type { State } from '../Reducer.js';
|
|
16
17
|
import { setZoom } from '../helper/Zoom1DManager.js';
|
|
17
18
|
import zoomHistoryManager from '../helper/ZoomHistoryManager.js';
|
|
@@ -59,7 +60,6 @@ function handleResurrectSpectrum(
|
|
|
59
60
|
ranges,
|
|
60
61
|
signals,
|
|
61
62
|
solvent,
|
|
62
|
-
meta = {},
|
|
63
63
|
names = [],
|
|
64
64
|
id: spectrumID,
|
|
65
65
|
} = databaseEntry;
|
|
@@ -68,6 +68,7 @@ function handleResurrectSpectrum(
|
|
|
68
68
|
|
|
69
69
|
if (source === 'jcamp') {
|
|
70
70
|
const { spectrum } = action.payload;
|
|
71
|
+
|
|
71
72
|
resurrectedSpectrum = {
|
|
72
73
|
...spectrum,
|
|
73
74
|
id: spectrumID,
|
|
@@ -87,7 +88,7 @@ function handleResurrectSpectrum(
|
|
|
87
88
|
let options: { from?: number; to?: number } = {};
|
|
88
89
|
let info: Partial<Info1D> = { solvent, name: names[0], nucleus };
|
|
89
90
|
|
|
90
|
-
if (
|
|
91
|
+
if (isSpectrum1D(activeSpectrum)) {
|
|
91
92
|
const {
|
|
92
93
|
data: { x },
|
|
93
94
|
info: spectrumInfo,
|
|
@@ -115,7 +116,8 @@ function handleResurrectSpectrum(
|
|
|
115
116
|
|
|
116
117
|
if (!resurrectedSpectrum) return;
|
|
117
118
|
|
|
118
|
-
|
|
119
|
+
const filterDatabaseEntryInfo = filterDatabaseInfoEntry(databaseEntry);
|
|
120
|
+
resurrectedSpectrum.customInfo = filterDatabaseEntryInfo;
|
|
119
121
|
|
|
120
122
|
draft.data.push(resurrectedSpectrum);
|
|
121
123
|
|