nmrium 0.35.1 → 0.37.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.d.ts +1 -2
- package/lib/component/1d/Chart1D.d.ts +1 -2
- package/lib/component/1d/ExclusionZonesAnnotations.d.ts +1 -2
- package/lib/component/1d/Line.d.ts +1 -1
- package/lib/component/1d/LinesSeries.d.ts +1 -2
- package/lib/component/1d/SpectraLegends.d.ts +1 -2
- package/lib/component/1d/Viewer1D.d.ts +1 -1
- package/lib/component/1d/database/DatabaseElements.d.ts +1 -2
- package/lib/component/1d/database/DatabaseSpectrum.d.ts +1 -2
- package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts +1 -2
- package/lib/component/1d/integral/Integral.d.ts +1 -2
- package/lib/component/1d/integral/IntegralIndicator.d.ts +1 -2
- package/lib/component/1d/integral/IntegralsSeries.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JGraph.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JsCoupling.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts +1 -2
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -2
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts +1 -2
- package/lib/component/1d/multiplicityTree/LevelNode.d.ts +1 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -1
- package/lib/component/1d/multiplicityTree/StringNode.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/TreeNodes.d.ts +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.d.ts +1 -2
- package/lib/component/1d/peaks/PeaksShapes.d.ts +1 -2
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +1 -2
- package/lib/component/1d/ranges/RangeIntegral.d.ts +1 -2
- package/lib/component/1d/ranges/Ranges.d.ts +1 -2
- package/lib/component/1d/tool/PeakPointer.d.ts +1 -2
- package/lib/component/1d/tool/VerticalIndicator.d.ts +1 -2
- package/lib/component/1d/tool/XLabelPointer.d.ts +1 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/ActionsButton.d.ts +1 -2
- package/lib/component/1d-2d/components/FloatMoleculeStructures/index.d.ts +2 -3
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +1 -2
- package/lib/component/1d-2d/tools/BrushX.d.ts +1 -2
- package/lib/component/1d-2d/tools/BrushXY.d.ts +1 -2
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts +1 -2
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts +1 -1
- package/lib/component/2d/Chart2D.d.ts +1 -2
- package/lib/component/2d/SlicingView.d.ts +1 -2
- package/lib/component/2d/Viewer2D.d.ts +1 -1
- package/lib/component/2d/fid/FidCanvas.d.ts +1 -2
- package/lib/component/2d/fid/FidContainer.d.ts +1 -2
- package/lib/component/2d/ft/Contours.d.ts +1 -2
- package/lib/component/2d/ft/Contours.js +0 -6
- package/lib/component/2d/ft/FTContainer.d.ts +1 -2
- package/lib/component/2d/tools/XYLabelPointer.d.ts +1 -2
- package/lib/component/2d/zones/Zones.d.ts +1 -2
- package/lib/component/ErrorOverlay.d.ts +1 -2
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts +1 -1
- package/lib/component/NMRium.d.ts +2 -0
- package/lib/component/NMRium.js +7 -8
- package/lib/component/SplitPaneWrapper.d.ts +1 -2
- package/lib/component/assignment/index.d.ts +1 -2
- package/lib/component/context/LoggerContext.d.ts +1 -1
- package/lib/component/elements/ActionButtons.d.ts +1 -1
- package/lib/component/elements/ButtonToolTip.d.ts +1 -1
- package/lib/component/elements/CheckBoxCell.d.ts +1 -2
- package/lib/component/elements/CloseButton.d.ts +1 -1
- package/lib/component/elements/ColumnWrapper.d.ts +1 -1
- package/lib/component/elements/DeleteButton.d.ts +1 -2
- package/lib/component/elements/GroupPane.d.ts +1 -1
- package/lib/component/elements/IsotopesViewer.d.ts +1 -1
- package/lib/component/elements/Logo.d.ts +1 -2
- package/lib/component/elements/Message.d.ts +1 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +1 -2
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +1 -1
- package/lib/component/elements/RemoveAssignmentsButton.d.ts +4 -0
- package/lib/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +14 -1
- package/lib/component/elements/SVGGroup.d.ts +1 -1
- package/lib/component/elements/Table/Table.d.ts +1 -1
- package/lib/component/elements/Table/TableBody.d.ts +1 -1
- package/lib/component/elements/Table/TableCell.d.ts +1 -1
- package/lib/component/elements/Table/TableHead.d.ts +1 -1
- package/lib/component/elements/Table/TableRow.d.ts +1 -1
- package/lib/component/elements/ToolTip/ToolTip.d.ts +1 -1
- package/lib/component/elements/accordion/Accordion.d.ts +1 -1
- package/lib/component/elements/accordion/AccordionItem.d.ts +1 -1
- package/lib/component/elements/draggable/SVGDraggable.d.ts +1 -1
- package/lib/component/elements/formik/ErrorMessage.d.ts +1 -1
- package/lib/component/elements/formik/FormikCheckBox.d.ts +1 -1
- package/lib/component/elements/formik/FormikColorInput.d.ts +1 -1
- package/lib/component/elements/formik/FormikColorPicker.d.ts +1 -1
- package/lib/component/elements/formik/FormikColumnFormatField.d.ts +1 -1
- package/lib/component/elements/formik/FormikErrorsSummary.d.ts +1 -1
- package/lib/component/elements/formik/FormikInput.d.ts +1 -2
- package/lib/component/elements/formik/FormikNumberInput.d.ts +1 -2
- package/lib/component/elements/formik/FormikSelect.d.ts +1 -2
- package/lib/component/elements/formik/FormikSlider.d.ts +1 -2
- package/lib/component/elements/formik/FormikTextarea.d.ts +1 -1
- package/lib/component/elements/formik/Input.d.ts +1 -2
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +1 -2
- package/lib/component/elements/popup/Alert/Provider.d.ts +1 -1
- package/lib/component/elements/popup/Modal/Modal.d.ts +1 -1
- package/lib/component/elements/popup/Transition.d.ts +1 -1
- package/lib/component/elements/popup/Wrapper.d.ts +1 -2
- package/lib/component/elements/resizer/Resizer.d.ts +1 -1
- package/lib/component/elements/toggle/ToggleButton.d.ts +1 -1
- package/lib/component/elements/toggle/ToggleButtonGroup.d.ts +1 -1
- package/lib/component/header/ApodizationOptionsPanel.d.ts +1 -2
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts +1 -1
- package/lib/component/header/BaseLineCorrectionPanel.d.ts +1 -2
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/HeaderContainer.d.ts +1 -1
- package/lib/component/header/LogsHistory.d.ts +1 -2
- package/lib/component/header/PhaseCorrectionPanel.d.ts +1 -2
- package/lib/component/header/RangesPickingOptionPanel.d.ts +1 -2
- package/lib/component/header/ZeroFillingOptionsPanel.d.ts +1 -2
- package/lib/component/header/Zones2DOptionPanel.d.ts +1 -2
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts +1 -2
- package/lib/component/loader/NoData.d.ts +1 -1
- package/lib/component/loader/Spinner.d.ts +1 -1
- package/lib/component/loader/SpinnerContext.d.ts +1 -1
- package/lib/component/modal/AboutPredictionModal.d.ts +2 -0
- package/lib/component/modal/AboutPredictionModal.js +49 -0
- package/lib/component/modal/ExportAsJcampModal.d.ts +1 -2
- package/lib/component/modal/MultipletAnalysisModal.js +6 -1
- package/lib/component/modal/editRange/EditRangeModal.js +3 -2
- package/lib/component/modal/editRange/forms/components/AddSignalFormTab.js +1 -1
- package/lib/component/modal/editRange/forms/components/CouplingsTable.js +2 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +1 -2
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +1 -1
- package/lib/component/modal/editRange/forms/components/SignalFormInfo.d.ts +1 -2
- package/lib/component/modal/editRange/forms/components/SignalFormTab.d.ts +1 -1
- package/lib/component/modal/editZone/SignalFormTab.d.ts +1 -2
- package/lib/component/modal/setting/WorkspaceItem.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts +1 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +1 -1
- package/lib/component/panels/InformationPanel.d.ts +1 -2
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +17 -13
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +8 -5
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts +1 -2
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -0
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +3 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisCell.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/base/AnalysisColumnHeader.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/AnalysisTablePreferences.d.ts +1 -2
- package/lib/component/panels/MultipleSpectraAnalysisPanel/preferences/LegendsPreferences.d.ts +1 -2
- package/lib/component/panels/PanelNoData.d.ts +1 -2
- package/lib/component/panels/Panels.d.ts +1 -2
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +0 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +0 -11
- package/lib/component/panels/RangesPanel/TableColumns/AbsoluteColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/RangeColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +1 -1
- package/lib/component/panels/SpectrumsPanel/SpectraPanelHeader.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
- package/lib/component/panels/SpectrumsPanel/SpectraTable.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/SpectrumListPanel.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ColorIndicator.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/ShowHideSpectrumButton.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
- package/lib/component/panels/SpectrumsPanel/base/SpectrumName.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/PlotChart.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DHistogram.d.ts +1 -1
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum1DSetting.d.ts +1 -2
- package/lib/component/panels/SpectrumsPanel/base/setting/Spectrum2DHistogram.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +1 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.d.ts +3 -12
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +2 -4
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -16
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts +1 -6
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +2 -3
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -19
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +1 -6
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -22
- package/lib/component/panels/extra/placeholder/NoTableData.d.ts +1 -2
- package/lib/component/panels/extra/preferences/NucleusGroup.d.ts +1 -1
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts +1 -2
- package/lib/component/panels/extra/preferences/PreferencesContainer.d.ts +1 -1
- package/lib/component/panels/extra/preferences/PreferencesGroup.d.ts +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -5
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +3 -29
- package/lib/component/panels/filtersPanel/FiltersTable.d.ts +1 -2
- package/lib/component/panels/header/SpectraAutomaticPickingButton.d.ts +1 -2
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts +1 -2
- package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -1
- package/lib/component/reducer/actions/LoadActions.js +14 -6
- package/lib/component/reducer/actions/MoleculeActions.js +26 -2
- package/lib/component/reducer/actions/PreferencesActions.js +17 -4
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
- package/lib/component/toolbar/BasicToolBar.d.ts +1 -2
- package/lib/component/toolbar/FunctionToolBar.d.ts +1 -2
- package/lib/component/toolbar/HistoryToolBar.d.ts +1 -1
- package/lib/component/toolbar/ToolBar.d.ts +1 -2
- package/lib/component/workspaces/Workspace.d.ts +2 -1
- package/lib/component/workspaces/exercise.js +31 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/data/constants/Multiplets.js +6 -13
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignal.js +41 -18
- package/lib/data/data1d/filter1d/fft.js +5 -7
- package/lib/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +2 -2
- package/lib/data/data2d/Processing2D.d.ts +3 -3
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -4
- package/lib/data/data2d/Spectrum2D/contours.js +0 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +1 -2
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +12 -0
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -0
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +9 -4
- package/lib/data/utilities/ZoneUtilities.js +0 -1
- package/lib/types/NMRiumGeneralPreferences.d.ts +1 -0
- package/lib/versionInfo.js +1 -1
- package/lib-cjs/component/1d/multiplicityTree/MultiplicityTree.js +2 -1
- package/lib-cjs/component/2d/ft/Contours.js +0 -6
- package/lib-cjs/component/NMRium.js +4 -5
- package/lib-cjs/component/{panels/RangesPanel/TableColumns → elements}/RemoveAssignmentsButton.js +15 -2
- package/lib-cjs/component/header/Header.js +1 -1
- package/lib-cjs/component/modal/AboutPredictionModal.js +54 -0
- package/lib-cjs/component/modal/MultipletAnalysisModal.js +6 -1
- package/lib-cjs/component/modal/editRange/EditRangeModal.js +5 -4
- package/lib-cjs/component/modal/editRange/forms/components/AddSignalFormTab.js +2 -2
- package/lib-cjs/component/modal/editRange/forms/components/CouplingsTable.js +2 -1
- package/lib-cjs/component/modal/editRange/forms/components/DeltaInput.js +2 -2
- package/lib-cjs/component/panels/IntegralsPanel/IntegralTable.js +17 -13
- package/lib-cjs/component/panels/IntegralsPanel/IntegralsPreferences.js +7 -4
- package/lib-cjs/component/panels/MoleculesPanel/MoleculePanelHeader.js +3 -2
- package/lib-cjs/component/panels/RangesPanel/RangesTableRow.js +0 -12
- package/lib-cjs/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +2 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js +2 -3
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib-cjs/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/SpectraPreferences.js +2 -2
- package/lib-cjs/component/panels/SpectrumsPanel/base/SpectraColumnsManager.js +1 -1
- package/lib-cjs/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +1 -1
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +12 -19
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +27 -22
- package/lib-cjs/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +2 -2
- package/lib-cjs/component/panels/ZonesPanel/ZonesTableRow.js +1 -21
- package/lib-cjs/component/panels/extra/utilities/MultiplicityUtilities.js +5 -34
- package/lib-cjs/component/panels/predictionPanel/PredictionPanel.js +6 -1
- package/lib-cjs/component/reducer/actions/LoadActions.js +14 -6
- package/lib-cjs/component/reducer/actions/MoleculeActions.js +25 -1
- package/lib-cjs/component/reducer/actions/PreferencesActions.js +17 -4
- package/lib-cjs/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -0
- package/lib-cjs/component/workspaces/exercise.js +31 -0
- package/lib-cjs/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib-cjs/data/constants/Multiplets.js +6 -13
- package/lib-cjs/data/data1d/Spectrum1D/initiateDatum1D.js +1 -1
- package/lib-cjs/data/data1d/Spectrum1D/ranges/detectSignal.js +40 -17
- package/lib-cjs/data/data1d/filter1d/fft.js +5 -7
- package/lib-cjs/data/data1d/filter1d/utils/padDataToNextPowerOfTwo.js +2 -2
- package/lib-cjs/data/data2d/Spectrum2D/contours.js +0 -1
- package/lib-cjs/data/data2d/Spectrum2D/initiateDatum2D.js +1 -2
- package/lib-cjs/data/data2d/Spectrum2D/zones/detectZonesManual.js +12 -0
- package/lib-cjs/data/data2d/Spectrum2D/zones/getDetectionZones.js +9 -4
- package/lib-cjs/data/utilities/ZoneUtilities.js +0 -1
- package/lib-cjs/versionInfo.js +1 -1
- package/package.json +33 -33
- package/lib/component/panels/RangesPanel/TableColumns/RemoveAssignmentsButton.d.ts +0 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface Spectrum1DSettingProps {
|
|
3
2
|
data: any;
|
|
4
3
|
onSubmit: (values: any) => void;
|
|
5
4
|
}
|
|
6
|
-
declare function Spectrum1DSetting({ data: SpectrumData, onSubmit, }: Spectrum1DSettingProps): JSX.Element;
|
|
5
|
+
declare function Spectrum1DSetting({ data: SpectrumData, onSubmit, }: Spectrum1DSettingProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default Spectrum1DSetting;
|
|
@@ -3,6 +3,6 @@ interface Spectrum2DHistogramProps {
|
|
|
3
3
|
color?: string;
|
|
4
4
|
data: any;
|
|
5
5
|
}
|
|
6
|
-
declare function Spectrum2DHistogram({ color, data, }: Spectrum2DHistogramProps): JSX.Element;
|
|
6
|
+
declare function Spectrum2DHistogram({ color, data, }: Spectrum2DHistogramProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const _default: import("react").MemoExoticComponent<typeof Spectrum2DHistogram>;
|
|
8
8
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare function AdditionalColumnField({ rowCorrelation, columnCorrelation, commonLinks, correlations, spectraData, onEdit, }: {
|
|
3
2
|
rowCorrelation: any;
|
|
4
3
|
columnCorrelation: any;
|
|
@@ -6,5 +5,5 @@ declare function AdditionalColumnField({ rowCorrelation, columnCorrelation, comm
|
|
|
6
5
|
correlations: any;
|
|
7
6
|
spectraData: any;
|
|
8
7
|
onEdit: any;
|
|
9
|
-
}): JSX.Element;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export default AdditionalColumnField;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare function CorrelationTableRow({ additionalColumnData, correlations, correlation, styleRow, styleLabel, onSaveEditEquivalences, onSaveEditNumericValues, onEditCorrelationTableCellHandler, spectraData, }: {
|
|
3
2
|
additionalColumnData: any;
|
|
4
3
|
correlations: any;
|
|
@@ -9,5 +8,5 @@ declare function CorrelationTableRow({ additionalColumnData, correlations, corre
|
|
|
9
8
|
onSaveEditNumericValues: any;
|
|
10
9
|
onEditCorrelationTableCellHandler: any;
|
|
11
10
|
spectraData: any;
|
|
12
|
-
}): JSX.Element;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export default CorrelationTableRow;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export interface RowDataProps {
|
|
3
|
-
id: number;
|
|
1
|
+
import { Zone } from 'nmr-load-save';
|
|
2
|
+
export interface RowDataProps extends Zone {
|
|
4
3
|
tableMetaInfo: {
|
|
5
4
|
id: number;
|
|
6
5
|
signalIndex: number;
|
|
@@ -10,18 +9,10 @@ export interface RowDataProps {
|
|
|
10
9
|
};
|
|
11
10
|
experiment: string;
|
|
12
11
|
};
|
|
13
|
-
x: {
|
|
14
|
-
from: number;
|
|
15
|
-
to: number;
|
|
16
|
-
};
|
|
17
|
-
y: {
|
|
18
|
-
from: number;
|
|
19
|
-
to: number;
|
|
20
|
-
};
|
|
21
12
|
}
|
|
22
13
|
interface ActionsColumnProps {
|
|
23
14
|
rowData: RowDataProps;
|
|
24
15
|
rowSpanTags: any;
|
|
25
16
|
}
|
|
26
|
-
declare function ActionsColumn({ rowData, rowSpanTags }: ActionsColumnProps): JSX.Element;
|
|
17
|
+
declare function ActionsColumn({ rowData, rowSpanTags }: ActionsColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
27
18
|
export default ActionsColumn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { AssignmentsData, Axis } from '../../../assignment/AssignmentsContext';
|
|
3
3
|
import { RowDataProps } from './ActionsColumn';
|
|
4
4
|
export interface SignalAssignmentsColumnProps {
|
|
@@ -10,9 +10,7 @@ export interface SignalAssignmentsColumnProps {
|
|
|
10
10
|
onHover: () => void;
|
|
11
11
|
onClick: (event: any, assignment: AssignmentsData, axis: Axis) => void;
|
|
12
12
|
onUnlink: (event: any, flag: boolean, axis: Axis) => void;
|
|
13
|
-
showUnlinkButton: boolean;
|
|
14
13
|
axis: Axis;
|
|
15
|
-
setShowUnlinkButton: (element: boolean) => void;
|
|
16
14
|
}
|
|
17
|
-
declare function SignalAssignmentsColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis,
|
|
15
|
+
declare function SignalAssignmentsColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, }: SignalAssignmentsColumnProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
16
|
export default SignalAssignmentsColumn;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
visibility: showUnlinkButton ? 'visible' : 'hidden',
|
|
14
|
-
padding: 0,
|
|
15
|
-
margin: 0,
|
|
16
|
-
}, onClick: (e) => onUnlink(e, false, axis), children: _jsx(FaMinusCircle, { color: "red" }) }) })] })) : assignment.isActive && assignment.activated?.axis === axis ? ('0') : ('') }));
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { RemoveAssignmentsButton, removeAssignmentCssStyle, } from '../../../elements/RemoveAssignmentsButton';
|
|
3
|
+
function SignalAssignmentsColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, }) {
|
|
4
|
+
const diaIDs = rowData?.tableMetaInfo?.signal?.[axis]?.diaIDs || [];
|
|
5
|
+
const isAssignmentActive = assignment.isActive && assignment.activated?.axis === axis;
|
|
6
|
+
const tdCss = assignment.isActive || highlight.isActive
|
|
7
|
+
? {
|
|
8
|
+
color: 'red',
|
|
9
|
+
fontWeight: 'bold',
|
|
10
|
+
}
|
|
11
|
+
: {};
|
|
12
|
+
return (_jsx("td", { ...onHover, ...{ onClick: (e) => onClick(e, assignment, axis) }, style: { padding: '0', ...tdCss }, css: !isAssignmentActive && removeAssignmentCssStyle, children: (diaIDs?.length > 0 || isAssignmentActive) && (_jsxs(_Fragment, { children: [_jsx("span", { children: diaIDs?.length || 0 }), _jsx(RemoveAssignmentsButton, { onClick: (e) => onUnlink(e, false, axis) })] })) }));
|
|
17
13
|
}
|
|
18
14
|
export default SignalAssignmentsColumn;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AssignmentsData, Axis } from '../../../assignment/AssignmentsContext';
|
|
3
2
|
import { RowDataProps } from './ActionsColumn';
|
|
4
3
|
interface SignalAssignmentsColumnsProps {
|
|
5
4
|
rowData: RowDataProps;
|
|
6
5
|
onHoverSignalX: any;
|
|
7
6
|
onHoverSignalY: any;
|
|
8
|
-
showUnlinkButtonSignalX: boolean;
|
|
9
|
-
showUnlinkButtonSignalY: boolean;
|
|
10
|
-
setShowUnlinkButtonSignalX: (element: boolean) => void;
|
|
11
|
-
setShowUnlinkButtonSignalY: (element: boolean) => void;
|
|
12
7
|
onClick: (event: any, assignment: AssignmentsData, axis: Axis) => void;
|
|
13
8
|
onUnlink: (event: any, flag: boolean, axis: Axis) => void;
|
|
14
9
|
highlightSignalX: {
|
|
@@ -19,5 +14,5 @@ interface SignalAssignmentsColumnsProps {
|
|
|
19
14
|
};
|
|
20
15
|
assignmentSignal: AssignmentsData;
|
|
21
16
|
}
|
|
22
|
-
declare function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY,
|
|
17
|
+
declare function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY, onClick, onUnlink, highlightSignalX, highlightSignalY, }: SignalAssignmentsColumnsProps): import("react/jsx-runtime").JSX.Element;
|
|
23
18
|
export default SignalAssignmentsColumns;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
3
|
import SignalAssignmentsColumn from './SignalAssignmentsColumn';
|
|
4
|
-
function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY,
|
|
5
|
-
return (_jsxs(Fragment, { children: [_jsx(SignalAssignmentsColumn, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalX, onHover: onHoverSignalX, onClick: onClick, onUnlink: onUnlink, axis: "x"
|
|
4
|
+
function SignalAssignmentsColumns({ rowData, assignmentSignal, onHoverSignalX, onHoverSignalY, onClick, onUnlink, highlightSignalX, highlightSignalY, }) {
|
|
5
|
+
return (_jsxs(Fragment, { children: [_jsx(SignalAssignmentsColumn, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalX, onHover: onHoverSignalX, onClick: onClick, onUnlink: onUnlink, axis: "x" }), _jsx(SignalAssignmentsColumn, { rowData: rowData, assignment: assignmentSignal, highlight: highlightSignalY, onHover: onHoverSignalY, onClick: onClick, onUnlink: onUnlink, axis: "y" })] }));
|
|
6
6
|
}
|
|
7
7
|
export default SignalAssignmentsColumns;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RowDataProps } from './ActionsColumn';
|
|
3
2
|
interface SignalDeltaColumnProps {
|
|
4
3
|
rowData: RowDataProps;
|
|
@@ -9,5 +8,5 @@ interface SignalDeltaColumnProps {
|
|
|
9
8
|
y: string;
|
|
10
9
|
};
|
|
11
10
|
}
|
|
12
|
-
declare function SignalDeltaColumn({ rowData, onHoverSignalX, onHoverSignalY, format, }: SignalDeltaColumnProps): JSX.Element;
|
|
11
|
+
declare function SignalDeltaColumn({ rowData, onHoverSignalX, onHoverSignalY, format, }: SignalDeltaColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export default SignalDeltaColumn;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
1
2
|
import { MouseEvent } from 'react';
|
|
2
3
|
import { AssignmentsData, Axis } from '../../../assignment/AssignmentsContext';
|
|
3
4
|
import { RowDataProps } from './ActionsColumn';
|
|
@@ -11,9 +12,7 @@ export interface ZoneAssignmentColumnProps {
|
|
|
11
12
|
isActive: any;
|
|
12
13
|
};
|
|
13
14
|
assignment: AssignmentsData;
|
|
14
|
-
showUnlinkButton: boolean;
|
|
15
|
-
setShowUnlinkButton: (element: boolean) => void;
|
|
16
15
|
rowSpanTags: any;
|
|
17
16
|
}
|
|
18
|
-
declare function ZoneAssignmentColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis,
|
|
17
|
+
declare function ZoneAssignmentColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, rowSpanTags, }: ZoneAssignmentColumnProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
18
|
export default ZoneAssignmentColumn;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { RemoveAssignmentsButton, removeAssignmentCssStyle, } from '../../../elements/RemoveAssignmentsButton';
|
|
3
|
+
function getStyle(flag, isCompletelyAssigned) {
|
|
4
|
+
if (flag) {
|
|
5
|
+
return {
|
|
6
|
+
color: 'red',
|
|
7
|
+
fontWeight: 'bold',
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
else if (isCompletelyAssigned) {
|
|
11
|
+
return { color: 'green', fontWeight: 'bold' };
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return { color: 'black', fontWeight: 'normal' };
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function ZoneAssignmentColumn({ rowData, assignment, highlight, onHover, onClick, onUnlink, axis, rowSpanTags, }) {
|
|
18
|
+
const diaIDs = rowData?.[axis].diaIDs || []; // diaIds at the level of zone
|
|
19
|
+
const isAssignmentActive = assignment.isActive && assignment.activated?.axis === axis;
|
|
20
|
+
const flag = isAssignmentActive ||
|
|
21
|
+
(assignment.isOver && assignment.highlighted?.axis === axis) ||
|
|
22
|
+
highlight.isActive;
|
|
23
|
+
let totalNumberOfAtoms = rowData?.[axis]?.nbAtoms || 0;
|
|
24
|
+
for (const signal of rowData?.signals || []) {
|
|
25
|
+
totalNumberOfAtoms += signal?.[axis]?.nbAtoms || 0;
|
|
26
|
+
}
|
|
27
|
+
return (_jsx("td", { ...rowSpanTags, ...onHover, ...{ onClick: (e) => onClick(e, assignment, axis) }, css: !isAssignmentActive && removeAssignmentCssStyle, children: (totalNumberOfAtoms > 0 || isAssignmentActive) && (_jsxs(_Fragment, { children: [totalNumberOfAtoms, " ", ' ( ', _jsx("span", { style: getStyle(flag, false), children: diaIDs?.length || 0 }), ' ) ', _jsx(RemoveAssignmentsButton, { onClick: (e) => onUnlink(e, true, axis) })] })) }));
|
|
20
28
|
}
|
|
21
29
|
export default ZoneAssignmentColumn;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AssignmentsData, Axis } from '../../../assignment/AssignmentsContext';
|
|
3
2
|
import { RowDataProps } from './ActionsColumn';
|
|
4
3
|
interface ZoneAssignmentsColumnsProps {
|
|
@@ -8,10 +7,6 @@ interface ZoneAssignmentsColumnsProps {
|
|
|
8
7
|
onClick: (event: any, assignment: AssignmentsData, axis: Axis) => void;
|
|
9
8
|
onUnlink: (event: any, flag: boolean, axis: Axis) => void;
|
|
10
9
|
rowSpanTags: any;
|
|
11
|
-
showUnlinkButtonZoneX: boolean;
|
|
12
|
-
showUnlinkButtonZoneY: boolean;
|
|
13
|
-
setShowUnlinkButtonZoneX: (element: boolean) => void;
|
|
14
|
-
setShowUnlinkButtonZoneY: (element: boolean) => void;
|
|
15
10
|
assignmentZone: AssignmentsData;
|
|
16
11
|
highlightZoneX: {
|
|
17
12
|
isActive: any;
|
|
@@ -20,5 +15,5 @@ interface ZoneAssignmentsColumnsProps {
|
|
|
20
15
|
isActive: any;
|
|
21
16
|
};
|
|
22
17
|
}
|
|
23
|
-
declare function ZoneAssignmentsColumns({ rowData, assignmentZone, onHoverZoneX, onHoverZoneY,
|
|
18
|
+
declare function ZoneAssignmentsColumns({ rowData, assignmentZone, onHoverZoneX, onHoverZoneY, rowSpanTags, onClick, onUnlink, highlightZoneX, highlightZoneY, }: ZoneAssignmentsColumnsProps): import("react/jsx-runtime").JSX.Element;
|
|
24
19
|
export default ZoneAssignmentsColumns;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
3
|
import ZoneAssignmentColumn from './ZoneAssignmentsColumn';
|
|
4
|
-
function ZoneAssignmentsColumns({ rowData, assignmentZone, onHoverZoneX, onHoverZoneY,
|
|
5
|
-
return (_jsxs(Fragment, { children: [_jsx(ZoneAssignmentColumn, { rowData: rowData, assignment: assignmentZone, highlight: highlightZoneX, onHover: onHoverZoneX, onClick: onClick, onUnlink: onUnlink, axis: 'x',
|
|
4
|
+
function ZoneAssignmentsColumns({ rowData, assignmentZone, onHoverZoneX, onHoverZoneY, rowSpanTags, onClick, onUnlink, highlightZoneX, highlightZoneY, }) {
|
|
5
|
+
return (_jsxs(Fragment, { children: [_jsx(ZoneAssignmentColumn, { rowData: rowData, assignment: assignmentZone, highlight: highlightZoneX, onHover: onHoverZoneX, onClick: onClick, onUnlink: onUnlink, axis: 'x', rowSpanTags: rowSpanTags }), _jsx(ZoneAssignmentColumn, { rowData: rowData, assignment: assignmentZone, highlight: highlightZoneY, onHover: onHoverZoneY, onClick: onClick, onUnlink: onUnlink, axis: 'y', rowSpanTags: rowSpanTags })] }));
|
|
6
6
|
}
|
|
7
7
|
export default ZoneAssignmentsColumns;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
/** @jsxImportSource @emotion/react */
|
|
3
3
|
import lodashGet from 'lodash/get';
|
|
4
|
-
import { useMemo, useCallback
|
|
4
|
+
import { useMemo, useCallback } from 'react';
|
|
5
5
|
import { DropdownMenu } from 'react-science/ui';
|
|
6
6
|
import { buildID } from '../../../data/utilities/Concatenation';
|
|
7
7
|
import { useAssignment, } from '../../assignment/AssignmentsContext';
|
|
@@ -20,10 +20,6 @@ function ZonesTableRow({ rowData, onUnlink, contextMenu = [], onContextMenuSelec
|
|
|
20
20
|
const assignmentSignal = useAssignment(rowData.tableMetaInfo.id);
|
|
21
21
|
const highlightSignalX = useHighlight([buildID(assignmentSignal.id, 'X')].concat(assignmentSignal.assigned?.x || [], buildID(assignmentSignal.id, 'Crosshair')));
|
|
22
22
|
const highlightSignalY = useHighlight([buildID(assignmentSignal.id, 'Y')].concat(assignmentSignal.assigned?.y || [], buildID(assignmentSignal.id, 'Crosshair')));
|
|
23
|
-
const [showUnlinkButtonZoneX, setShowUnlinkButtonZoneX] = useState(false);
|
|
24
|
-
const [showUnlinkButtonZoneY, setShowUnlinkButtonZoneY] = useState(false);
|
|
25
|
-
const [showUnlinkButtonSignalX, setShowUnlinkButtonSignalX] = useState(false);
|
|
26
|
-
const [showUnlinkButtonSignalY, setShowUnlinkButtonSignalY] = useState(false);
|
|
27
23
|
const rowSpanTags = useMemo(() => {
|
|
28
24
|
return {
|
|
29
25
|
rowSpan: rowData.tableMetaInfo.rowSpan,
|
|
@@ -41,43 +37,27 @@ function ZonesTableRow({ rowData, onUnlink, contextMenu = [], onContextMenuSelec
|
|
|
41
37
|
if (axis === 'x') {
|
|
42
38
|
if (isOnZoneLevel !== undefined) {
|
|
43
39
|
if (isOnZoneLevel) {
|
|
44
|
-
setShowUnlinkButtonZoneX(false);
|
|
45
40
|
assignmentZone.removeAll('x');
|
|
46
41
|
}
|
|
47
42
|
else {
|
|
48
|
-
setShowUnlinkButtonSignalX(false);
|
|
49
43
|
assignmentSignal.removeAll('x');
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
|
-
else {
|
|
53
|
-
setShowUnlinkButtonZoneX(false);
|
|
54
|
-
setShowUnlinkButtonSignalX(false);
|
|
55
|
-
}
|
|
56
46
|
}
|
|
57
47
|
else if (axis === 'y') {
|
|
58
48
|
if (isOnZoneLevel !== undefined) {
|
|
59
49
|
if (isOnZoneLevel) {
|
|
60
|
-
setShowUnlinkButtonZoneY(false);
|
|
61
50
|
assignmentZone.removeAll('y');
|
|
62
51
|
}
|
|
63
52
|
else {
|
|
64
|
-
setShowUnlinkButtonSignalY(false);
|
|
65
53
|
assignmentSignal.removeAll('y');
|
|
66
54
|
}
|
|
67
55
|
}
|
|
68
|
-
else {
|
|
69
|
-
setShowUnlinkButtonZoneY(false);
|
|
70
|
-
setShowUnlinkButtonSignalY(false);
|
|
71
|
-
}
|
|
72
56
|
}
|
|
73
57
|
else {
|
|
74
|
-
setShowUnlinkButtonZoneX(false);
|
|
75
58
|
assignmentZone.removeAll('x');
|
|
76
|
-
setShowUnlinkButtonSignalX(false);
|
|
77
59
|
assignmentSignal.removeAll('x');
|
|
78
|
-
setShowUnlinkButtonZoneY(false);
|
|
79
60
|
assignmentZone.removeAll('y');
|
|
80
|
-
setShowUnlinkButtonSignalY(false);
|
|
81
61
|
assignmentSignal.removeAll('y');
|
|
82
62
|
}
|
|
83
63
|
}, [assignmentSignal, assignmentZone, onUnlink, rowData]);
|
|
@@ -137,6 +117,6 @@ function ZonesTableRow({ rowData, onUnlink, contextMenu = [], onContextMenuSelec
|
|
|
137
117
|
? HighlightedRowStyle
|
|
138
118
|
: lodashGet(rowData, 'tableMetaInfo.isConstantlyHighlighted', false)
|
|
139
119
|
? ConstantlyHighlightedRowStyle
|
|
140
|
-
: null, ...highlightZone.onHover, children: [_jsx("td", { ...rowSpanTags, children: rowIndex + 1 }), _jsx(SignalDeltaColumn, { rowData: rowData, onHoverSignalX: onHoverSignalX, onHoverSignalY: onHoverSignalY, format: format }), _jsx(SignalAssignmentsColumns, { rowData: rowData, assignmentSignal: assignmentSignal, onHoverSignalX: onHoverSignalX, onHoverSignalY: onHoverSignalY,
|
|
120
|
+
: null, ...highlightZone.onHover, children: [_jsx("td", { ...rowSpanTags, children: rowIndex + 1 }), _jsx(SignalDeltaColumn, { rowData: rowData, onHoverSignalX: onHoverSignalX, onHoverSignalY: onHoverSignalY, format: format }), _jsx(SignalAssignmentsColumns, { rowData: rowData, assignmentSignal: assignmentSignal, onHoverSignalX: onHoverSignalX, onHoverSignalY: onHoverSignalY, onClick: clickHandler, onUnlink: unlinkHandler, highlightSignalX: highlightSignalX, highlightSignalY: highlightSignalY }), _jsx(ZoneAssignmentsColumns, { rowData: rowData, assignmentZone: assignmentZone, onHoverZoneX: onHoverZoneX, onHoverZoneY: onHoverZoneY, rowSpanTags: rowSpanTags, onClick: clickHandler, onUnlink: unlinkHandler, highlightZoneX: highlightZoneX, highlightZoneY: highlightZoneY }), _jsx(ActionsColumn, { rowData: rowData, rowSpanTags: rowSpanTags })] }));
|
|
141
121
|
}
|
|
142
122
|
export default ZonesTableRow;
|
|
@@ -10,5 +10,5 @@ interface NucleusGroupWithChildrenProps {
|
|
|
10
10
|
renderBottom?: () => ReactNode;
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
}
|
|
13
|
-
export declare function NucleusGroup({ nucleus, children, renderTop, renderBottom, }: NucleusGroupWithChildrenProps): JSX.Element;
|
|
13
|
+
export declare function NucleusGroup({ nucleus, children, renderTop, renderBottom, }: NucleusGroupWithChildrenProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ColumnFormatField } from '../../../elements/formik/FormikColumnFormatField';
|
|
3
2
|
import { NucleusGroupProps } from './NucleusGroup';
|
|
4
3
|
export type NucleusPreferenceField = ColumnFormatField & {
|
|
@@ -7,5 +6,5 @@ export type NucleusPreferenceField = ColumnFormatField & {
|
|
|
7
6
|
interface NucleusPreferencesProps extends NucleusGroupProps {
|
|
8
7
|
fields: NucleusPreferenceField[];
|
|
9
8
|
}
|
|
10
|
-
export declare function NucleusPreferences({ nucleus, fields, renderTop, renderBottom, }: NucleusPreferencesProps): JSX.Element;
|
|
9
|
+
export declare function NucleusPreferences({ nucleus, fields, renderTop, renderBottom, }: NucleusPreferencesProps): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -3,5 +3,5 @@ interface PreferencesContainerProps {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
style?: CSSProperties;
|
|
5
5
|
}
|
|
6
|
-
export declare function PreferencesContainer({ children, style, }: PreferencesContainerProps): JSX.Element;
|
|
6
|
+
export declare function PreferencesContainer({ children, style, }: PreferencesContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ interface PreferencesGroupProps {
|
|
|
3
3
|
children: React.ReactNode[];
|
|
4
4
|
header?: ((style: CSSProperties) => React.ReactNode) | string;
|
|
5
5
|
}
|
|
6
|
-
export declare function PreferencesGroup({ children, header }: PreferencesGroupProps): JSX.Element;
|
|
6
|
+
export declare function PreferencesGroup({ children, header }: PreferencesGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare function getMultiplicityNumber(string: any): number | null;
|
|
2
|
-
declare function
|
|
3
|
-
declare function checkMultiplicity(multiplicity: any, rejected?: Array<string>): any;
|
|
4
|
-
declare function translateMultiplet(multiplet: any): string | undefined;
|
|
5
|
-
declare function hasCouplingConstant(multiplet: any): any;
|
|
2
|
+
declare function hasCouplingConstant(multiplet: any): boolean;
|
|
6
3
|
declare function getPascal(n: any, spin: any): any[];
|
|
7
|
-
export {
|
|
4
|
+
export { getMultiplicityNumber, getPascal, hasCouplingConstant };
|
|
@@ -1,34 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { translateMultiplet, findMultiplet, checkMultiplicity, } from 'nmr-processing';
|
|
2
2
|
function getMultiplicityNumber(string) {
|
|
3
|
-
const multiplet =
|
|
3
|
+
const multiplet = findMultiplet(string);
|
|
4
4
|
return multiplet ? multiplet.multiplicity : null;
|
|
5
5
|
}
|
|
6
|
-
function checkMultiplet(multiplet, rejected = []) {
|
|
7
|
-
// options to determine whether a massive (m), for example, should be considered as rejected multiplet
|
|
8
|
-
if (multiplet === undefined || multiplet.length === 0) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
const _multiplet = Multiplets.find((m) => m.value === multiplet || m.label === multiplet);
|
|
12
|
-
return (_multiplet &&
|
|
13
|
-
!rejected.includes(_multiplet.value) &&
|
|
14
|
-
!rejected.includes(_multiplet.label));
|
|
15
|
-
}
|
|
16
|
-
function checkMultiplicity(multiplicity, rejected = []) {
|
|
17
|
-
// options to determine whether a massive (m), for example, should be considered as rejected multiplicity
|
|
18
|
-
if (multiplicity === undefined || multiplicity.length === 0) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
const isBroad = multiplicity.match(/(?<broad>br s)/);
|
|
22
|
-
return (isBroad ||
|
|
23
|
-
multiplicity
|
|
24
|
-
.split('')
|
|
25
|
-
.every((_multiplet) => checkMultiplet(_multiplet, rejected)));
|
|
26
|
-
}
|
|
27
|
-
function translateMultiplet(multiplet) {
|
|
28
|
-
return multiplet.length === 1
|
|
29
|
-
? Multiplets.find((_multiplet) => _multiplet.value === multiplet)?.label
|
|
30
|
-
: Multiplets.find((_multiplet) => _multiplet.label === multiplet)?.value;
|
|
31
|
-
}
|
|
32
6
|
function hasCouplingConstant(multiplet) {
|
|
33
7
|
if (multiplet.length > 1) {
|
|
34
8
|
multiplet = translateMultiplet(multiplet);
|
|
@@ -57,4 +31,4 @@ function getPascal(n, spin) {
|
|
|
57
31
|
}
|
|
58
32
|
return previousLine;
|
|
59
33
|
}
|
|
60
|
-
export {
|
|
34
|
+
export { getMultiplicityNumber, getPascal, hasCouplingConstant };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function FilterTable(): JSX.Element;
|
|
1
|
+
export default function FilterTable(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function SpectraAutomaticPickingButton(): JSX.Element | null;
|
|
1
|
+
export declare function SpectraAutomaticPickingButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function PredictionPane(): JSX.Element;
|
|
1
|
+
export default function PredictionPane(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,7 +38,12 @@ export default function PredictionPane() {
|
|
|
38
38
|
}
|
|
39
39
|
})();
|
|
40
40
|
};
|
|
41
|
-
return (_jsx(MoleculePanel, { onMoleculeChange: changeHandler, actionsOptions: {
|
|
41
|
+
return (_jsx(MoleculePanel, { onMoleculeChange: changeHandler, actionsOptions: {
|
|
42
|
+
hidePredict: true,
|
|
43
|
+
hideDelete: true,
|
|
44
|
+
hideExport: true,
|
|
45
|
+
showAboutPredict: true,
|
|
46
|
+
}, emptyTextStyle: {
|
|
42
47
|
padding: '0.25rem 0.5rem',
|
|
43
48
|
borderRadius: '0.2rem',
|
|
44
49
|
backgroundColor: '#2dd36f',
|
|
@@ -47,11 +47,12 @@ function initSpectra(inputSpectra, options) {
|
|
|
47
47
|
}
|
|
48
48
|
return spectra;
|
|
49
49
|
}
|
|
50
|
-
function setData(draft, input) {
|
|
50
|
+
function setData(draft, input, options = {}) {
|
|
51
51
|
const { data, usedColors, view, onLoadProcessing = {}, parseMetaFileResult = null, } = input || {
|
|
52
52
|
data: { spectra: [], molecules: [], correlations: {} },
|
|
53
53
|
multipleAnalysis: {},
|
|
54
54
|
};
|
|
55
|
+
const { autoOnLoadProcessing = true } = options;
|
|
55
56
|
const { source, spectra = [], molecules = [], correlations = {}, } = data || {};
|
|
56
57
|
if (view) {
|
|
57
58
|
const defaultViewState = getDefaultViewState();
|
|
@@ -66,7 +67,10 @@ function setData(draft, input) {
|
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
69
|
draft.molecules = draft.molecules.concat(MoleculeManager.fromJSON(molecules, draft.molecules));
|
|
69
|
-
draft.data = draft.data.concat(initSpectra(spectra, {
|
|
70
|
+
draft.data = draft.data.concat(initSpectra(spectra, {
|
|
71
|
+
usedColors,
|
|
72
|
+
onLoadProcessing: autoOnLoadProcessing ? onLoadProcessing : {},
|
|
73
|
+
}));
|
|
70
74
|
setCorrelation(draft, correlations);
|
|
71
75
|
if (parseMetaFileResult) {
|
|
72
76
|
const { matches } = linkMetaWithSpectra({
|
|
@@ -108,11 +112,12 @@ function setPreferences(draft, data) {
|
|
|
108
112
|
changeSpectrumVerticalAlignment(draft, { verticalAlign: 'auto-check' });
|
|
109
113
|
}
|
|
110
114
|
}
|
|
111
|
-
function initData(draft, action,
|
|
115
|
+
function initData(draft, action, options = {}) {
|
|
116
|
+
const { forceInitialize = false, autoOnLoadProcessing = true } = options;
|
|
112
117
|
const { data, view } = action.payload;
|
|
113
118
|
if (data?.spectra?.length || forceInitialize) {
|
|
114
119
|
const state = getInitialState();
|
|
115
|
-
setData(state, action.payload);
|
|
120
|
+
setData(state, action.payload, { autoOnLoadProcessing });
|
|
116
121
|
setActiveTab(state, { tab: data?.view?.activeTab || '' });
|
|
117
122
|
state.width = draft.width;
|
|
118
123
|
state.height = draft.height;
|
|
@@ -131,13 +136,16 @@ function initData(draft, action, forceInitialize = false) {
|
|
|
131
136
|
}
|
|
132
137
|
}
|
|
133
138
|
function initiate(draft, action) {
|
|
134
|
-
return initData(draft, action,
|
|
139
|
+
return initData(draft, action, {
|
|
140
|
+
forceInitialize: true,
|
|
141
|
+
autoOnLoadProcessing: false,
|
|
142
|
+
});
|
|
135
143
|
}
|
|
136
144
|
function loadDropFiles(draft, action) {
|
|
137
145
|
const { payload, type } = action;
|
|
138
146
|
const { data: { spectra = [] }, containsNmrium = false, resetSourceObject = true, } = payload;
|
|
139
147
|
if (containsNmrium) {
|
|
140
|
-
return initData(draft, action);
|
|
148
|
+
return initData(draft, action, { autoOnLoadProcessing: false });
|
|
141
149
|
}
|
|
142
150
|
else {
|
|
143
151
|
setData(draft, payload);
|
|
@@ -4,7 +4,7 @@ import { DRAGGABLE_STRUCTURE_INITIAL_BOUNDING_REACT } from '../../../data/molecu
|
|
|
4
4
|
import * as MoleculeManager from '../../../data/molecules/MoleculeManager';
|
|
5
5
|
import { generateColor } from '../../../data/utilities/generateColor';
|
|
6
6
|
import nucleusToString from '../../utility/nucleusToString';
|
|
7
|
-
import { DISPLAYER_MODE } from '../core/Constants';
|
|
7
|
+
import { DISPLAYER_MODE, MARGIN } from '../core/Constants';
|
|
8
8
|
import { handleUnlinkRange } from './RangesActions';
|
|
9
9
|
import { setActiveTab } from './ToolsActions';
|
|
10
10
|
import { handleUnlinkZone } from './ZonesActions';
|
|
@@ -82,10 +82,14 @@ function predictSpectraFromMoleculeHandler(draft, action) {
|
|
|
82
82
|
function initMoleculeViewProperties(id, draft) {
|
|
83
83
|
// check if the molecule is exists in the view object otherwise add it with the default value
|
|
84
84
|
if (!draft.view.molecules[id]) {
|
|
85
|
+
const position = getFloatingMoleculeInitialPosition(id, draft);
|
|
85
86
|
draft.view.molecules[id] = {
|
|
86
87
|
floating: {
|
|
87
88
|
visible: false,
|
|
88
|
-
bounding:
|
|
89
|
+
bounding: {
|
|
90
|
+
...DRAGGABLE_STRUCTURE_INITIAL_BOUNDING_REACT,
|
|
91
|
+
...position,
|
|
92
|
+
},
|
|
89
93
|
},
|
|
90
94
|
showAtomNumber: false,
|
|
91
95
|
};
|
|
@@ -94,6 +98,26 @@ function initMoleculeViewProperties(id, draft) {
|
|
|
94
98
|
function getMoleculeViewObject(id, draft) {
|
|
95
99
|
return draft.view.molecules[id] || null;
|
|
96
100
|
}
|
|
101
|
+
function getFloatingMoleculeInitialPosition(id, draft) {
|
|
102
|
+
const { view: { molecules }, width: displayerWidth, height: displayerHeight, } = draft;
|
|
103
|
+
const { top, left } = MARGIN['2D'];
|
|
104
|
+
const { width: baseWidth, height: baseHeight } = DRAGGABLE_STRUCTURE_INITIAL_BOUNDING_REACT;
|
|
105
|
+
const width = displayerWidth - left;
|
|
106
|
+
const height = displayerHeight - top;
|
|
107
|
+
const columns = Math.floor(width / baseWidth);
|
|
108
|
+
const rows = Math.floor(height / baseHeight);
|
|
109
|
+
const moleculeKeys = Object.keys(molecules);
|
|
110
|
+
let index = 0;
|
|
111
|
+
if (!molecules[id]) {
|
|
112
|
+
index = moleculeKeys.length - 1;
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
index = moleculeKeys.indexOf(id);
|
|
116
|
+
}
|
|
117
|
+
const x = ((index + 1) % columns) * (width / columns) + left;
|
|
118
|
+
const y = Math.floor(moleculeKeys.length / columns) * (height / rows) + top;
|
|
119
|
+
return { x, y };
|
|
120
|
+
}
|
|
97
121
|
function floatMoleculeOverSpectrum(draft, action) {
|
|
98
122
|
const { id } = action.payload;
|
|
99
123
|
initMoleculeViewProperties(id, draft);
|