nmrium 0.63.2 → 0.65.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/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +20 -5
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +1 -1
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FloatingRanges.js +1 -1
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/PredictionErrorsNotations.d.ts +2 -0
- package/lib/component/1d/PredictionErrorsNotations.d.ts.map +1 -0
- package/lib/component/1d/PredictionErrorsNotations.js +112 -0
- package/lib/component/1d/PredictionErrorsNotations.js.map +1 -0
- 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/Viewer1D.js +1 -1
- package/lib/component/1d/Viewer1D.js.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.d.ts +1 -1
- package/lib/component/1d/integral/IntegralsSeries.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +2 -4
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/Atoms.d.ts +1 -1
- package/lib/component/1d/ranges/Atoms.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +1 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +2 -4
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts +10 -7
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +177 -16
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +15 -4
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/Viewer2D.d.ts.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/Contours.d.ts.map +1 -1
- package/lib/component/2d/ft/Contours.js +3 -4
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +5 -3
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js +3 -3
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/zones/Signal.d.ts +1 -1
- package/lib/component/2d/zones/Signal.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +74 -6
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.d.ts +1 -1
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +5 -0
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +106 -31
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/SVGTable.js +1 -4
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/assignment/AssignmentProvider.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentProvider.js +2 -1
- package/lib/component/assignment/AssignmentProvider.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +5 -2
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +2 -1
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.d.ts.map +1 -1
- package/lib/component/elements/ArrowBox.d.ts +16 -0
- package/lib/component/elements/ArrowBox.d.ts.map +1 -0
- package/lib/component/elements/ArrowBox.js +55 -0
- package/lib/component/elements/ArrowBox.js.map +1 -0
- package/lib/component/elements/DraggableDialog.js +2 -0
- 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 +2 -2
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/Input2.js +2 -2
- package/lib/component/elements/Input2.js.map +1 -1
- package/lib/component/elements/NextPrev.d.ts.map +1 -1
- package/lib/component/elements/NextPrev.js +2 -4
- package/lib/component/elements/NextPrev.js.map +1 -1
- package/lib/component/elements/NumberInput2.js +1 -1
- package/lib/component/elements/NumberInput2.js.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +3 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +6 -5
- package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
- package/lib/component/elements/SVGGroup.js +1 -1
- package/lib/component/elements/SVGGroup.js.map +1 -1
- package/lib/component/elements/Sections.d.ts +1 -0
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +42 -7
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +3 -1
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/pdnd.cjs +12 -0
- package/lib/component/elements/pdnd.cjs.map +1 -0
- package/lib/component/elements/pdnd.d.cts +2 -0
- package/lib/component/elements/pdnd.d.cts.map +1 -0
- package/lib/component/highlight/index.d.ts +2 -2
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +1 -1
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
- package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +2 -0
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +1 -1
- package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts.map +1 -1
- package/lib/component/hooks/useFilter.d.ts +1 -1
- package/lib/component/hooks/useFilter.d.ts.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js +1 -1
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/InnerNMRiumContents.js +6 -3
- package/lib/component/main/InnerNMRiumContents.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts +1 -1
- package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts +1 -1
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts.map +1 -1
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts +1 -1
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts.map +1 -1
- package/lib/component/modal/editRange/utils/mapRange.d.ts +1 -1
- package/lib/component/modal/editRange/utils/mapRange.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +7 -4
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +3 -3
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +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/MatrixGenerationPanel/MatrixGenerationPanel.d.ts +2 -2
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +11 -11
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.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 +21 -15
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +17 -9
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/Panels.d.ts +0 -4
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +8 -14
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/PanelsBar.d.ts.map +1 -1
- package/lib/component/panels/PanelsBar.js +2 -4
- package/lib/component/panels/PanelsBar.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +5 -8
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +4 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +7 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +3 -3
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +15 -17
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.js +4 -3
- package/lib/component/panels/hooks/useTogglePanel.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +2 -2
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts +1 -1
- package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/simulationValidation.js +4 -8
- package/lib/component/panels/spectrumSimulation/simulationValidation.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +2 -0
- 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.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- 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 -5
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +9 -4
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +58 -28
- 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 +1 -5
- 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 +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js +4 -2
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +2 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +1 -1
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +5 -3
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +8 -15
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +2 -2
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +6 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +44 -37
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +3 -2
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +17 -8
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.d.ts.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -0
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +2 -2
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.js +11 -6
- package/lib/component/reducer/preferences/actions/togglePanel.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +3 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -1
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +1 -0
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +30 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
- package/lib/data/data1d/database.d.ts.map +1 -1
- package/lib/data/data1d/database.js +1 -1
- package/lib/data/data1d/database.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +19 -12
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +6 -4
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +22 -10
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js.map +1 -1
- package/lib/data/matrixGeneration.js +1 -1
- package/lib/data/matrixGeneration.js.map +1 -1
- package/lib/data/types/common/FilterEntry.d.ts +1 -1
- package/lib/data/types/common/FilterEntry.d.ts.map +1 -1
- package/lib/data/types/data1d/RangeDetectionResult.d.ts +1 -1
- package/lib/data/types/data1d/RangeDetectionResult.d.ts.map +1 -1
- package/lib/data/types/data1d/index.js +1 -1
- package/lib/data/types/data1d/index.js.map +1 -1
- package/lib/data/utilities/FindUtilities.d.ts +1 -1
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +32 -31
- package/src/component/1d/BrushTracker1D.tsx +39 -17
- package/src/component/1d/FloatPublicationString.tsx +2 -2
- package/src/component/1d/FloatingRanges.tsx +4 -4
- package/src/component/1d/PredictionErrorsNotations.tsx +209 -0
- package/src/component/1d/SVGContent1D.tsx +2 -0
- package/src/component/1d/Viewer1D.tsx +1 -1
- package/src/component/1d/integral/IntegralResizable.tsx +1 -1
- package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraph.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JsCouplings.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTrees.tsx +1 -1
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -6
- package/src/component/1d/peaks/Peaks.tsx +1 -1
- package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +1 -1
- package/src/component/1d/ranges/Atoms.tsx +1 -1
- package/src/component/1d/ranges/Range.tsx +1 -1
- package/src/component/1d/ranges/Ranges.tsx +4 -1
- package/src/component/1d/tool/BaseLineZones.tsx +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +4 -6
- package/src/component/1d-2d/tools/BrushXY.tsx +319 -30
- package/src/component/2d/BrushTracker2D.tsx +18 -4
- package/src/component/2d/Viewer2D.tsx +6 -1
- package/src/component/2d/ft/Contours.tsx +3 -11
- package/src/component/2d/utilities/extractSpectrumSignals.ts +12 -9
- package/src/component/2d/zones/Signal.tsx +1 -1
- package/src/component/2d/zones/SignalCrosshair.tsx +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +108 -12
- package/src/component/2d/zones/Zone.tsx +2 -2
- package/src/component/2d/zones/Zones.tsx +1 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +3 -3
- package/src/component/EventsTrackers/BrushTracker.tsx +124 -30
- package/src/component/SVGTable.tsx +4 -6
- package/src/component/assignment/AssignmentProvider.tsx +2 -1
- package/src/component/assignment/AssignmentsContext.ts +7 -2
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/elements/ArrowBox.tsx +77 -0
- package/src/component/elements/DraggableDialog.tsx +2 -0
- package/src/component/elements/Input.tsx +3 -3
- package/src/component/elements/Input2.tsx +4 -4
- package/src/component/elements/NextPrev.tsx +2 -6
- package/src/component/elements/NumberInput2.tsx +1 -1
- package/src/component/elements/ReactTable/Elements/ReactTableRow.tsx +3 -1
- package/src/component/elements/ReactTable/ReactTable.tsx +6 -7
- package/src/component/elements/SVGGroup.tsx +2 -2
- package/src/component/elements/Sections.tsx +103 -19
- package/src/component/elements/Tab/Tabs.tsx +3 -1
- package/src/component/elements/pdnd.cts +9 -0
- package/src/component/highlight/index.tsx +5 -5
- package/src/component/hooks/useCheckToolsVisibility.ts +1 -1
- package/src/component/hooks/useCombinedRefs.ts +6 -4
- package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
- package/src/component/hooks/useFilter.ts +1 -1
- package/src/component/hooks/useToolsFunctions.ts +1 -1
- package/src/component/main/InnerNMRiumContents.tsx +6 -3
- package/src/component/modal/EditPeakShapeModal.tsx +7 -2
- package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +1 -1
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +1 -1
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +1 -1
- package/src/component/modal/editRange/utils/couplingsToMultiplicity.ts +1 -1
- package/src/component/modal/editRange/utils/mapCouplings.ts +1 -1
- package/src/component/modal/editRange/utils/mapRange.ts +1 -1
- package/src/component/modal/editZone/EditZoneModal.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +12 -7
- package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +3 -3
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +1 -1
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +1 -1
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +22 -19
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +53 -48
- package/src/component/panels/MoleculesPanel/Utilities.ts +1 -1
- package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +29 -8
- package/src/component/panels/Panels.tsx +9 -24
- package/src/component/panels/PanelsBar.tsx +2 -6
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -1
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesHeader.tsx +15 -22
- package/src/component/panels/RangesPanel/RangesPanel.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTable.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.tsx +1 -1
- package/src/component/panels/RangesPanel/hooks/useMapRanges.ts +1 -1
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +11 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
- package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +9 -0
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +14 -4
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +17 -19
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
- package/src/component/panels/hooks/useTogglePanel.ts +4 -3
- package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +2 -2
- package/src/component/panels/spectrumSimulation/simulationValidation.ts +9 -13
- package/src/component/reducer/Reducer.ts +3 -1
- package/src/component/reducer/actions/AssignmentsActions.ts +2 -1
- package/src/component/reducer/actions/DatabaseActions.ts +2 -1
- package/src/component/reducer/actions/DomainActions.ts +11 -7
- package/src/component/reducer/actions/FiltersActions.ts +101 -56
- package/src/component/reducer/actions/InsetActions.ts +1 -5
- package/src/component/reducer/actions/IntegralsActions.ts +2 -2
- package/src/component/reducer/actions/LoadActions.ts +4 -2
- package/src/component/reducer/actions/PeaksActions.ts +5 -4
- package/src/component/reducer/actions/RangesActions.ts +14 -17
- package/src/component/reducer/actions/SpectraActions.ts +1 -1
- package/src/component/reducer/actions/ToolsActions.ts +2 -3
- package/src/component/reducer/actions/ZonesActions.ts +1 -1
- package/src/component/reducer/helper/Zoom1DManager.ts +67 -41
- package/src/component/reducer/helper/ZoomHistoryManager.ts +20 -9
- package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -0
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +2 -2
- package/src/component/reducer/preferences/actions/togglePanel.ts +10 -6
- package/src/component/reducer/preferences/preferencesReducer.ts +12 -2
- package/src/component/toolbar/ToolTypes.ts +1 -1
- package/src/component/workspaces/prediction.ts +1 -1
- package/src/data/PredictionManager.ts +2 -2
- package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
- package/src/data/data1d/Spectrum1D/generateJGraphData.ts +1 -1
- package/src/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.ts +1 -1
- package/src/data/data1d/Spectrum1D/integrals/initiateIntegrals.ts +1 -1
- package/src/data/data1d/Spectrum1D/isRangeAssigned.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/initiatePeaks.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/createRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/initiateRanges.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/resizeRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +1 -1
- package/src/data/data1d/database.ts +3 -2
- package/src/data/data1d/multipleSpectraAnalysis.ts +25 -18
- package/src/data/data2d/Spectrum2D/contours.ts +8 -4
- package/src/data/data2d/Spectrum2D/getMissingProjection.ts +1 -2
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +34 -16
- package/src/data/data2d/Spectrum2D/zones/detectZones.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/detectZonesManual.ts +2 -2
- package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
- package/src/data/matrixGeneration.ts +1 -1
- package/src/data/types/common/FilterEntry.ts +1 -1
- package/src/data/types/data1d/RangeDetectionResult.ts +1 -1
- package/src/data/utilities/FindUtilities.ts +1 -1
- package/src/data/utilities/RangeUtilities.ts +1 -1
- package/src/data/utilities/ZoneUtilities.ts +1 -1
- package/src/index.tsx +3 -0
- package/src/versionInfo.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Checkbox, Classes
|
|
1
|
+
import { Checkbox, Classes } from '@blueprintjs/core';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import type { CustomWorkspaces, Database } from '@zakodium/nmrium-core';
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
@@ -128,13 +128,18 @@ function DatabasesTabContent({
|
|
|
128
128
|
control={control}
|
|
129
129
|
name="databases.defaultDatabase"
|
|
130
130
|
render={({ field }) => {
|
|
131
|
-
const {
|
|
131
|
+
const { value, name } = field;
|
|
132
|
+
const databaseKey = row.original.key;
|
|
133
|
+
|
|
132
134
|
return (
|
|
133
|
-
<
|
|
134
|
-
|
|
135
|
+
<Checkbox
|
|
136
|
+
name={name}
|
|
137
|
+
value={databaseKey}
|
|
135
138
|
style={{ margin: 0 }}
|
|
136
|
-
checked={value ===
|
|
137
|
-
onChange={
|
|
139
|
+
checked={value === databaseKey}
|
|
140
|
+
onChange={() => {
|
|
141
|
+
setValue(name, databaseKey === value ? '' : databaseKey);
|
|
142
|
+
}}
|
|
138
143
|
/>
|
|
139
144
|
);
|
|
140
145
|
}}
|
|
@@ -191,7 +196,7 @@ function DatabasesTabContent({
|
|
|
191
196
|
},
|
|
192
197
|
},
|
|
193
198
|
],
|
|
194
|
-
[addHandler, control, deleteHandler, register],
|
|
199
|
+
[addHandler, control, deleteHandler, register, setValue],
|
|
195
200
|
);
|
|
196
201
|
|
|
197
202
|
function resetHandler() {
|
|
@@ -64,15 +64,15 @@ const LIST: ListItem[] = [
|
|
|
64
64
|
name: 'slicing',
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
label: 'Apodization',
|
|
67
|
+
label: 'Apodization / Window functions',
|
|
68
68
|
name: 'apodization',
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
label: 'Apodization dimension one',
|
|
71
|
+
label: 'Apodization / Window functions dimension one',
|
|
72
72
|
name: 'apodizationDimension1',
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
label: 'Apodization dimension two',
|
|
75
|
+
label: 'Apodization / Window functions dimension two',
|
|
76
76
|
name: 'apodizationDimension2',
|
|
77
77
|
},
|
|
78
78
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Info1D, Integrals } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import { SvgNmrIntegrate } from 'cheminfo-font';
|
|
3
|
-
import type { Info1D, Integrals } from 'nmr-processing';
|
|
4
4
|
import { memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { ImLink } from 'react-icons/im';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Info1D, Integral } from '@zakodium/nmr-types';
|
|
1
2
|
import dlv from 'dlv';
|
|
2
|
-
import type { Info1D, Integral } from 'nmr-processing';
|
|
3
3
|
import { checkIntegralKind } from 'nmr-processing';
|
|
4
4
|
import { memo, useCallback, useMemo } from 'react';
|
|
5
5
|
import { FaRegTrashAlt } from 'react-icons/fa';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
3
|
+
import type { MatrixOptions } from '@zakodium/nmr-types';
|
|
3
4
|
import { SvgNmrMultipleAnalysis } from 'cheminfo-font';
|
|
4
|
-
import type { MatrixOptions } from 'nmr-processing';
|
|
5
5
|
import { Filters1D } from 'nmr-processing';
|
|
6
|
-
import { useCallback } from 'react';
|
|
6
|
+
import { useCallback, useMemo } from 'react';
|
|
7
7
|
import { FormProvider, useForm } from 'react-hook-form';
|
|
8
8
|
import { Button, Toolbar } from 'react-science/ui';
|
|
9
9
|
import * as yup from 'yup';
|
|
@@ -58,18 +58,17 @@ const labelStyle: LabelStyle = {
|
|
|
58
58
|
|
|
59
59
|
export const DEFAULT_MATRIX_FILTERS: MatrixFilter[] = getMatrixFilters();
|
|
60
60
|
|
|
61
|
-
const DEFAULT_MATRIX_OPTIONS = getMatrixGenerationDefaultOptions();
|
|
62
|
-
|
|
63
61
|
function getMatrixOptions(
|
|
64
|
-
options: MatrixOptions
|
|
62
|
+
options: MatrixOptions<object>,
|
|
65
63
|
range: { from: number; to: number },
|
|
66
|
-
): MatrixOptions {
|
|
64
|
+
): MatrixOptions<object> {
|
|
67
65
|
const {
|
|
68
66
|
range: { from, to },
|
|
69
67
|
...other
|
|
70
68
|
} = options;
|
|
69
|
+
const { matrixOptions } = getMatrixGenerationDefaultOptions();
|
|
71
70
|
return {
|
|
72
|
-
...
|
|
71
|
+
...matrixOptions,
|
|
73
72
|
range: {
|
|
74
73
|
from: from === to ? range.from : from,
|
|
75
74
|
to: from === to ? range.to : to,
|
|
@@ -83,7 +82,7 @@ export const GroupPanelStyle: GroupPaneStyle = {
|
|
|
83
82
|
header: { color: 'black', fontWeight: 'bolder' },
|
|
84
83
|
};
|
|
85
84
|
|
|
86
|
-
export function useHasSignalProcessingFilter(): MatrixOptions | null {
|
|
85
|
+
export function useHasSignalProcessingFilter(): MatrixOptions<object> | null {
|
|
87
86
|
const spectra = useSpectraByActiveNucleus();
|
|
88
87
|
|
|
89
88
|
if (!spectra) return null;
|
|
@@ -124,13 +123,20 @@ function InnerMatrixGenerationPanel() {
|
|
|
124
123
|
activeTab,
|
|
125
124
|
);
|
|
126
125
|
|
|
127
|
-
const matrixOptions =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
const matrixOptions = useMemo(
|
|
127
|
+
() =>
|
|
128
|
+
getMatrixOptions(nucleusMatrixOptions.matrixOptions, {
|
|
129
|
+
from: originDomain.xDomain[0],
|
|
130
|
+
to: originDomain.xDomain[1],
|
|
131
|
+
}),
|
|
132
|
+
[nucleusMatrixOptions.matrixOptions, originDomain.xDomain],
|
|
133
|
+
);
|
|
131
134
|
|
|
132
135
|
function handleSave(options) {
|
|
133
|
-
dispatch({
|
|
136
|
+
dispatch({
|
|
137
|
+
type: 'APPLY_SIGNAL_PROCESSING_FILTER',
|
|
138
|
+
payload: { options: structuredClone(options) },
|
|
139
|
+
});
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
const handleOnChange = useCallback(
|
|
@@ -164,7 +170,7 @@ function InnerMatrixGenerationPanel() {
|
|
|
164
170
|
}
|
|
165
171
|
|
|
166
172
|
const { showStocsy, showBoxPlot } =
|
|
167
|
-
nucleusMatrixOptions ||
|
|
173
|
+
nucleusMatrixOptions || getMatrixGenerationDefaultOptions();
|
|
168
174
|
const methods = useForm({
|
|
169
175
|
defaultValues: matrixOptions,
|
|
170
176
|
resolver: yupResolver(schema),
|
|
@@ -173,10 +179,7 @@ function InnerMatrixGenerationPanel() {
|
|
|
173
179
|
|
|
174
180
|
useWatchForm({
|
|
175
181
|
reset,
|
|
176
|
-
initialValues:
|
|
177
|
-
from: originDomain.xDomain[0],
|
|
178
|
-
to: originDomain.xDomain[1],
|
|
179
|
-
}),
|
|
182
|
+
initialValues: matrixOptions,
|
|
180
183
|
control,
|
|
181
184
|
onChange: (values) => {
|
|
182
185
|
handleOnChange(values);
|
|
@@ -330,7 +333,7 @@ function ExclusionZonesGroupHeaderContent() {
|
|
|
330
333
|
interface FooterActionsButtonsProps {
|
|
331
334
|
onClickApply: () => void;
|
|
332
335
|
onClickRemove: () => void;
|
|
333
|
-
matrixOptions: MatrixOptions
|
|
336
|
+
matrixOptions: MatrixOptions<object>;
|
|
334
337
|
}
|
|
335
338
|
|
|
336
339
|
function FooterActionsButtons(props: FooterActionsButtonsProps) {
|
|
@@ -47,6 +47,13 @@ const styles: Record<'atomLabel', CSSProperties> = {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
const MOL_EXPORT_MENU: ToolbarPopoverMenuItem[] = [
|
|
50
|
+
{
|
|
51
|
+
icon: <FaCopy />,
|
|
52
|
+
text: 'Copy as SMILES',
|
|
53
|
+
data: {
|
|
54
|
+
id: 'smiles',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
50
57
|
{
|
|
51
58
|
icon: <FaCopy />,
|
|
52
59
|
text: 'Copy as molfile V3',
|
|
@@ -88,17 +95,18 @@ interface MoleculePanelHeaderProps {
|
|
|
88
95
|
children?: ReactNode;
|
|
89
96
|
}
|
|
90
97
|
|
|
91
|
-
export default function MoleculePanelHeader({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
export default function MoleculePanelHeader(props: MoleculePanelHeaderProps) {
|
|
99
|
+
const {
|
|
100
|
+
currentIndex,
|
|
101
|
+
molecules,
|
|
102
|
+
moleculesView,
|
|
103
|
+
onMoleculeIndexChange,
|
|
104
|
+
onOpenMoleculeEditor,
|
|
105
|
+
renderSource = 'moleculePanel',
|
|
106
|
+
onClickPreferences,
|
|
107
|
+
onClickPastMolecule,
|
|
108
|
+
children,
|
|
109
|
+
} = props;
|
|
102
110
|
const { rootRef } = useGlobal();
|
|
103
111
|
const toaster = useToaster();
|
|
104
112
|
const dispatch = useDispatch();
|
|
@@ -140,11 +148,11 @@ export default function MoleculePanelHeader({
|
|
|
140
148
|
text,
|
|
141
149
|
} = useClipboard();
|
|
142
150
|
|
|
143
|
-
const
|
|
144
|
-
(
|
|
145
|
-
void rawWriteWithType(
|
|
151
|
+
const copyHandler = useCallback(
|
|
152
|
+
(value, title) => {
|
|
153
|
+
void rawWriteWithType(value).then(() => {
|
|
146
154
|
toaster.show({
|
|
147
|
-
message:
|
|
155
|
+
message: `${title} copied to clipboard`,
|
|
148
156
|
intent: 'success',
|
|
149
157
|
});
|
|
150
158
|
});
|
|
@@ -154,16 +162,20 @@ export default function MoleculePanelHeader({
|
|
|
154
162
|
|
|
155
163
|
const exportHandler = useCallback(
|
|
156
164
|
(selected) => {
|
|
157
|
-
const
|
|
165
|
+
const m = molecules?.[currentIndex];
|
|
166
|
+
const molecule = Molecule.fromMolfile(m.molfile);
|
|
167
|
+
|
|
158
168
|
if (molecule) {
|
|
159
169
|
switch (selected?.id) {
|
|
170
|
+
case 'smiles':
|
|
171
|
+
copyHandler(molecule.toSmiles(), 'SMILES');
|
|
172
|
+
|
|
173
|
+
break;
|
|
160
174
|
case 'molfileV3':
|
|
161
|
-
|
|
175
|
+
copyHandler(m.molfile, 'MOLFile');
|
|
162
176
|
break;
|
|
163
177
|
case 'molfileV2': {
|
|
164
|
-
|
|
165
|
-
Molecule.fromMolfile(molecule.molfile).toMolfile(),
|
|
166
|
-
);
|
|
178
|
+
copyHandler(molecule.toMolfile(), 'MOLFile');
|
|
167
179
|
|
|
168
180
|
break;
|
|
169
181
|
}
|
|
@@ -178,13 +190,7 @@ export default function MoleculePanelHeader({
|
|
|
178
190
|
}
|
|
179
191
|
}
|
|
180
192
|
},
|
|
181
|
-
[
|
|
182
|
-
currentIndex,
|
|
183
|
-
molecules,
|
|
184
|
-
saveAsMolHandler,
|
|
185
|
-
saveAsPNGHandler,
|
|
186
|
-
saveAsSVGHandler,
|
|
187
|
-
],
|
|
193
|
+
[molecules, currentIndex, copyHandler, saveAsPNGHandler, saveAsSVGHandler],
|
|
188
194
|
);
|
|
189
195
|
|
|
190
196
|
function handlePasteMolfileAction() {
|
|
@@ -256,27 +262,26 @@ export default function MoleculePanelHeader({
|
|
|
256
262
|
<Toolbar>
|
|
257
263
|
{renderSource === 'predictionPanel' && <AboutPredictionModal />}
|
|
258
264
|
{renderSource === 'moleculePanel' && (
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
</>
|
|
265
|
+
<ToolbarPopoverItem
|
|
266
|
+
options={MOL_EXPORT_MENU}
|
|
267
|
+
onClick={exportHandler}
|
|
268
|
+
disabled={!hasMolecules}
|
|
269
|
+
tooltip="Export As"
|
|
270
|
+
icon={<FaFileExport />}
|
|
271
|
+
id="molecule-export-as"
|
|
272
|
+
/>
|
|
273
|
+
)}
|
|
274
|
+
<Toolbar.Item
|
|
275
|
+
tooltip="Paste SMILES or molfile"
|
|
276
|
+
icon={<FaPaste />}
|
|
277
|
+
onClick={handlePasteMolfileAction}
|
|
278
|
+
/>
|
|
279
|
+
{renderSource === 'moleculePanel' && (
|
|
280
|
+
<Toolbar.Item
|
|
281
|
+
tooltip="Add molecule"
|
|
282
|
+
icon={<FaPlus />}
|
|
283
|
+
onClick={onOpenMoleculeEditor}
|
|
284
|
+
/>
|
|
280
285
|
)}
|
|
281
286
|
|
|
282
287
|
{renderSource === 'moleculePanel' && (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Range, Zone } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
2
|
-
import type { Range, Zone } from 'nmr-processing';
|
|
3
3
|
import type { DiaIDAndInfo } from 'openchemlib-utils';
|
|
4
4
|
|
|
5
5
|
import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
@@ -75,6 +75,7 @@ function getSignalsDiaIDs(
|
|
|
75
75
|
|
|
76
76
|
export default function useAtomAssignment() {
|
|
77
77
|
const {
|
|
78
|
+
data: spectra,
|
|
78
79
|
view: {
|
|
79
80
|
spectra: { activeTab: nucleus },
|
|
80
81
|
},
|
|
@@ -85,8 +86,10 @@ export default function useAtomAssignment() {
|
|
|
85
86
|
const highlightData = useHighlightData();
|
|
86
87
|
const highlightedIdDsRef = useRef<string[]>([]);
|
|
87
88
|
const assignments = useAssignmentContext();
|
|
88
|
-
const
|
|
89
|
-
|
|
89
|
+
const { activated: activatedAssignment } = assignments;
|
|
90
|
+
|
|
91
|
+
const activatedKey = activatedAssignment
|
|
92
|
+
? activatedAssignment.id
|
|
90
93
|
: ConcatenationString; // dummy value
|
|
91
94
|
|
|
92
95
|
// used for atom highlighting for now, until we would like to highlight atoms per axis separately
|
|
@@ -117,7 +120,11 @@ export default function useAtomAssignment() {
|
|
|
117
120
|
|
|
118
121
|
if (!assignKeys) return;
|
|
119
122
|
const [{ index: rangeIndex }] = assignKeys;
|
|
120
|
-
const
|
|
123
|
+
const {
|
|
124
|
+
id: spectrumId,
|
|
125
|
+
ranges: { values },
|
|
126
|
+
} = spectrum;
|
|
127
|
+
const range = values[rangeIndex];
|
|
121
128
|
|
|
122
129
|
let diaIDs: string[] = [];
|
|
123
130
|
|
|
@@ -135,6 +142,7 @@ export default function useAtomAssignment() {
|
|
|
135
142
|
nbAtoms: uniqueDiaIDs.nbAtoms,
|
|
136
143
|
diaIDs: uniqueDiaIDs.diaIDs,
|
|
137
144
|
keys: assignKeys,
|
|
145
|
+
spectrumId,
|
|
138
146
|
},
|
|
139
147
|
});
|
|
140
148
|
}
|
|
@@ -175,9 +183,9 @@ export default function useAtomAssignment() {
|
|
|
175
183
|
diaIDAndInfo: DiaIDAndInfo | undefined,
|
|
176
184
|
event: MouseEvent,
|
|
177
185
|
) {
|
|
178
|
-
if (checkModifierKeyActivated(event) || !
|
|
186
|
+
if (checkModifierKeyActivated(event) || !activatedAssignment) return;
|
|
179
187
|
|
|
180
|
-
const { axis, id } =
|
|
188
|
+
const { axis, id } = activatedAssignment;
|
|
181
189
|
|
|
182
190
|
if (!id || !axis) {
|
|
183
191
|
return;
|
|
@@ -198,10 +206,23 @@ export default function useAtomAssignment() {
|
|
|
198
206
|
// determine the level of setting the diaIDs array (range vs. signal level) and save there
|
|
199
207
|
// let nbAtoms = 0;
|
|
200
208
|
// on range/zone level
|
|
201
|
-
|
|
202
|
-
|
|
209
|
+
const currentSpectrum = activatedAssignment.spectrumId
|
|
210
|
+
? spectra.find(
|
|
211
|
+
(spectrum) => spectrum.id === activatedAssignment.spectrumId,
|
|
212
|
+
)
|
|
213
|
+
: spectrum;
|
|
214
|
+
|
|
215
|
+
if (!currentSpectrum) return;
|
|
216
|
+
|
|
217
|
+
if (isSpectrum1D(currentSpectrum)) {
|
|
218
|
+
assign1DAtom(currentSpectrum, activatedAssignment.id, atomInformation);
|
|
203
219
|
} else {
|
|
204
|
-
assign2DAtom(
|
|
220
|
+
assign2DAtom(
|
|
221
|
+
currentSpectrum,
|
|
222
|
+
activatedAssignment.id,
|
|
223
|
+
atomInformation,
|
|
224
|
+
axis,
|
|
225
|
+
);
|
|
205
226
|
}
|
|
206
227
|
assignments.activate({ id: activatedKey, axis });
|
|
207
228
|
}
|
|
@@ -20,11 +20,7 @@ const Container = styled.div`
|
|
|
20
20
|
height: 100%;
|
|
21
21
|
flex: 1 1 0%;
|
|
22
22
|
`;
|
|
23
|
-
|
|
24
|
-
type PanelOpenState = Partial<Record<keyof NMRiumPanelPreferences, boolean>>;
|
|
25
23
|
interface PanelStateContext {
|
|
26
|
-
setPanelOpenState: (id: keyof NMRiumPanelPreferences, value: boolean) => void;
|
|
27
|
-
panelOpenState: PanelOpenState;
|
|
28
24
|
openSplitPane: () => void;
|
|
29
25
|
closeSplitPane: () => void;
|
|
30
26
|
isSplitPaneOpen: boolean;
|
|
@@ -48,26 +44,12 @@ export function PanelOpenProviderProvider({ children }) {
|
|
|
48
44
|
const {
|
|
49
45
|
display: { general = {} },
|
|
50
46
|
} = current;
|
|
51
|
-
|
|
52
|
-
const [panelOpenState, toggleAccordionItem] = useState<PanelOpenState>({});
|
|
53
47
|
// TODO: make sure to move this state to the workspace once the refactoring of nmrium-core is finished.
|
|
54
48
|
const [isSplitPaneOpen, setIsSplitPaneOpen] = useState(
|
|
55
49
|
!general?.hidePanelOnLoad,
|
|
56
50
|
);
|
|
57
51
|
|
|
58
52
|
const state = useMemo(() => {
|
|
59
|
-
function setPanelOpenState(
|
|
60
|
-
id: keyof NMRiumPanelPreferences,
|
|
61
|
-
value: boolean,
|
|
62
|
-
) {
|
|
63
|
-
toggleAccordionItem((prev) => {
|
|
64
|
-
return {
|
|
65
|
-
...prev,
|
|
66
|
-
[id]: value,
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
53
|
function openSplitPane() {
|
|
72
54
|
setIsSplitPaneOpen(true);
|
|
73
55
|
}
|
|
@@ -75,13 +57,11 @@ export function PanelOpenProviderProvider({ children }) {
|
|
|
75
57
|
setIsSplitPaneOpen(false);
|
|
76
58
|
}
|
|
77
59
|
return {
|
|
78
|
-
setPanelOpenState,
|
|
79
|
-
panelOpenState,
|
|
80
60
|
openSplitPane,
|
|
81
61
|
closeSplitPane,
|
|
82
62
|
isSplitPaneOpen,
|
|
83
63
|
};
|
|
84
|
-
}, [isSplitPaneOpen
|
|
64
|
+
}, [isSplitPaneOpen]);
|
|
85
65
|
|
|
86
66
|
return (
|
|
87
67
|
<AccordionContext.Provider value={state}>
|
|
@@ -92,11 +72,10 @@ export function PanelOpenProviderProvider({ children }) {
|
|
|
92
72
|
|
|
93
73
|
function PanelsInner() {
|
|
94
74
|
const getPanelPreferences = useGetPanelOptions();
|
|
95
|
-
const { panelOpenState } = usePanelOpenState();
|
|
96
75
|
const { dialog, openDialog, closeDialog } = useDialogToggle({
|
|
97
76
|
informationModal: false,
|
|
98
77
|
});
|
|
99
|
-
|
|
78
|
+
const { dispatch } = usePreferences();
|
|
100
79
|
const items = useAccordionItems();
|
|
101
80
|
function isOpened(item: AccordionItem) {
|
|
102
81
|
const panelOptions = getPanelPreferences(item);
|
|
@@ -126,7 +105,13 @@ function PanelsInner() {
|
|
|
126
105
|
id={id}
|
|
127
106
|
key={title}
|
|
128
107
|
title={title}
|
|
129
|
-
|
|
108
|
+
open={isOpened(item)}
|
|
109
|
+
onOpenChange={(isOpened) => {
|
|
110
|
+
dispatch({
|
|
111
|
+
type: 'TOGGLE_PANEL',
|
|
112
|
+
payload: { id, options: { open: isOpened } },
|
|
113
|
+
});
|
|
114
|
+
}}
|
|
130
115
|
renderToolbar={() => (
|
|
131
116
|
<RightButtons
|
|
132
117
|
id={id}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ButtonGroup, Colors } from '@blueprintjs/core';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import type { NMRiumPanelPreferences } from '@zakodium/nmrium-core';
|
|
4
|
+
import { useResizeObserver } from 'react-d3-utils';
|
|
4
5
|
import { ActivityBarItem, Toolbar } from 'react-science/ui';
|
|
5
|
-
import useResizeObserver from 'use-resize-observer';
|
|
6
6
|
|
|
7
7
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
8
8
|
import type { ToolbarPopoverMenuItem } from '../elements/ToolbarPopoverItem.js';
|
|
@@ -47,11 +47,7 @@ export function PanelsBar({ itemHeight = 44 }) {
|
|
|
47
47
|
const {
|
|
48
48
|
display: { general = {} },
|
|
49
49
|
} = current;
|
|
50
|
-
const {
|
|
51
|
-
ref,
|
|
52
|
-
height,
|
|
53
|
-
// @ts-expect-error Module is not published correctly.
|
|
54
|
-
} = useResizeObserver();
|
|
50
|
+
const [ref, { height } = { height: 0 }] = useResizeObserver();
|
|
55
51
|
const getPanelPreferences = useGetPanelOptions();
|
|
56
52
|
|
|
57
53
|
const sliceIndex = Math.floor((height - itemHeight) / itemHeight);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Info1D, Peak1D, Peaks } from '@zakodium/nmr-types';
|
|
1
2
|
import type { PeaksViewState, Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
3
|
import { SvgNmrFt, SvgNmrPeaks, SvgNmrPeaksTopLabels } from 'cheminfo-font';
|
|
3
|
-
import type { Info1D, Peak1D, Peaks } from 'nmr-processing';
|
|
4
4
|
import { memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { FaThinkPeaks } from 'react-icons/fa';
|
|
6
6
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Info1D, Ranges } from '@zakodium/nmr-types';
|
|
1
2
|
import type { RangesViewState } from '@zakodium/nmrium-core';
|
|
2
3
|
import {
|
|
3
4
|
SvgNmrIntegrate,
|
|
@@ -5,7 +6,6 @@ import {
|
|
|
5
6
|
SvgNmrPeaksTopLabels,
|
|
6
7
|
} from 'cheminfo-font';
|
|
7
8
|
import fileSaver from 'file-saver';
|
|
8
|
-
import type { Info1D, Ranges } from 'nmr-processing';
|
|
9
9
|
import { rangesToTSV } from 'nmr-processing';
|
|
10
10
|
import {
|
|
11
11
|
FaChartBar,
|
|
@@ -26,7 +26,6 @@ import { useAlert } from '../../elements/Alert.js';
|
|
|
26
26
|
import type { ToolbarPopoverMenuItem } from '../../elements/ToolbarPopoverItem.js';
|
|
27
27
|
import { ToolbarPopoverItem } from '../../elements/ToolbarPopoverItem.js';
|
|
28
28
|
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
29
|
-
import useCheckExperimentalFeature from '../../hooks/useCheckExperimentalFeature.js';
|
|
30
29
|
import { useDialogToggle } from '../../hooks/useDialogToggle.js';
|
|
31
30
|
import { PublicationStringModal } from '../../modal/PublicationStringModal.js';
|
|
32
31
|
import ChangeSumModal from '../../modal/changeSum/ChangeSumModal.js';
|
|
@@ -80,7 +79,6 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
80
79
|
const dispatch = useDispatch();
|
|
81
80
|
const alert = useAlert();
|
|
82
81
|
const toaster = useToaster();
|
|
83
|
-
const isExperimentalFeature = useCheckExperimentalFeature();
|
|
84
82
|
const { openDialog, dialog, closeDialog } = useDialogToggle({
|
|
85
83
|
publicationStringModal: false,
|
|
86
84
|
});
|
|
@@ -312,27 +310,22 @@ function RangesHeader(props: RangesHeaderProps) {
|
|
|
312
310
|
onClick: handleShowAssignmentsLabel,
|
|
313
311
|
active: showAssignmentsLabels,
|
|
314
312
|
},
|
|
313
|
+
{
|
|
314
|
+
disabled: !hasRanges,
|
|
315
|
+
icon: <FaCopy />,
|
|
316
|
+
tooltip: `${booleanToString(!showPublicationString)} publication string`,
|
|
317
|
+
onClick: handleShowPublicationString,
|
|
318
|
+
active: showPublicationString,
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
disabled: !hasRanges,
|
|
322
|
+
icon: <SvgNmrPeaksTopLabels />,
|
|
323
|
+
tooltip: `${booleanToString(!showRanges)} ranges`,
|
|
324
|
+
onClick: handleShowRanges,
|
|
325
|
+
active: showRanges,
|
|
326
|
+
},
|
|
315
327
|
];
|
|
316
328
|
|
|
317
|
-
if (isExperimentalFeature) {
|
|
318
|
-
lefButtons.push(
|
|
319
|
-
{
|
|
320
|
-
disabled: !hasRanges,
|
|
321
|
-
icon: <FaCopy />,
|
|
322
|
-
tooltip: `${booleanToString(!showPublicationString)} publication string`,
|
|
323
|
-
onClick: handleShowPublicationString,
|
|
324
|
-
active: showPublicationString,
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
disabled: !hasRanges,
|
|
328
|
-
icon: <SvgNmrPeaksTopLabels />,
|
|
329
|
-
tooltip: `${booleanToString(!showRanges)} ranges`,
|
|
330
|
-
onClick: handleShowRanges,
|
|
331
|
-
active: showRanges,
|
|
332
|
-
},
|
|
333
|
-
);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
329
|
return (
|
|
337
330
|
<div>
|
|
338
331
|
<PublicationStringModal
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { Info1D, Ranges } from '@zakodium/nmr-types';
|
|
1
2
|
import type {
|
|
2
3
|
Spectrum1D,
|
|
3
4
|
WorkSpacePanelPreferences,
|
|
4
5
|
} from '@zakodium/nmrium-core';
|
|
5
6
|
import type { NmrData1D } from 'cheminfo-types';
|
|
6
7
|
import { xGetFromToIndex } from 'ml-spectra-processing';
|
|
7
|
-
import type { Info1D, Ranges } from 'nmr-processing';
|
|
8
8
|
import { memo, useCallback, useMemo, useRef, useState } from 'react';
|
|
9
9
|
import { FaCopy } from 'react-icons/fa';
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
+
import type { Info1D } from '@zakodium/nmr-types';
|
|
2
3
|
import type { WorkSpacePanelPreferences } from '@zakodium/nmrium-core';
|
|
3
|
-
import type { Info1D } from 'nmr-processing';
|
|
4
4
|
import { FaLink } from 'react-icons/fa';
|
|
5
5
|
|
|
6
6
|
import { withDialog } from '../../elements/DialogManager.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Info1D } from '@zakodium/nmr-types';
|
|
1
2
|
import type { WorkSpacePanelPreferences } from '@zakodium/nmrium-core';
|
|
2
|
-
import type { Info1D } from 'nmr-processing';
|
|
3
3
|
import type { CSSProperties, MouseEvent } from 'react';
|
|
4
4
|
import { useCallback, useMemo } from 'react';
|
|
5
5
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RangeSliderProps } from '@blueprintjs/core';
|
|
1
2
|
import { RangeSlider } from '@blueprintjs/core';
|
|
2
3
|
import styled from '@emotion/styled';
|
|
3
4
|
import debounce from 'lodash/debounce.js';
|
|
@@ -28,6 +29,14 @@ const StyledRangeSlider = styled(RangeSlider)<{
|
|
|
28
29
|
background-color: ${(props) => props.progressColor};
|
|
29
30
|
}
|
|
30
31
|
`;
|
|
32
|
+
type ContoursRangeSliderProps = RangeSliderProps & {
|
|
33
|
+
progressColor: React.CSSProperties['backgroundColor'];
|
|
34
|
+
name?: string;
|
|
35
|
+
};
|
|
36
|
+
function ContoursRangeSlider(props: ContoursRangeSliderProps) {
|
|
37
|
+
return <StyledRangeSlider {...props} />;
|
|
38
|
+
}
|
|
39
|
+
|
|
31
40
|
interface Spectrum2DSettingProps {
|
|
32
41
|
data: any;
|
|
33
42
|
onSubmit: (values: any) => void;
|
|
@@ -113,7 +122,8 @@ function Settings(props: SettingsProps) {
|
|
|
113
122
|
const { value, onChange } = field;
|
|
114
123
|
|
|
115
124
|
return (
|
|
116
|
-
<
|
|
125
|
+
<ContoursRangeSlider
|
|
126
|
+
name={sign}
|
|
117
127
|
min={0}
|
|
118
128
|
max={100}
|
|
119
129
|
stepSize={1}
|