nmrium 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/BrushTracker1D.d.ts +2 -3
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +2 -3
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +3 -3
- package/lib/component/1d/ExclusionZoneAnnotation.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +9 -16
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/FloatingRanges.js +3 -6
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/Line.js +2 -2
- package/lib/component/1d/Line.js.map +1 -1
- package/lib/component/1d/PredictionErrorsNotations.js +2 -2
- package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
- package/lib/component/1d/SimilarityTree.js +1 -1
- package/lib/component/1d/SimilarityTree.js.map +1 -1
- package/lib/component/1d/XAxis1D.js +3 -3
- package/lib/component/1d/XAxis1D.js.map +1 -1
- package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseElements.js +2 -2
- package/lib/component/1d/database/DatabaseElements.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +3 -3
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +116 -67
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/InsetViewerRoot.d.ts +2 -3
- package/lib/component/1d/inset/InsetViewerRoot.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetViewerRoot.js.map +1 -1
- package/lib/component/1d/integral/IntegralResizable.js +2 -2
- package/lib/component/1d/integral/IntegralResizable.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts.map +1 -1
- package/lib/component/1d/matrix/Boxplot.d.ts.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +3 -2
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.d.ts.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +5 -3
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/multiAnalysis/AnalysisRange.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -2
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +99 -3
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +4 -8
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts +2 -4
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.js +3 -0
- package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +4 -2
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +26 -22
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/ranges/Atoms.d.ts.map +1 -1
- package/lib/component/1d/ranges/Atoms.js +5 -1
- package/lib/component/1d/ranges/Atoms.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +3 -3
- 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 +7 -8
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/tool/BaseLineZones.js.map +1 -1
- package/lib/component/1d/tool/PeakPointer.d.ts.map +1 -1
- package/lib/component/1d/tool/PeakPointer.js +8 -7
- package/lib/component/1d/tool/PeakPointer.js.map +1 -1
- package/lib/component/1d/utilities/intersectionResolver.d.ts +4 -4
- package/lib/component/1d/utilities/intersectionResolver.d.ts.map +1 -1
- package/lib/component/1d/utilities/intersectionResolver.js.map +1 -1
- package/lib/component/1d/utilities/scale.js +1 -1
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
- package/lib/component/1d-2d/FieldEdition.js +2 -10
- package/lib/component/1d-2d/FieldEdition.js.map +1 -1
- package/lib/component/1d-2d/components/ClipPathContainer.d.ts +2 -3
- package/lib/component/1d-2d/components/ClipPathContainer.d.ts.map +1 -1
- package/lib/component/1d-2d/components/ClipPathContainer.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +1 -5
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +4 -6
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.js +0 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +2 -2
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +2 -2
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js +2 -2
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts +2 -3
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts +8 -5
- package/lib/component/2d/FooterBanner.d.ts.map +1 -1
- package/lib/component/2d/FooterBanner.js +3 -3
- package/lib/component/2d/FooterBanner.js.map +1 -1
- package/lib/component/2d/SignalDeltaLine.d.ts +1 -1
- package/lib/component/2d/SignalDeltaLine.d.ts.map +1 -1
- package/lib/component/2d/SignalDeltaLine.js +5 -2
- package/lib/component/2d/SignalDeltaLine.js.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.d.ts +8 -5
- package/lib/component/2d/tools/XYLabelPointer.d.ts.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +4 -4
- package/lib/component/2d/tools/XYLabelPointer.js.map +1 -1
- package/lib/component/2d/utilities/DimensionLayout.d.ts +8 -7
- package/lib/component/2d/utilities/DimensionLayout.d.ts.map +1 -1
- package/lib/component/2d/utilities/DimensionLayout.js +4 -4
- package/lib/component/2d/utilities/DimensionLayout.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +2 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +5 -3
- package/lib/component/2d/utilities/scale.js.map +1 -1
- package/lib/component/2d/zones/Signal.d.ts.map +1 -1
- package/lib/component/2d/zones/Signal.js +7 -8
- package/lib/component/2d/zones/Signal.js.map +1 -1
- package/lib/component/2d/zones/SignalCrosshair.d.ts +2 -2
- package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalCrosshair.js +1 -2
- package/lib/component/2d/zones/SignalCrosshair.js.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +32 -18
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js +12 -11
- 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 +3 -2
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +5 -3
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.js +11 -11
- package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +1 -0
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +1 -0
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +5 -1
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/context/PreferencesContext.js +3 -3
- package/lib/component/context/PreferencesContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +3 -4
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/context/SortSpectraContext.js +1 -1
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts +8 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +29 -2
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Alert.js.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.js.map +1 -1
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/DialogManager.d.ts +3 -4
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.js.map +1 -1
- package/lib/component/elements/DraggableDialog.js +0 -2
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/EditableColumn.d.ts.map +1 -1
- package/lib/component/elements/EditableColumn.js +2 -0
- package/lib/component/elements/EditableColumn.js.map +1 -1
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/Input2.d.ts +2 -1
- package/lib/component/elements/Input2.d.ts.map +1 -1
- package/lib/component/elements/Input2.js.map +1 -1
- package/lib/component/elements/InputRange.js.map +1 -1
- package/lib/component/elements/MoleculeSelection.js.map +1 -1
- package/lib/component/elements/NextPrev.d.ts +0 -1
- package/lib/component/elements/NextPrev.d.ts.map +1 -1
- package/lib/component/elements/NextPrev.js +5 -21
- package/lib/component/elements/NextPrev.js.map +1 -1
- package/lib/component/elements/NumberInput2.js.map +1 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +2 -3
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +4 -4
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.js +3 -5
- package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +2 -2
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js.map +1 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +2 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts.map +1 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +5 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.js.map +1 -1
- package/lib/component/elements/ReadOnly.js.map +1 -1
- package/lib/component/elements/SVGButton.d.ts +2 -2
- package/lib/component/elements/SVGButton.d.ts.map +1 -1
- package/lib/component/elements/SVGButton.js +2 -1
- package/lib/component/elements/SVGButton.js.map +1 -1
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +1 -2
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts +6 -6
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select.js +5 -4
- package/lib/component/elements/Select.js.map +1 -1
- package/lib/component/elements/Select2.d.ts.map +1 -1
- package/lib/component/elements/Select2.js.map +1 -1
- package/lib/component/elements/Tab/Tab.js.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts +2 -5
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +3 -8
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/TabTitle.js.map +1 -1
- package/lib/component/elements/TabsProvider.js.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.d.ts +4 -3
- package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
- package/lib/component/elements/ToolbarPopoverItem.js +13 -5
- package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
- package/lib/component/elements/draggable/useDraggable.d.ts +2 -1
- package/lib/component/elements/draggable/useDraggable.d.ts.map +1 -1
- package/lib/component/elements/draggable/useDraggable.js +2 -2
- package/lib/component/elements/draggable/useDraggable.js.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts +2 -6
- package/lib/component/elements/dropDownButton/DropDownButton.d.ts.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownButton.js +4 -4
- package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownList.d.ts +3 -3
- package/lib/component/elements/dropDownButton/DropDownList.d.ts.map +1 -1
- package/lib/component/elements/dropDownButton/DropDownList.js +3 -3
- package/lib/component/elements/dropDownButton/DropDownList.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +2 -2
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/units.d.ts.map +1 -1
- package/lib/component/elements/export/units.js.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts +2 -2
- package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
- package/lib/component/elements/pdnd.cjs +3 -1
- package/lib/component/elements/pdnd.cjs.map +1 -1
- package/lib/component/elements/pdnd.d.cts.map +1 -1
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js +2 -2
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
- package/lib/component/header/Zones2DOptionPanel.js.map +1 -1
- package/lib/component/highlight/index.d.ts +2 -18
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +1 -18
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/useActiveNucleusTab.d.ts +2 -0
- package/lib/component/hooks/useActiveNucleusTab.d.ts.map +1 -0
- package/lib/component/hooks/useActiveNucleusTab.js +6 -0
- package/lib/component/hooks/useActiveNucleusTab.js.map +1 -0
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js +20 -16
- package/lib/component/hooks/useActiveSpectrumRangesViewState.js.map +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.d.ts +2 -2
- package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
- package/lib/component/hooks/useCheckToolsVisibility.js +2 -1
- package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +1 -1
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useDialogToggle.d.ts +1 -1
- package/lib/component/hooks/useDialogToggle.d.ts.map +1 -1
- package/lib/component/hooks/useDialogToggle.js +2 -7
- package/lib/component/hooks/useDialogToggle.js.map +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts.map +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.js +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.js.map +1 -1
- package/lib/component/hooks/useResizerStatus.d.ts +2 -2
- package/lib/component/hooks/useResizerStatus.d.ts.map +1 -1
- package/lib/component/hooks/useResizerStatus.js.map +1 -1
- package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +1 -9
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
- package/lib/component/hooks/useTableSortBy.js +10 -16
- package/lib/component/hooks/useTableSortBy.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts +4 -0
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -0
- package/lib/component/hooks/useTextMetrics.js +21 -0
- package/lib/component/hooks/useTextMetrics.js.map +1 -0
- package/lib/component/hooks/useToggleSpectraVisibility.d.ts.map +1 -1
- package/lib/component/hooks/useToggleSpectraVisibility.js +2 -2
- package/lib/component/hooks/useToggleSpectraVisibility.js.map +1 -1
- package/lib/component/hooks/useToolsFunctions.d.ts +2 -1
- package/lib/component/hooks/useToolsFunctions.d.ts.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/hooks/useTriggerNewAssignmentLabel.d.ts.map +1 -1
- package/lib/component/hooks/useTriggerNewAssignmentLabel.js.map +1 -1
- package/lib/component/hooks/useXScale.d.ts +1 -1
- package/lib/component/hooks/useXScale.d.ts.map +1 -1
- package/lib/component/hooks/useXYReduce.d.ts +2 -6
- package/lib/component/hooks/useXYReduce.d.ts.map +1 -1
- package/lib/component/hooks/useXYReduce.js +1 -6
- package/lib/component/hooks/useXYReduce.js.map +1 -1
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/modal/EditPeakShapeModal.js +2 -2
- package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +1 -1
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js +2 -0
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/PredictSpectraModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/PublicationStringModal.js +58 -23
- package/lib/component/modal/PublicationStringModal.js.map +1 -1
- package/lib/component/modal/SaveAsModal.js +3 -4
- package/lib/component/modal/SaveAsModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +5 -11
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.js +2 -0
- package/lib/component/modal/changeSum/ChangeSumModalContents.js.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.d.ts.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js +2 -0
- package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +2 -2
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +2 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.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 +2 -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.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 +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/editZone/EditZoneModal.d.ts +5 -0
- package/lib/component/modal/editZone/EditZoneModal.d.ts.map +1 -1
- package/lib/component/modal/editZone/EditZoneModal.js.map +1 -1
- package/lib/component/modal/editZone/SignalsForm.d.ts.map +1 -1
- package/lib/component/modal/editZone/SignalsForm.js +6 -2
- package/lib/component/modal/editZone/SignalsForm.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +1 -0
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +15 -6
- package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
- package/lib/component/modal/setting/WorkspaceItem.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +2 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +19 -10
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +2 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +3 -3
- package/lib/component/modal/setting/settings-tabs/NucleiTabContent.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 +2 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +5 -5
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts +1 -2
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +1 -2
- package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +4 -3
- package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +4 -2
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculeHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +2 -0
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +34 -7
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +8 -2
- package/lib/component/panels/MoleculesPanel/Utilities.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +3 -6
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/Panels.d.ts +2 -3
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +1 -1
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/PanelsBar.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js +4 -4
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +2 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +2 -2
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +4 -4
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +1 -2
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useMapRanges.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js +3 -3
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +16 -17
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js +1 -3
- package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/processSnapPlot.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +3 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +2 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +9 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +10 -11
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +18 -10
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +2 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +3 -2
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +10 -11
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +2 -5
- package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +8 -9
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +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/ActionsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +4 -5
- package/lib/component/panels/ZonesPanel/ZonesPanel.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js +1 -2
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +4 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +6 -4
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/MultiplicityUtilities.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +3 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +10 -10
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +7 -5
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +6 -6
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +4 -3
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/index.d.ts +2 -26
- package/lib/component/panels/filtersPanel/Filters/index.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/index.js +1 -0
- package/lib/component/panels/filtersPanel/Filters/index.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +3 -2
- 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/MultipleSpectraAnalysisTable.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +9 -6
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +2 -0
- package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +3 -1
- 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/PredictionPreferences.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +11 -10
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +7 -6
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +19 -19
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +12 -11
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +12 -11
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js +3 -3
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js +3 -0
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +2 -1
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +5 -4
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +2 -2
- 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 +13 -6
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +13 -24
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/utilities/deepReplaceDiaIDs.d.ts +1 -1
- package/lib/component/reducer/actions/utilities/deepReplaceDiaIDs.d.ts.map +1 -1
- package/lib/component/reducer/actions/utilities/deepReplaceDiaIDs.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +2 -8
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +0 -6
- 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.map +1 -1
- package/lib/component/reducer/helper/get2DRange.d.ts.map +1 -1
- package/lib/component/reducer/helper/get2DRange.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js.map +1 -1
- package/lib/component/reducer/helper/getRange.d.ts.map +1 -1
- package/lib/component/reducer/helper/getRange.js.map +1 -1
- package/lib/component/reducer/helper/getSpectrum.d.ts +6 -3
- package/lib/component/reducer/helper/getSpectrum.d.ts.map +1 -1
- package/lib/component/reducer/helper/getSpectrum.js +1 -0
- package/lib/component/reducer/helper/getSpectrum.js.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.js +5 -5
- package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
- package/lib/component/reducer/preferences/actions/changeExportAcsSettings.d.ts +4 -0
- package/lib/component/reducer/preferences/actions/changeExportAcsSettings.d.ts.map +1 -0
- package/lib/component/reducer/preferences/actions/changeExportAcsSettings.js +10 -0
- package/lib/component/reducer/preferences/actions/changeExportAcsSettings.js.map +1 -0
- package/lib/component/reducer/preferences/actions/initPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/initPreferences.js.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 +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.d.ts +2 -2
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/setPanelsPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/actions/setPreferences.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/setPreferences.js.map +1 -1
- package/lib/component/reducer/preferences/actions/setWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.js +6 -6
- package/lib/component/reducer/preferences/actions/togglePanel.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +11 -8
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +3 -0
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +2 -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 +2 -2
- 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.js +2 -2
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +7 -2
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/toolbar/ToolTypes.js +0 -42
- package/lib/component/toolbar/ToolTypes.js.map +1 -1
- package/lib/component/toolbar/toolbarMenu.d.ts.map +1 -1
- package/lib/component/toolbar/toolbarMenu.js +25 -17
- package/lib/component/toolbar/toolbarMenu.js.map +1 -1
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/Events.js.map +1 -1
- package/lib/component/utility/LocalStorage.d.ts.map +1 -1
- package/lib/component/utility/LocalStorage.js.map +1 -1
- 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 +8 -8
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/extractChemicalElement.js +1 -1
- package/lib/component/utility/extractChemicalElement.js.map +1 -1
- package/lib/component/utility/formatNumber.d.ts +1 -1
- package/lib/component/utility/formatNumber.d.ts.map +1 -1
- package/lib/component/utility/forwardRef.d.ts +3 -0
- package/lib/component/utility/forwardRef.d.ts.map +1 -0
- package/lib/component/utility/forwardRef.js +6 -0
- package/lib/component/utility/forwardRef.js.map +1 -0
- package/lib/component/utility/getSpectraObjectPaths.d.ts +1 -1
- package/lib/component/utility/getSpectraObjectPaths.js.map +1 -1
- package/lib/component/utility/getUniqueNuclei.js.map +1 -1
- package/lib/component/utility/groupByInfoKey.d.ts +4 -0
- package/lib/component/utility/groupByInfoKey.d.ts.map +1 -0
- package/lib/component/utility/{GroupByInfoKey.js → groupByInfoKey.js} +8 -6
- package/lib/component/utility/groupByInfoKey.js.map +1 -0
- package/lib/component/utility/isHomoNuclear.d.ts +2 -0
- package/lib/component/utility/isHomoNuclear.d.ts.map +1 -0
- package/lib/component/utility/isHomoNuclear.js +11 -0
- package/lib/component/utility/isHomoNuclear.js.map +1 -0
- package/lib/component/utility/nucleusToString.d.ts.map +1 -1
- package/lib/component/utility/nucleusToString.js.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +16 -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 +3 -2
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +2 -7
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +11 -11
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/constants/References.d.ts +4 -1
- package/lib/data/constants/References.d.ts.map +1 -1
- package/lib/data/constants/References.js +24 -22
- package/lib/data/constants/References.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +2 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.js +2 -2
- package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js +3 -3
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts +4 -0
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.js +1 -1
- package/lib/data/data1d/Spectrum1D/isRangeAssigned.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +3 -3
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.js.map +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/optimizePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.js +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/createRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +2 -0
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
- package/lib/data/data1d/database.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +9 -15
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +30 -19
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +2 -0
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js +2 -2
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZones.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/getFilterLabel.js +8 -2
- package/lib/data/getFilterLabel.js.map +1 -1
- package/lib/data/initiateFilters.d.ts +1 -2
- package/lib/data/initiateFilters.d.ts.map +1 -1
- package/lib/data/initiateFilters.js.map +1 -1
- package/lib/data/matrixGeneration.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +6 -0
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +6 -0
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/parseMeta/mapErrors.d.ts +1 -1
- package/lib/data/parseMeta/mapErrors.d.ts.map +1 -1
- package/lib/data/parseMeta/mapErrors.js.map +1 -1
- package/lib/data/types/data1d/index.js +1 -1
- package/lib/data/types/data1d/index.js.map +1 -1
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/data/utilities/FindUtilities.js +5 -0
- package/lib/data/utilities/FindUtilities.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.js.map +1 -1
- package/lib/data/utilities/convertSpectraListToObject.d.ts.map +1 -1
- package/lib/data/utilities/convertSpectraListToObject.js.map +1 -1
- package/lib/data/utilities/getAtom.js +1 -1
- package/lib/data/utilities/getAtom.js.map +1 -1
- package/lib/data/utilities/getAtomsFromMF.js.map +1 -1
- package/lib/data/utilities/removeByPaths.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js +12 -4
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.js +2 -0
- package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +62 -53
- package/src/component/1d/BrushTracker1D.tsx +8 -8
- package/src/component/1d/ExclusionZoneAnnotation.tsx +3 -3
- package/src/component/1d/FloatPublicationString.tsx +14 -18
- package/src/component/1d/FloatingRanges.tsx +4 -10
- package/src/component/1d/FooterBanner.tsx +2 -2
- package/src/component/1d/Line.tsx +2 -2
- package/src/component/1d/PredictionErrorsNotations.tsx +2 -2
- package/src/component/1d/SimilarityTree.tsx +2 -2
- package/src/component/1d/XAxis1D.tsx +3 -3
- package/src/component/1d/database/DatabaseElements.tsx +2 -5
- package/src/component/1d/database/DatabaseSpectrum.tsx +3 -6
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +3 -6
- package/src/component/1d/inset/DraggableInset.tsx +155 -72
- package/src/component/1d/inset/InsetViewerRoot.tsx +2 -1
- package/src/component/1d/integral/IntegralResizable.tsx +3 -3
- package/src/component/1d/jCouplingGraph/JGraph.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraphContext.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +1 -1
- package/src/component/1d/matrix/Boxplot.tsx +10 -9
- package/src/component/1d/matrix/Stocsy.tsx +11 -8
- package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotations.tsx +147 -22
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +7 -10
- package/src/component/1d/peaks/PeakEditionManager.tsx +12 -6
- package/src/component/1d/peaks/Peaks.tsx +42 -36
- package/src/component/1d/ranges/Atoms.tsx +5 -1
- package/src/component/1d/ranges/Range.tsx +4 -3
- package/src/component/1d/ranges/Ranges.tsx +13 -14
- package/src/component/1d/tool/BaseLineZones.tsx +1 -1
- package/src/component/1d/tool/PeakPointer.tsx +8 -7
- package/src/component/1d/utilities/intersectionResolver.ts +11 -11
- package/src/component/1d/utilities/scale.ts +1 -1
- package/src/component/1d-2d/FieldEdition.tsx +7 -11
- package/src/component/1d-2d/components/ClipPathContainer.tsx +3 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +2 -5
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +5 -6
- package/src/component/1d-2d/tools/CrossLinePointer.tsx +0 -1
- package/src/component/2d/1d-tracer/Left1DChart.tsx +2 -2
- package/src/component/2d/1d-tracer/Top1DChart.tsx +2 -2
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +2 -5
- package/src/component/2d/BrushTracker2D.tsx +3 -2
- package/src/component/2d/FooterBanner.tsx +12 -6
- package/src/component/2d/SignalDeltaLine.tsx +5 -4
- package/src/component/2d/tools/XYLabelPointer.tsx +11 -5
- package/src/component/2d/utilities/DimensionLayout.ts +14 -14
- package/src/component/2d/utilities/extractSpectrumSignals.ts +2 -0
- package/src/component/2d/utilities/scale.ts +8 -4
- package/src/component/2d/zones/Signal.tsx +16 -21
- package/src/component/2d/zones/SignalCrosshair.tsx +1 -3
- package/src/component/2d/zones/SignalsGuideLines.tsx +72 -26
- package/src/component/2d/zones/Zone.tsx +23 -18
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +5 -6
- package/src/component/EventsTrackers/BrushTracker.tsx +6 -6
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +15 -15
- package/src/component/EventsTrackers/MouseTracker.tsx +2 -2
- package/src/component/SVGTable.tsx +3 -3
- package/src/component/assignment/AssignmentsContext.ts +2 -0
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/context/FilterSyncOptionsContext.tsx +2 -2
- package/src/component/context/LoggerContext.tsx +2 -2
- package/src/component/context/PreferencesContext.tsx +9 -4
- package/src/component/context/ScaleContext.tsx +3 -2
- package/src/component/context/SortSpectraContext.tsx +2 -2
- package/src/component/elements/ActionsButtonsPopover.tsx +64 -4
- package/src/component/elements/Alert.tsx +1 -1
- package/src/component/elements/Button.tsx +1 -1
- package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
- package/src/component/elements/D3Axis.tsx +1 -1
- package/src/component/elements/DialogManager.tsx +3 -2
- package/src/component/elements/DraggableDialog.tsx +0 -2
- package/src/component/elements/EditableColumn.tsx +3 -1
- package/src/component/elements/Input.tsx +2 -2
- package/src/component/elements/Input2.tsx +8 -14
- package/src/component/elements/InputRange.tsx +3 -3
- package/src/component/elements/MoleculeSelection.tsx +1 -1
- package/src/component/elements/NextPrev.tsx +5 -29
- package/src/component/elements/NumberInput2.tsx +2 -2
- package/src/component/elements/ReactTable/Elements/EmptyDataRow.tsx +1 -1
- package/src/component/elements/ReactTable/Elements/ReactTableHeader.tsx +2 -2
- package/src/component/elements/ReactTable/Elements/ReactTableRow.tsx +4 -7
- package/src/component/elements/ReactTable/ReactTable.tsx +11 -14
- package/src/component/elements/ReactTable/utility/addCustomColumn.tsx +4 -3
- package/src/component/elements/ReactTable/utility/useRowSpan.ts +15 -9
- package/src/component/elements/ReadOnly.tsx +1 -1
- package/src/component/elements/SVGButton.tsx +11 -9
- package/src/component/elements/Sections.tsx +2 -4
- package/src/component/elements/Select.tsx +17 -18
- package/src/component/elements/Select2.tsx +1 -1
- package/src/component/elements/Tab/Tab.tsx +3 -3
- package/src/component/elements/Tab/Tabs.tsx +6 -9
- package/src/component/elements/TabTitle.tsx +1 -1
- package/src/component/elements/TabsProvider.tsx +1 -1
- package/src/component/elements/ToolbarPopoverItem.tsx +44 -9
- package/src/component/elements/draggable/useDraggable.ts +9 -9
- package/src/component/elements/dropDownButton/DropDownButton.tsx +6 -16
- package/src/component/elements/dropDownButton/DropDownList.tsx +5 -15
- package/src/component/elements/export/ExportManager.tsx +6 -3
- package/src/component/elements/export/ExportOptionsModal.tsx +2 -2
- package/src/component/elements/export/units.ts +1 -1
- package/src/component/elements/export/useExportConfigurer.tsx +3 -3
- package/src/component/elements/pdnd.cts +3 -1
- package/src/component/elements/print/PrintContent.tsx +1 -1
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +3 -2
- package/src/component/header/Header.tsx +1 -1
- package/src/component/header/RangesPickingOptionPanel.tsx +1 -1
- package/src/component/header/Zones2DOptionPanel.tsx +2 -2
- package/src/component/highlight/index.tsx +18 -22
- package/src/component/hooks/useActiveNucleusTab.ts +10 -0
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +24 -16
- package/src/component/hooks/useActiveSpectrumZonesViewState.ts +1 -1
- package/src/component/hooks/useCheckToolsVisibility.ts +7 -4
- package/src/component/hooks/useCombinedRefs.ts +1 -1
- package/src/component/hooks/useDialogToggle.ts +10 -8
- package/src/component/hooks/useFormatNumberByNucleus.ts +4 -3
- package/src/component/hooks/useIntegralPath.ts +1 -1
- package/src/component/hooks/useResizerStatus.ts +2 -3
- package/src/component/hooks/useSVGUnitConverter.ts +1 -1
- package/src/component/hooks/useSaveSettings.tsx +3 -11
- package/src/component/hooks/useTableSortBy.tsx +15 -22
- package/src/component/hooks/useTextMetrics.ts +27 -0
- package/src/component/hooks/useToggleSpectraVisibility.tsx +3 -7
- package/src/component/hooks/useToolsFunctions.ts +2 -2
- package/src/component/hooks/useTriggerNewAssignmentLabel.ts +1 -1
- package/src/component/hooks/useXScale.ts +1 -1
- package/src/component/hooks/useXYReduce.ts +3 -9
- package/src/component/main/NMRiumViewer.tsx +1 -1
- package/src/component/modal/EditPeakShapeModal.tsx +4 -8
- package/src/component/modal/ExportAsJcampModal.tsx +1 -1
- package/src/component/modal/ImportPublicationStringModal.tsx +10 -6
- package/src/component/modal/LoadJCAMPModal.tsx +1 -1
- package/src/component/modal/LogsHistoryModal.tsx +6 -5
- package/src/component/modal/MultipletAnalysisModal.tsx +3 -1
- package/src/component/modal/PredictSpectraModal.tsx +1 -1
- package/src/component/modal/PublicationStringModal.tsx +82 -42
- package/src/component/modal/SaveAsModal.tsx +8 -8
- package/src/component/modal/aboutUs/AboutUsModal.tsx +8 -21
- package/src/component/modal/changeSum/ChangeSumModalContents.tsx +4 -2
- package/src/component/modal/changeSum/SelectMolecule.tsx +3 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +5 -8
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +3 -2
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +4 -9
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +5 -4
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +17 -14
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +17 -14
- package/src/component/modal/editZone/EditZoneModal.tsx +3 -3
- package/src/component/modal/editZone/SignalsForm.tsx +26 -9
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +8 -7
- package/src/component/modal/setting/GeneralSettings.tsx +51 -33
- package/src/component/modal/setting/WorkspaceItem.tsx +3 -3
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +19 -9
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +25 -17
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +18 -9
- package/src/component/modal/setting/settings-tabs/ImportationFiltersTabContent.tsx +3 -2
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +21 -10
- package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +20 -13
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +13 -3
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +21 -12
- package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +7 -8
- package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +4 -3
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +1 -1
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +2 -2
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +17 -13
- package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +2 -2
- package/src/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.tsx +8 -7
- package/src/component/panels/MatrixGenerationPanel/FiltersOptions.tsx +7 -7
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +17 -4
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +11 -2
- package/src/component/panels/MoleculesPanel/MoleculeHeader.tsx +2 -2
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +4 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +46 -21
- package/src/component/panels/MoleculesPanel/Utilities.ts +10 -5
- package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +5 -12
- package/src/component/panels/Panels.tsx +5 -2
- package/src/component/panels/PanelsBar.tsx +3 -3
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +14 -14
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +2 -2
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +15 -13
- package/src/component/panels/RangesPanel/RangesHeader.tsx +3 -3
- package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
- package/src/component/panels/RangesPanel/RangesPreferences.tsx +2 -2
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +6 -10
- package/src/component/panels/RangesPanel/TableColumns/CouplingColumn.tsx +1 -1
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.tsx +1 -1
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.tsx +1 -2
- package/src/component/panels/RangesPanel/TableColumns/RelativeColumn.tsx +1 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
- package/src/component/panels/RangesPanel/hooks/useEditRangeModal.tsx +3 -3
- package/src/component/panels/RangesPanel/hooks/useMapRanges.ts +1 -1
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +3 -3
- package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +12 -11
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +27 -26
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +4 -5
- 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 +6 -5
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/processSnapPlot.ts +2 -2
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +26 -16
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +35 -23
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +32 -13
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +41 -31
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.tsx +1 -1
- package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +3 -6
- package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +5 -5
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +4 -3
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +16 -20
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +17 -9
- package/src/component/panels/ZonesPanel/TableColumns/ActionsColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -2
- package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +2 -2
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +30 -22
- package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +2 -2
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +1 -1
- package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +2 -1
- package/src/component/panels/accordionItems.tsx +1 -2
- package/src/component/panels/databasePanel/DatabasePanel.tsx +17 -9
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +2 -2
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +2 -2
- package/src/component/panels/databasePanel/DatabaseTable.tsx +16 -10
- package/src/component/panels/extra/utilities/MultiplicityUtilities.ts +2 -2
- package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +2 -2
- package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +9 -8
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +15 -10
- package/src/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.tsx +2 -2
- package/src/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.tsx +2 -2
- package/src/component/panels/filtersPanel/Filters/ShiftOptionsPanel.tsx +3 -3
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +4 -4
- package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +2 -2
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +4 -4
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +17 -17
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +17 -15
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +7 -9
- package/src/component/panels/filtersPanel/Filters/index.tsx +3 -1
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +12 -9
- package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +6 -6
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +7 -6
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +2 -2
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +19 -12
- package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +9 -8
- package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +10 -7
- package/src/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.tsx +2 -0
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +6 -4
- package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +1 -1
- package/src/component/panels/predictionPanel/PredictionPreferences.tsx +2 -2
- package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +1 -1
- package/src/component/panels/spectrumSimulation/SpectrumSimulation.tsx +2 -2
- package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +1 -1
- package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +6 -3
- package/src/component/reducer/Reducer.ts +13 -12
- package/src/component/reducer/actions/DomainActions.ts +45 -37
- package/src/component/reducer/actions/FiltersActions.ts +30 -23
- package/src/component/reducer/actions/InsetActions.ts +13 -16
- package/src/component/reducer/actions/IntegralsActions.ts +6 -5
- package/src/component/reducer/actions/LoadActions.ts +5 -2
- package/src/component/reducer/actions/MoleculeActions.ts +3 -1
- package/src/component/reducer/actions/PeaksActions.ts +12 -4
- package/src/component/reducer/actions/PreferencesActions.ts +2 -2
- package/src/component/reducer/actions/RangesActions.ts +15 -9
- package/src/component/reducer/actions/SpectraActions.ts +16 -12
- package/src/component/reducer/actions/ToolsActions.ts +30 -39
- package/src/component/reducer/actions/utilities/deepReplaceDiaIDs.ts +1 -1
- package/src/component/reducer/helper/Zoom1DManager.ts +3 -10
- package/src/component/reducer/helper/ZoomHistoryManager.ts +5 -5
- package/src/component/reducer/helper/get2DRange.ts +1 -1
- package/src/component/reducer/helper/getActiveSpectraAsObject.ts +1 -1
- package/src/component/reducer/helper/getRange.ts +1 -1
- package/src/component/reducer/helper/getSpectrum.ts +17 -4
- package/src/component/reducer/helper/setRangesViewProperty.ts +8 -5
- package/src/component/reducer/preferences/actions/changeExportAcsSettings.ts +19 -0
- package/src/component/reducer/preferences/actions/initPreferences.ts +3 -3
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +7 -4
- package/src/component/reducer/preferences/actions/setPanelsPreferences.ts +9 -3
- package/src/component/reducer/preferences/actions/setPreferences.ts +1 -1
- package/src/component/reducer/preferences/actions/setWorkspace.ts +1 -1
- package/src/component/reducer/preferences/actions/togglePanel.ts +10 -7
- package/src/component/reducer/preferences/preferencesReducer.ts +24 -14
- package/src/component/reducer/preferences/utilities/initWorkspace.ts +2 -1
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +6 -2
- package/src/component/toolbar/ToolBar.tsx +7 -7
- package/src/component/toolbar/ToolTypes.ts +9 -51
- package/src/component/toolbar/toolbarMenu.tsx +25 -17
- package/src/component/utility/Events.tsx +6 -6
- package/src/component/utility/LocalStorage.ts +5 -5
- package/src/component/utility/export.ts +14 -13
- package/src/component/utility/extractChemicalElement.ts +1 -1
- package/src/component/utility/forwardRef.ts +10 -0
- package/src/component/utility/getSpectraObjectPaths.ts +1 -1
- package/src/component/utility/getUniqueNuclei.ts +1 -1
- package/src/component/utility/groupByInfoKey.ts +34 -0
- package/src/component/utility/isHomoNuclear.ts +11 -0
- package/src/component/utility/nucleusToString.ts +1 -1
- package/src/component/utility/stackOverlappingLabels.ts +1 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +16 -0
- package/src/data/PredictionManager.ts +16 -14
- package/src/data/SpectraManager.ts +20 -15
- package/src/data/constants/References.ts +26 -25
- package/src/data/data1d/Spectrum1D/generateJGraphData.ts +2 -3
- package/src/data/data1d/Spectrum1D/get1DColor.ts +7 -3
- package/src/data/data1d/Spectrum1D/getReferenceShift.ts +8 -4
- package/src/data/data1d/Spectrum1D/isRangeAssigned.ts +2 -2
- package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +10 -4
- package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/createRange.ts +1 -0
- package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +2 -0
- package/src/data/data1d/database.ts +2 -2
- package/src/data/data1d/multipleSpectraAnalysis.ts +57 -29
- package/src/data/data2d/Spectrum2D/contours.ts +3 -1
- package/src/data/data2d/Spectrum2D/get2DColor.ts +8 -4
- package/src/data/data2d/Spectrum2D/getMissingProjection.ts +1 -1
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -1
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +4 -2
- package/src/data/data2d/Spectrum2D/zones/detectZones.ts +4 -1
- package/src/data/data2d/Spectrum2D/zones/detectZonesManual.ts +4 -2
- package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +2 -2
- package/src/data/getFilterLabel.ts +10 -2
- package/src/data/initiateFilters.ts +1 -5
- package/src/data/matrixGeneration.ts +1 -1
- package/src/data/molecules/MoleculeManager.ts +6 -0
- package/src/data/parseMeta/linkMetaWithSpectra.ts +3 -3
- package/src/data/parseMeta/mapErrors.ts +1 -1
- package/src/data/utilities/FindUtilities.ts +5 -0
- package/src/data/utilities/RangeUtilities.ts +1 -1
- package/src/data/utilities/ZoneUtilities.ts +5 -5
- package/src/data/utilities/convertSpectraListToObject.ts +2 -2
- package/src/data/utilities/getAtom.ts +1 -1
- package/src/data/utilities/getAtomsFromMF.ts +1 -1
- package/src/data/utilities/removeByPaths.ts +2 -2
- package/src/utils/clipboard/clipboardComponents.tsx +15 -5
- package/src/utils/clipboard/clipboardHooks.ts +5 -3
- package/src/versionInfo.ts +1 -1
- package/lib/component/hooks/useCanvasContext.d.ts +0 -2
- package/lib/component/hooks/useCanvasContext.d.ts.map +0 -1
- package/lib/component/hooks/useCanvasContext.js +0 -13
- package/lib/component/hooks/useCanvasContext.js.map +0 -1
- package/lib/component/utility/GroupByInfoKey.d.ts +0 -2
- package/lib/component/utility/GroupByInfoKey.d.ts.map +0 -1
- package/lib/component/utility/GroupByInfoKey.js.map +0 -1
- package/lib/component/utility/assert.d.ts +0 -2
- package/lib/component/utility/assert.d.ts.map +0 -1
- package/lib/component/utility/assert.js +0 -6
- package/lib/component/utility/assert.js.map +0 -1
- package/src/component/hooks/useCanvasContext.ts +0 -15
- package/src/component/utility/GroupByInfoKey.ts +0 -29
- package/src/component/utility/assert.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiplicityTree.js","sourceRoot":"","sources":["../../../../src/component/1d/multiplicityTree/MultiplicityTree.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"MultiplicityTree.js","sourceRoot":"","sources":["../../../../src/component/1d/multiplicityTree/MultiplicityTree.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAA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AAE,EAAE,GAAG,OAAO,CAAC;IAC7B,MAAM,EACJ,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,GAChB,GAAG,QAAQ,CAAC;IACb,MAAM,SAAS,GAAG,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,iBAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACzC,IAAI,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;IACnC,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC;QACjD,IAAI,KAAK,GAAG,GAAG,EAAE,CAAC;YAChB,GAAG,GAAG,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,SAAS,CAAC,EAAU,EAAE,UAA2B;IACxD,OAAO,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeakAnnotations.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakAnnotations.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PeakAnnotations.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakAnnotations.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAQ,qBAAqB,EAAe,MAAM,YAAY,CAAC;AAmF3E,iBAAS,eAAe,CAAC,KAAK,EAAE,qBAAqB,2CAyBpD;AA8GD,eAAe,eAAe,CAAC"}
|
|
@@ -2,16 +2,111 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
3
3
|
import { useHighlight } from '../../highlight/index.js';
|
|
4
4
|
import { useActiveSpectrum } from '../../hooks/useActiveSpectrum.js';
|
|
5
|
+
import { useTextMetrics } from "../../hooks/useTextMetrics.js";
|
|
5
6
|
import { formatNumber } from '../../utility/formatNumber.js';
|
|
6
7
|
import { PeakEditionListener } from './PeakEditionManager.js';
|
|
7
8
|
import { getHighlightExtraId, getHighlightSource } from './Peaks.js';
|
|
9
|
+
const textSize = 11;
|
|
10
|
+
const textXOffset = 2;
|
|
11
|
+
const labelHeight = 13;
|
|
12
|
+
function resolvePeaksCluster(overlapPeaksById, cluster) {
|
|
13
|
+
if (cluster.length === 0)
|
|
14
|
+
return;
|
|
15
|
+
let maxPeak = cluster[0];
|
|
16
|
+
for (const p of cluster) {
|
|
17
|
+
if (p.y > maxPeak.y) {
|
|
18
|
+
maxPeak = p;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
for (const p of cluster) {
|
|
22
|
+
overlapPeaksById[p.id] = p.id !== maxPeak.id;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function resolveYOverlaps(overlapPeaksById, inputCluster) {
|
|
26
|
+
let lastLabelPosition = 0;
|
|
27
|
+
let cluster = [];
|
|
28
|
+
const sortedPeaks = inputCluster.toSorted((a, b) => b.y - a.y);
|
|
29
|
+
for (const peak of sortedPeaks) {
|
|
30
|
+
const { yInPixel } = peak;
|
|
31
|
+
const labelPosition = yInPixel;
|
|
32
|
+
const overlapY = Math.abs(labelPosition - lastLabelPosition) < labelHeight;
|
|
33
|
+
if (overlapY) {
|
|
34
|
+
cluster.push(peak);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
resolvePeaksCluster(overlapPeaksById, cluster);
|
|
38
|
+
cluster = [peak];
|
|
39
|
+
}
|
|
40
|
+
lastLabelPosition = labelPosition;
|
|
41
|
+
}
|
|
42
|
+
resolvePeaksCluster(overlapPeaksById, cluster);
|
|
43
|
+
}
|
|
44
|
+
function useDetectPeakOverlaps(peaks, format) {
|
|
45
|
+
const { getTextWidth } = useTextMetrics(textSize);
|
|
46
|
+
const overlapPeaksById = {};
|
|
47
|
+
let cluster = [];
|
|
48
|
+
let lastLabelPosition = 0;
|
|
49
|
+
for (const peak of peaks) {
|
|
50
|
+
const { xInPixel, x } = peak;
|
|
51
|
+
const label = formatNumber(x, format);
|
|
52
|
+
const labelWidth = getTextWidth(label) + textXOffset;
|
|
53
|
+
const labelPosition = xInPixel + labelWidth;
|
|
54
|
+
const overlapX = Math.abs(labelPosition - lastLabelPosition) < labelWidth;
|
|
55
|
+
if (overlapX) {
|
|
56
|
+
// add to current overlap cluster
|
|
57
|
+
cluster.push(peak);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
// resolve the previous cluster
|
|
61
|
+
resolveYOverlaps(overlapPeaksById, cluster);
|
|
62
|
+
// Start a new cluster
|
|
63
|
+
cluster = [peak];
|
|
64
|
+
}
|
|
65
|
+
if (!overlapX) {
|
|
66
|
+
lastLabelPosition = labelPosition;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
resolveYOverlaps(overlapPeaksById, cluster);
|
|
70
|
+
return overlapPeaksById;
|
|
71
|
+
}
|
|
8
72
|
function PeakAnnotations(props) {
|
|
9
73
|
const { peaks, peaksSource, spectrumKey, peakFormat } = props;
|
|
10
74
|
const activeSpectrum = useActiveSpectrum();
|
|
11
75
|
const { shiftY } = useScaleChecked();
|
|
12
|
-
|
|
76
|
+
const overlapPeaksById = useDetectPeakOverlaps(peaks, peakFormat);
|
|
77
|
+
return (_jsx("g", { className: "peaks", children: _jsx("g", { transform: `translate(0,-${(activeSpectrum?.index || 0) * shiftY})`, children: peaks.map((peak) => {
|
|
78
|
+
return (_jsx(PeakAnnotation, { spectrumKey: spectrumKey, peak: peak, color: "#730000", peaksSource: peaksSource, format: peakFormat, isOverlap: overlapPeaksById[peak.id] }, peak.id));
|
|
79
|
+
}) }) }));
|
|
80
|
+
}
|
|
81
|
+
function adjustValue(baseValue, isOverlap) {
|
|
82
|
+
return isOverlap ? baseValue / 2 : baseValue;
|
|
83
|
+
}
|
|
84
|
+
const basePeakYCoordinates = {
|
|
85
|
+
positive: {
|
|
86
|
+
y1: 0,
|
|
87
|
+
y2: -18,
|
|
88
|
+
},
|
|
89
|
+
negative: {
|
|
90
|
+
y1: 10,
|
|
91
|
+
y2: 28,
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
function getLineYCoordinates(sign, isOverlap) {
|
|
95
|
+
const { negative, positive } = basePeakYCoordinates;
|
|
96
|
+
if (sign === -1) {
|
|
97
|
+
const { y1, y2 } = negative;
|
|
98
|
+
return {
|
|
99
|
+
y1: adjustValue(y1, isOverlap),
|
|
100
|
+
y2: adjustValue(y2, isOverlap),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
const { y1, y2 } = positive;
|
|
104
|
+
return {
|
|
105
|
+
y1,
|
|
106
|
+
y2: adjustValue(y2, isOverlap),
|
|
107
|
+
};
|
|
13
108
|
}
|
|
14
|
-
function PeakAnnotation({ peak, spectrumKey, color, peaksSource, format, }) {
|
|
109
|
+
function PeakAnnotation({ peak, spectrumKey, color, peaksSource, format, isOverlap = false, }) {
|
|
15
110
|
const { id, parentKeys, x, y } = peak;
|
|
16
111
|
const sign = Math.sign(y);
|
|
17
112
|
const highlight = useHighlight([id], {
|
|
@@ -24,7 +119,8 @@ function PeakAnnotation({ peak, spectrumKey, color, peaksSource, format, }) {
|
|
|
24
119
|
const { scaleX, scaleY } = useScaleChecked();
|
|
25
120
|
const sx = scaleX()(x);
|
|
26
121
|
const sy = scaleY(spectrumKey)(y) - 5;
|
|
27
|
-
|
|
122
|
+
const { y1, y2 } = getLineYCoordinates(sign, isOverlap);
|
|
123
|
+
return (_jsxs("g", { style: { outline: 'none' }, transform: `translate(${sx}, ${sy})`, onMouseEnter: () => highlight.show(), onMouseLeave: () => highlight.hide(), children: [_jsx("line", { x1: "0", x2: "0", y1: y1, y2: y2, stroke: color, strokeWidth: highlight.isActive ? '3px' : '1px' }), _jsx(PeakEditionListener, { value: x, x: x, y: y, useScaleX: true, useScaleY: true, id: id, dy: sign === -1 ? 0 : -26, children: !isOverlap && (_jsx("text", { x: "0", y: sign === -1 ? 26 : -10, dy: "0", dx: `${textXOffset}px`, fontSize: `${textSize}px`, fill: color, children: formatNumber(x, format) })) })] }));
|
|
28
124
|
}
|
|
29
125
|
export default PeakAnnotations;
|
|
30
126
|
//# sourceMappingURL=PeakAnnotations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeakAnnotations.js","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakAnnotations.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErE,SAAS,eAAe,CAAC,KAA4B;IACnD,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC9D,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"PeakAnnotations.js","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakAnnotations.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,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3,"file":"PeakAnnotationsSpreadMode.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKvD,OAAO,KAAK,EAAE,qBAAqB,EAAe,MAAM,YAAY,CAAC;AAgDrE,UAAU,8BACR,SAAQ,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,iBAAS,yBAAyB,CAAC,KAAK,EAAE,8BAA8B,
|
|
1
|
+
{"version":3,"file":"PeakAnnotationsSpreadMode.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKvD,OAAO,KAAK,EAAE,qBAAqB,EAAe,MAAM,YAAY,CAAC;AAgDrE,UAAU,8BACR,SAAQ,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,iBAAS,yBAAyB,CAAC,KAAK,EAAE,8BAA8B,2CA0GvE;;AA4DD,wBAA+C"}
|
|
@@ -69,7 +69,7 @@ function PeakAnnotationsSpreadMode(props) {
|
|
|
69
69
|
},
|
|
70
70
|
];
|
|
71
71
|
const mapPeaks = resolve(peaks, {
|
|
72
|
-
key: '
|
|
72
|
+
key: 'xInPixel',
|
|
73
73
|
width: notationWidth,
|
|
74
74
|
margin: notationMargin,
|
|
75
75
|
groupMargin: 10,
|
|
@@ -82,15 +82,11 @@ function PeakAnnotationsSpreadMode(props) {
|
|
|
82
82
|
if (marginTop < 0) {
|
|
83
83
|
y = roundedBoxHeight;
|
|
84
84
|
}
|
|
85
|
-
return (_jsx(ActionsButtonsPopover, { targetTagName: "g", buttons: actionsButtons,
|
|
86
|
-
offset: {
|
|
87
|
-
data: { x: 0, y },
|
|
88
|
-
},
|
|
89
|
-
}, children: _jsx("g", { className: "peaks", children: _jsxs("g", { transform: `translate(0,${y})`, style: { visibility: boxSizeHeight > 0 ? 'visible' : 'hidden' }, children: [_jsx("rect", { "data-no-export": "true", width: "100%", y: -roundedBoxHeight / 2, height: roundedBoxHeight, fill: isDragActive ? 'white' : 'transparent', opacity: isDragActive ? 0.9 : 0 }), _jsx("g", { ref: ref, children: mapPeaks.map((group) => {
|
|
85
|
+
return (_jsx(ActionsButtonsPopover, { targetTagName: "g", buttons: actionsButtons, direction: "row", ...(isDragActive && { isOpen: true }), y: y, offsetY: -20, offsetXMode: "cursor", autoFlip: false, children: _jsx("g", { className: "peaks", children: _jsxs("g", { transform: `translate(0,${y})`, style: { visibility: boxSizeHeight > 0 ? 'visible' : 'hidden' }, children: [_jsx("rect", { "data-no-export": "true", width: "100%", y: -roundedBoxHeight / 2, height: roundedBoxHeight, fill: isDragActive ? 'white' : 'transparent', opacity: isDragActive ? 0.9 : 0 }), _jsx("g", { ref: ref, children: mapPeaks.map((group) => {
|
|
90
86
|
return (_jsx("g", { transform: `translate(${group.meta.groupStartX},0)`, children: group.group.map((item, index) => {
|
|
91
|
-
const { id, x: value,
|
|
87
|
+
const { id, x: value, xInPixel, parentKeys } = item;
|
|
92
88
|
const startX = index * (notationWidth + notationMargin);
|
|
93
|
-
const x =
|
|
89
|
+
const x = xInPixel - group.meta.groupStartX;
|
|
94
90
|
return (_jsx(PeakAnnotation, { startX: startX, x: x, id: id, parentKeys: parentKeys, value: value, format: peakFormat, color: spectrumColor, peakEditionFieldPosition: {
|
|
95
91
|
x: group.meta.groupStartX + startX,
|
|
96
92
|
y,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeakAnnotationsSpreadMode.js","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx"],"names":[],"mappings":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CAAC,GACvB,GACa,EACtB,eACE,CAAC,EAAE,KAAK,MAAM,YAAY,CAAC,SAAS,EACpC,MAAM,EAAE,KAAK,EACb,IAAI,EAAC,aAAa,EAClB,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAC/C,IACA,CACL,CAAC;AACJ,CAAC;AAED,eAAe,IAAI,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
interface PeakEditionListenerProps {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
@@ -9,9 +9,7 @@ interface PeakEditionListenerProps {
|
|
|
9
9
|
value: number;
|
|
10
10
|
id: string;
|
|
11
11
|
}
|
|
12
|
-
export declare function PeakEditionProvider({ children }:
|
|
13
|
-
children: any;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function PeakEditionProvider({ children }: Required<PropsWithChildren>): import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
export declare function PeakEditionListener(props: PeakEditionListenerProps & {
|
|
16
14
|
children: ReactNode;
|
|
17
15
|
}): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeakEditionManager.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakEditionManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PeakEditionManager.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/PeakEditionManager.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAwBzE,UAAU,wBAAwB;IAChC,CAA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
}
|
|
8
8
|
interface SpreadPeak1D extends Peak1DWithParentKeys {
|
|
9
|
-
|
|
9
|
+
xInPixel: number;
|
|
10
|
+
yInPixel: number;
|
|
10
11
|
}
|
|
11
12
|
interface SpreadNMRPeak1D extends NMRPeak1DWithParentKeys {
|
|
12
|
-
|
|
13
|
+
xInPixel: number;
|
|
14
|
+
yInPixel: number;
|
|
13
15
|
}
|
|
14
16
|
export type Peak = Required<SpreadPeak1D | SpreadNMRPeak1D>;
|
|
15
17
|
export type PeaksSource = 'peaks' | 'ranges';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Peaks.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/Peaks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAS,MAAM,qBAAqB,CAAC;AAepE,UAAU,oBAAqB,SAAQ,MAAM;IAC3C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AACD,UAAU,uBAAwB,SAAQ,SAAS;IACjD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,UAAU,YAAa,SAAQ,oBAAoB;IACjD,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Peaks.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/Peaks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAS,MAAM,qBAAqB,CAAC;AAepE,UAAU,oBAAqB,SAAQ,MAAM;IAC3C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AACD,UAAU,uBAAwB,SAAQ,SAAS;IACjD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,UAAU,YAAa,SAAQ,oBAAoB;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,UAAU,eAAgB,SAAQ,uBAAuB;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC,YAAY,GAAG,eAAe,CAAC,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE7C,UAAU,cAAc;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,WAAW,yBAE1D;AAED,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,WAAW,EACxB,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,MAAM,EAAE,UAGrB;AA4GD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,GAAG,kDA6DvC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useMemo } from 'react';
|
|
3
3
|
import { useChartData } from '../../context/ChartContext.js';
|
|
4
|
+
import { useScaleChecked } from "../../context/ScaleContext.js";
|
|
4
5
|
import { useActiveSpectrumPeaksViewState } from '../../hooks/useActiveSpectrumPeaksViewState.js';
|
|
5
6
|
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
6
7
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
7
8
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
8
|
-
import { useScaleX } from '../utilities/scale.js';
|
|
9
9
|
import PeakAnnotations from './PeakAnnotations.js';
|
|
10
10
|
import PeakAnnotationsSpreadMode from './PeakAnnotationsSpreadMode.js';
|
|
11
11
|
export function getHighlightSource(peaksSource) {
|
|
@@ -25,34 +25,38 @@ function flatRangesPeaks(ranges) {
|
|
|
25
25
|
}
|
|
26
26
|
return results;
|
|
27
27
|
}
|
|
28
|
-
function mapPeaks(peaks,
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
function mapPeaks(peaks, options) {
|
|
29
|
+
const { scaleX, scaleY } = options;
|
|
30
|
+
const mappedPeaks = peaks.map((peak) => ({
|
|
31
31
|
...peak,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
xInPixel: scaleX(peak.x),
|
|
33
|
+
yInPixel: scaleY(peak.y),
|
|
34
|
+
}));
|
|
35
|
+
return mappedPeaks;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
37
|
+
function sortPeaks(peaks) {
|
|
38
|
+
return peaks.toSorted((a, b) => b.x - a.x);
|
|
39
|
+
}
|
|
40
|
+
function useMapPeaks(spectrum, peaksSource) {
|
|
41
|
+
const { scaleX, scaleY } = useScaleChecked();
|
|
38
42
|
return useMemo(() => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return flatRangesPeaks(spectrum.ranges.values);
|
|
46
|
-
case 'Source[ranges]_Mode[spread]':
|
|
47
|
-
return mapPeaks(flatRangesPeaks(spectrum.ranges.values), (val) => scaleX()(val));
|
|
48
|
-
default:
|
|
49
|
-
return [];
|
|
43
|
+
let sourcePeaks = [];
|
|
44
|
+
if (peaksSource === 'peaks') {
|
|
45
|
+
sourcePeaks = spectrum.peaks.values;
|
|
46
|
+
}
|
|
47
|
+
if (peaksSource === 'ranges') {
|
|
48
|
+
sourcePeaks = flatRangesPeaks(spectrum.ranges.values);
|
|
50
49
|
}
|
|
51
|
-
|
|
50
|
+
const sortedPeaks = sortPeaks(sourcePeaks);
|
|
51
|
+
return mapPeaks(sortedPeaks, {
|
|
52
|
+
scaleX: (val) => scaleX()(val),
|
|
53
|
+
scaleY: (val) => scaleY()(val),
|
|
54
|
+
});
|
|
55
|
+
}, [peaksSource, spectrum, scaleX, scaleY]);
|
|
52
56
|
}
|
|
53
57
|
function InnerPeaks(props) {
|
|
54
58
|
const { peaksSource, spectrum, mode, displayerKey, xDomain, height, margin, peakFormat, } = props;
|
|
55
|
-
const peaks = useMapPeaks(spectrum,
|
|
59
|
+
const peaks = useMapPeaks(spectrum, peaksSource);
|
|
56
60
|
if (mode === 'spread') {
|
|
57
61
|
return (_jsx(PeakAnnotationsSpreadMode, { peaksSource: peaksSource, peaks: peaks, spectrumKey: spectrum.id, spectrumColor: spectrum.display.color, peakFormat: peakFormat, displayerKey: displayerKey, height: height, margin: margin }));
|
|
58
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Peaks.js","sourceRoot":"","sources":["../../../../src/component/1d/peaks/Peaks.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,WAAW,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Peaks.js","sourceRoot":"","sources":["../../../../src/component/1d/peaks/Peaks.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAAgC,CAAC;AACjE,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,gCAAgC,EAA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|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Atoms.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Atoms.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Atoms.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Atoms.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAiDjD,UAAU,UAAU;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;CACX;AACD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,2CA6BtC"}
|
|
@@ -31,7 +31,11 @@ function useAtoms(range) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
if (atoms.length > 0) {
|
|
34
|
-
|
|
34
|
+
atoms.sort((a, b) => a - b);
|
|
35
|
+
atomsList.push({
|
|
36
|
+
id,
|
|
37
|
+
atoms: Array.from(new Set(atoms)),
|
|
38
|
+
});
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
return atomsList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Atoms.js","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Atoms.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,MAAM,QAAQ,GAAG,EAAE,CAAC;AACpB,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,SAAS,SAAS,CAAC,KAAY;IAC7B,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,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@@
|
|
|
1
|
-
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Range.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAqC9D,UAAU,UAAU;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,yBAAyB,EAAE,MAAM,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;CACxB;AAID,iBAAS,KAAK,CAAC,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Range.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAqC9D,UAAU,UAAU;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,yBAAyB,EAAE,MAAM,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;CACxB;AAID,iBAAS,KAAK,CAAC,OAAO,EAAE,UAAU,2CAsNjC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -14,7 +14,7 @@ import { useShareData } from '../../context/ShareDataContext.js';
|
|
|
14
14
|
import { ActionsButtonsPopover } from '../../elements/ActionsButtonsPopover.js';
|
|
15
15
|
import { useDialogData } from '../../elements/DialogManager.js';
|
|
16
16
|
import { ResizerWithScale } from '../../elements/ResizerWithScale.js';
|
|
17
|
-
import {
|
|
17
|
+
import { useHighlight } from '../../highlight/index.js';
|
|
18
18
|
import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
19
19
|
import { useHighlightColor } from '../../hooks/useHighlightColor.js';
|
|
20
20
|
import { useResizerStatus } from '../../hooks/useResizerStatus.js';
|
|
@@ -37,7 +37,7 @@ function Range(options) {
|
|
|
37
37
|
const assignmentData = useAssignmentContext();
|
|
38
38
|
const assignmentRange = useAssignment(id);
|
|
39
39
|
const highlightRange = useHighlight([id].concat(assignmentRange.assignedDiaIds?.x || []).concat(filterAssignedIDs(assignmentData.data, signals.map((_signal) => _signal.id))), {
|
|
40
|
-
type:
|
|
40
|
+
type: 'RANGE',
|
|
41
41
|
extra: { id, spectrumID: spectrum.id },
|
|
42
42
|
});
|
|
43
43
|
const scaleX = useScaleX();
|
|
@@ -132,7 +132,7 @@ function Range(options) {
|
|
|
132
132
|
const isOpen = isAssignBtnTrigged.current ? isAssignmentActive : undefined;
|
|
133
133
|
return (_jsx(ActionsButtonsPopover, { targetTagName: "g", isOpen: isOpen, buttons: actionsButtons, space: 2, disabled: isInset, onClosed: () => {
|
|
134
134
|
isAssignBtnTrigged.current = false;
|
|
135
|
-
}, children: _jsx("g", { "data-testid": "range", style: { outline: 'none' }, onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler, children: _jsx(ResizerWithScale, { from: from, to: to, onEnd: handleOnStopResizing, disabled: !isResizingActive, children: ({ x1, x2 }, isActive) => {
|
|
135
|
+
}, offsetYMode: "cursor", children: _jsx("g", { "data-testid": "range", style: { outline: 'none' }, onMouseEnter: mouseEnterHandler, onMouseLeave: mouseLeaveHandler, children: _jsx(ResizerWithScale, { from: from, to: to, onEnd: handleOnStopResizing, disabled: !isResizingActive, children: ({ x1, x2 }, isActive) => {
|
|
136
136
|
const rangeWidth = x2 - x1;
|
|
137
137
|
let offsetX = 0;
|
|
138
138
|
let highlightRectWidth = rangeWidth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Range.js","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Range.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,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AC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,GAAG,CAAC,GAAI,EAEzC,mBAAmB,IAAI,CACtB,KAAC,iBAAiB,IAChB,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAC9B,CACH,IACC,CACL,CAAC;gBACJ,CAAC,GACgB,IA1Dd,EAAE,CA2DL,GACkB,CACzB,CAAC;AACJ,CAAC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ranges.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Ranges.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Ranges.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Ranges.tsx"],"names":[],"mappings":"AAyFA,MAAM,CAAC,OAAO,UAAU,MAAM,mDAyB7B"}
|
|
@@ -3,28 +3,27 @@ import { memo } from 'react';
|
|
|
3
3
|
import { useChartData } from '../../context/ChartContext.js';
|
|
4
4
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
5
5
|
import { ShareDataProvider } from '../../context/ShareDataContext.js';
|
|
6
|
-
import { useCanvasContext } from '../../hooks/useCanvasContext.js';
|
|
7
6
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
8
7
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
8
|
+
import { useTextMetrics } from "../../hooks/useTextMetrics.js";
|
|
9
9
|
import { stackOverlappingLabelsMap } from '../../utility/stackOverlappingLabels.js';
|
|
10
10
|
import Range from './Range.js';
|
|
11
11
|
const labelSize = 14;
|
|
12
12
|
function useStackRangesAssignmentsLabels(ranges) {
|
|
13
13
|
const { scaleX } = useScaleChecked();
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
14
|
+
const { getTextWidth } = useTextMetrics(labelSize);
|
|
15
|
+
if (ranges.length === 0)
|
|
16
16
|
return null;
|
|
17
|
-
const processedRanges = ranges
|
|
18
|
-
.map((range) => {
|
|
17
|
+
const processedRanges = ranges.map((range) => {
|
|
19
18
|
const { from, assignment = '' } = range;
|
|
20
|
-
const
|
|
19
|
+
const labelWidth = getTextWidth(assignment);
|
|
21
20
|
return {
|
|
22
21
|
...range,
|
|
23
22
|
labelWidth,
|
|
24
23
|
startPosition: scaleX()(from),
|
|
25
24
|
};
|
|
26
|
-
}
|
|
27
|
-
|
|
25
|
+
});
|
|
26
|
+
processedRanges.sort((a, b) => b.from - a.from);
|
|
28
27
|
return stackOverlappingLabelsMap(processedRanges, {
|
|
29
28
|
startPositionKey: 'startPosition',
|
|
30
29
|
labelWidthKey: 'labelWidth',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ranges.js","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Ranges.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Ranges.js","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Ranges.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,O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