nmrium 0.62.1 → 0.63.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.d.ts.map +1 -1
- package/lib/component/1d/ApodizationLine.js +46 -30
- 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 +31 -10
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +8 -9
- 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/FooterBanner.js.map +1 -1
- package/lib/component/1d/SpectraLegends.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/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -2
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts +1 -1
- package/lib/component/1d/inset/SpectraInsets.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/matrix/useMatrix.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js.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/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 -0
- 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/Range.d.ts +2 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +14 -6
- 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 +31 -8
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js.map +1 -1
- package/lib/component/1d/utilities/scale.js +1 -1
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +0 -6
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -4
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +7 -2
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +21 -4
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +1 -1
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js +2 -2
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/fid/FidCanvas.js.map +1 -1
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts +7 -1
- package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.js +18 -14
- package/lib/component/2d/useTracesSpectra.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +14 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.js +41 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -0
- package/lib/component/2d/zones/SignalsGuideLines.d.ts +2 -0
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -0
- package/lib/component/2d/zones/SignalsGuideLines.js +142 -0
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -0
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js +17 -21
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +64 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +38 -3
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +136 -38
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/assignment/utilities/filterAssignedIDs.d.ts +3 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.d.ts.map +1 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.js +4 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.js.map +1 -0
- package/lib/component/assignment/utilities/getAssignments.d.ts +1 -1
- package/lib/component/assignment/utilities/getAssignments.d.ts.map +1 -1
- package/lib/component/context/CoreContext.d.ts +4 -0
- package/lib/component/context/CoreContext.d.ts.map +1 -0
- package/lib/component/context/CoreContext.js +11 -0
- package/lib/component/context/CoreContext.js.map +1 -0
- package/lib/component/context/SortSpectraContext.d.ts +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/context/TopicMoleculeContext.js +2 -2
- package/lib/component/context/TopicMoleculeContext.js.map +1 -1
- package/lib/component/elements/ContainerQueryWrapper.d.ts.map +1 -1
- package/lib/component/elements/Footer.d.ts.map +1 -1
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/MoleculeSelection.js.map +1 -1
- package/lib/component/elements/ReactTable/BaseReactTable.d.ts.map +1 -1
- package/lib/component/elements/TabsProvider.d.ts +14 -0
- package/lib/component/elements/TabsProvider.d.ts.map +1 -0
- package/lib/component/elements/TabsProvider.js +22 -0
- package/lib/component/elements/TabsProvider.js.map +1 -0
- package/lib/component/elements/export/ExportContent.d.ts +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/units.d.ts +1 -1
- package/lib/component/elements/export/units.d.ts.map +1 -1
- package/lib/component/elements/export/units.js +1 -1
- package/lib/component/elements/export/units.js.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +2 -2
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/getSizeInPixel.d.ts +1 -1
- package/lib/component/elements/export/utilities/getSizeInPixel.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/pageSize.d.ts +1 -1
- package/lib/component/elements/print/pageSize.d.ts.map +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +2 -3
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrum.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useCanvasContext.d.ts +2 -0
- package/lib/component/hooks/useCanvasContext.d.ts.map +1 -0
- package/lib/component/hooks/useCanvasContext.js +13 -0
- package/lib/component/hooks/useCanvasContext.js.map +1 -0
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +6 -4
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/usePeaksLabelSettings.d.ts +1 -1
- package/lib/component/hooks/usePeaksLabelSettings.d.ts.map +1 -1
- package/lib/component/hooks/useResizerStatus.d.ts +1 -1
- package/lib/component/hooks/useResizerStatus.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSpectraPerNucleus.d.ts +1 -1
- package/lib/component/hooks/useSpectraPerNucleus.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.d.ts +1 -2
- package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.js +2 -17
- package/lib/component/hooks/useSpectrum.js.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts +3 -0
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts.map +1 -0
- package/lib/component/hooks/useSpectrumWithDataSource.js +22 -0
- package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -0
- package/lib/component/hooks/useTempSpectrum.d.ts +1 -2
- package/lib/component/hooks/useTempSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useTempSpectrum.js +2 -11
- package/lib/component/hooks/useTempSpectrum.js.map +1 -1
- package/lib/component/hooks/useToolsFunctions.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.map +1 -1
- package/lib/component/hooks/useWorkspaceExportSettings.d.ts +1 -1
- package/lib/component/hooks/useWorkspaceExportSettings.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +4 -2
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +15 -7
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +2 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +7 -4
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.js +3 -2
- package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
- package/lib/component/main/index.d.ts +0 -1
- package/lib/component/main/index.d.ts.map +1 -1
- package/lib/component/main/index.js +0 -1
- package/lib/component/main/index.js.map +1 -1
- package/lib/component/main/types.d.ts +1 -1
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +3 -2
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +7 -5
- package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +16 -20
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +3 -2
- package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/InfoBlock.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/InfoBlock.js +2 -2
- package/lib/component/modal/editRange/forms/components/InfoBlock.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +4 -2
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.js +7 -10
- package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +2 -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.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +3 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +3 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +3 -2
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settingsValidation.js +1 -1
- package/lib/component/modal/setting/settingsValidation.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +2 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +12 -17
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +4 -12
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +4 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +20 -7
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +35 -27
- package/lib/component/panels/MoleculesPanel/Utilities.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +1 -10
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +127 -137
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/Panels.d.ts +4 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +35 -9
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.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/RangesTableRow.js +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +6 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts +1 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +33 -15
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts +2 -3
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +6 -4
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +3 -2
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/BasicPanelStyle.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +2 -3
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +4 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/InnerFilterHeader.d.ts.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 +20 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +3 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js +10 -4
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +14 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +0 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +8 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.d.ts +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.js +4 -2
- package/lib/component/panels/hooks/useTogglePanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +5 -3
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +8 -8
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +19 -17
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +8 -7
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.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 +4 -4
- 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/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts +2 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +7 -1
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +27 -5
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +134 -68
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +10 -4
- 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.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +3 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +5 -5
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- 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/RangesActions.d.ts +10 -9
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +40 -34
- 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 +1 -2
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -0
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +33 -19
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +8 -8
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +21 -19
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +5 -3
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +9 -9
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +24 -23
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +1 -1
- package/lib/component/reducer/helper/getActiveSpectra.d.ts.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts +1 -1
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts.map +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.d.ts +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +2 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +4 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +16 -10
- package/lib/component/toolbar/ToolBar.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/useWatchForm.d.ts +8 -0
- package/lib/component/useWatchForm.d.ts.map +1 -0
- package/lib/component/useWatchForm.js +24 -0
- package/lib/component/useWatchForm.js.map +1 -0
- package/lib/component/utility/export.d.ts +1 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/getClosePeak.d.ts +1 -1
- package/lib/component/utility/getClosePeak.d.ts.map +1 -1
- package/lib/component/utility/getSpectraByNucleus.d.ts +1 -1
- package/lib/component/utility/getSpectraByNucleus.d.ts.map +1 -1
- package/lib/component/utility/getSpectraObjectPaths.d.ts +1 -1
- package/lib/component/utility/getSpectraObjectPaths.d.ts.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.d.ts +17 -0
- package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -0
- package/lib/component/utility/stackOverlappingLabels.js +59 -0
- package/lib/component/utility/stackOverlappingLabels.js.map +1 -0
- package/lib/component/workspaces/assignment.d.ts +1 -1
- package/lib/component/workspaces/assignment.d.ts.map +1 -1
- package/lib/component/workspaces/basic.d.ts +1 -1
- package/lib/component/workspaces/basic.d.ts.map +1 -1
- package/lib/component/workspaces/embedded.d.ts +1 -1
- package/lib/component/workspaces/embedded.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.d.ts +1 -1
- package/lib/component/workspaces/exercise.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.js +1 -0
- package/lib/component/workspaces/exercise.js.map +1 -1
- package/lib/component/workspaces/index.d.ts +7 -7
- package/lib/component/workspaces/prediction.d.ts +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/process1D.d.ts +1 -1
- package/lib/component/workspaces/process1D.d.ts.map +1 -1
- package/lib/component/workspaces/simulation.d.ts +1 -1
- package/lib/component/workspaces/simulation.d.ts.map +1 -1
- package/lib/component/workspaces/simulation.js +1 -0
- package/lib/component/workspaces/simulation.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +11 -2
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +5 -3
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +11 -8
- package/lib/data/SpectraManager.js.map +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/get1DColor.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +1 -1
- 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/isSpectrum1D.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.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 +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +2 -39
- 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/detectRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +1 -31
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +2 -39
- 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 +2 -39
- 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/Spectrum1D/ranges/resurrectSpectrum.js +21 -3
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.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 +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +6 -2
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +12 -11
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js +6 -2
- package/lib/data/data2d/Spectrum2D/get2DColor.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/getSlice.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +4 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +6 -0
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts.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/molecules/Molecule.js +2 -2
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +2 -2
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +7 -6
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.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/convertSpectraListToObject.d.ts +1 -1
- package/lib/data/utilities/convertSpectraListToObject.d.ts.map +1 -1
- package/lib/data/utilities/getCustomColor.d.ts +1 -1
- package/lib/data/utilities/getCustomColor.d.ts.map +1 -1
- package/lib/data/utilities/getCustomColor.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +32 -34
- package/src/component/1d/ApodizationLine.tsx +57 -32
- package/src/component/1d/BrushTracker1D.tsx +43 -7
- package/src/component/1d/ExclusionZonesAnnotations.tsx +1 -1
- package/src/component/1d/FloatPublicationString.tsx +11 -12
- package/src/component/1d/FloatingRanges.tsx +3 -3
- package/src/component/1d/FooterBanner.tsx +1 -1
- package/src/component/1d/LinesSeries.tsx +1 -1
- package/src/component/1d/SpectraLegends.tsx +3 -3
- package/src/component/1d/Viewer1D.tsx +1 -1
- package/src/component/1d/database/DatabaseSpectrum.tsx +4 -3
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +1 -1
- package/src/component/1d/inset/DraggableInset.tsx +5 -5
- package/src/component/1d/inset/SpectraInsets.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/matrix/useMatrix.ts +1 -1
- package/src/component/1d/multiAnalysis/MultiAnalysisRanges.tsx +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTrees.tsx +1 -1
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
- package/src/component/1d/peaks/Peaks.tsx +1 -1
- package/src/component/1d/peaks/PeaksShapes.tsx +1 -1
- package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +7 -4
- package/src/component/1d/ranges/Range.tsx +29 -11
- package/src/component/1d/ranges/Ranges.tsx +51 -13
- package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
- package/src/component/1d/tool/PeakPointer.tsx +1 -1
- package/src/component/1d/tool/XLabelPointer.tsx +1 -1
- package/src/component/1d/utilities/scale.ts +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +2 -20
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +1 -1
- package/src/component/1d-2d/tools/BrushXY.tsx +7 -2
- package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +1 -1
- package/src/component/2d/1d-tracer/Left1DChart.tsx +1 -1
- package/src/component/2d/1d-tracer/Top1DChart.tsx +1 -1
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +1 -1
- package/src/component/2d/BrushTracker2D.tsx +27 -4
- package/src/component/2d/SVGContent2D.tsx +3 -4
- package/src/component/2d/SlicingView.tsx +1 -1
- package/src/component/2d/XAxis.tsx +1 -1
- package/src/component/2d/fid/FidCanvas.tsx +1 -1
- package/src/component/2d/fid/FidContainer.tsx +1 -1
- package/src/component/2d/ft/Contours.tsx +1 -1
- package/src/component/2d/ft/FTContainer.tsx +1 -1
- package/src/component/2d/useTracesSpectra.ts +35 -20
- package/src/component/2d/utilities/extractSpectrumSignals.ts +60 -0
- package/src/component/2d/zones/SignalsGuideLines.tsx +280 -0
- package/src/component/2d/zones/Zone.tsx +43 -63
- package/src/component/2d/zones/Zones.tsx +1 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +89 -2
- package/src/component/EventsTrackers/BrushTracker.tsx +211 -64
- package/src/component/assignment/utilities/filterAssignedIDs.ts +8 -0
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/context/CoreContext.tsx +14 -0
- package/src/component/context/SortSpectraContext.tsx +1 -1
- package/src/component/context/TopicMoleculeContext.tsx +2 -2
- package/src/component/elements/MoleculeSelection.tsx +1 -1
- package/src/component/elements/TabsProvider.tsx +42 -0
- package/src/component/elements/export/ExportContent.tsx +1 -1
- package/src/component/elements/export/ExportManager.tsx +1 -1
- package/src/component/elements/export/ExportOptionsModal.tsx +2 -2
- package/src/component/elements/export/units.ts +2 -2
- package/src/component/elements/export/useExportConfigurer.tsx +1 -1
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +6 -1
- package/src/component/elements/export/utilities/getExportOptions.ts +1 -1
- package/src/component/elements/export/utilities/getSizeInPixel.ts +1 -1
- package/src/component/elements/print/PrintContent.tsx +1 -1
- package/src/component/elements/print/pageSize.ts +1 -1
- package/src/component/header/Header.tsx +2 -2
- package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +20 -21
- package/src/component/highlight/index.tsx +1 -1
- package/src/component/hooks/useActiveSpectrumIntegralsViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumPeaksViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumZonesViewState.ts +1 -1
- package/src/component/hooks/useCanvasContext.ts +15 -0
- package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +1 -1
- package/src/component/hooks/useExport.tsx +6 -4
- package/src/component/hooks/useFilter.ts +1 -1
- package/src/component/hooks/usePanelPreferences.ts +2 -2
- package/src/component/hooks/usePeaksLabelSettings.ts +1 -1
- package/src/component/hooks/useResizerStatus.ts +1 -1
- package/src/component/hooks/useSaveSettings.tsx +1 -1
- package/src/component/hooks/useSpectraPerNucleus.ts +1 -1
- package/src/component/hooks/useSpectrum.ts +2 -27
- package/src/component/hooks/useSpectrumWithDataSource.ts +36 -0
- package/src/component/hooks/useTempSpectrum.ts +2 -15
- package/src/component/hooks/useToolsFunctions.ts +1 -1
- package/src/component/hooks/useWorkspaceAction.ts +1 -1
- package/src/component/loader/useLoadFiles.ts +4 -2
- package/src/component/main/InnerNMRium.tsx +69 -56
- package/src/component/main/InnerNMRiumContents.tsx +1 -1
- package/src/component/main/NMRium.tsx +3 -1
- package/src/component/main/NMRiumStateProvider.tsx +8 -4
- package/src/component/main/NMRiumViewerWrapper.tsx +5 -1
- package/src/component/main/index.ts +0 -2
- package/src/component/main/types.ts +3 -3
- package/src/component/modal/ExportAsJcampModal.tsx +1 -1
- package/src/component/modal/LoadJCAMPModal.tsx +3 -2
- package/src/component/modal/MoleculeStructureEditorModal.tsx +13 -9
- package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
- package/src/component/modal/changeSum/ChangeSumModalContents.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +52 -58
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +3 -2
- package/src/component/modal/editRange/forms/components/InfoBlock.tsx +4 -2
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +4 -2
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +6 -15
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +3 -1
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +5 -2
- package/src/component/modal/setting/GeneralSettings.tsx +1 -1
- package/src/component/modal/setting/WorkspaceItem.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +3 -3
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +5 -11
- package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +2 -2
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +6 -3
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +3 -3
- package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +5 -4
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +1 -1
- package/src/component/modal/setting/settingsValidation.ts +2 -2
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +3 -3
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +1 -1
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +15 -23
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -26
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +5 -5
- package/src/component/panels/MoleculesPanel/Utilities.ts +63 -29
- package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +193 -194
- package/src/component/panels/Panels.tsx +72 -34
- package/src/component/panels/PanelsBar.tsx +1 -1
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesPanel.tsx +4 -1
- package/src/component/panels/RangesPanel/RangesTable.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +4 -4
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.tsx +1 -1
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +5 -1
- package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +1 -1
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +3 -3
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/ColorIndicator.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/ShowHideSpectrumButton.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +1 -1
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +5 -1
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.tsx +2 -0
- package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +6 -0
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +1 -1
- package/src/component/panels/accordionItems.tsx +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +60 -22
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +19 -0
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +2 -2
- package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +15 -10
- package/src/component/panels/databasePanel/DatabaseTable.tsx +4 -2
- package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +20 -21
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +4 -1
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +32 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +13 -5
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +0 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +1 -1
- package/src/component/panels/hooks/useGetPanelOptions.ts +1 -1
- package/src/component/panels/hooks/useTogglePanel.ts +7 -4
- package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +9 -7
- package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +1 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +16 -15
- package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +55 -41
- package/src/component/panels/spectrumSimulation/SpectrumSimulation.tsx +8 -7
- package/src/component/reducer/Reducer.ts +5 -5
- package/src/component/reducer/actions/AssignmentsActions.ts +1 -1
- package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
- package/src/component/reducer/actions/DatabaseActions.ts +11 -2
- package/src/component/reducer/actions/DomainActions.ts +5 -5
- package/src/component/reducer/actions/FiltersActions.ts +207 -85
- package/src/component/reducer/actions/InsetActions.ts +13 -7
- package/src/component/reducer/actions/IntegralsActions.ts +1 -1
- package/src/component/reducer/actions/LoadActions.ts +6 -6
- package/src/component/reducer/actions/MoleculeActions.ts +6 -4
- package/src/component/reducer/actions/PeaksActions.ts +4 -4
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +56 -49
- package/src/component/reducer/actions/SpectraActions.ts +7 -7
- package/src/component/reducer/actions/ToolsActions.ts +41 -20
- package/src/component/reducer/actions/ZonesActions.ts +34 -25
- package/src/component/reducer/helper/Zoom1DManager.ts +11 -15
- package/src/component/reducer/helper/ZoomHistoryManager.ts +29 -23
- package/src/component/reducer/helper/setIntegralsViewProperty.ts +1 -1
- package/src/component/reducer/helper/setRangesViewProperty.ts +1 -1
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +3 -3
- package/src/component/reducer/preferences/actions/togglePanel.ts +1 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +5 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
- package/src/component/reducer/preferences/utilities/getActiveWorkspace.ts +1 -1
- package/src/component/reducer/preferences/utilities/getPreferencesByWorkspace.ts +4 -1
- package/src/component/reducer/preferences/utilities/initWorkspace.ts +1 -1
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +1 -1
- package/src/component/toolbar/ToolBar.tsx +18 -10
- package/src/component/toolbar/ToolTypes.ts +1 -1
- package/src/component/useWatchForm.tsx +37 -0
- package/src/component/utility/export.ts +4 -1
- package/src/component/utility/getClosePeak.ts +1 -1
- package/src/component/utility/getSpectraByNucleus.ts +1 -1
- package/src/component/utility/getSpectraObjectPaths.ts +1 -1
- package/src/component/utility/stackOverlappingLabels.ts +92 -0
- package/src/component/workspaces/assignment.ts +1 -1
- package/src/component/workspaces/basic.ts +1 -1
- package/src/component/workspaces/embedded.ts +1 -1
- package/src/component/workspaces/exercise.ts +2 -1
- package/src/component/workspaces/prediction.ts +2 -1
- package/src/component/workspaces/process1D.ts +1 -1
- package/src/component/workspaces/simulation.ts +2 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +2 -1
- package/src/data/PredictionManager.ts +15 -3
- package/src/data/SpectraManager.ts +20 -14
- package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
- package/src/data/data1d/Spectrum1D/get1DColor.ts +1 -1
- package/src/data/data1d/Spectrum1D/get1DDataXY.ts +1 -1
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +4 -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/isSpectrum1D.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/changeRangeSignal.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/createRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRanges.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 +28 -4
- package/src/data/data1d/database.ts +1 -1
- package/src/data/data1d/multipleSpectraAnalysis.ts +6 -6
- package/src/data/data2d/Spectrum2D/contours.ts +20 -15
- package/src/data/data2d/Spectrum2D/get2DColor.ts +10 -3
- package/src/data/data2d/Spectrum2D/getSlice.ts +1 -1
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +4 -1
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +9 -1
- package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
- package/src/data/molecules/Molecule.ts +2 -2
- package/src/data/molecules/MoleculeManager.ts +7 -5
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -1
- package/src/data/utilities/FindUtilities.ts +1 -1
- package/src/data/utilities/convertSpectraListToObject.ts +1 -1
- package/src/data/utilities/getCustomColor.ts +2 -2
- package/src/versionInfo.ts +1 -1
- package/lib/component/2d/zones/IndicationLines.d.ts +0 -7
- package/lib/component/2d/zones/IndicationLines.d.ts.map +0 -1
- package/lib/component/2d/zones/IndicationLines.js +0 -50
- package/lib/component/2d/zones/IndicationLines.js.map +0 -1
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts +0 -3
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts.map +0 -1
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.js +0 -4
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.js.map +0 -1
- package/src/component/2d/zones/IndicationLines.tsx +0 -94
- package/src/component/assignment/utilities/filterForIDsWithAssignment.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpectrumInfoBlock.js","sourceRoot":"","sources":["../../../../src/component/1d-2d/components/SpectrumInfoBlock.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SpectrumInfoBlock.js","sourceRoot":"","sources":["../../../../src/component/1d-2d/components/SpectrumInfoBlock.tsx"],"names":[],"mappings":";AACA,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,YAAY,E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,KAAK,EAAE,EAAE;wBAC/B,OAAO,CACL,MAAC,QAAQ,IACP,SAAS,EAAE,eAAe,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,EAC7C,KAAK,EAAE,aAAa,aAGpB,gBAAM,iBAAiB,EAAC,QAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,aACjD,KAAK,CAAC,KAAK,UACP,EACP,eAAM,iBAAiB,EAAC,QAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,YACjD,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,GACzB,KAPF,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAQrB,CACZ,CAAC;oBACJ,CAAC,CAAC,GACA,IACF,GACkB,CACzB,CAAC;AACJ,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrushXY.d.ts","sourceRoot":"","sources":["../../../../src/component/1d-2d/tools/BrushXY.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BrushXY.d.ts","sourceRoot":"","sources":["../../../../src/component/1d-2d/tools/BrushXY.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AA+CvD,UAAU,YAAY;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,eAAe,CAAC,EAAE;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,YAAY,kDAwFlD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { detectBrushing, useBrushTracker, } from '../../EventsTrackers/BrushTracker.js';
|
|
2
|
+
import { detectBrushing, useBrushDetectionOptions, useBrushTracker, } from '../../EventsTrackers/BrushTracker.js';
|
|
3
3
|
import { useChartData } from '../../context/ChartContext.js';
|
|
4
4
|
import { options } from '../../toolbar/ToolTypes.js';
|
|
5
5
|
const styles = {
|
|
@@ -41,6 +41,7 @@ const defaultDimensionBorder = {
|
|
|
41
41
|
export default function BrushXY(props) {
|
|
42
42
|
const { axis = 'XY', dimensionBorder = defaultDimensionBorder, width: widthProps, height: heightProps, margin: externalMargin, } = props;
|
|
43
43
|
const { width, height, toolOptions: { selectedTool }, margin: innerMargin, } = useChartData();
|
|
44
|
+
const brushDetectionOptions = useBrushDetectionOptions();
|
|
44
45
|
const margin = externalMargin ?? innerMargin;
|
|
45
46
|
const brushTracker = useBrushTracker();
|
|
46
47
|
const { step, mouseButton } = brushTracker;
|
|
@@ -75,7 +76,11 @@ export default function BrushXY(props) {
|
|
|
75
76
|
: dimensionBorder.startY && endY < dimensionBorder.startY
|
|
76
77
|
? dimensionBorder.startY
|
|
77
78
|
: endY;
|
|
78
|
-
const brush = detectBrushing({ startX, startY, endX, endY },
|
|
79
|
+
const brush = detectBrushing({ startX, startY, endX, endY }, {
|
|
80
|
+
width: finalWidth,
|
|
81
|
+
height: finalHeight,
|
|
82
|
+
...brushDetectionOptions,
|
|
83
|
+
});
|
|
79
84
|
const scaleX = axis === 'X' || axis === 'XY' ? brush.scaleX : 1;
|
|
80
85
|
const scaleY = axis === 'Y' || axis === 'XY' ? brush.scaleY : 1;
|
|
81
86
|
startX = axis === 'Y' ? margin.left : brush.startX || margin.left;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrushXY.js","sourceRoot":"","sources":["../../../../src/component/1d-2d/tools/BrushXY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,CAAC;IAClE,MAAM,GAAG,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,GAAG,CAAC;IAEhE,OAAO,CACL,cACE,KAAK,EAAE;YACL,GAAG,MAAM,CAAC,SAAS;YACnB,SAAS,EAAE,aAAa,MAAM,OAAO,MAAM,aAAa,MAAM,IAAI,MAAM,GAAG;YAC3E,UAAU,EAAE,WAAW;SACxB,YAED,cAAK,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,YACzC,eACE,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,KAAK,GACb,GACE,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalSliceChart.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/1d-tracer/HorizontalSliceChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HorizontalSliceChart.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/1d-tracer/HorizontalSliceChart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAOhD,UAAU,SAAS;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,UAAU,yBAA0B,SAAQ,SAAS;IACnD,IAAI,EAAE,SAAS,CAAC;CACjB;AA6BD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CAqB7D;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Left1DChart.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/1d-tracer/Left1DChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Left1DChart.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/1d-tracer/Left1DChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAQxD,UAAU,gBAAgB;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,UAAU,CAAC;CAClB;AA8BD,iBAAS,WAAW,CAAC,EACnB,gBAAqB,EACrB,IAAI,EAAE,QAAQ,GACf,EAAE,gBAAgB,kDAgClB;;AAED,wBAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Top1DChart.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/1d-tracer/Top1DChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Top1DChart.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/1d-tracer/Top1DChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAQxD,UAAU,eAAe;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,UAAU,CAAC;CAClB;AAyBD,iBAAS,UAAU,CAAC,EAAE,cAAmB,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,eAAe,kDA6B3E;;AAED,wBAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalSliceChart.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/1d-tracer/VerticalSliceChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VerticalSliceChart.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/1d-tracer/VerticalSliceChart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAOhD,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,uBAAwB,SAAQ,SAAS;IACjD,IAAI,EAAE,SAAS,CAAC;CACjB;AAgCD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CAsBzD;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrushTracker2D.d.ts","sourceRoot":"","sources":["../../../src/component/2d/BrushTracker2D.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BrushTracker2D.d.ts","sourceRoot":"","sources":["../../../src/component/2d/BrushTracker2D.tsx"],"names":[],"mappings":"AAyDA,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE;;CAAA,2CAoM1C"}
|
|
@@ -4,9 +4,15 @@ import { BrushTracker, detectBrushing, } from '../EventsTrackers/BrushTracker.js
|
|
|
4
4
|
import { useChartData } from '../context/ChartContext.js';
|
|
5
5
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
6
6
|
import { useMapKeyModifiers } from '../context/KeyModifierContext.js';
|
|
7
|
+
import { usePreferences } from '../context/PreferencesContext.js';
|
|
7
8
|
import { options } from '../toolbar/ToolTypes.js';
|
|
8
9
|
import { get2DDimensionLayout, getLayoutID, } from './utilities/DimensionLayout.js';
|
|
9
10
|
import { useScale2DX, useScale2DY } from './utilities/scale.js';
|
|
11
|
+
const brushDetectionOptions = {
|
|
12
|
+
thresholdFormat: 'fixed',
|
|
13
|
+
thresholdAxis: 'both',
|
|
14
|
+
thresholdSize: 30,
|
|
15
|
+
};
|
|
10
16
|
function usePixelToPPMConverter() {
|
|
11
17
|
const scaleX = useScale2DX();
|
|
12
18
|
const scaleY = useScale2DY();
|
|
@@ -31,6 +37,7 @@ export function BrushTracker2D({ children }) {
|
|
|
31
37
|
const { getModifiersKey, primaryKeyIdentifier } = useMapKeyModifiers();
|
|
32
38
|
const DIMENSION = get2DDimensionLayout(state);
|
|
33
39
|
const convertToPPM = usePixelToPPMConverter();
|
|
40
|
+
const { current: { general: { invertScroll }, }, } = usePreferences();
|
|
34
41
|
function handleBrush(brushData) {
|
|
35
42
|
const { startX, endX, startY, endY } = convertToPPM(brushData);
|
|
36
43
|
if (brushData.mouseButton === 'secondary') {
|
|
@@ -80,7 +87,11 @@ export function BrushTracker2D({ children }) {
|
|
|
80
87
|
isNotDistanceMeasurementTool) {
|
|
81
88
|
const trackID = getLayoutID(DIMENSION, brushData);
|
|
82
89
|
const axisMap = {
|
|
83
|
-
MAIN: detectBrushing(brushData,
|
|
90
|
+
MAIN: detectBrushing(brushData, {
|
|
91
|
+
width,
|
|
92
|
+
height,
|
|
93
|
+
...brushDetectionOptions,
|
|
94
|
+
}).type,
|
|
84
95
|
LEFT: 'Y',
|
|
85
96
|
TOP: 'X',
|
|
86
97
|
};
|
|
@@ -120,10 +131,16 @@ export function BrushTracker2D({ children }) {
|
|
|
120
131
|
const isMouseOver1DTrace = trackID !== 'MAIN';
|
|
121
132
|
const isTraceZoomActive = selectedTool === 'phaseCorrectionTwoDimensions' && !shiftKey;
|
|
122
133
|
if (isZoomWithScroll || isMouseOver1DTrace || isTraceZoomActive) {
|
|
123
|
-
dispatch({
|
|
134
|
+
dispatch({
|
|
135
|
+
type: 'SET_ZOOM',
|
|
136
|
+
payload: { options: { ...options, invertScroll }, trackID },
|
|
137
|
+
});
|
|
124
138
|
}
|
|
125
139
|
else {
|
|
126
|
-
dispatch({
|
|
140
|
+
dispatch({
|
|
141
|
+
type: 'SET_2D_LEVEL',
|
|
142
|
+
payload: { options: { ...options, invertScroll } },
|
|
143
|
+
});
|
|
127
144
|
}
|
|
128
145
|
}
|
|
129
146
|
};
|
|
@@ -151,7 +168,7 @@ export function BrushTracker2D({ children }) {
|
|
|
151
168
|
}
|
|
152
169
|
}
|
|
153
170
|
}, [selectedTool, dispatch]);
|
|
154
|
-
return (_jsx(BrushTracker, { onBrush: handleBrush, onBrushEnd: handleBrushEnd, onDoubleClick: handleOnDoubleClick, onClick: mouseClick, onZoom: handleZoom, style: {
|
|
171
|
+
return (_jsx(BrushTracker, { onBrush: handleBrush, onBrushEnd: handleBrushEnd, onDoubleClick: handleOnDoubleClick, onClick: mouseClick, onZoom: handleZoom, brushDetectionOptions: brushDetectionOptions, style: {
|
|
155
172
|
width: '100%',
|
|
156
173
|
height: '100%',
|
|
157
174
|
margin: 'auto',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrushTracker2D.js","sourceRoot":"","sources":["../../../src/component/2d/BrushTracker2D.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BrushTracker2D.js","sourceRoot":"","sources":["../../../src/component/2d/BrushTracker2D.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAW5C,OAAO,EACL,YAAY,EACZ,cAAc,GACf,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EACL,oBAAoB,EACpB,WAAW,GACZ,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,qBAAqB,GAA8B;IACvD,eAAe,EAAE,OAAO;IACxB,aAAa,EAAE,MAAM;IACrB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,SAAS,sBAAsB;IAC7B,MA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AAM,UAAU,GAAY,WAAW,CACrC,CAAC,KAAK,EAAE,EAAE;QACR,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;QACjC,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,YAAY,EAAE,CAAC;gBACrB,KAAK,8BAA8B;oBACjC,QAAQ,CAAC;wBACP,IAAI,EAAE,+BAA+B;wBACrC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE;qBAClB,CAAC,CAAC;oBACH,MAAM;gBACR;oBACE,MAAM;YACV,CAAC;QACH,CAAC;aAAM,CAAC;YACN,QAAQ,YAAY,EAAE,CAAC;gBACrB,KAAK,8BAA8B;oBACjC,QAAQ,CAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;oBACpE,MAAM;gBACR;oBACE,MAAM;YACV,CAAC;QACH,CAAC;IACH,CAAC,EACD,CAAC,YAAY,EAAE,QAAQ,CAAC,CACzB,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,IACX,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,cAAc,EAC1B,aAAa,EAAE,mBAAmB,EAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,UAAU,EAClB,qBAAqB,EAAE,qBAAqB,EAC5C,KAAK,EAAE;YACL,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,QAAQ;SACnB,YAEA,QAAQ,GACI,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGContent2D.d.ts","sourceRoot":"","sources":["../../../src/component/2d/SVGContent2D.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SVGContent2D.d.ts","sourceRoot":"","sources":["../../../src/component/2d/SVGContent2D.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAcxD,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,YAAY,2CAqBrD"}
|
|
@@ -6,10 +6,10 @@ import XAxis from './XAxis.js';
|
|
|
6
6
|
import YAxis from './YAxis.js';
|
|
7
7
|
import { FidContainer } from './fid/FidContainer.js';
|
|
8
8
|
import { FTContainer } from './ft/FTContainer.js';
|
|
9
|
-
import
|
|
9
|
+
import { SignalsGuideLines } from './zones/SignalsGuideLines.js';
|
|
10
10
|
import Zones from './zones/Zones.js';
|
|
11
11
|
import ZonesAssignmentsLabels from './zones/ZonesAssignmentsLabels.js';
|
|
12
12
|
export function SVGContent2D({ spectra }) {
|
|
13
|
-
return (_jsxs("g", { children: [_jsx(FTContainer, { spectra: spectra }), _jsx(FidContainer, {}),
|
|
13
|
+
return (_jsxs("g", { children: [_jsx(FTContainer, { spectra: spectra }), _jsx(FidContainer, {}), _jsxs(ClipPathContainer, { children: [_jsx(SignalsGuideLines, {}), _jsxs(ShareDataProvider, { children: [_jsx(Zones, {}), _jsx(ZonesAssignmentsLabels, {})] })] }), _jsx(SpectrumInfoBlock, {}), _jsxs("g", { className: "container", style: { pointerEvents: 'none' }, children: [_jsx(XAxis, {}), _jsx(YAxis, {})] })] }));
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=SVGContent2D.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGContent2D.js","sourceRoot":"","sources":["../../../src/component/2d/SVGContent2D.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,iBAAiB,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,iBAAiB,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+1 @@
|
|
|
1
|
-
{"version":3,"file":"FidCanvas.js","sourceRoot":"","sources":["../../../../src/component/2d/fid/FidCanvas.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FidCanvas.js","sourceRoot":"","sources":["../../../../src/component/2d/fid/FidCanvas.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,UAAU,SAAS;IACvB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,GACnE,YAAY,EAAE,CAAC;IACjB,MAAM,SAAS,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAClD,MAAM,kBAAkB,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IAElE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC5C,MAAM,WAAW,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IACzC,MAAM,YAAY,GAAG,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;IAE3C,MAAM,QAAQ,GAAG,WAAW,EAAgB,CAAC;IAC7C,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEpE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,SAAS,IAAI,CAAC,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AAC,GAAG,CAAC,CAAC,CAAC,MAAM;gBACzB,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ;gBAC/B,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,OAAO;gBAChC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ;YAC7C,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,IAAI,SAAS,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contours.js","sourceRoot":"","sources":["../../../../src/component/2d/ft/Contours.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Contours.js","sourceRoot":"","sources":["../../../../src/component/2d/ft/Contours.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EACL,YAAY,EACZ,uBAAuB,GACxB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAcjE,SAAS,OAAO,CACd,QAAoB,EACpB,QAAqD;IAErD,MAAM,MAA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AAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAEzB,OAAO,KAAC,gBAAgB,IAAO,OAAO,EAAE,SAAS,EAAE,YAAY,GAAM,CAAC;AACxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FTContainer.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/ft/FTContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FTContainer.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/ft/FTContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAUxD,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,kDAkBlD"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import type { Spectrum1D } from '
|
|
1
|
+
import type { ActiveSpectrum, Spectrum, Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
|
+
export interface GetTracesSpectraOptions {
|
|
3
|
+
nuclei: string[];
|
|
4
|
+
activeSpectra: Record<string, ActiveSpectrum[] | null>;
|
|
5
|
+
spectra: Spectrum[];
|
|
6
|
+
}
|
|
7
|
+
export declare function getTracesSpectra(options: GetTracesSpectraOptions): Spectrum1D[];
|
|
2
8
|
export declare function useTracesSpectra(): Spectrum1D[];
|
|
3
9
|
//# sourceMappingURL=useTracesSpectra.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTracesSpectra.d.ts","sourceRoot":"","sources":["../../../src/component/2d/useTracesSpectra.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useTracesSpectra.d.ts","sourceRoot":"","sources":["../../../src/component/2d/useTracesSpectra.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,QAAQ,EACR,UAAU,EACX,MAAM,uBAAuB,CAAC;AAK/B,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,CAAC;IACvD,OAAO,EAAE,QAAQ,EAAE,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,gBAmBhE;AAED,wBAAgB,gBAAgB,iBAY/B"}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import { useChartData } from '../context/ChartContext.js';
|
|
3
|
+
export function getTracesSpectra(options) {
|
|
4
|
+
const { nuclei, activeSpectra, spectra } = options;
|
|
5
|
+
const traces = [];
|
|
6
|
+
for (const nucleus of nuclei) {
|
|
7
|
+
const traceSpectra = activeSpectra[nucleus];
|
|
8
|
+
if (traceSpectra?.length === 1) {
|
|
9
|
+
const id = traceSpectra[0].id;
|
|
10
|
+
const spectrum = spectra.find((datum) => datum.id === id && !datum.info.isFid && datum.info.dimension === 1);
|
|
11
|
+
if (spectrum) {
|
|
12
|
+
traces.push(spectrum);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return traces;
|
|
17
|
+
}
|
|
3
18
|
export function useTracesSpectra() {
|
|
4
|
-
const { data, view: { spectra: { activeSpectra, activeTab }, }, } = useChartData();
|
|
19
|
+
const { data: spectra, view: { spectra: { activeSpectra, activeTab }, }, } = useChartData();
|
|
5
20
|
return useMemo(() => {
|
|
6
21
|
const nuclei = activeTab.split(',');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const spectra = activeSpectra[nucleus];
|
|
10
|
-
if (spectra?.length === 1) {
|
|
11
|
-
const id = spectra[0].id;
|
|
12
|
-
const spectrum = data.find((datum) => datum.id === id && !datum.info.isFid && datum.info.dimension === 1);
|
|
13
|
-
if (spectrum) {
|
|
14
|
-
traces.push(spectrum);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return traces;
|
|
19
|
-
}, [activeTab, data, activeSpectra]);
|
|
22
|
+
return getTracesSpectra({ nuclei, spectra, activeSpectra });
|
|
23
|
+
}, [activeTab, spectra, activeSpectra]);
|
|
20
24
|
}
|
|
21
25
|
//# sourceMappingURL=useTracesSpectra.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTracesSpectra.js","sourceRoot":"","sources":["../../../src/component/2d/useTracesSpectra.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTracesSpectra.js","sourceRoot":"","sources":["../../../src/component/2d/useTracesSpectra.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAQ1D,MAAM,UAAU,gBAAgB,CAAC,OAAgC;IAC/D,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAEnD,MAAM,MAAM,GAAiB,EAAE,CAAC;IAChC,KAAK,MAAM,OAAO,IAAI,MAAM,EAAE,CAAC;QAC7B,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,YAAY,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/B,MAAM,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9B,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAC3B,CAAC,KAAK,EAAE,EAAE,CACR,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,CACvD,CAAC;YAEhB,IAAI,QAAQ,EAAE,CAAC;gBACb,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,MAAM,EACJ,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,EACJ,OAAO,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,GACtC,GACF,GAAG,YAAY,EAAE,CAAC;IAEnB,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpC,OAAO,gBAAgB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;IAC9D,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Spectrum1D } from '@zakodium/nmrium-core';
|
|
2
|
+
export interface BaseSignal {
|
|
3
|
+
assignment?: string;
|
|
4
|
+
delta: number;
|
|
5
|
+
id: string;
|
|
6
|
+
rangeId: string;
|
|
7
|
+
}
|
|
8
|
+
interface ExtractSpectrumSignalsOptions {
|
|
9
|
+
from?: number;
|
|
10
|
+
to?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function extractSpectrumSignals(spectrum: Spectrum1D, options?: ExtractSpectrumSignalsOptions): BaseSignal[];
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=extractSpectrumSignals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractSpectrumSignals.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/utilities/extractSpectrumSignals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,6BAA6B;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AACD,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,UAAU,EACpB,OAAO,GAAE,6BAAkC,gBA0C5C"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SIGNAL_INCLUDED_KINDS } from '../../../data/constants/signalsKinds.js';
|
|
2
|
+
export function extractSpectrumSignals(spectrum, options = {}) {
|
|
3
|
+
const result = [];
|
|
4
|
+
const { from, to } = options;
|
|
5
|
+
const ranges = spectrum?.ranges?.values;
|
|
6
|
+
if (!Array.isArray(ranges) || ranges?.length === 0) {
|
|
7
|
+
return [];
|
|
8
|
+
}
|
|
9
|
+
for (const range of ranges) {
|
|
10
|
+
const rangeFrom = range.from;
|
|
11
|
+
const rangeTo = range.to;
|
|
12
|
+
let isInRange = true;
|
|
13
|
+
if (typeof from === 'number' && typeof to === 'number') {
|
|
14
|
+
isInRange = rangeFrom <= to && rangeTo >= from;
|
|
15
|
+
}
|
|
16
|
+
else if (typeof to === 'number') {
|
|
17
|
+
isInRange = rangeTo <= to;
|
|
18
|
+
}
|
|
19
|
+
else if (typeof from === 'number') {
|
|
20
|
+
isInRange = rangeFrom >= from;
|
|
21
|
+
}
|
|
22
|
+
if (!isInRange)
|
|
23
|
+
continue;
|
|
24
|
+
const { assignment, signals = [], id: rangeId } = range;
|
|
25
|
+
let index = 0;
|
|
26
|
+
for (const signal of signals) {
|
|
27
|
+
const { id, delta, kind } = signal;
|
|
28
|
+
if (SIGNAL_INCLUDED_KINDS.includes(kind)) {
|
|
29
|
+
result.push({
|
|
30
|
+
assignment: index === 0 ? assignment : '',
|
|
31
|
+
delta,
|
|
32
|
+
id,
|
|
33
|
+
rangeId,
|
|
34
|
+
});
|
|
35
|
+
index++;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=extractSpectrumSignals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractSpectrumSignals.js","sourceRoot":"","sources":["../../../../src/component/2d/utilities/extractSpectrumSignals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAahF,MAAM,UAAU,sBAAsB,CACpC,QAAoB,EACpB,UAAyC,EAAE;IAE3C,MAAM,MAAM,GAAiB,EAAE,CAAC;IAChC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC;IAE7B,MAAM,MAAM,GAAG,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;IACxC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,MAAM,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC;QACnD,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC;QAC7B,MAAM,OAAO,GAAG,KAAK,CAAC,EAAE,CAAC;QACzB,IAAI,SAAS,GAAG,IAAI,CAAC;QAErB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;YACvD,SAAS,GAAG,SAAS,IAAI,EAAE,IAAI,OAAO,IAAI,IAAI,CAAC;QACjD,CAAC;aAAM,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;YAClC,SAAS,GAAG,OAAO,IAAI,EAAE,CAAC;QAC5B,CAAC;aAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YACpC,SAAS,GAAG,SAAS,IAAI,IAAI,CAAC;QAChC,CAAC;QAED,IAAI,CAAC,SAAS;YAAE,SAAS;QAEzB,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;QACxD,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;YACnC,IAAI,qBAAqB,CAAC,QAAQ,CAAC,IAAc,CAAC,EAAE,CAAC;gBACnD,MAAM,CAAC,IAAI,CAAC;oBACV,UAAU,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;oBACzC,KAAK;oBACL,EAAE;oBACF,OAAO;iBACR,CAAC,CAAC;gBACH,KAAK,EAAE,CAAC;YACV,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignalsGuideLines.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/zones/SignalsGuideLines.tsx"],"names":[],"mappings":"AAwQA,wBAAgB,iBAAiB,mDAehC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { PiTextTBold, PiTextTSlashBold } from 'react-icons/pi';
|
|
4
|
+
import { FieldEdition } from '../../1d-2d/FieldEdition.js';
|
|
5
|
+
import { useChartData } from '../../context/ChartContext.js';
|
|
6
|
+
import { useDispatch } from '../../context/DispatchContext.js';
|
|
7
|
+
import { ShareDataProvider, useShareData, } from '../../context/ShareDataContext.js';
|
|
8
|
+
import { ActionsButtonsPopover } from '../../elements/ActionsButtonsPopover.js';
|
|
9
|
+
import { useCanvasContext } from '../../hooks/useCanvasContext.js';
|
|
10
|
+
import { useTriggerNewAssignmentLabel } from '../../hooks/useTriggerNewAssignmentLabel.js';
|
|
11
|
+
import { stackOverlappingLabelsArray } from '../../utility/stackOverlappingLabels.js';
|
|
12
|
+
import { useTracesSpectra } from '../useTracesSpectra.js';
|
|
13
|
+
import { extractSpectrumSignals } from '../utilities/extractSpectrumSignals.js';
|
|
14
|
+
import { useScale2DX, useScale2DY } from '../utilities/scale.js';
|
|
15
|
+
const Rect = styled.rect `
|
|
16
|
+
fill: transparent;
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
fill: #ff6f0057;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
const rectSize = 10;
|
|
23
|
+
const rectOffset = rectSize / 2;
|
|
24
|
+
const labelSize = 12;
|
|
25
|
+
const padding = 2;
|
|
26
|
+
function useSignalsOverlap(axis, spectrum) {
|
|
27
|
+
const signals = extractSpectrumSignals(spectrum);
|
|
28
|
+
const scaleX = useScale2DX();
|
|
29
|
+
const scaleY = useScale2DY();
|
|
30
|
+
const context = useCanvasContext(labelSize);
|
|
31
|
+
if (!signals || !context)
|
|
32
|
+
return null;
|
|
33
|
+
const isOverXAxis = axis === 'x';
|
|
34
|
+
const processedSignals = signals
|
|
35
|
+
.map((signal) => {
|
|
36
|
+
const { delta } = signal;
|
|
37
|
+
const text = signal.assignment ?? '';
|
|
38
|
+
const { width: labelWidth } = context.measureText(text);
|
|
39
|
+
return {
|
|
40
|
+
...signal,
|
|
41
|
+
labelWidth,
|
|
42
|
+
deltaInPixel: isOverXAxis ? scaleX(delta) : scaleY(delta),
|
|
43
|
+
};
|
|
44
|
+
})
|
|
45
|
+
.sort((a, b) => (isOverXAxis ? b.delta - a.delta : a.delta - b.delta));
|
|
46
|
+
return stackOverlappingLabelsArray(processedSignals, {
|
|
47
|
+
startPositionKey: 'deltaInPixel',
|
|
48
|
+
labelWidthKey: 'labelWidth',
|
|
49
|
+
padding,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function IndicationLines(props) {
|
|
53
|
+
const { axis, spectrum } = props;
|
|
54
|
+
const normalizedSignals = useSignalsOverlap(axis, spectrum);
|
|
55
|
+
if (!normalizedSignals)
|
|
56
|
+
return null;
|
|
57
|
+
return (_jsx("g", { children: normalizedSignals.map(({ deltaInPixel, stackIndex, assignment, id, rangeId }) => {
|
|
58
|
+
return (_jsx(IndicationLine, { deltaInPixel, stackIndex, assignment, id, rangeId, axis: axis, spectrumId: spectrum.id }, `${axis}[${id}]`));
|
|
59
|
+
}) }));
|
|
60
|
+
}
|
|
61
|
+
function getAxisRangeId(options) {
|
|
62
|
+
const { axis, rangeId } = options;
|
|
63
|
+
return `${axis}[${rangeId}]`;
|
|
64
|
+
}
|
|
65
|
+
function IndicationLine(props) {
|
|
66
|
+
const { deltaInPixel, stackIndex, assignment, rangeId, axis, spectrumId } = props;
|
|
67
|
+
const { margin, width, height } = useChartData();
|
|
68
|
+
const { setData: addNewAssignmentLabel } = useShareData();
|
|
69
|
+
const dispatch = useDispatch();
|
|
70
|
+
const innerWidth = width - margin.left - margin.right;
|
|
71
|
+
const innerHeight = height - margin.top - margin.bottom;
|
|
72
|
+
const isOverXAxis = axis === 'x';
|
|
73
|
+
const x = isOverXAxis ? deltaInPixel : margin.left;
|
|
74
|
+
const y = isOverXAxis ? margin.top : deltaInPixel;
|
|
75
|
+
const x2 = isOverXAxis ? 0 : innerWidth;
|
|
76
|
+
const y2 = isOverXAxis ? innerHeight : 0;
|
|
77
|
+
const labelX = isOverXAxis ? padding : padding + stackIndex * labelSize;
|
|
78
|
+
const labelY = isOverXAxis ? padding + stackIndex * labelSize : -padding;
|
|
79
|
+
const rectWidth = isOverXAxis ? rectSize : innerWidth;
|
|
80
|
+
const rectHeight = isOverXAxis ? innerHeight : rectSize;
|
|
81
|
+
const rectXOffset = isOverXAxis ? rectOffset : 0;
|
|
82
|
+
const rectYOffset = isOverXAxis ? 0 : rectOffset;
|
|
83
|
+
function removeAssignmentLabel() {
|
|
84
|
+
dispatch({
|
|
85
|
+
type: 'CHANGE_RANGE_ASSIGNMENT_LABEL',
|
|
86
|
+
payload: {
|
|
87
|
+
value: '',
|
|
88
|
+
rangeId,
|
|
89
|
+
spectrumId,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
const actionsButtons = [
|
|
94
|
+
{
|
|
95
|
+
icon: _jsx(PiTextTBold, {}),
|
|
96
|
+
onClick: () => addNewAssignmentLabel(getAxisRangeId({ axis, rangeId })),
|
|
97
|
+
intent: 'success',
|
|
98
|
+
title: 'Add assignment label',
|
|
99
|
+
visible: !assignment,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
icon: _jsx(PiTextTSlashBold, {}),
|
|
103
|
+
onClick: removeAssignmentLabel,
|
|
104
|
+
intent: 'danger',
|
|
105
|
+
title: 'Remove assignment label',
|
|
106
|
+
visible: !!assignment,
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
return (_jsx(ActionsButtonsPopover, { targetTagName: "g", buttons: actionsButtons, space: 2, position: isOverXAxis ? 'right-top' : 'top-left', children: _jsxs("g", { transform: `translate(${x},${y})`, children: [_jsx("line", { stroke: "lightgrey", x1: 0, x2: x2, y1: 0, y2: y2 }), _jsx(Rect, { x: -rectXOffset, y: -rectYOffset, width: rectWidth, height: rectHeight, "data-no-export": "true" }), _jsx(AssignmentLabel, { x: labelX, y: labelY, assignment: assignment, axis: axis, rangeId: rangeId, spectrumId: spectrumId })] }) }));
|
|
110
|
+
}
|
|
111
|
+
function AssignmentLabel(props) {
|
|
112
|
+
const { axis, assignment, x, y, rangeId, spectrumId } = props;
|
|
113
|
+
const { isNewAssignment, dismissNewLabel } = useTriggerNewAssignmentLabel(getAxisRangeId({ axis, rangeId }));
|
|
114
|
+
const dispatch = useDispatch();
|
|
115
|
+
function handleChange(value) {
|
|
116
|
+
dismissNewLabel();
|
|
117
|
+
dispatch({
|
|
118
|
+
type: 'CHANGE_RANGE_ASSIGNMENT_LABEL',
|
|
119
|
+
payload: {
|
|
120
|
+
value,
|
|
121
|
+
rangeId,
|
|
122
|
+
spectrumId,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
if (!assignment && !isNewAssignment)
|
|
127
|
+
return;
|
|
128
|
+
return (_jsx(FieldEdition, { onChange: handleChange, inputType: "text", value: assignment || '', PopoverProps: {
|
|
129
|
+
position: 'bottom',
|
|
130
|
+
targetTagName: 'g',
|
|
131
|
+
...(isNewAssignment
|
|
132
|
+
? { isOpen: true, onClose: () => dismissNewLabel() }
|
|
133
|
+
: {}),
|
|
134
|
+
}, children: _jsx("text", { x: x, y: y, fontSize: labelSize, fill: "#555", dominantBaseline: "hanging", textAnchor: "start", transform: axis === 'x' ? undefined : `rotate(-90 ${x} ${y})`, style: { cursor: 'hand' }, children: assignment }) }));
|
|
135
|
+
}
|
|
136
|
+
export function SignalsGuideLines() {
|
|
137
|
+
const spectrumData = useTracesSpectra();
|
|
138
|
+
if (!spectrumData)
|
|
139
|
+
return null;
|
|
140
|
+
return (_jsxs(ShareDataProvider, { children: [spectrumData[0] && (_jsx(IndicationLines, { axis: "x", spectrum: spectrumData[0] })), spectrumData[0] && (_jsx(IndicationLines, { axis: "y", spectrum: spectrumData[1] }))] }));
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=SignalsGuideLines.js.map
|