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
|
@@ -4,22 +4,18 @@ import { DEFAULT_CONTOURS_OPTIONS, getDefaultContoursLevel, } from './contours.j
|
|
|
4
4
|
import { get2DColor } from './get2DColor.js';
|
|
5
5
|
import { initiateZones } from './zones/initiateZones.js';
|
|
6
6
|
const defaultMinMax = { z: [], minX: 0, minY: 0, maxX: 0, maxY: 0 };
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const datum = { ...spectrum };
|
|
10
|
-
datum.id = spectrum.id || crypto.randomUUID();
|
|
11
|
-
datum.display = {
|
|
7
|
+
function initiateDisplay(spectrum, options) {
|
|
8
|
+
return {
|
|
12
9
|
isPositiveVisible: true,
|
|
13
10
|
isNegativeVisible: true,
|
|
14
11
|
isVisible: true,
|
|
15
|
-
contourOptions: 'rr' in spectrum.data
|
|
16
|
-
? getDefaultContoursLevel(spectrum)
|
|
17
|
-
: DEFAULT_CONTOURS_OPTIONS,
|
|
18
12
|
dimension: 2,
|
|
19
13
|
...spectrum.display,
|
|
20
|
-
...get2DColor(spectrum,
|
|
14
|
+
...get2DColor(spectrum, options),
|
|
21
15
|
};
|
|
22
|
-
|
|
16
|
+
}
|
|
17
|
+
function initiateInfo(spectrum) {
|
|
18
|
+
return {
|
|
23
19
|
nucleus: ['1H', '1H'],
|
|
24
20
|
isFt: true,
|
|
25
21
|
isFid: false,
|
|
@@ -27,6 +23,21 @@ export function initiateDatum2D(spectrum, options = {}) {
|
|
|
27
23
|
dimension: 2,
|
|
28
24
|
...spectrum.info,
|
|
29
25
|
};
|
|
26
|
+
}
|
|
27
|
+
function initiateContoursLevels(spectrum) {
|
|
28
|
+
const { display: { contourOptions }, data, } = spectrum;
|
|
29
|
+
if (contourOptions)
|
|
30
|
+
return contourOptions;
|
|
31
|
+
if ('rr' in data)
|
|
32
|
+
return getDefaultContoursLevel(spectrum);
|
|
33
|
+
return DEFAULT_CONTOURS_OPTIONS;
|
|
34
|
+
}
|
|
35
|
+
export function initiateDatum2D(spectrum, options = {}) {
|
|
36
|
+
const { usedColors, colors } = options;
|
|
37
|
+
const datum = { ...spectrum };
|
|
38
|
+
datum.id = spectrum.id || crypto.randomUUID();
|
|
39
|
+
datum.display = initiateDisplay(spectrum, { usedColors, colors });
|
|
40
|
+
datum.info = initiateInfo(spectrum);
|
|
30
41
|
datum.originalInfo = datum.info;
|
|
31
42
|
datum.meta = { ...spectrum.meta };
|
|
32
43
|
datum.customInfo = { ...spectrum.customInfo };
|
|
@@ -36,6 +47,7 @@ export function initiateDatum2D(spectrum, options = {}) {
|
|
|
36
47
|
datum.zones = initiateZones(spectrum, datum);
|
|
37
48
|
//reapply filters after load the original data
|
|
38
49
|
Filters2DManager.reapplyFilters(datum);
|
|
50
|
+
datum.display.contourOptions = initiateContoursLevels(datum);
|
|
39
51
|
return datum;
|
|
40
52
|
}
|
|
41
53
|
function getData(datum, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initiateDatum2D.js","sourceRoot":"","sources":["../../../../src/data/data2d/Spectrum2D/initiateDatum2D.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,aAAa,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;AAOpE,
|
|
1
|
+
{"version":3,"file":"initiateDatum2D.js","sourceRoot":"","sources":["../../../../src/data/data2d/Spectrum2D/initiateDatum2D.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Zone } from 'nmr-
|
|
1
|
+
import type { Zone } from '@zakodium/nmr-types';
|
|
2
2
|
import type { DetectionZonesOptions } from './getDetectionZones.js';
|
|
3
3
|
export declare function detectZones(datum: any, options: DetectionZonesOptions): Zone[];
|
|
4
4
|
//# sourceMappingURL=detectZones.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectZones.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/detectZones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"detectZones.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/detectZones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAGhD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGpE,wBAAgB,WAAW,CAAC,KAAK,KAAA,EAAE,OAAO,EAAE,qBAAqB,GAAG,IAAI,EAAE,CAIzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectZonesManual.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/detectZonesManual.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"detectZonesManual.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/detectZonesManual.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGpE;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,KAAA,EAAE,OAAO,EAAE,qBAAqB;;;;;;;qBAcmnjC,CAAC;qBAAgC,CAAC;qBAAgC,CAAC;iBAA4B,CAAC;;;;;;;;;;mBAA6P,CAAC;kBAA6B,CAAC;;;;;mBAA0H,CAAC;kBAA6B,CAAC;;YAAqC,CAAC;SAAoB,CAAC;sBAA2B,CAAC;;;;;;;eAAkI,CAAC;cAAyB,CAAC;oBAAiC,CAAC;kBAA6B,CAAC;;;;;eAAwF,CAAC;cAAyB,CAAC;oBAAiC,CAAC;kBAA6B,CAAC;;;;IADrrlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectZonesManual.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/detectZonesManual.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"detectZonesManual.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/detectZonesManual.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAK,EAAE,OAA8B;IACrE,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC;IACtD,OAAO,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3E,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChD,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC;IACtD,IAAI,KAAK,GAAG,GAAG;QAAE,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7C,IAAI,KAAK,GAAG,GAAG;QAAE,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7C,KAAK,CAAC,CAAC,CAAC,GAAG;QACT,GAAG,KAAK,CAAC,CAAC,CAAC;QACX,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE;QAC3B,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE;KAC5B,CAAC;IACF,OAAO,QAAQ,CAAC,KAAe,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initiateZones.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/initiateZones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"initiateZones.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/initiateZones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,CAAC;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC,EAClC,QAAQ,EAAE,UAAU;;;;;;;;;;;;;;;yBAiBswkC,CAAC;yBAAgC,CAAC;yBAAgC,CAAC;qBAA4B,CAAC;;;;;;;;;;uBAA6P,CAAC;sBAA6B,CAAC;;;;;uBAA0H,CAAC;sBAA6B,CAAC;;gBAAqC,CAAC;aAAoB,CAAC;0BAA2B,CAAC;;;;;;;mBAAkI,CAAC;kBAAyB,CAAC;wBAAiC,CAAC;sBAA6B,CAAC;;;;;mBAAwF,CAAC;kBAAyB,CAAC;wBAAiC,CAAC;sBAA6B,CAAC;;;;;EADvxmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initiateZones.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/initiateZones.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initiateZones.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/initiateZones.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,UAAU,aAAa,CAC3B,OAAkC,EAClC,QAAoB;IAEpB,OAAO,KAAK,CACV;QACE,MAAM,EAAE,EAAE;QACV,OAAO,EAAE;YACP,GAAG,EAAE,SAAS;YACd,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,IAAI;SACd;KACF,EACD,OAAO,CAAC,KAAK,EACb;QACE,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,EAAE,EAAE,QAAQ,CAAC;KACzD,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import lodashSet from 'lodash/set.js';
|
|
2
|
-
import filterXY from 'ml-signal-processing/FilterXYSchema.
|
|
2
|
+
import filterXY from 'ml-signal-processing/FilterXYSchema.json' with { type: 'json' };
|
|
3
3
|
export function normalCase(str) {
|
|
4
4
|
const result = str.replaceAll(/(?<upper>[A-Z])/g, ' $<upper>').trim();
|
|
5
5
|
return result.charAt(0).toUpperCase() + result.slice(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matrixGeneration.js","sourceRoot":"","sources":["../../src/data/matrixGeneration.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,eAAe,CAAC;AAEtC,OAAO,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"matrixGeneration.js","sourceRoot":"","sources":["../../src/data/matrixGeneration.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterEntry.d.ts","sourceRoot":"","sources":["../../../../src/data/types/common/FilterEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FilterEntry.d.ts","sourceRoot":"","sources":["../../../../src/data/types/common/FilterEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeDetectionResult.d.ts","sourceRoot":"","sources":["../../../../src/data/types/data1d/RangeDetectionResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RangeDetectionResult.d.ts","sourceRoot":"","sources":["../../../../src/data/types/data1d/RangeDetectionResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAAC;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {}
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/types/data1d/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/types/data1d/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { Range, Signal1D, Signal2D, Zone } from '@zakodium/nmr-types';
|
|
1
2
|
import type { Spectrum, Spectrum1D, Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
|
-
import type { Range, Signal1D, Signal2D, Zone } from 'nmr-processing';
|
|
3
3
|
declare function findSpectrum(spectraData: Spectrum[], spectrumID: string, checkIsVisible: boolean): Spectrum | undefined;
|
|
4
4
|
declare function findSignal1D(spectrum: Spectrum1D, signalID: string): Signal1D | undefined;
|
|
5
5
|
declare function findSignal2D(spectrum: Spectrum2D, signalID: string): Signal2D | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FindUtilities.d.ts","sourceRoot":"","sources":["../../../src/data/utilities/FindUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"FindUtilities.d.ts","sourceRoot":"","sources":["../../../src/data/utilities/FindUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE9E,iBAAS,YAAY,CACnB,WAAW,EAAE,QAAQ,EAAE,EACvB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,OAAO,GACtB,QAAQ,GAAG,SAAS,CAOtB;AAED,iBAAS,YAAY,CACnB,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,MAAM,GACf,QAAQ,GAAG,SAAS,CAStB;AAED,iBAAS,YAAY,CACnB,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,MAAM,GACf,QAAQ,GAAG,SAAS,CAStB;AAED,iBAAS,SAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAS5E;AAED,iBAAS,QAAQ,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAS1E;AAED,iBAAS,iBAAiB,CACxB,WAAW,EAAE,QAAQ,EAAE,EACvB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,sBAYxB;AAED,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,QAAQ,GACT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeUtilities.d.ts","sourceRoot":"","sources":["../../../src/data/utilities/RangeUtilities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RangeUtilities.d.ts","sourceRoot":"","sources":["../../../src/data/utilities/RangeUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAY,MAAM,qBAAqB,CAAC;AAc3D;;;;;;;GAOG;AAEH,UAAU,aAAa;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AACD,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,GAAE,aAAkB,GAAG,KAAK,CAuBvE;AAED,wBAAgB,cAAc,CAAC,KAAK,KAAA,WAEnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeUtilities.js","sourceRoot":"","sources":["../../../src/data/utilities/RangeUtilities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RangeUtilities.js","sourceRoot":"","sources":["../../../src/data/utilities/RangeUtilities.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,SAAS,WAAW,CAAC,KAAY;IAC/B,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC1C,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,WAAW,CAAU,CAAC;IAC1C,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC3C,OAAO,IAAI,CAAC,MAAM,EAAE,WAAW,CAAa,CAAC;IAC/C,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC;AAeD,MAAM,UAAU,MAAM,CAAC,KAAY,EAAE,UAAyB,EAAE;IAC9D,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,WAAW,GAAG,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC;IAC1D,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAEnC,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,MAAM;YACT,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;YAC3B,MAAM;QACR,KAAK,OAAO;YACV,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,CAAU,CAAC;YACnC,MAAM;QACR,KAAK,QAAQ;YACX,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;gBACvB,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAC/B,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAC1B,IAAI,CACO,CAAC;YAChB,CAAC;YACD,MAAM;QACR;YACE,MAAM;IACV,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAK;IAClC,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM,CAAC;AAC1C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Zone } from 'nmr-
|
|
1
|
+
import type { Zone } from '@zakodium/nmr-types';
|
|
2
2
|
export declare function checkZoneKind(zone: Zone): boolean;
|
|
3
3
|
export declare function unlink(zone: Zone, isOnZoneLevel?: boolean, signalIndex?: number, axis?: string): Zone;
|
|
4
4
|
//# sourceMappingURL=ZoneUtilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoneUtilities.d.ts","sourceRoot":"","sources":["../../../src/data/utilities/ZoneUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ZoneUtilities.d.ts","sourceRoot":"","sources":["../../../src/data/utilities/ZoneUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AA+BhD,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAEjD;AAED,wBAAgB,MAAM,CACpB,IAAI,EAAE,IAAI,EACV,aAAa,CAAC,EAAE,OAAO,EACvB,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,MAAM,GACZ,IAAI,CAuBN"}
|
package/lib/versionInfo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default { version: 'v0.
|
|
1
|
+
export default { version: 'v0.65.0' };
|
|
2
2
|
//# sourceMappingURL=versionInfo.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nmrium",
|
|
3
3
|
"description": "React component to display and process nuclear magnetic resonance (NMR) spectra.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.65.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": "./lib/component/main/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"start": "npm run dev",
|
|
36
36
|
"stylelint": "stylelint \"**/*.{css,tsx}\"",
|
|
37
37
|
"stylelint-fix": "npm run stylelint -- --fix",
|
|
38
|
-
"test": "npm run test-only && npm run
|
|
38
|
+
"test": "npm run test-only && npm run check-types && npm run eslint && npm run prettier && npm run stylelint && npm run knip && npm run build-no-minify && npm run test-e2e",
|
|
39
39
|
"test-only": "vitest run --coverage",
|
|
40
40
|
"test-e2e": "playwright test --project chromium",
|
|
41
41
|
"test-e2e-server": "serve -l tcp://localhost:3000 build"
|
|
@@ -47,9 +47,6 @@
|
|
|
47
47
|
"type": "git",
|
|
48
48
|
"url": "git+https://github.com/cheminfo/nmrium.git"
|
|
49
49
|
},
|
|
50
|
-
"volta": {
|
|
51
|
-
"node": "22.15.0"
|
|
52
|
-
},
|
|
53
50
|
"peerDependencies": {
|
|
54
51
|
"react": ">=18.0.0",
|
|
55
52
|
"react-dom": ">=18.0.0"
|
|
@@ -58,14 +55,16 @@
|
|
|
58
55
|
"nmr-correlation": "2.3.3"
|
|
59
56
|
},
|
|
60
57
|
"dependencies": {
|
|
58
|
+
"@atlaskit/pragmatic-drag-and-drop": "^1.7.3",
|
|
61
59
|
"@blueprintjs/core": "^5.19.0",
|
|
62
60
|
"@blueprintjs/icons": "^5.22.0",
|
|
63
61
|
"@blueprintjs/select": "^5.3.20",
|
|
64
62
|
"@emotion/react": "^11.14.0",
|
|
65
63
|
"@emotion/styled": "^11.14.0",
|
|
66
|
-
"@hookform/resolvers": "^5.
|
|
67
|
-
"@zakodium/
|
|
68
|
-
"@zakodium/nmrium-core
|
|
64
|
+
"@hookform/resolvers": "^5.1.1",
|
|
65
|
+
"@zakodium/nmr-types": "^0.0.1",
|
|
66
|
+
"@zakodium/nmrium-core": "^0.1.3",
|
|
67
|
+
"@zakodium/nmrium-core-plugins": "^0.1.4",
|
|
69
68
|
"cheminfo-font": "^1.13.1",
|
|
70
69
|
"cheminfo-types": "^1.8.1",
|
|
71
70
|
"clipboard-polyfill": "^4.1.1",
|
|
@@ -82,66 +81,68 @@
|
|
|
82
81
|
"ml-array-mean": "^1.1.6",
|
|
83
82
|
"ml-array-median": "^1.1.6",
|
|
84
83
|
"ml-conrec": "^5.0.3",
|
|
85
|
-
"ml-gsd": "^
|
|
86
|
-
"ml-signal-processing": "^
|
|
84
|
+
"ml-gsd": "^13.0.1",
|
|
85
|
+
"ml-signal-processing": "^2.0.0",
|
|
87
86
|
"ml-spectra-processing": "^14.12.0",
|
|
88
87
|
"ml-tree-similarity": "^2.2.0",
|
|
89
88
|
"nmr-correlation": "2.3.3",
|
|
90
|
-
"nmr-processing": "^
|
|
89
|
+
"nmr-processing": "^19.0.1",
|
|
91
90
|
"numeral": "^2.0.6",
|
|
92
|
-
"openchemlib": "^9.
|
|
93
|
-
"openchemlib-utils": "^8.1.
|
|
94
|
-
"papaparse": "^5.5.
|
|
95
|
-
"react-d3-utils": "^3.
|
|
91
|
+
"openchemlib": "^9.3.0",
|
|
92
|
+
"openchemlib-utils": "^8.1.5",
|
|
93
|
+
"papaparse": "^5.5.3",
|
|
94
|
+
"react-d3-utils": "^3.1.1",
|
|
96
95
|
"react-dropzone": "^14.3.8",
|
|
97
96
|
"react-error-boundary": "^6.0.0",
|
|
98
|
-
"react-hook-form": "^7.
|
|
97
|
+
"react-hook-form": "^7.58.1",
|
|
99
98
|
"react-icons": "^5.5.0",
|
|
100
99
|
"react-inspector": "^6.0.2",
|
|
101
100
|
"react-mf": "^3.1.0",
|
|
102
101
|
"react-ocl": "^8.0.0",
|
|
103
102
|
"react-ocl-nmr": "^4.0.1",
|
|
104
|
-
"react-plot": "^3.
|
|
103
|
+
"react-plot": "^3.1.0",
|
|
105
104
|
"react-rnd": "^10.5.2",
|
|
106
|
-
"react-science": "^18.0
|
|
105
|
+
"react-science": "^18.1.0",
|
|
107
106
|
"react-table": "^7.8.0",
|
|
108
107
|
"smart-array-filter": "^4.1.1",
|
|
109
|
-
"use-resize-observer": "^9.1.0",
|
|
110
108
|
"yup": "^1.6.1"
|
|
111
109
|
},
|
|
112
110
|
"devDependencies": {
|
|
113
|
-
"@playwright/test": "^1.
|
|
111
|
+
"@playwright/test": "^1.53.1",
|
|
114
112
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
115
113
|
"@types/d3": "^7.4.3",
|
|
116
114
|
"@types/dlv": "^1.1.5",
|
|
117
|
-
"@types/lodash": "^4.17.
|
|
118
|
-
"@types/node": "^
|
|
115
|
+
"@types/lodash": "^4.17.18",
|
|
116
|
+
"@types/node": "^24.0.3",
|
|
119
117
|
"@types/papaparse": "^5.3.16",
|
|
120
118
|
"@types/react": "^18.3.13",
|
|
121
119
|
"@types/react-dom": "^18.3.1",
|
|
122
120
|
"@types/react-table": "^7.7.20",
|
|
123
|
-
"@vitejs/plugin-react
|
|
124
|
-
"@vitest/coverage-v8": "^3.
|
|
121
|
+
"@vitejs/plugin-react": "^4.5.2",
|
|
122
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
125
123
|
"cross-env": "^7.0.3",
|
|
126
|
-
"cspell": "^9.
|
|
127
|
-
"eslint": "^9.
|
|
128
|
-
"eslint-config-cheminfo-react": "^16.0
|
|
124
|
+
"cspell": "^9.1.1",
|
|
125
|
+
"eslint": "^9.29.0",
|
|
126
|
+
"eslint-config-cheminfo-react": "^16.1.0",
|
|
129
127
|
"eslint-config-cheminfo-typescript": "^18.0.1",
|
|
130
|
-
"knip": "^5.
|
|
128
|
+
"knip": "^5.61.2",
|
|
131
129
|
"modern-normalize": "^3.0.1",
|
|
132
130
|
"postcss-styled-syntax": "^0.7.1",
|
|
133
131
|
"prettier": "^3.5.3",
|
|
134
132
|
"rc-menu": "^9.16.1",
|
|
135
133
|
"react": "^18.3.1",
|
|
136
134
|
"react-dom": "^18.3.1",
|
|
137
|
-
"react-router-dom": "^7.6.
|
|
135
|
+
"react-router-dom": "^7.6.2",
|
|
138
136
|
"rimraf": "^6.0.1",
|
|
139
137
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
140
138
|
"serve": "^14.2.4",
|
|
141
|
-
"stylelint": "^16.
|
|
139
|
+
"stylelint": "^16.21.0",
|
|
142
140
|
"stylelint-config-standard": "^38.0.0",
|
|
143
141
|
"typescript": "^5.8.3",
|
|
144
142
|
"vite": "^6.3.5",
|
|
145
|
-
"vitest": "^3.
|
|
143
|
+
"vitest": "^3.2.4"
|
|
144
|
+
},
|
|
145
|
+
"volta": {
|
|
146
|
+
"node": "24.2.0"
|
|
146
147
|
}
|
|
147
148
|
}
|
|
@@ -26,6 +26,7 @@ import { useScaleChecked } from '../context/ScaleContext.js';
|
|
|
26
26
|
import { useActiveSpectrum } from '../hooks/useActiveSpectrum.js';
|
|
27
27
|
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
28
28
|
import useSpectrum from '../hooks/useSpectrum.js';
|
|
29
|
+
import { useVerticalAlign } from '../hooks/useVerticalAlign.js';
|
|
29
30
|
import MultipletAnalysisModal from '../modal/MultipletAnalysisModal.js';
|
|
30
31
|
import { ZOOM_TYPES } from '../reducer/helper/Zoom1DManager.js';
|
|
31
32
|
import { sortRange } from '../reducer/helper/getRange.js';
|
|
@@ -35,6 +36,8 @@ import Events from '../utility/Events.js';
|
|
|
35
36
|
|
|
36
37
|
import { useInsetOptions } from './inset/InsetProvider.js';
|
|
37
38
|
|
|
39
|
+
const clickDebounceTools = new Set([options.phaseCorrection.id]);
|
|
40
|
+
|
|
38
41
|
const brushDetectionOptions: BaseDetectBrushingOptions = {
|
|
39
42
|
thresholdFormat: 'fixed',
|
|
40
43
|
thresholdAxis: 'y',
|
|
@@ -74,9 +77,10 @@ export function BrushTracker1D({ children }) {
|
|
|
74
77
|
width,
|
|
75
78
|
height,
|
|
76
79
|
} = state;
|
|
77
|
-
|
|
80
|
+
const isClickDebounced = clickDebounceTools.has(selectedTool);
|
|
78
81
|
const brushStartRef = useRef<number | null>(null);
|
|
79
82
|
const spectrum = useSpectrum();
|
|
83
|
+
const align = useVerticalAlign();
|
|
80
84
|
const dispatch = useDispatch();
|
|
81
85
|
const {
|
|
82
86
|
dispatch: dispatchPreferences,
|
|
@@ -285,6 +289,7 @@ export function BrushTracker1D({ children }) {
|
|
|
285
289
|
width,
|
|
286
290
|
height,
|
|
287
291
|
...brushDetectionOptions,
|
|
292
|
+
...(align === 'stack' && { thresholdSize: 0 }),
|
|
288
293
|
}).type,
|
|
289
294
|
},
|
|
290
295
|
});
|
|
@@ -307,6 +312,7 @@ export function BrushTracker1D({ children }) {
|
|
|
307
312
|
openAnalysisModal,
|
|
308
313
|
width,
|
|
309
314
|
height,
|
|
315
|
+
align,
|
|
310
316
|
],
|
|
311
317
|
);
|
|
312
318
|
const handleInsetBrushEnd = useCallback<OnBrush>(
|
|
@@ -332,23 +338,35 @@ export function BrushTracker1D({ children }) {
|
|
|
332
338
|
[convertToPPM, inset, dispatch],
|
|
333
339
|
);
|
|
334
340
|
|
|
335
|
-
const handleOnDoubleClick = useCallback(
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
});
|
|
340
|
-
}, [dispatch]);
|
|
341
|
+
const handleOnDoubleClick = useCallback(
|
|
342
|
+
(event) => {
|
|
343
|
+
const keyModifiers = getModifiersKey(event as unknown as MouseEvent);
|
|
344
|
+
if (primaryKeyIdentifier === keyModifiers && !isClickDebounced) return;
|
|
341
345
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
+
dispatch({
|
|
347
|
+
type: 'FULL_ZOOM_OUT',
|
|
348
|
+
payload: { zoomType: ZOOM_TYPES.BIDIRECTIONAL },
|
|
349
|
+
});
|
|
350
|
+
},
|
|
351
|
+
[dispatch, getModifiersKey, isClickDebounced, primaryKeyIdentifier],
|
|
352
|
+
);
|
|
346
353
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
354
|
+
const handleInsetOnDoubleClick = useCallback(
|
|
355
|
+
(event) => {
|
|
356
|
+
const keyModifiers = getModifiersKey(event as unknown as MouseEvent);
|
|
357
|
+
if (primaryKeyIdentifier === keyModifiers) return;
|
|
358
|
+
|
|
359
|
+
if (!inset) {
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
dispatch({
|
|
364
|
+
type: 'FULL_INSET_ZOOM_OUT',
|
|
365
|
+
payload: { zoomType: ZOOM_TYPES.BIDIRECTIONAL, insetKey: inset.id },
|
|
366
|
+
});
|
|
367
|
+
},
|
|
368
|
+
[dispatch, getModifiersKey, inset, primaryKeyIdentifier],
|
|
369
|
+
);
|
|
352
370
|
|
|
353
371
|
const handleZoom = useCallback<OnZoom>(
|
|
354
372
|
(options) => {
|
|
@@ -498,12 +516,16 @@ export function BrushTracker1D({ children }) {
|
|
|
498
516
|
return (
|
|
499
517
|
<>
|
|
500
518
|
<BrushTracker
|
|
519
|
+
clickTriggerMode={isClickDebounced ? 'debounced' : 'native'}
|
|
501
520
|
onBrush={handleBrush}
|
|
502
521
|
onBrushEnd={handleBrushEnd}
|
|
503
522
|
onDoubleClick={handleOnDoubleClick}
|
|
504
523
|
onClick={mouseClick}
|
|
505
524
|
onZoom={handleZoom}
|
|
506
|
-
brushDetectionOptions={
|
|
525
|
+
brushDetectionOptions={{
|
|
526
|
+
...brushDetectionOptions,
|
|
527
|
+
...(align === 'stack' && { thresholdSize: 0 }),
|
|
528
|
+
}}
|
|
507
529
|
style={{
|
|
508
530
|
width: '100%',
|
|
509
531
|
height: '100%',
|
|
@@ -10,13 +10,13 @@ import { isSpectrum1D } from '../../data/data1d/Spectrum1D/isSpectrum1D.js';
|
|
|
10
10
|
import { useChartData } from '../context/ChartContext.js';
|
|
11
11
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
12
12
|
import { useGlobal } from '../context/GlobalContext.js';
|
|
13
|
-
import { ActionsButtonsPopover } from '../elements/ActionsButtonsPopover.js';
|
|
14
13
|
import type { ActionsButtonsPopoverProps } from '../elements/ActionsButtonsPopover.js';
|
|
14
|
+
import { ActionsButtonsPopover } from '../elements/ActionsButtonsPopover.js';
|
|
15
|
+
import { useCanvasContext } from '../hooks/useCanvasContext.js';
|
|
15
16
|
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
16
17
|
import { useSVGUnitConverter } from '../hooks/useSVGUnitConverter.js';
|
|
17
18
|
import useSpectraByActiveNucleus from '../hooks/useSpectraPerNucleus.js';
|
|
18
19
|
import { useCheckExportStatus } from '../hooks/useViewportSize.js';
|
|
19
|
-
import { useCanvasContext } from '../hooks/useCanvasContext.js';
|
|
20
20
|
|
|
21
21
|
const ReactRnd = styled(Rnd)`
|
|
22
22
|
border: 1px solid transparent;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
+
import type { Ranges } from '@zakodium/nmr-types';
|
|
2
3
|
import type { BoundingBox } from '@zakodium/nmrium-core';
|
|
3
4
|
import { checkMultiplicity } from 'nmr-processing';
|
|
4
|
-
import type { Ranges } from 'nmr-processing';
|
|
5
5
|
import { memo, useEffect, useState } from 'react';
|
|
6
6
|
import { BsArrowsMove } from 'react-icons/bs';
|
|
7
7
|
import { FaTimes } from 'react-icons/fa';
|
|
8
8
|
import { Rnd } from 'react-rnd';
|
|
9
9
|
|
|
10
|
-
import { isSpectrum1D } from '../../data/data1d/Spectrum1D/
|
|
10
|
+
import { isSpectrum1D } from '../../data/data1d/Spectrum1D/index.js';
|
|
11
11
|
import { checkRangeKind } from '../../data/utilities/RangeUtilities.js';
|
|
12
|
-
import { SVGTable } from '../SVGTable.js';
|
|
13
12
|
import type { SVGTableColumn } from '../SVGTable.js';
|
|
13
|
+
import { SVGTable } from '../SVGTable.js';
|
|
14
14
|
import { useChartData } from '../context/ChartContext.js';
|
|
15
15
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
16
16
|
import { useGlobal } from '../context/GlobalContext.js';
|
|
17
|
-
import { ActionsButtonsPopover } from '../elements/ActionsButtonsPopover.js';
|
|
18
17
|
import type { ActionsButtonsPopoverProps } from '../elements/ActionsButtonsPopover.js';
|
|
18
|
+
import { ActionsButtonsPopover } from '../elements/ActionsButtonsPopover.js';
|
|
19
19
|
import { usePanelPreferences } from '../hooks/usePanelPreferences.js';
|
|
20
20
|
import { useSVGUnitConverter } from '../hooks/useSVGUnitConverter.js';
|
|
21
21
|
import useSpectraByActiveNucleus from '../hooks/useSpectraPerNucleus.js';
|