nmrium 1.9.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/ApodizationLine.js +1 -1
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/LinesSeries.js +2 -2
- package/lib/component/1d/LinesSeries.js.map +1 -1
- package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +2 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/SimilarityTree.d.ts.map +1 -1
- package/lib/component/1d/SimilarityTree.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +13 -20
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +1 -0
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.js +2 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.js +2 -2
- package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +4 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts +2 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +6 -4
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/Atoms.js +2 -2
- package/lib/component/1d/ranges/Atoms.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +2 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +28 -56
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +19 -13
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts +14 -0
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.d.ts.map +1 -0
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js +67 -0
- package/lib/component/1d/ranges/useAssignmentsPopoverActionsButtons.js.map +1 -0
- package/lib/component/1d/tool/BaseLineZones.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLineZones.js.map +1 -1
- package/lib/component/1d/utilities/intersectionResolver.d.ts.map +1 -1
- package/lib/component/1d/utilities/intersectionResolver.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.js +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +41 -46
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts +2 -2
- package/lib/component/2d/FooterBanner.d.ts.map +1 -1
- package/lib/component/2d/FooterBanner.js +63 -97
- package/lib/component/2d/FooterBanner.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +2 -2
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/SlicingView.js +1 -1
- package/lib/component/2d/SlicingView.js.map +1 -1
- package/lib/component/2d/Viewer2D.js +1 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +2 -2
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/ft/FTContainer.js +1 -1
- package/lib/component/2d/ft/FTContainer.js.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.d.ts +2 -2
- package/lib/component/2d/tools/XYLabelPointer.d.ts.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +10 -9
- package/lib/component/2d/tools/XYLabelPointer.js.map +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts +3 -2
- package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.js +19 -12
- package/lib/component/2d/useTracesSpectra.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js +2 -2
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/zones/Signal.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +15 -13
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +5 -6
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +2 -0
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js +1 -2
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +3 -2
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +7 -4
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +17 -3
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/AssignmentsCell.d.ts.map +1 -1
- package/lib/component/elements/AssignmentsCell.js.map +1 -1
- package/lib/component/elements/Button.d.ts.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/CheckController.d.ts.map +1 -1
- package/lib/component/elements/CheckController.js.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.d.ts.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.js.map +1 -1
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/Input2.d.ts.map +1 -1
- package/lib/component/elements/Input2.js.map +1 -1
- package/lib/component/elements/Input2Controller.d.ts.map +1 -1
- package/lib/component/elements/Input2Controller.js.map +1 -1
- package/lib/component/elements/Label.d.ts.map +1 -1
- package/lib/component/elements/Label.js.map +1 -1
- package/lib/component/elements/NumberInput2.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2.js.map +1 -1
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
- package/lib/component/elements/ReadOnly.d.ts.map +1 -1
- package/lib/component/elements/ReadOnly.js.map +1 -1
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select.js.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.js +2 -4
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.js +2 -4
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js +2 -4
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js +2 -2
- package/lib/component/hooks/useActiveSpectrumStyleOptions.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.js +2 -4
- package/lib/component/hooks/useActiveSpectrumZonesViewState.js.map +1 -1
- package/lib/component/hooks/useExport.js +1 -1
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +28 -47
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.d.ts +2 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.d.ts.map +1 -1
- package/lib/component/hooks/useSetActiveSpectrumAction.js +2 -2
- package/lib/component/hooks/useSetActiveSpectrumAction.js.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.js +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -1
- package/lib/component/hooks/useWorkspaceAction.d.ts +1 -1
- package/lib/component/hooks/useWorkspaceAction.d.ts.map +1 -1
- package/lib/component/hooks/useWorkspaceAction.js +3 -0
- package/lib/component/hooks/useWorkspaceAction.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModal.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +5 -1
- package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +14 -10
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +17 -17
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js +0 -3
- package/lib/component/panels/MoleculesPanel/utilities/getAssignIds.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +5 -20
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +9 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +19 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -0
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +2 -2
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +6 -6
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/extra/preferences/NucleusPreferences.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +13 -9
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/reducer/Reducer.js +7 -7
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.js +9 -9
- package/lib/component/reducer/actions/AssignmentsActions.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +21 -21
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +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 -18
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +28 -44
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +9 -18
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +43 -48
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +2 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +64 -10
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +110 -121
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +2 -1
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +18 -18
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +148 -171
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +29 -31
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +10 -11
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +8 -9
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +123 -151
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/get2DRange.d.ts +3 -1
- package/lib/component/reducer/helper/get2DRange.d.ts.map +1 -1
- package/lib/component/reducer/helper/get2DRange.js.map +1 -1
- package/lib/component/reducer/helper/getSpectrum.js +1 -1
- package/lib/component/reducer/helper/getSpectrum.js.map +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.js +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.js.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.js +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
- package/lib/component/useWatchForm.d.ts.map +1 -1
- package/lib/component/useWatchForm.js.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.d.ts +1 -1
- package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.js.map +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.js +0 -3
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +8 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js +1 -2
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +3 -3
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +4 -14
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +3 -5
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +3 -5
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +2 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts +7 -63
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js +9 -14
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +2 -10
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js +23 -43
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +1 -54
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js.map +1 -1
- package/lib/data/molecules/Molecule.d.ts.map +1 -1
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/types/data1d/RangeDetectionResult.d.ts.map +1 -1
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/data/utilities/FindUtilities.js +11 -11
- package/lib/data/utilities/FindUtilities.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.d.ts +2 -2
- package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.js +10 -4
- package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +33 -31
- package/src/component/1d/ApodizationLine.tsx +1 -1
- package/src/component/1d/BrushTracker1D.tsx +10 -10
- package/src/component/1d/FooterBanner.tsx +2 -2
- package/src/component/1d/LinesSeries.tsx +2 -2
- package/src/component/1d/SVGContent1D.tsx +6 -2
- package/src/component/1d/SimilarityTree.tsx +3 -2
- package/src/component/1d/inset/InsetProvider.tsx +4 -2
- package/src/component/1d/integral/IntegralResizable.tsx +2 -1
- package/src/component/1d/matrix/Boxplot.tsx +3 -3
- package/src/component/1d/multiAnalysis/AnalysisRange.tsx +2 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +24 -23
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +10 -1
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +4 -2
- package/src/component/1d/peaks/PeakEditionManager.tsx +8 -3
- package/src/component/1d/peaks/Peaks.tsx +5 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +8 -5
- package/src/component/1d/ranges/Atoms.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +42 -74
- package/src/component/1d/ranges/Ranges.tsx +33 -28
- package/src/component/1d/ranges/useAssignmentsPopoverActionsButtons.tsx +93 -0
- package/src/component/1d/tool/BaseLineZones.tsx +2 -1
- package/src/component/1d/utilities/intersectionResolver.ts +3 -4
- package/src/component/1d-2d/FieldEdition.tsx +2 -2
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +2 -2
- package/src/component/2d/1d-tracer/phase-correction-traces/PhaseTraces.tsx +1 -1
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +1 -1
- package/src/component/2d/BrushTracker2D.tsx +50 -55
- package/src/component/2d/FooterBanner.tsx +80 -105
- package/src/component/2d/SVGContent2D.tsx +2 -3
- package/src/component/2d/SlicingView.tsx +1 -1
- package/src/component/2d/Viewer2D.tsx +2 -2
- package/src/component/2d/ft/FTContainer.tsx +4 -5
- package/src/component/2d/tools/XYLabelPointer.tsx +12 -11
- package/src/component/2d/useTracesSpectra.ts +28 -16
- package/src/component/2d/utilities/extractSpectrumSignals.ts +2 -2
- package/src/component/2d/zones/Signal.tsx +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +21 -19
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +4 -4
- package/src/component/EventsTrackers/BrushTracker.tsx +24 -17
- package/src/component/assignment/utilities/getAssignments.ts +1 -2
- package/src/component/context/KeyModifierContext.tsx +13 -5
- package/src/component/elements/ActionsButtonsPopover.tsx +25 -8
- package/src/component/elements/AssignmentsCell.tsx +1 -2
- package/src/component/elements/Button.tsx +3 -2
- package/src/component/elements/CheckController.tsx +2 -1
- package/src/component/elements/ContextMenuBluePrint.tsx +2 -1
- package/src/component/elements/D3Axis.tsx +3 -3
- package/src/component/elements/DraggableDialog.tsx +2 -1
- package/src/component/elements/Input.tsx +4 -2
- package/src/component/elements/Input2.tsx +1 -2
- package/src/component/elements/Input2Controller.tsx +2 -1
- package/src/component/elements/Label.tsx +2 -1
- package/src/component/elements/NumberInput2.tsx +4 -2
- package/src/component/elements/NumberInput2Controller.tsx +3 -1
- package/src/component/elements/ReactTable/ReactTable.tsx +1 -3
- package/src/component/elements/ReadOnly.tsx +4 -2
- package/src/component/elements/Sections.tsx +5 -4
- package/src/component/elements/Select.tsx +4 -2
- package/src/component/elements/ToolbarPopoverItem.tsx +3 -3
- package/src/component/elements/export/ExportContent.tsx +1 -2
- package/src/component/elements/print/PrintContent.tsx +1 -2
- package/src/component/hooks/useActiveSpectrumIntegralsViewState.ts +2 -6
- package/src/component/hooks/useActiveSpectrumPeaksViewState.ts +2 -6
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +2 -6
- package/src/component/hooks/useActiveSpectrumStyleOptions.ts +2 -2
- package/src/component/hooks/useActiveSpectrumZonesViewState.ts +2 -6
- package/src/component/hooks/useExport.tsx +1 -1
- package/src/component/hooks/useSaveSettings.tsx +68 -81
- package/src/component/hooks/useSetActiveSpectrumAction.ts +3 -2
- package/src/component/hooks/useSpectrumWithDataSource.ts +1 -1
- package/src/component/hooks/useWorkspaceAction.ts +5 -0
- package/src/component/modal/ImportPublicationStringModal.tsx +1 -2
- package/src/component/modal/changeSum/ChangeSumModal.tsx +4 -2
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +1 -2
- package/src/component/modal/setting/GeneralSettings.tsx +7 -2
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +4 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +17 -13
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +17 -15
- package/src/component/panels/MoleculesPanel/utilities/getAssignIds.ts +0 -4
- package/src/component/panels/RangesPanel/RangesPanel.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTable.tsx +3 -8
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +14 -47
- package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +1 -2
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +40 -0
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -2
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +2 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +6 -6
- package/src/component/panels/accordionItems.tsx +4 -2
- package/src/component/panels/extra/preferences/NucleusPreferences.tsx +2 -2
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +4 -2
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +17 -9
- package/src/component/reducer/Reducer.ts +8 -8
- package/src/component/reducer/actions/AssignmentsActions.ts +8 -13
- package/src/component/reducer/actions/CorrelationsActions.ts +21 -22
- package/src/component/reducer/actions/DatabaseActions.ts +1 -1
- package/src/component/reducer/actions/DomainActions.ts +16 -22
- package/src/component/reducer/actions/FiltersActions.ts +34 -58
- package/src/component/reducer/actions/InsetActions.ts +9 -19
- package/src/component/reducer/actions/IntegralsActions.ts +48 -59
- package/src/component/reducer/actions/MoleculeActions.ts +94 -14
- package/src/component/reducer/actions/PeaksActions.ts +112 -136
- package/src/component/reducer/actions/PreferencesActions.ts +4 -3
- package/src/component/reducer/actions/RangesActions.ts +196 -244
- package/src/component/reducer/actions/SpectraActions.ts +40 -45
- package/src/component/reducer/actions/ToolsActions.ts +9 -13
- package/src/component/reducer/actions/ZonesActions.ts +158 -218
- package/src/component/reducer/helper/get2DRange.ts +4 -1
- package/src/component/reducer/helper/getSpectrum.ts +1 -1
- package/src/component/reducer/helper/setIntegralsViewProperty.ts +1 -1
- package/src/component/reducer/helper/setRangesViewProperty.ts +1 -1
- package/src/component/useWatchForm.tsx +2 -1
- package/src/component/utility/stackOverlappingLabels.ts +4 -1
- package/src/data/SpectraManager.ts +0 -2
- package/src/data/data1d/Spectrum1D/isRangeAssigned.ts +0 -4
- package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +15 -5
- package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +5 -5
- package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +5 -14
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +2 -2
- package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +3 -5
- package/src/data/data2d/Spectrum2D/zones/detectZones.ts +3 -2
- package/src/data/data2d/Spectrum2D/zones/detectZonesManual.ts +19 -16
- package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +35 -56
- package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
- package/src/data/molecules/Molecule.ts +2 -1
- package/src/data/types/data1d/RangeDetectionResult.ts +4 -2
- package/src/data/utilities/FindUtilities.ts +9 -8
- package/src/utils/clipboard/clipboardComponents.tsx +2 -1
- package/src/utils/clipboard/clipboardHooks.ts +14 -8
- package/src/versionInfo.ts +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.d.ts +0 -8
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.d.ts.map +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js +0 -17
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js.map +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts +0 -17
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts.map +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +0 -40
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js.map +0 -1
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.tsx +0 -36
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.tsx +0 -89
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isRangeAssigned.js","sourceRoot":"","sources":["../../../../src/data/data1d/Spectrum1D/isRangeAssigned.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,UAAU,CAAC,MAA+C;IACxE,OAAO,CACL,CAAC,MAAM,EAAE,OAAO,IAAI,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC;QACvC,CAAC,MAAM,EAAE,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAC7C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAY;IAC1C,
|
|
1
|
+
{"version":3,"file":"isRangeAssigned.js","sourceRoot":"","sources":["../../../../src/data/data1d/Spectrum1D/isRangeAssigned.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,UAAU,CAAC,MAA+C;IACxE,OAAO,CACL,CAAC,MAAM,EAAE,OAAO,IAAI,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC;QACvC,CAAC,MAAM,EAAE,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAC7C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAY;IAC1C,OAAO,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { Range } from '@zakodium/nmr-types';
|
|
2
2
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
3
|
-
|
|
3
|
+
import type { OptionsXYAutoRangesPicking } from 'nmr-processing';
|
|
4
|
+
export interface AutoRangesDetectionOptions {
|
|
5
|
+
windowFromIndex?: number;
|
|
6
|
+
windowToIndex?: number;
|
|
7
|
+
peakPicking?: Omit<OptionsXYAutoRangesPicking['peakPicking'], 'frequency'>;
|
|
8
|
+
rangePicking?: OptionsXYAutoRangesPicking['ranges'];
|
|
9
|
+
}
|
|
10
|
+
export declare function autoRangesDetection(spectrum: Spectrum1D, options?: AutoRangesDetectionOptions): Range[];
|
|
4
11
|
//# sourceMappingURL=autoRangesDetection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoRangesDetection.d.ts","sourceRoot":"","sources":["../../../../../src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"autoRangesDetection.d.ts","sourceRoot":"","sources":["../../../../../src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAqBjE,MAAM,WAAW,0BAA0B;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,IAAI,CAAC,0BAA0B,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC,CAAC;IAC3E,YAAY,CAAC,EAAE,0BAA0B,CAAC,QAAQ,CAAC,CAAC;CACrD;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,UAAU,EACpB,OAAO,GAAE,0BAA+B,GACvC,KAAK,EAAE,CA4CT"}
|
|
@@ -9,11 +9,10 @@ const defaultPeakPickingOptions = {
|
|
|
9
9
|
sensitivity: 100,
|
|
10
10
|
broadWidth: 0.25,
|
|
11
11
|
broadRatio: 0.0025,
|
|
12
|
-
integrationSum: 100,
|
|
13
12
|
thresholdFactor: 5,
|
|
14
13
|
sgOptions: { windowSize: 7, polynomial: 3 },
|
|
15
14
|
};
|
|
16
|
-
export
|
|
15
|
+
export function autoRangesDetection(spectrum, options = {}) {
|
|
17
16
|
// we calculate the noise but this could be improved
|
|
18
17
|
let { re, x } = spectrum.data;
|
|
19
18
|
const { originFrequency, nucleus, solvent } = spectrum.info;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoRangesDetection.js","sourceRoot":"","sources":["../../../../../src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autoRangesDetection.js","sourceRoot":"","sources":["../../../../../src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,yBAAyB,GAG3B;IACF,WAAW,EAAE,CAAC;IACd,KAAK,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;IAC7B,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,IAAI;IACb,WAAW,EAAE,GAAG;IAChB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,MAAM;IAClB,eAAe,EAAE,CAAC;IAClB,SAAS,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE;CAC5C,CAAC;AASF,MAAM,UAAU,mBAAmB,CACjC,QAAoB,EACpB,UAAsC,EAAE;IAExC,oDAAoD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;IACF,OAAO,MAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
2
|
interface RangeSignalOption {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
rangeId: string;
|
|
4
|
+
signalId: string;
|
|
5
5
|
newSignalValue: number;
|
|
6
6
|
}
|
|
7
7
|
export declare function changeRangeSignal(spectrum: Spectrum1D, options: RangeSignalOption): number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export function changeRangeSignal(spectrum, options) {
|
|
2
|
-
const {
|
|
2
|
+
const { rangeId, signalId, newSignalValue } = options;
|
|
3
3
|
let shiftValue = 0;
|
|
4
|
-
const rangeIndex = spectrum.ranges.values.findIndex((range) => range.id ===
|
|
4
|
+
const rangeIndex = spectrum.ranges.values.findIndex((range) => range.id === rangeId);
|
|
5
5
|
if (rangeIndex !== -1) {
|
|
6
|
-
const signalIndex = spectrum.ranges.values[rangeIndex].signals.findIndex((signal) => signal.id ===
|
|
6
|
+
const signalIndex = spectrum.ranges.values[rangeIndex].signals.findIndex((signal) => signal.id === signalId);
|
|
7
7
|
const signal = spectrum.ranges.values[rangeIndex].signals[signalIndex];
|
|
8
8
|
shiftValue = newSignalValue - signal.delta;
|
|
9
9
|
signal.delta = newSignalValue;
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
2
|
import type { SumParams } from '../SumManager.js';
|
|
3
|
-
|
|
3
|
+
import type { AutoRangesDetectionOptions } from './autoRangesDetection.js';
|
|
4
|
+
export interface DetectRangesOptions {
|
|
4
5
|
windowFromIndex?: number;
|
|
5
6
|
windowToIndex?: number;
|
|
6
|
-
rangePicking:
|
|
7
|
-
|
|
8
|
-
compile?: boolean;
|
|
9
|
-
frequencyCluster?: number;
|
|
10
|
-
clean?: number;
|
|
11
|
-
keepPeaks?: boolean;
|
|
12
|
-
};
|
|
13
|
-
peakPicking: {
|
|
14
|
-
thresholdFactor?: number;
|
|
15
|
-
minMaxRatio?: number;
|
|
16
|
-
direction?: 'negative' | 'positive' | 'both';
|
|
17
|
-
};
|
|
7
|
+
rangePicking: Exclude<AutoRangesDetectionOptions['rangePicking'], undefined>;
|
|
8
|
+
peakPicking: Exclude<AutoRangesDetectionOptions['peakPicking'], undefined>;
|
|
18
9
|
impurities?: {
|
|
19
10
|
solvent: string;
|
|
20
11
|
};
|
|
21
12
|
}
|
|
22
13
|
export declare function detectRanges(spectrum: Spectrum1D, options: DetectRangesOptions & SumParams): void;
|
|
23
|
-
export {};
|
|
24
14
|
//# sourceMappingURL=detectRanges.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectRanges.d.ts","sourceRoot":"","sources":["../../../../../src/data/data1d/Spectrum1D/ranges/detectRanges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"detectRanges.d.ts","sourceRoot":"","sources":["../../../../../src/data/data1d/Spectrum1D/ranges/detectRanges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAG3E,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC,0BAA0B,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,CAAC;IAC7E,WAAW,EAAE,OAAO,CAAC,0BAA0B,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,CAAC;IAC3E,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,mBAAmB,GAAG,SAAS,QAmBzC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mapRanges, updateRangesRelativeValues } from 'nmr-processing';
|
|
2
2
|
import { isProton } from "../../../utilities/isProton.js";
|
|
3
3
|
import { initSumOptions } from '../SumManager.js';
|
|
4
|
-
import autoRangesDetection from './autoRangesDetection.js';
|
|
4
|
+
import { autoRangesDetection } from './autoRangesDetection.js';
|
|
5
5
|
export function detectRanges(spectrum, options) {
|
|
6
6
|
const { molecules, nucleus, ...detectOptions } = options;
|
|
7
7
|
detectOptions.impurities = { solvent: spectrum.info.solvent || '' };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectRanges.js","sourceRoot":"","sources":["../../../../../src/data/data1d/Spectrum1D/ranges/detectRanges.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"detectRanges.js","sourceRoot":"","sources":["../../../../../src/data/data1d/Spectrum1D/ranges/detectRanges.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAY/D,MAAM,UAAU,YAAY,CAC1B,QAAoB,EACpB,OAAwC;IAExC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,aAAa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
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @param
|
|
7
|
-
* @param {number} signal.y
|
|
8
|
-
* @param {string} signal.id
|
|
4
|
+
* @param spectrum
|
|
5
|
+
* @param zoneID
|
|
6
|
+
* @param signal
|
|
9
7
|
*/
|
|
10
8
|
export declare function changeZoneSignal(spectrum: Spectrum2D, zoneID: string, signal: {
|
|
11
9
|
id?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeZoneSignal.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD
|
|
1
|
+
{"version":3,"file":"changeZoneSignal.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAsBpC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { isNumber } from '../../../utilities/isNumber.js';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @param
|
|
7
|
-
* @param {number} signal.y
|
|
8
|
-
* @param {string} signal.id
|
|
4
|
+
* @param spectrum
|
|
5
|
+
* @param zoneID
|
|
6
|
+
* @param signal
|
|
9
7
|
*/
|
|
10
8
|
export function changeZoneSignal(spectrum, zoneID, signal) {
|
|
11
9
|
const zoneIndex = spectrum.zones.values.findIndex((zone) => zone.id === zoneID);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeZoneSignal.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D
|
|
1
|
+
{"version":3,"file":"changeZoneSignal.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,QAAoB,EACpB,MAAc,EACd,MAAyD;IAEzD,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAC/C,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,MAAM,CAC7B,CAAC;IAEF,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEtC,IAAI,SAAS,KAAK,CAAC,CAAC,EAAE,CAAC;QACrB,MAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,SAAS,CACpE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CACnB,CAAC;QAEF,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC9C,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;YACvB,MAAM,cAAc,GAAQ,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YACtD,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACtE,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,cAAc,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Zone } from '@zakodium/nmr-types';
|
|
2
|
+
import type { Spectrum2D } from '@zakodium/nmrium-core';
|
|
2
3
|
import type { DetectionZonesOptions } from './getDetectionZones.js';
|
|
3
|
-
export declare function detectZones(datum:
|
|
4
|
+
export declare function detectZones(datum: Spectrum2D, options: DetectionZonesOptions): Zone[];
|
|
4
5
|
//# 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,qBAAqB,CAAC;
|
|
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;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGpE,wBAAgB,WAAW,CACzB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,qBAAqB,GAC7B,IAAI,EAAE,CAIR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectZones.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/detectZones.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"detectZones.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/detectZones.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,UAAU,WAAW,CACzB,KAAiB,EACjB,OAA8B;IAE9B,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAEhD,OAAO,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -1,68 +1,12 @@
|
|
|
1
|
+
import type { Zone } from '@zakodium/nmr-types';
|
|
2
|
+
import type { Spectrum2D } from '@zakodium/nmrium-core';
|
|
1
3
|
import type { DetectionZonesOptions } from './getDetectionZones.js';
|
|
4
|
+
type DetectZonesManualOptions = Pick<DetectionZonesOptions, 'selectedZone' | 'thresholdFactor' | 'maxPercentCutOff'>;
|
|
2
5
|
/**
|
|
3
6
|
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @param {object} options.selectedZone
|
|
7
|
-
* @param {number} options.selectedZone.fromX
|
|
8
|
-
* @param {number} options.selectedZone.fromY
|
|
9
|
-
* @param {number} options.selectedZone.toX
|
|
10
|
-
* @param {number} options.selectedZone.toY
|
|
11
|
-
* @param {number} options.thresholdFactor
|
|
12
|
-
* @param {boolean} options.convolutionByFFT
|
|
7
|
+
* @param spectrum
|
|
8
|
+
* @param options
|
|
13
9
|
*/
|
|
14
|
-
export declare function detectZonesManual(
|
|
15
|
-
|
|
16
|
-
peaks: {
|
|
17
|
-
id: string;
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
z: number;
|
|
21
|
-
originalX?: number;
|
|
22
|
-
originalY?: number;
|
|
23
|
-
originalZ?: number;
|
|
24
|
-
width?: number | {
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
};
|
|
28
|
-
}[] | undefined;
|
|
29
|
-
id: string;
|
|
30
|
-
kind: import("@zakodium/nmr-types").SignalKind;
|
|
31
|
-
x: {
|
|
32
|
-
originalDelta: number;
|
|
33
|
-
delta: number;
|
|
34
|
-
nbAtoms?: number;
|
|
35
|
-
diaIDs?: string[];
|
|
36
|
-
};
|
|
37
|
-
y: {
|
|
38
|
-
originalDelta: number;
|
|
39
|
-
delta: number;
|
|
40
|
-
nbAtoms?: number;
|
|
41
|
-
diaIDs?: string[];
|
|
42
|
-
};
|
|
43
|
-
sign?: number;
|
|
44
|
-
j?: {
|
|
45
|
-
pathLength?: number | import("cheminfo-types").FromTo;
|
|
46
|
-
};
|
|
47
|
-
}[];
|
|
48
|
-
kind: import("@zakodium/nmr-types").SignalKind;
|
|
49
|
-
x: {
|
|
50
|
-
from: number;
|
|
51
|
-
to: number;
|
|
52
|
-
nbAtoms?: number;
|
|
53
|
-
diaIDs?: string[];
|
|
54
|
-
originalFrom?: number;
|
|
55
|
-
originalTo?: number;
|
|
56
|
-
};
|
|
57
|
-
y: {
|
|
58
|
-
from: number;
|
|
59
|
-
to: number;
|
|
60
|
-
nbAtoms?: number;
|
|
61
|
-
diaIDs?: string[];
|
|
62
|
-
originalFrom?: number;
|
|
63
|
-
originalTo?: number;
|
|
64
|
-
};
|
|
65
|
-
id: string;
|
|
66
|
-
assignment?: string;
|
|
67
|
-
}[];
|
|
10
|
+
export declare function detectZonesManual(spectrum: Spectrum2D, options: DetectZonesManualOptions): Zone[];
|
|
11
|
+
export {};
|
|
68
12
|
//# sourceMappingURL=detectZonesManual.d.ts.map
|
|
@@ -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":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAGpE,KAAK,wBAAwB,GAAG,IAAI,CAClC,qBAAqB,EACrB,cAAc,GAAG,iBAAiB,GAAG,kBAAkB,CACxD,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,wBAAwB,GAChC,IAAI,EAAE,CAgBR"}
|
|
@@ -2,20 +2,15 @@ import { mapZones } from 'nmr-processing';
|
|
|
2
2
|
import { getDetectionZones } from './getDetectionZones.js';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
* @param
|
|
6
|
-
* @param
|
|
7
|
-
* @param {object} options.selectedZone
|
|
8
|
-
* @param {number} options.selectedZone.fromX
|
|
9
|
-
* @param {number} options.selectedZone.fromY
|
|
10
|
-
* @param {number} options.selectedZone.toX
|
|
11
|
-
* @param {number} options.selectedZone.toY
|
|
12
|
-
* @param {number} options.thresholdFactor
|
|
13
|
-
* @param {boolean} options.convolutionByFFT
|
|
5
|
+
* @param spectrum
|
|
6
|
+
* @param options
|
|
14
7
|
*/
|
|
15
|
-
export function detectZonesManual(
|
|
16
|
-
const { spectralWidth, originFrequency } =
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
export function detectZonesManual(spectrum, options) {
|
|
9
|
+
const { spectralWidth, originFrequency } = spectrum.info;
|
|
10
|
+
const zones = getDetectionZones(spectrum, {
|
|
11
|
+
...options,
|
|
12
|
+
tolerances: spectralWidth.map((sw, i) => sw * originFrequency[i]),
|
|
13
|
+
});
|
|
19
14
|
let { fromX, fromY, toX, toY } = options.selectedZone;
|
|
20
15
|
if (fromX > toX)
|
|
21
16
|
[fromX, toX] = [toX, fromX];
|
|
@@ -26,6 +21,6 @@ export function detectZonesManual(datum, options) {
|
|
|
26
21
|
x: { from: fromX, to: toX },
|
|
27
22
|
y: { from: fromY, to: toY },
|
|
28
23
|
};
|
|
29
|
-
return mapZones(zones,
|
|
24
|
+
return mapZones(zones, spectrum);
|
|
30
25
|
}
|
|
31
26
|
//# sourceMappingURL=detectZonesManual.js.map
|
|
@@ -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":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAO3D;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,QAAoB,EACpB,OAAiC;IAEjC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC;IACzD,MAAM,KAAK,GAAG,iBAAiB,CAAC,QAAQ,EAAE;QACxC,GAAG,OAAO;QACV,UAAU,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;KAClE,CAAC,CAAC;IACH,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;IAEF,OAAO,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACnC,CAAC"}
|
|
@@ -9,19 +9,11 @@ export interface DetectionZonesOptions {
|
|
|
9
9
|
thresholdFactor: number;
|
|
10
10
|
maxPercentCutOff: number;
|
|
11
11
|
tolerances?: number[];
|
|
12
|
-
convolutionByFFT?: boolean;
|
|
13
|
-
enhanceSymmetry?: boolean;
|
|
14
12
|
}
|
|
15
13
|
/**
|
|
16
14
|
*
|
|
17
|
-
* @param
|
|
18
|
-
* @param
|
|
19
|
-
* @param {number} options.selectedZone.fromX
|
|
20
|
-
* @param {number} options.selectedZone.fromY
|
|
21
|
-
* @param {number} options.selectedZone.toX
|
|
22
|
-
* @param {number} options.selectedZone.toY
|
|
23
|
-
* @param {number} options.thresholdFactor
|
|
24
|
-
* @param {boolean} options.convolutionByFFT
|
|
15
|
+
* @param spectrum
|
|
16
|
+
* @param options
|
|
25
17
|
*/
|
|
26
18
|
export declare function getDetectionZones(spectrum: Spectrum2D, options: DetectionZonesOptions): import("nmr-processing").NMRZoneWithID[];
|
|
27
19
|
//# sourceMappingURL=getDetectionZones.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDetectionZones.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/getDetectionZones.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDetectionZones.d.ts","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/getDetectionZones.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,qBAAqB,4CAI/B"}
|
|
@@ -1,45 +1,25 @@
|
|
|
1
1
|
import { xyzAutoZonesPicking } from 'nmr-processing';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
* @param {number} options.selectedZone.fromX
|
|
7
|
-
* @param {number} options.selectedZone.fromY
|
|
8
|
-
* @param {number} options.selectedZone.toX
|
|
9
|
-
* @param {number} options.selectedZone.toY
|
|
10
|
-
* @param {number} options.thresholdFactor
|
|
11
|
-
* @param {boolean} options.convolutionByFFT
|
|
4
|
+
* @param spectrum
|
|
5
|
+
* @param options
|
|
12
6
|
*/
|
|
13
7
|
export function getDetectionZones(spectrum, options) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (selectedZone) {
|
|
17
|
-
options.enhanceSymmetry = false;
|
|
18
|
-
dataMatrix = getSubMatrix(spectrum, selectedZone);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
dataMatrix = spectrum.data;
|
|
22
|
-
}
|
|
23
|
-
return autoZonesDetection(dataMatrix, {
|
|
24
|
-
...options,
|
|
25
|
-
info: spectrum.info,
|
|
26
|
-
});
|
|
8
|
+
const dataMatrix = getSubMatrix(spectrum, options.selectedZone);
|
|
9
|
+
return autoZonesDetection(dataMatrix, spectrum.info, options);
|
|
27
10
|
}
|
|
28
|
-
function autoZonesDetection(data, options) {
|
|
29
|
-
const {
|
|
30
|
-
const {
|
|
31
|
-
|
|
11
|
+
function autoZonesDetection(data, info, options) {
|
|
12
|
+
const { tolerances, thresholdFactor, maxPercentCutOff } = options;
|
|
13
|
+
const { nucleus: nuclei, originFrequency } = info;
|
|
14
|
+
return xyzAutoZonesPicking(data, {
|
|
32
15
|
nuclei,
|
|
33
16
|
tolerances,
|
|
34
17
|
observedFrequencies: originFrequency,
|
|
35
18
|
thresholdFactor,
|
|
36
19
|
realTopDetection: true,
|
|
37
|
-
clean,
|
|
38
20
|
maxPercentCutOff,
|
|
39
|
-
enhanceSymmetry,
|
|
40
|
-
convolutionByFFT,
|
|
21
|
+
enhanceSymmetry: false,
|
|
41
22
|
});
|
|
42
|
-
return zones;
|
|
43
23
|
}
|
|
44
24
|
function getSubMatrix(datum, selectedZone) {
|
|
45
25
|
const { fromX, toX, fromY, toY } = selectedZone;
|
|
@@ -54,18 +34,12 @@ function getSubMatrix(datum, selectedZone) {
|
|
|
54
34
|
[xIndexFrom, xIndexTo] = [xIndexTo, xIndexFrom];
|
|
55
35
|
if (yIndexFrom > yIndexTo)
|
|
56
36
|
[yIndexFrom, yIndexTo] = [yIndexTo, yIndexFrom];
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
minX: data.minX + xIndexFrom * xStep,
|
|
61
|
-
maxY: data.minY + yIndexTo * yStep,
|
|
62
|
-
minY: data.minY + yIndexFrom * yStep,
|
|
63
|
-
};
|
|
64
|
-
let maxZ = Number.MIN_SAFE_INTEGER;
|
|
65
|
-
let minZ = Number.MAX_SAFE_INTEGER;
|
|
37
|
+
const z = [];
|
|
38
|
+
let maxZ = Number.MAX_SAFE_INTEGER;
|
|
39
|
+
let minZ = Number.MIN_SAFE_INTEGER;
|
|
66
40
|
const nbXPoints = xIndexTo - xIndexFrom + 1;
|
|
67
41
|
for (let j = yIndexFrom; j < yIndexTo; j++) {
|
|
68
|
-
const row = new
|
|
42
|
+
const row = new Float64Array(nbXPoints);
|
|
69
43
|
let xIndex = xIndexFrom;
|
|
70
44
|
for (let i = 0; i < nbXPoints; i++) {
|
|
71
45
|
row[i] = data.z[j][xIndex++];
|
|
@@ -76,10 +50,16 @@ function getSubMatrix(datum, selectedZone) {
|
|
|
76
50
|
if (minZ > rowValue)
|
|
77
51
|
minZ = rowValue;
|
|
78
52
|
}
|
|
79
|
-
|
|
53
|
+
z.push(row);
|
|
80
54
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
55
|
+
return {
|
|
56
|
+
z,
|
|
57
|
+
maxX: data.minX + xIndexTo * xStep,
|
|
58
|
+
minX: data.minX + xIndexFrom * xStep,
|
|
59
|
+
maxY: data.minY + yIndexTo * yStep,
|
|
60
|
+
minY: data.minY + yIndexFrom * yStep,
|
|
61
|
+
maxZ,
|
|
62
|
+
minZ,
|
|
63
|
+
};
|
|
84
64
|
}
|
|
85
65
|
//# sourceMappingURL=getDetectionZones.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDetectionZones.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/getDetectionZones.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDetectionZones.js","sourceRoot":"","sources":["../../../../../src/data/data2d/Spectrum2D/zones/getDetectionZones.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAcrD;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,QAAoB,EACpB,OAA8B;IAE9B,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAChE,OAAO,kBAAkB,CAAC,UAAU,EAAE,QAAQ,CAAC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AAC;QAC/B,CAAC;QACD,KAAK,MAAM,QAAQ,IAAI,GAAG,EAAE,CAAC;YAC3B,IAAI,IAAI,GAAG,QAAQ;gBAAE,IAAI,GAAG,QAAQ,CAAC;YACrC,IAAI,IAAI,GAAG,QAAQ;gBAAE,IAAI,GAAG,QAAQ,CAAC;QACvC,CAAC;QACD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACd,CAAC;IAED,OAAO;QACL,CAAC;QACD,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,QAAQ,GAAG,KAAK;QAClC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,UAAU,GAAG,KAAK;QACpC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,QAAQ,GAAG,KAAK;QAClC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,UAAU,GAAG,KAAK;QACpC,IAAI;QACJ,IAAI;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -10,59 +10,6 @@ export declare function initiateZones(options: Partial<{
|
|
|
10
10
|
sumAuto: boolean;
|
|
11
11
|
};
|
|
12
12
|
} & Zones & {
|
|
13
|
-
values:
|
|
14
|
-
signals: {
|
|
15
|
-
peaks: {
|
|
16
|
-
id: string;
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
z: number;
|
|
20
|
-
originalX?: number;
|
|
21
|
-
originalY?: number;
|
|
22
|
-
originalZ?: number;
|
|
23
|
-
width?: number | {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
};
|
|
27
|
-
}[] | undefined;
|
|
28
|
-
id: string;
|
|
29
|
-
kind: import("@zakodium/nmr-types").SignalKind;
|
|
30
|
-
x: {
|
|
31
|
-
originalDelta: number;
|
|
32
|
-
delta: number;
|
|
33
|
-
nbAtoms?: number;
|
|
34
|
-
diaIDs?: string[];
|
|
35
|
-
};
|
|
36
|
-
y: {
|
|
37
|
-
originalDelta: number;
|
|
38
|
-
delta: number;
|
|
39
|
-
nbAtoms?: number;
|
|
40
|
-
diaIDs?: string[];
|
|
41
|
-
};
|
|
42
|
-
sign?: number;
|
|
43
|
-
j?: {
|
|
44
|
-
pathLength?: number | import("cheminfo-types").FromTo;
|
|
45
|
-
};
|
|
46
|
-
}[];
|
|
47
|
-
kind: import("@zakodium/nmr-types").SignalKind;
|
|
48
|
-
x: {
|
|
49
|
-
from: number;
|
|
50
|
-
to: number;
|
|
51
|
-
nbAtoms?: number;
|
|
52
|
-
diaIDs?: string[];
|
|
53
|
-
originalFrom?: number;
|
|
54
|
-
originalTo?: number;
|
|
55
|
-
};
|
|
56
|
-
y: {
|
|
57
|
-
from: number;
|
|
58
|
-
to: number;
|
|
59
|
-
nbAtoms?: number;
|
|
60
|
-
diaIDs?: string[];
|
|
61
|
-
originalFrom?: number;
|
|
62
|
-
originalTo?: number;
|
|
63
|
-
};
|
|
64
|
-
id: string;
|
|
65
|
-
assignment?: string;
|
|
66
|
-
}[];
|
|
13
|
+
values: import("@zakodium/nmr-types").Zone[];
|
|
67
14
|
};
|
|
68
15
|
//# sourceMappingURL=initiateZones.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;EAgBrB"}
|
|
@@ -9,7 +9,7 @@ export function initiateZones(options, spectrum) {
|
|
|
9
9
|
sumAuto: true,
|
|
10
10
|
},
|
|
11
11
|
}, options.zones, {
|
|
12
|
-
values: mapZones(options
|
|
12
|
+
values: mapZones(options.zones?.values || [], spectrum),
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=initiateZones.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,CAAC,KAAK,EAAE,MAAM,IAAI,EAAE,EAAE,QAAQ,CAAC;KACxD,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Molecule.d.ts","sourceRoot":"","sources":["../../../src/data/molecules/Molecule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAKzE,MAAM,WAAW,qBACf,
|
|
1
|
+
{"version":3,"file":"Molecule.d.ts","sourceRoot":"","sources":["../../../src/data/molecules/Molecule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAKzE,MAAM,WAAW,qBACf,SACE,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,EACzD,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,eAAO,MAAM,0CAA0C,EAAE,oBAMtD,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAEzD,wBAAgB,YAAY,CAC1B,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM,GACnC,qBAAqB,CAmBvB;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,qBAAqB,GAAG,aAAa,CASrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Molecule.js","sourceRoot":"","sources":["../../../src/data/molecules/Molecule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,cAAc,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"Molecule.js","sourceRoot":"","sources":["../../../src/data/molecules/Molecule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAoB5D,MAAM,CAAC,MAAM,0CAA0C,GACrD;IACE,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;CACZ,CAAC;AAIJ,MAAM,UAAU,YAAY,CAC1B,UAAkC,EAAE;IAEpC,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;IAC7C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC;IACpC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;IAEtC,MAAM,GAAG,GAAG,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,GAAG,CAAC,mBAAmB,EAAE,CAAC;IAEzC,OAAO;QACL,EAAE;QACF,OAAO;QACP,KAAK;QACL,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,EAAE,EAAE,MAAM,CAAC,OAAO;QAClB,EAAE,EAAE,MAAM,CAAC,cAAc;QACzB,EAAE,EAAE,MAAM,CAAC,cAAc;QACzB,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC;QACtB,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC;KACtC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,QAA+B;IACpD,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC;IAElD,OAAO;QACL,OAAO;QACP,KAAK;QACL,EAAE;QACF,QAAQ;KACT,CAAC;AACJ,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,qBAAqB,CAAC;AAEjD,MAAM,WAAW,
|
|
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,oBAAqB,SAAQ,IAAI,CAChD,KAAK,EACL,aAAa,GAAG,MAAM,GAAG,SAAS,CACnC;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -1 +1 @@
|
|
|
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,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"FindUtilities.d.ts","sourceRoot":"","sources":["../../../src/data/utilities/FindUtilities.ts"],"names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