nmrium 0.60.1-pre.1741337420 → 0.61.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/ApodizationLine.d.ts.map +1 -1
- package/lib/component/1d/ApodizationLine.js +3 -1
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +5 -8
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +1 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts +0 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js +0 -3
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +11 -3
- package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.d.ts +0 -5
- package/lib/component/1d/matrix/Boxplot.d.ts.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +1 -1
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.d.ts +0 -4
- package/lib/component/1d/matrix/Stocsy.d.ts.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +2 -2
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +45 -30
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +2 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.d.ts +1 -9
- package/lib/component/1d/peaks/PeakAnnotations.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
- package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts +1 -2
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +0 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +11 -15
- 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 +4 -5
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/tool/BaseLine.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLine.js +5 -3
- package/lib/component/1d/tool/BaseLine.js.map +1 -1
- package/lib/component/1d/tool/PivotIndicator1D.js +5 -3
- package/lib/component/1d/tool/PivotIndicator1D.js.map +1 -1
- package/lib/component/1d/utilities/scale.d.ts +1 -7
- package/lib/component/1d/utilities/scale.d.ts.map +1 -1
- package/lib/component/1d/utilities/scale.js +2 -39
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts +6 -8
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +0 -1
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js +0 -5
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.d.ts.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.js +9 -7
- package/lib/component/2d/tools/PivotIndicator.js.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts +1 -19
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -19
- package/lib/component/2d/utilities/scale.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts +0 -6
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -2
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts +0 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +3 -4
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +0 -1
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/context/ChartContext.d.ts +0 -1
- package/lib/component/context/ChartContext.d.ts.map +1 -1
- package/lib/component/context/ChartContext.js +1 -1
- package/lib/component/context/ChartContext.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +2 -2
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js +1 -1
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/GlobalContext.d.ts +0 -5
- package/lib/component/context/GlobalContext.d.ts.map +1 -1
- package/lib/component/context/GlobalContext.js +1 -1
- package/lib/component/context/GlobalContext.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts +0 -2
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +2 -2
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/LoggerContext.d.ts +0 -6
- package/lib/component/context/LoggerContext.d.ts.map +1 -1
- package/lib/component/context/LoggerContext.js +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +2 -2
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/context/PreferencesContext.js +1 -1
- package/lib/component/context/PreferencesContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +0 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js +1 -1
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/elements/Button.d.ts +2 -2
- package/lib/component/elements/Button.d.ts.map +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/ContextMenuBluePrint.d.ts +2 -2
- package/lib/component/elements/ContextMenuBluePrint.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/FormatField.d.ts +0 -2
- package/lib/component/elements/FormatField.d.ts.map +1 -1
- package/lib/component/elements/FormatField.js +1 -1
- package/lib/component/elements/FormatField.js.map +1 -1
- package/lib/component/elements/Input.d.ts +1 -1
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input2Controller.d.ts +1 -1
- package/lib/component/elements/Input2Controller.d.ts.map +1 -1
- package/lib/component/elements/Label.d.ts +0 -1
- package/lib/component/elements/Label.d.ts.map +1 -1
- package/lib/component/elements/Label.js +1 -1
- package/lib/component/elements/Label.js.map +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +1 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
- package/lib/component/elements/Sections.d.ts +3 -9
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +26 -18
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts +1 -1
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select2.d.ts +0 -1
- package/lib/component/elements/Select2.d.ts.map +1 -1
- package/lib/component/elements/Select2.js +1 -1
- package/lib/component/elements/Select2.js.map +1 -1
- package/lib/component/elements/Tab/Tab.d.ts +3 -2
- package/lib/component/elements/Tab/Tab.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +1 -1
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts +0 -4
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js +1 -1
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts +2 -2
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +29 -33
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +0 -28
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +2 -2
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts +1 -4
- package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.js +2 -10
- package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts +0 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +1 -1
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
- package/lib/component/elements/print/pageSize.d.ts +2 -1
- package/lib/component/elements/print/pageSize.d.ts.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +49 -19
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts +2 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts.map +1 -1
- package/lib/component/hooks/useIndicatorLineColor.d.ts +2 -0
- package/lib/component/hooks/useIndicatorLineColor.d.ts.map +1 -0
- package/lib/component/hooks/useIndicatorLineColor.js +6 -0
- package/lib/component/hooks/useIndicatorLineColor.js.map +1 -0
- package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/useTableSortBy.d.ts +0 -5
- package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
- package/lib/component/hooks/useTableSortBy.js +1 -1
- package/lib/component/hooks/useTableSortBy.js.map +1 -1
- package/lib/component/hooks/useToolsFunctions.d.ts.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js +10 -10
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js +2 -2
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.js +2 -2
- package/lib/component/modal/PredictSpectraModal.d.ts +2 -2
- package/lib/component/modal/PredictSpectraModal.d.ts.map +1 -1
- package/lib/component/modal/PredictSpectraModal.js +1 -2
- package/lib/component/modal/PredictSpectraModal.js.map +1 -1
- package/lib/component/modal/PublicationStringModal.d.ts +10 -0
- package/lib/component/modal/PublicationStringModal.d.ts.map +1 -0
- package/lib/component/modal/PublicationStringModal.js +88 -0
- package/lib/component/modal/PublicationStringModal.js.map +1 -0
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts +2 -1
- package/lib/component/modal/changeSum/ChangeSumModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +26 -53
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +1 -4
- 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 +1 -2
- package/lib/component/modal/editRange/forms/components/NewSignalTab.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 +3 -4
- 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 +2 -2
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +17 -5
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts +3 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.js +4 -0
- package/lib/component/modal/editRange/utils/couplingsToMultiplicity.js.map +1 -0
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts +3 -0
- package/lib/component/modal/editRange/utils/mapCouplings.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/mapCouplings.js +7 -0
- package/lib/component/modal/editRange/utils/mapCouplings.js.map +1 -0
- package/lib/component/modal/editRange/utils/mapSignals.d.ts +25 -0
- package/lib/component/modal/editRange/utils/mapSignals.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/mapSignals.js +18 -0
- package/lib/component/modal/editRange/utils/mapSignals.js.map +1 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts +2 -0
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.js +7 -0
- package/lib/component/modal/setting/GeneralSettings.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 +2 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts +0 -6
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +5 -9
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.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 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +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 +2 -2
- package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +18 -6
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +2 -2
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts +0 -1
- package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js +9 -21
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js +9 -9
- package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +0 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +4 -4
- 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 +7 -20
- package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts +2 -4
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.js +6 -12
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts +2 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +1 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +2 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +1 -2
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts +5 -8
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +14 -83
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts +1 -6
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js +1 -23
- package/lib/component/panels/SummaryPanel/CorrelationTable/Constants.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -3
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +1 -8
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +0 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts +3 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js +34 -39
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +0 -6
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +22 -19
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +0 -5
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +0 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +2 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +0 -10
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts +0 -13
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +16 -6
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +0 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +3 -5
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +2 -7
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +1 -1
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -7
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +15 -0
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +2 -8
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js +2 -1
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +6 -0
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +5 -0
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +0 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts +0 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.d.ts.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js +0 -3
- package/lib/component/reducer/helper/getActiveSpectraAsObject.js.map +1 -1
- package/lib/component/reducer/helper/getRange.d.ts +1 -1
- package/lib/component/reducer/helper/getRange.d.ts.map +1 -1
- package/lib/component/reducer/helper/getRange.js +3 -12
- package/lib/component/reducer/helper/getRange.js.map +1 -1
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts +1 -2
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.d.ts.map +1 -1
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js +0 -5
- package/lib/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.js.map +1 -1
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js +2 -2
- package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -2
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +1 -11
- package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -5
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +0 -30
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/utility/Events.d.ts +1 -1
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/GroupByInfoKey.d.ts.map +1 -1
- package/lib/component/utility/LocalStorage.d.ts +0 -1
- package/lib/component/utility/LocalStorage.d.ts.map +1 -1
- package/lib/component/utility/LocalStorage.js +0 -3
- package/lib/component/utility/LocalStorage.js.map +1 -1
- package/lib/component/utility/export.d.ts +4 -7
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +26 -41
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/formatNumber.d.ts +1 -2
- package/lib/component/utility/formatNumber.d.ts.map +1 -1
- package/lib/component/utility/formatNumber.js +1 -6
- package/lib/component/utility/formatNumber.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/constants.d.ts +0 -4
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +0 -22
- package/lib/constants.js.map +1 -1
- package/lib/data/PredictionManager.d.ts +3 -2
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.d.ts +1 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/constants/DefaultPathLengths.d.ts +1 -1
- package/lib/data/constants/DefaultPathLengths.d.ts.map +1 -1
- package/lib/data/constants/Multiplets.d.ts +2 -1
- package/lib/data/constants/Multiplets.d.ts.map +1 -1
- package/lib/data/constants/References.d.ts +2 -2
- package/lib/data/constants/References.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +0 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.js +0 -22
- package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.d.ts +2 -3
- package/lib/data/data1d/Spectrum1D/index.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/index.js +2 -3
- package/lib/data/data1d/Spectrum1D/index.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +2 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js +3 -5
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
- package/lib/data/data1d/database.d.ts +3 -3
- package/lib/data/data1d/database.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +3 -15
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +1 -7
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data1d/spectrumSimulation.d.ts +2 -1
- package/lib/data/data1d/spectrumSimulation.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +1 -2
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts +0 -1
- package/lib/data/data2d/Spectrum2D/index.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/index.js +0 -1
- package/lib/data/data2d/Spectrum2D/index.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +2 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +0 -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/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/matrixGeneration.d.ts +1 -1
- package/lib/data/matrixGeneration.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +0 -1
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +1 -1
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/parseMeta/index.d.ts +1 -2
- package/lib/data/parseMeta/index.d.ts.map +1 -1
- package/lib/data/parseMeta/index.js +1 -1
- package/lib/data/parseMeta/index.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -8
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -7
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +0 -6
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/RangeUtilities.js +1 -34
- package/lib/data/utilities/RangeUtilities.js.map +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +0 -5
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.js +3 -11
- package/lib/data/utilities/ZoneUtilities.js.map +1 -1
- package/lib/utils/clipboard/clipboard.d.ts +2 -1
- package/lib/utils/clipboard/clipboard.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.d.ts +2 -15
- package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.d.ts +1 -7
- package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
- package/lib/utils/clipboard/clipboardHooks.js +1 -39
- package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/lib/versionInfo.js.map +1 -1
- package/package.json +29 -37
- package/src/component/1d/ApodizationLine.tsx +3 -2
- package/src/component/1d/BrushTracker1D.tsx +5 -9
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/inset/InsetProvider.tsx +0 -6
- package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +41 -12
- package/src/component/1d/matrix/Boxplot.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +112 -96
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
- package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
- package/src/component/1d/peaks/Peaks.tsx +2 -2
- package/src/component/1d/ranges/Range.tsx +26 -29
- package/src/component/1d/ranges/Ranges.tsx +1 -6
- package/src/component/1d/tool/BaseLine.tsx +6 -3
- package/src/component/1d/tool/PivotIndicator1D.tsx +6 -3
- package/src/component/1d/utilities/scale.ts +1 -51
- package/src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts +11 -1
- package/src/component/2d/SVGContent2D.tsx +0 -6
- package/src/component/2d/tools/PivotIndicator.tsx +16 -7
- package/src/component/2d/utilities/scale.ts +0 -37
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +2 -2
- package/src/component/EventsTrackers/MouseTracker.tsx +1 -1
- package/src/component/assignment/AssignmentsContext.ts +2 -5
- package/src/component/context/ChartContext.tsx +1 -1
- package/src/component/context/DispatchContext.tsx +2 -2
- package/src/component/context/GlobalContext.tsx +1 -1
- package/src/component/context/KeyModifierContext.tsx +2 -2
- package/src/component/context/LoggerContext.tsx +1 -1
- package/src/component/context/PreferencesContext.tsx +2 -2
- package/src/component/context/ScaleContext.tsx +1 -1
- package/src/component/elements/Button.tsx +3 -4
- package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
- package/src/component/elements/FormatField.tsx +1 -1
- package/src/component/elements/Input.tsx +1 -1
- package/src/component/elements/Input2Controller.tsx +1 -1
- package/src/component/elements/Label.tsx +3 -2
- package/src/component/elements/ReactTable/ReactTable.tsx +1 -1
- package/src/component/elements/Sections.tsx +35 -24
- package/src/component/elements/Select.tsx +1 -1
- package/src/component/elements/Select2.tsx +1 -1
- package/src/component/elements/Tab/Tab.tsx +2 -2
- package/src/component/elements/Tab/Tabs.tsx +1 -1
- package/src/component/elements/export/ExportContent.tsx +1 -1
- package/src/component/elements/export/ExportManager.tsx +40 -45
- package/src/component/elements/export/ExportSettingsProvider.tsx +1 -1
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +2 -2
- package/src/component/elements/export/utilities/getExportOptions.ts +2 -10
- package/src/component/elements/print/PrintContent.tsx +1 -1
- package/src/component/elements/print/PrintProvider.tsx +1 -1
- package/src/component/elements/print/pageSize.ts +1 -1
- package/src/component/hooks/useExport.tsx +43 -18
- package/src/component/hooks/useFormatNumberByNucleus.ts +1 -1
- package/src/component/hooks/useIndicatorLineColor.ts +6 -0
- package/src/component/hooks/usePanelPreferences.ts +15 -16
- package/src/component/hooks/useTableSortBy.tsx +1 -1
- package/src/component/hooks/useToolsFunctions.ts +11 -9
- package/src/component/main/NMRium.tsx +2 -6
- package/src/component/modal/ExportAsJcampModal.tsx +2 -2
- package/src/component/modal/PredictSpectraModal.tsx +1 -3
- package/src/component/modal/PublicationStringModal.tsx +168 -0
- package/src/component/modal/changeSum/ChangeSumModal.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +31 -75
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +1 -6
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +1 -2
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +6 -5
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +2 -1
- package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +23 -3
- package/src/component/modal/editRange/utils/couplingsToMultiplicity.ts +5 -0
- package/src/component/modal/editRange/utils/mapCouplings.ts +11 -0
- package/src/component/modal/editRange/utils/mapSignals.ts +27 -0
- package/src/component/modal/setting/GeneralSettings.tsx +8 -0
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +2 -4
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +11 -14
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +2 -5
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +2 -4
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +10 -2
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +22 -6
- package/src/component/panels/Panels.tsx +5 -3
- package/src/component/panels/RangesPanel/RangesHeader.tsx +10 -27
- package/src/component/panels/RangesPanel/RangesPanel.tsx +0 -1
- package/src/component/panels/RangesPanel/hooks/useEditRangeModal.tsx +8 -9
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +4 -6
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +4 -30
- package/src/component/panels/SpectraPanel/base/ColorIndicator.tsx +7 -23
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +1 -3
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +1 -3
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +49 -110
- package/src/component/panels/SummaryPanel/CorrelationTable/Constants.ts +1 -24
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +0 -2
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +2 -2
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +0 -5
- package/src/component/panels/accordionItems.tsx +47 -40
- package/src/component/panels/databasePanel/DatabasePanel.tsx +28 -23
- package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
- package/src/component/panels/extra/utilities/settingImperativeHandle.ts +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +5 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +17 -6
- package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +0 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +3 -8
- package/src/component/reducer/Reducer.ts +2 -9
- package/src/component/reducer/actions/DomainActions.ts +1 -2
- package/src/component/reducer/actions/FiltersActions.ts +16 -2
- package/src/component/reducer/actions/LoadActions.ts +2 -1
- package/src/component/reducer/actions/RangesActions.ts +6 -0
- package/src/component/reducer/actions/SpectraActions.ts +5 -0
- package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -1
- package/src/component/reducer/helper/getActiveSpectraAsObject.ts +0 -7
- package/src/component/reducer/helper/getRange.ts +3 -11
- package/src/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.ts +0 -15
- package/src/component/reducer/preferences/actions/analyzeSpectra.ts +2 -2
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +0 -18
- package/src/component/reducer/preferences/preferencesReducer.ts +2 -36
- package/src/component/utility/Events.tsx +1 -1
- package/src/component/utility/LocalStorage.ts +0 -4
- package/src/component/utility/export.ts +31 -47
- package/src/component/utility/formatNumber.ts +1 -7
- package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
- package/src/constants.ts +0 -23
- package/src/data/PredictionManager.ts +2 -2
- package/src/data/SpectraManager.ts +1 -1
- package/src/data/constants/DefaultPathLengths.ts +1 -1
- package/src/data/constants/Multiplets.ts +1 -1
- package/src/data/constants/References.ts +2 -2
- package/src/data/data1d/Spectrum1D/get1DColor.ts +0 -23
- package/src/data/data1d/Spectrum1D/getReferenceShift.ts +2 -1
- package/src/data/data1d/Spectrum1D/index.ts +1 -6
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +3 -5
- package/src/data/data1d/database.ts +3 -3
- package/src/data/data1d/multipleSpectraAnalysis.ts +2 -28
- package/src/data/data1d/spectrumSimulation.ts +1 -1
- package/src/data/data2d/Spectrum2D/contours.ts +1 -2
- package/src/data/data2d/Spectrum2D/index.ts +0 -1
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -1
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +1 -1
- package/src/data/matrixGeneration.ts +1 -1
- package/src/data/molecules/MoleculeManager.ts +1 -1
- package/src/data/parseMeta/index.ts +1 -11
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -13
- package/src/data/utilities/RangeUtilities.ts +1 -45
- package/src/data/utilities/ZoneUtilities.ts +3 -18
- package/src/utils/clipboard/clipboard.ts +1 -1
- package/src/utils/clipboard/clipboardComponents.tsx +3 -3
- package/src/utils/clipboard/clipboardHooks.ts +2 -58
- package/src/versionInfo.ts +1 -1
- package/lib/component/1d/YAxis.d.ts +0 -7
- package/lib/component/1d/YAxis.d.ts.map +0 -1
- package/lib/component/1d/YAxis.js +0 -25
- package/lib/component/1d/YAxis.js.map +0 -1
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts +0 -12
- package/lib/component/1d/ranges/AssignmentActionsButtons.d.ts.map +0 -1
- package/lib/component/1d/ranges/AssignmentActionsButtons.js +0 -12
- package/lib/component/1d/ranges/AssignmentActionsButtons.js.map +0 -1
- package/lib/component/1d/utilities/getDecimalsCount.d.ts +0 -2
- package/lib/component/1d/utilities/getDecimalsCount.d.ts.map +0 -1
- package/lib/component/1d/utilities/getDecimalsCount.js +0 -7
- package/lib/component/1d/utilities/getDecimalsCount.js.map +0 -1
- package/lib/component/1d-2d/tools/BrushX.d.ts +0 -2
- package/lib/component/1d-2d/tools/BrushX.d.ts.map +0 -1
- package/lib/component/1d-2d/tools/BrushX.js +0 -36
- package/lib/component/1d-2d/tools/BrushX.js.map +0 -1
- package/lib/component/context/PrepareExportContext.d.ts +0 -22
- package/lib/component/context/PrepareExportContext.d.ts.map +0 -1
- package/lib/component/context/PrepareExportContext.js +0 -125
- package/lib/component/context/PrepareExportContext.js.map +0 -1
- package/lib/component/elements/ActiveButton.d.ts +0 -18
- package/lib/component/elements/ActiveButton.d.ts.map +0 -1
- package/lib/component/elements/ActiveButton.js +0 -34
- package/lib/component/elements/ActiveButton.js.map +0 -1
- package/lib/component/elements/AxisGroup.d.ts +0 -5
- package/lib/component/elements/AxisGroup.d.ts.map +0 -1
- package/lib/component/elements/AxisGroup.js +0 -14
- package/lib/component/elements/AxisGroup.js.map +0 -1
- package/lib/component/elements/ButtonToolTip.d.ts +0 -10
- package/lib/component/elements/ButtonToolTip.d.ts.map +0 -1
- package/lib/component/elements/ButtonToolTip.js +0 -7
- package/lib/component/elements/ButtonToolTip.js.map +0 -1
- package/lib/component/elements/CheckBox.d.ts +0 -7
- package/lib/component/elements/CheckBox.d.ts.map +0 -1
- package/lib/component/elements/CheckBox.js +0 -11
- package/lib/component/elements/CheckBox.js.map +0 -1
- package/lib/component/elements/ColorInput.d.ts +0 -10
- package/lib/component/elements/ColorInput.d.ts.map +0 -1
- package/lib/component/elements/ColorInput.js +0 -82
- package/lib/component/elements/ColorInput.js.map +0 -1
- package/lib/component/elements/MenuButton.d.ts +0 -32
- package/lib/component/elements/MenuButton.d.ts.map +0 -1
- package/lib/component/elements/MenuButton.js +0 -76
- package/lib/component/elements/MenuButton.js.map +0 -1
- package/lib/component/elements/Message.d.ts +0 -17
- package/lib/component/elements/Message.d.ts.map +0 -1
- package/lib/component/elements/Message.js +0 -35
- package/lib/component/elements/Message.js.map +0 -1
- package/lib/component/elements/NumberInput.d.ts +0 -14
- package/lib/component/elements/NumberInput.d.ts.map +0 -1
- package/lib/component/elements/NumberInput.js +0 -21
- package/lib/component/elements/NumberInput.js.map +0 -1
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts +0 -10
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js +0 -29
- package/lib/component/elements/ReactTable/ReactTableFlexLayout.js.map +0 -1
- package/lib/component/elements/ReactTable/Style.d.ts +0 -3
- package/lib/component/elements/ReactTable/Style.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Style.js +0 -11
- package/lib/component/elements/ReactTable/Style.js.map +0 -1
- package/lib/component/elements/ResizableSVG.d.ts +0 -25
- package/lib/component/elements/ResizableSVG.d.ts.map +0 -1
- package/lib/component/elements/ResizableSVG.js +0 -84
- package/lib/component/elements/ResizableSVG.js.map +0 -1
- package/lib/component/elements/Table/Table.d.ts +0 -10
- package/lib/component/elements/Table/Table.d.ts.map +0 -1
- package/lib/component/elements/Table/Table.js +0 -14
- package/lib/component/elements/Table/Table.js.map +0 -1
- package/lib/component/elements/Table/TableBody.d.ts +0 -10
- package/lib/component/elements/Table/TableBody.d.ts.map +0 -1
- package/lib/component/elements/Table/TableBody.js +0 -20
- package/lib/component/elements/Table/TableBody.js.map +0 -1
- package/lib/component/elements/Table/TableCell.d.ts +0 -14
- package/lib/component/elements/Table/TableCell.d.ts.map +0 -1
- package/lib/component/elements/Table/TableCell.js +0 -27
- package/lib/component/elements/Table/TableCell.js.map +0 -1
- package/lib/component/elements/Table/TableHead.d.ts +0 -10
- package/lib/component/elements/Table/TableHead.d.ts.map +0 -1
- package/lib/component/elements/Table/TableHead.js +0 -17
- package/lib/component/elements/Table/TableHead.js.map +0 -1
- package/lib/component/elements/Table/TableRow.d.ts +0 -11
- package/lib/component/elements/Table/TableRow.d.ts.map +0 -1
- package/lib/component/elements/Table/TableRow.js +0 -12
- package/lib/component/elements/Table/TableRow.js.map +0 -1
- package/lib/component/elements/ToggleButton.d.ts +0 -15
- package/lib/component/elements/ToggleButton.d.ts.map +0 -1
- package/lib/component/elements/ToggleButton.js +0 -30
- package/lib/component/elements/ToggleButton.js.map +0 -1
- package/lib/component/elements/ToolTip/ToolTip.d.ts +0 -16
- package/lib/component/elements/ToolTip/ToolTip.d.ts.map +0 -1
- package/lib/component/elements/ToolTip/ToolTip.js +0 -102
- package/lib/component/elements/ToolTip/ToolTip.js.map +0 -1
- package/lib/component/elements/accordion/Accordion.d.ts +0 -8
- package/lib/component/elements/accordion/Accordion.d.ts.map +0 -1
- package/lib/component/elements/accordion/Accordion.js +0 -67
- package/lib/component/elements/accordion/Accordion.js.map +0 -1
- package/lib/component/elements/accordion/AccordionItem.d.ts +0 -16
- package/lib/component/elements/accordion/AccordionItem.d.ts.map +0 -1
- package/lib/component/elements/accordion/AccordionItem.js +0 -79
- package/lib/component/elements/accordion/AccordionItem.js.map +0 -1
- package/lib/component/elements/draggable/SVGDraggable.d.ts +0 -18
- package/lib/component/elements/draggable/SVGDraggable.d.ts.map +0 -1
- package/lib/component/elements/draggable/SVGDraggable.js +0 -30
- package/lib/component/elements/draggable/SVGDraggable.js.map +0 -1
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.d.ts +0 -2
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.js +0 -5
- package/lib/component/elements/export/utilities/convertPixelsBasedOnDPI.js.map +0 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts +0 -21
- package/lib/component/elements/linearAxis/LinearVerticalAxis.d.ts.map +0 -1
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js +0 -16
- package/lib/component/elements/linearAxis/LinearVerticalAxis.js.map +0 -1
- package/lib/component/modal/CopyClipboardModal.d.ts +0 -9
- package/lib/component/modal/CopyClipboardModal.d.ts.map +0 -1
- package/lib/component/modal/CopyClipboardModal.js +0 -23
- package/lib/component/modal/CopyClipboardModal.js.map +0 -1
- package/lib/component/panels/extra/preferences/ColumnsHelper.d.ts +0 -13
- package/lib/component/panels/extra/preferences/ColumnsHelper.d.ts.map +0 -1
- package/lib/component/panels/extra/preferences/ColumnsHelper.js +0 -43
- package/lib/component/panels/extra/preferences/ColumnsHelper.js.map +0 -1
- package/lib/component/panels/extra/utilities/UseToggleStatus.d.ts +0 -8
- package/lib/component/panels/extra/utilities/UseToggleStatus.d.ts.map +0 -1
- package/lib/component/panels/extra/utilities/UseToggleStatus.js +0 -33
- package/lib/component/panels/extra/utilities/UseToggleStatus.js.map +0 -1
- package/lib/component/reducer/actions/HistoryActions.d.ts +0 -5
- package/lib/component/reducer/actions/HistoryActions.d.ts.map +0 -1
- package/lib/component/reducer/actions/HistoryActions.js +0 -41
- package/lib/component/reducer/actions/HistoryActions.js.map +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.d.ts +0 -3
- package/lib/component/reducer/helper/GetClosestNumber.d.ts.map +0 -1
- package/lib/component/reducer/helper/GetClosestNumber.js +0 -9
- package/lib/component/reducer/helper/GetClosestNumber.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/checkKeysExists.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/checkKeysExists.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/checkKeysExists.js +0 -15
- package/lib/component/reducer/preferences/utilities/checkKeysExists.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/filterObject.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/filterObject.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/filterObject.js +0 -8
- package/lib/component/reducer/preferences/utilities/filterObject.js.map +0 -1
- package/lib/component/reducer/preferences/utilities/flatObject.d.ts +0 -2
- package/lib/component/reducer/preferences/utilities/flatObject.d.ts.map +0 -1
- package/lib/component/reducer/preferences/utilities/flatObject.js +0 -10
- package/lib/component/reducer/preferences/utilities/flatObject.js.map +0 -1
- package/lib/component/utility/FileUtility.d.ts +0 -9
- package/lib/component/utility/FileUtility.d.ts.map +0 -1
- package/lib/component/utility/FileUtility.js +0 -19
- package/lib/component/utility/FileUtility.js.map +0 -1
- package/lib/component/utility/PreferencesHelper.d.ts +0 -3
- package/lib/component/utility/PreferencesHelper.d.ts.map +0 -1
- package/lib/component/utility/PreferencesHelper.js +0 -10
- package/lib/component/utility/PreferencesHelper.js.map +0 -1
- package/lib/component/utility/jpathToArray.d.ts +0 -2
- package/lib/component/utility/jpathToArray.d.ts.map +0 -1
- package/lib/component/utility/jpathToArray.js +0 -24
- package/lib/component/utility/jpathToArray.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts +0 -6
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js +0 -5
- package/lib/data/data1d/Spectrum1D/cloneDatum1D.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/is1DFilter.d.ts +0 -5
- package/lib/data/data1d/Spectrum1D/is1DFilter.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/is1DFilter.js +0 -4
- package/lib/data/data1d/Spectrum1D/is1DFilter.js.map +0 -1
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts +0 -3
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.d.ts.map +0 -1
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js +0 -6
- package/lib/data/data1d/Spectrum1D/ranges/checkRangeKind.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts +0 -2
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js +0 -10
- package/lib/data/data2d/Spectrum2D/cloneDatum2D.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts +0 -7
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js +0 -10
- package/lib/data/data2d/Spectrum2D/get2DSpectrumErrorValue.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/getShift.d.ts +0 -7
- package/lib/data/data2d/Spectrum2D/getShift.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/getShift.js +0 -16
- package/lib/data/data2d/Spectrum2D/getShift.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/is2DFilter.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/is2DFilter.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/is2DFilter.js +0 -4
- package/lib/data/data2d/Spectrum2D/is2DFilter.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts +0 -5
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js +0 -16
- package/lib/data/data2d/Spectrum2D/zones/isZoneExists.js.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts +0 -3
- package/lib/data/data2d/Spectrum2D/zones/updateZones.d.ts.map +0 -1
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js +0 -8
- package/lib/data/data2d/Spectrum2D/zones/updateZones.js.map +0 -1
- package/lib/data/defaults/13c.d.ts +0 -5
- package/lib/data/defaults/13c.d.ts.map +0 -1
- package/lib/data/defaults/13c.js +0 -4
- package/lib/data/defaults/13c.js.map +0 -1
- package/lib/data/defaults/1h.d.ts +0 -5
- package/lib/data/defaults/1h.d.ts.map +0 -1
- package/lib/data/defaults/1h.js +0 -4
- package/lib/data/defaults/1h.js.map +0 -1
- package/lib/data/defaults/default.d.ts +0 -2
- package/lib/data/defaults/default.d.ts.map +0 -1
- package/lib/data/defaults/default.js +0 -17
- package/lib/data/defaults/default.js.map +0 -1
- package/lib/data/getDefaultMatrixFilters.d.ts +0 -17
- package/lib/data/getDefaultMatrixFilters.d.ts.map +0 -1
- package/lib/data/getDefaultMatrixFilters.js +0 -21
- package/lib/data/getDefaultMatrixFilters.js.map +0 -1
- package/lib/data/types/common/DeepPartial.d.ts +0 -4
- package/lib/data/types/common/DeepPartial.d.ts.map +0 -1
- package/lib/data/types/common/DeepPartial.js +0 -2
- package/lib/data/types/common/DeepPartial.js.map +0 -1
- package/lib/data/types/common/File.d.ts +0 -6
- package/lib/data/types/common/File.d.ts.map +0 -1
- package/lib/data/types/common/File.js +0 -2
- package/lib/data/types/common/File.js.map +0 -1
- package/lib/data/types/common/Info.d.ts +0 -12
- package/lib/data/types/common/Info.d.ts.map +0 -1
- package/lib/data/types/common/Info.js +0 -2
- package/lib/data/types/common/Info.js.map +0 -1
- package/lib/data/types/common/MapOptions.d.ts +0 -6
- package/lib/data/types/common/MapOptions.d.ts.map +0 -1
- package/lib/data/types/common/MapOptions.js +0 -2
- package/lib/data/types/common/MapOptions.js.map +0 -1
- package/lib/data/types/data1d/ComplexData1D.d.ts +0 -3
- package/lib/data/types/data1d/ComplexData1D.d.ts.map +0 -1
- package/lib/data/types/data1d/ComplexData1D.js +0 -2
- package/lib/data/types/data1d/ComplexData1D.js.map +0 -1
- package/lib/data/types/data2d/ContourOptions.d.ts +0 -11
- package/lib/data/types/data2d/ContourOptions.d.ts.map +0 -1
- package/lib/data/types/data2d/ContourOptions.js +0 -2
- package/lib/data/types/data2d/ContourOptions.js.map +0 -1
- package/lib/data/types/data2d/index.d.ts +0 -2
- package/lib/data/types/data2d/index.d.ts.map +0 -1
- package/lib/data/types/data2d/index.js +0 -2
- package/lib/data/types/data2d/index.js.map +0 -1
- package/lib/data/utilities/getSum.d.ts +0 -9
- package/lib/data/utilities/getSum.d.ts.map +0 -1
- package/lib/data/utilities/getSum.js +0 -16
- package/lib/data/utilities/getSum.js.map +0 -1
- package/lib/types/NMRiumDataReturn.d.ts +0 -15
- package/lib/types/NMRiumDataReturn.d.ts.map +0 -1
- package/lib/types/NMRiumDataReturn.js +0 -2
- package/lib/types/NMRiumDataReturn.js.map +0 -1
- package/src/component/1d/YAxis.tsx +0 -57
- package/src/component/1d/ranges/AssignmentActionsButtons.tsx +0 -62
- package/src/component/1d/utilities/getDecimalsCount.ts +0 -9
- package/src/component/1d-2d/tools/BrushX.tsx +0 -69
- package/src/component/context/PrepareExportContext.tsx +0 -185
- package/src/component/elements/ActiveButton.tsx +0 -72
- package/src/component/elements/AxisGroup.tsx +0 -14
- package/src/component/elements/ButtonToolTip.tsx +0 -35
- package/src/component/elements/CheckBox.tsx +0 -43
- package/src/component/elements/ColorInput.tsx +0 -117
- package/src/component/elements/MenuButton.tsx +0 -162
- package/src/component/elements/Message.tsx +0 -63
- package/src/component/elements/NumberInput.tsx +0 -67
- package/src/component/elements/ReactTable/ReactTableFlexLayout.tsx +0 -90
- package/src/component/elements/ReactTable/Style.ts +0 -12
- package/src/component/elements/ResizableSVG.tsx +0 -234
- package/src/component/elements/Table/Table.tsx +0 -26
- package/src/component/elements/Table/TableBody.tsx +0 -35
- package/src/component/elements/Table/TableCell.tsx +0 -55
- package/src/component/elements/Table/TableHead.tsx +0 -29
- package/src/component/elements/Table/TableRow.tsx +0 -34
- package/src/component/elements/ToggleButton.tsx +0 -67
- package/src/component/elements/ToolTip/ToolTip.tsx +0 -161
- package/src/component/elements/accordion/Accordion.tsx +0 -100
- package/src/component/elements/accordion/AccordionItem.tsx +0 -134
- package/src/component/elements/draggable/SVGDraggable.tsx +0 -67
- package/src/component/elements/export/utilities/convertPixelsBasedOnDPI.ts +0 -9
- package/src/component/elements/linearAxis/LinearVerticalAxis.tsx +0 -77
- package/src/component/modal/CopyClipboardModal.tsx +0 -47
- package/src/component/panels/extra/preferences/ColumnsHelper.ts +0 -68
- package/src/component/panels/extra/utilities/UseToggleStatus.ts +0 -41
- package/src/component/reducer/actions/HistoryActions.ts +0 -48
- package/src/component/reducer/helper/GetClosestNumber.ts +0 -9
- package/src/component/reducer/preferences/utilities/checkKeysExists.ts +0 -18
- package/src/component/reducer/preferences/utilities/filterObject.ts +0 -7
- package/src/component/reducer/preferences/utilities/flatObject.ts +0 -9
- package/src/component/utility/FileUtility.ts +0 -22
- package/src/component/utility/PreferencesHelper.ts +0 -13
- package/src/component/utility/jpathToArray.ts +0 -21
- package/src/data/data1d/Spectrum1D/cloneDatum1D.ts +0 -4
- package/src/data/data1d/Spectrum1D/is1DFilter.ts +0 -8
- package/src/data/data1d/Spectrum1D/ranges/checkRangeKind.ts +0 -8
- package/src/data/data2d/Spectrum2D/cloneDatum2D.ts +0 -9
- package/src/data/data2d/Spectrum2D/get2DSpectrumErrorValue.ts +0 -17
- package/src/data/data2d/Spectrum2D/getShift.ts +0 -23
- package/src/data/data2d/Spectrum2D/is2DFilter.ts +0 -8
- package/src/data/data2d/Spectrum2D/zones/isZoneExists.ts +0 -27
- package/src/data/data2d/Spectrum2D/zones/updateZones.ts +0 -9
- package/src/data/defaults/13c.ts +0 -3
- package/src/data/defaults/1h.ts +0 -3
- package/src/data/defaults/default.ts +0 -19
- package/src/data/getDefaultMatrixFilters.ts +0 -38
- package/src/data/types/common/DeepPartial.ts +0 -3
- package/src/data/types/common/File.ts +0 -5
- package/src/data/types/common/Info.ts +0 -11
- package/src/data/types/common/MapOptions.ts +0 -6
- package/src/data/types/data1d/ComplexData1D.ts +0 -4
- package/src/data/types/data2d/ContourOptions.ts +0 -10
- package/src/data/types/data2d/index.ts +0 -1
- package/src/data/utilities/getSum.ts +0 -19
- package/src/types/NMRiumDataReturn.ts +0 -16
|
@@ -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;IAErC,OAAO,CACL,YAAG,SAAS,EAAC,OAAO,YAClB,YAAG,SAAS,EAAE,gBAAgB,CAAC,cAAc,EAAE,KAAK,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,YACnE,KAAK,CAAC,GAAG,CAAC,CAAC,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AAK,EACb,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAC/C,EACF,KAAC,mBAAmB,IAClB,KAAK,EAAE,CAAC,EACR,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,EACJ,SAAS,QACT,SAAS,QACT,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,YAEzB,eACE,CAAC,EAAC,GAAG,EACL,CAAC,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EACzB,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,QAAQ,EACX,QAAQ,EAAC,MAAM,EACf,IAAI,EAAE,KAAK,YAEV,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,GACnB,GACa,IACpB,CACL,CAAC;AACJ,CAAC;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -12,9 +12,8 @@ interface SpreadNMRPeak1D extends NMRPeak1DWithParentKeys {
|
|
|
12
12
|
scaleX: number;
|
|
13
13
|
}
|
|
14
14
|
export type Peak = Required<SpreadPeak1D | SpreadNMRPeak1D>;
|
|
15
|
-
export type PeaksMode = 'spread' | 'single';
|
|
16
15
|
export type PeaksSource = 'peaks' | 'ranges';
|
|
17
|
-
|
|
16
|
+
interface BasePeaksProps {
|
|
18
17
|
peaksSource: PeaksSource;
|
|
19
18
|
displayerKey: string;
|
|
20
19
|
xDomain: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Peaks.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/Peaks.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAS,MAAM,gBAAgB,CAAC;AAc/D,UAAU,oBAAqB,SAAQ,MAAM;IAC3C,UAAU,C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kB,CAAC,WAAW,EAAE,WAAW,yBAE1D;AAED,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,WAAW,EACxB,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,MAAM,EAAE,UAGrB;AAsGD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,KAAA,kDAiElC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePeakShapesPath.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/usePeakShapesPath.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAO7C,KAAK,kBAAkB,GACnB;IACE,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEN,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"usePeakShapesPath.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/peaks/usePeakShapesPath.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAO7C,KAAK,kBAAkB,GACnB;IACE,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEN,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,IAG5B,SAAS,kBAAkB,KAAG;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAkDF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Range.tsx"],"names":[],"mappings":"
|
|
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,gBAAgB,CAAC;AAqCzD,UAAU,UAAU;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,KAAK,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,UAAU,2CAsMjE;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import { useRef } from 'react';
|
|
3
3
|
import { LuLink, LuUnlink } from 'react-icons/lu';
|
|
4
4
|
import { PiTextTBold, PiTextTSlashBold } from 'react-icons/pi';
|
|
5
5
|
import { isSpectrum1D, resizeRange, } from '../../../data/data1d/Spectrum1D/index.js';
|
|
@@ -7,6 +7,7 @@ import { isRangeAssigned } from '../../../data/data1d/Spectrum1D/isRangeAssigned
|
|
|
7
7
|
import { checkRangeKind } from '../../../data/utilities/RangeUtilities.js';
|
|
8
8
|
import { useAssignment, useAssignmentContext, } from '../../assignment/AssignmentsContext.js';
|
|
9
9
|
import { filterForIDsWithAssignment } from '../../assignment/utilities/filterForIDsWithAssignment.js';
|
|
10
|
+
import { useChartData } from '../../context/ChartContext.js';
|
|
10
11
|
import { useDispatch } from '../../context/DispatchContext.js';
|
|
11
12
|
import { useLogger } from '../../context/LoggerContext.js';
|
|
12
13
|
import { useShareData } from '../../context/ShareDataContext.js';
|
|
@@ -24,21 +25,12 @@ import { IntegralIndicator } from '../integral/IntegralIndicator.js';
|
|
|
24
25
|
import { useScaleX } from '../utilities/scale.js';
|
|
25
26
|
import { AssignmentLabel } from './AssignmentLabel.js';
|
|
26
27
|
import { Atoms } from './Atoms.js';
|
|
27
|
-
const Group = styled.g `
|
|
28
|
-
.target {
|
|
29
|
-
visibility: ${({ isActive }) => (isActive ? 'visible' : 'hidden')};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&:hover {
|
|
33
|
-
.target {
|
|
34
|
-
visibility: visible;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
28
|
function Range({ range, selectedTool, relativeFormat }) {
|
|
39
29
|
const { id, integration, signals, from, to, diaIDs: rangeDiaIDs, assignment, } = range;
|
|
40
30
|
const isInset = useIsInset();
|
|
41
31
|
const spectrum = useSpectrum();
|
|
32
|
+
const isAssignBtnTrigged = useRef(false);
|
|
33
|
+
const { margin } = useChartData();
|
|
42
34
|
const highlightColor = useHighlightColor();
|
|
43
35
|
const assignmentData = useAssignmentContext();
|
|
44
36
|
const assignmentRange = useAssignment(id);
|
|
@@ -78,6 +70,7 @@ function Range({ range, selectedTool, relativeFormat }) {
|
|
|
78
70
|
}
|
|
79
71
|
function assignHandler() {
|
|
80
72
|
if (!isBlockedByEditing) {
|
|
73
|
+
isAssignBtnTrigged.current = true;
|
|
81
74
|
assignmentRange.activate('x');
|
|
82
75
|
}
|
|
83
76
|
}
|
|
@@ -134,10 +127,13 @@ function Range({ range, selectedTool, relativeFormat }) {
|
|
|
134
127
|
visible: !!assignment,
|
|
135
128
|
},
|
|
136
129
|
];
|
|
137
|
-
|
|
130
|
+
const isOpen = isAssignBtnTrigged.current ? isAssignmentActive : undefined;
|
|
131
|
+
return (_jsx(ActionsButtonsPopover, { targetTagName: "g", isOpen: isOpen, buttons: actionsButtons, space: 2, disabled: isInset, onClosed: () => {
|
|
132
|
+
isAssignBtnTrigged.current = false;
|
|
133
|
+
}, 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) => {
|
|
138
134
|
const width = x2 - x1;
|
|
139
|
-
return (_jsxs("g", { children: [isAssigned && !isHighlighted && !isActive && (_jsx("rect", { width: width, height: "10px", fill: highlightColor, "data-no-export": "true" })), _jsx("rect", { width: width, height: "100%", fill: isHighlighted || isActive ? '#ff6f0057' : 'transparent', "data-no-export": "true" }), _jsx(AssignmentLabel, { range: range, width: width }), _jsx(Atoms, { range: range, x: width / 2 }), showIntegralsValues && (_jsx(IntegralIndicator, { value: integration, format: relativeFormat, width: width, opacity: isNotSignal ? 0.5 : 1 }))] }));
|
|
140
|
-
} }) }
|
|
135
|
+
return (_jsxs("g", { children: [isAssigned && !isHighlighted && !isActive && (_jsx("rect", { y: margin.top, width: width, height: "10px", fill: highlightColor, "data-no-export": "true" })), _jsx("rect", { width: width, height: "100%", fill: isHighlighted || isActive ? '#ff6f0057' : 'transparent', "data-no-export": "true" }), _jsx(AssignmentLabel, { range: range, width: width }), _jsx(Atoms, { range: range, x: width / 2 }), showIntegralsValues && (_jsx(IntegralIndicator, { value: integration, format: relativeFormat, width: width, opacity: isNotSignal ? 0.5 : 1 }))] }));
|
|
136
|
+
} }) }, id) }));
|
|
141
137
|
}
|
|
142
138
|
export default Range;
|
|
143
139
|
//# sourceMappingURL=Range.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Range.js","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Range.tsx"],"names":[],"mappings":";
|
|
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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I,EAEpC,mBAAmB,IAAI,CACtB,KAAC,iBAAiB,IAChB,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,cAAc,EACtB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAC9B,CACH,IACC,CACL,CAAC;gBACJ,CAAC,GACgB,IA7Cd,EAAE,CA8CL,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":"AA2CA,MAAM,CAAC,OAAO,UAAU,MAAM,mDA+B7B"}
|
|
@@ -6,14 +6,14 @@ import { useActiveSpectrumRangesViewState } from '../../hooks/useActiveSpectrumR
|
|
|
6
6
|
import { usePanelPreferences } from '../../hooks/usePanelPreferences.js';
|
|
7
7
|
import useSpectrum from '../../hooks/useSpectrum.js';
|
|
8
8
|
import Range from './Range.js';
|
|
9
|
-
function RangesInner({ ranges, selectedTool,
|
|
10
|
-
return (_jsx(ShareDataProvider, { children: _jsx("g", { children: ranges?.values?.map((range) => (_jsx(Range, { range: range, selectedTool: selectedTool,
|
|
9
|
+
function RangesInner({ ranges, selectedTool, relativeFormat, }) {
|
|
10
|
+
return (_jsx(ShareDataProvider, { children: _jsx("g", { children: ranges?.values?.map((range) => (_jsx(Range, { range: range, selectedTool: selectedTool, relativeFormat: relativeFormat }, range.id))) }) }));
|
|
11
11
|
}
|
|
12
12
|
const MemoizedRanges = memo(RangesInner);
|
|
13
13
|
const emptyData = { ranges: {}, info: {}, display: {} };
|
|
14
14
|
export default function Ranges() {
|
|
15
15
|
const { displayerKey, view: { spectra: { activeTab }, }, toolOptions: { selectedTool }, } = useChartData();
|
|
16
|
-
const {
|
|
16
|
+
const { showIntegrals } = useActiveSpectrumRangesViewState();
|
|
17
17
|
const spectrum = useSpectrum(emptyData);
|
|
18
18
|
const rangesPreferences = usePanelPreferences('ranges', activeTab);
|
|
19
19
|
if (!spectrum.ranges?.values ||
|
|
@@ -21,8 +21,7 @@ export default function Ranges() {
|
|
|
21
21
|
spectrum.info?.isFid) {
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
-
return (_jsx(MemoizedRanges, { ranges: spectrum.ranges,
|
|
25
|
-
showIntegrals,
|
|
24
|
+
return (_jsx(MemoizedRanges, { ranges: spectrum.ranges, showIntegrals,
|
|
26
25
|
selectedTool,
|
|
27
26
|
displayerKey,
|
|
28
27
|
relativeFormat: rangesPreferences.relative.format }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ranges.js","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Ranges.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Ranges.js","sourceRoot":"","sources":["../../../../src/component/1d/ranges/Ranges.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDA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M,EAAE,QAAQ,CAAC,MAAM,EAErB,aAAa;QACb,YAAY;QACZ,YAAY;QACZ,cAAc,EAAE,iBAAiB,CAAC,QAAQ,CAAC,MAAM,GAEnD,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseLine.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/tool/BaseLine.tsx"],"names":[],"mappings":"AAeA,iBAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"BaseLine.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/tool/BaseLine.tsx"],"names":[],"mappings":"AAeA,iBAAS,QAAQ,mDA2BhB;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useChartData } from '../../context/ChartContext.js';
|
|
3
3
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
4
|
+
import { useIndicatorLineColor } from '../../hooks/useIndicatorLineColor.js';
|
|
4
5
|
import { options } from '../../toolbar/ToolTypes.js';
|
|
5
6
|
const styles = {
|
|
6
7
|
transformOrigin: 'top left',
|
|
7
8
|
position: 'absolute',
|
|
8
9
|
top: '0px',
|
|
9
10
|
left: '0px',
|
|
10
|
-
height:
|
|
11
|
-
backgroundColor: 'yellow',
|
|
11
|
+
height: '2px',
|
|
12
12
|
};
|
|
13
13
|
function BaseLine() {
|
|
14
14
|
const { width, margin: { left, right }, toolOptions: { selectedTool }, } = useChartData();
|
|
15
15
|
const { scaleY } = useScaleChecked();
|
|
16
|
+
const indicatorColor = useIndicatorLineColor();
|
|
16
17
|
const innerWidth = width - left - right;
|
|
17
18
|
if (![options.phaseCorrection.id, options.baselineCorrection.id].includes(selectedTool)) {
|
|
18
19
|
return null;
|
|
19
20
|
}
|
|
20
21
|
return (_jsx("div", { style: {
|
|
21
22
|
...styles,
|
|
22
|
-
transform: `translate(${left}px, ${scaleY()(0)}px)`,
|
|
23
|
+
transform: `translate(${left}px, ${scaleY()(0)}px) translateY(-50%)`,
|
|
23
24
|
width: innerWidth,
|
|
25
|
+
backgroundColor: indicatorColor,
|
|
24
26
|
} }));
|
|
25
27
|
}
|
|
26
28
|
export default BaseLine;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseLine.js","sourceRoot":"","sources":["../../../../src/component/1d/tool/BaseLine.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,MAAM,MAAM,GAAkB;IAC5B,eAAe,EAAE,UAAU;IAC3B,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"BaseLine.js","sourceRoot":"","sources":["../../../../src/component/1d/tool/BaseLine.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,MAAM,MAAM,GAAkB;IAC5B,eAAe,EAAE,UAAU;IAC3B,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,MAAM,EAAE,KAAK;CACd,CAAC;AAEF,SAAS,QAAQ;IACf,MAAM,EACJ,KAAK,EACL,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EACvB,WAAW,EAAE,EAAE,YAAY,EAAE,GAC9B,GAAG,YAAY,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAAC;IACrC,MAAM,cAAc,GAAG,qBAAqB,EAAE,CAAC;IAE/C,MAAM,UAAU,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;IACxC,IACE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,QAAQ,CACnE,YAAY,CACb,EACD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,cACE,KAAK,EAAE;YACL,GAAG,MAAM;YACT,SAAS,EAAE,aAAa,IAAI,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC,sBAAsB;YACpE,KAAK,EAAE,UAAU;YACjB,eAAe,EAAE,cAAc;SAChC,GACD,CACH,CAAC;AACJ,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useChartData } from '../../context/ChartContext.js';
|
|
3
3
|
import { useScaleChecked } from '../../context/ScaleContext.js';
|
|
4
|
+
import { useIndicatorLineColor } from '../../hooks/useIndicatorLineColor.js';
|
|
4
5
|
import { options } from '../../toolbar/ToolTypes.js';
|
|
5
6
|
const styles = {
|
|
6
7
|
transformOrigin: 'top left',
|
|
7
8
|
position: 'absolute',
|
|
8
9
|
top: '0px',
|
|
9
10
|
left: '0px',
|
|
10
|
-
width:
|
|
11
|
-
backgroundColor: 'yellow',
|
|
11
|
+
width: '2px',
|
|
12
12
|
};
|
|
13
13
|
export function PivotIndicator1D() {
|
|
14
14
|
const { height, toolOptions: { selectedTool, data: { pivot }, }, } = useChartData();
|
|
@@ -19,11 +19,13 @@ export function PivotIndicator1D() {
|
|
|
19
19
|
return _jsx(Indicator, { height: height, x: x });
|
|
20
20
|
}
|
|
21
21
|
function Indicator(props) {
|
|
22
|
+
const indicatorColor = useIndicatorLineColor();
|
|
22
23
|
const { x, height } = props;
|
|
23
24
|
return (_jsx("div", { style: {
|
|
24
25
|
...styles,
|
|
25
|
-
transform: `
|
|
26
|
+
transform: `translateX(${x}px) translateX(-50%)`,
|
|
26
27
|
height,
|
|
28
|
+
backgroundColor: indicatorColor,
|
|
27
29
|
} }));
|
|
28
30
|
}
|
|
29
31
|
//# sourceMappingURL=PivotIndicator1D.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PivotIndicator1D.js","sourceRoot":"","sources":["../../../../src/component/1d/tool/PivotIndicator1D.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,MAAM,MAAM,GAAkB;IAC5B,eAAe,EAAE,UAAU;IAC3B,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PivotIndicator1D.js","sourceRoot":"","sources":["../../../../src/component/1d/tool/PivotIndicator1D.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,MAAM,MAAM,GAAkB;IAC5B,eAAe,EAAE,UAAU;IAC3B,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,KAAK;CACb,CAAC;AAEF,MAAM,UAAU,gBAAgB;IAC9B,MAAM,EACJ,MAAM,EACN,WAAW,EAAE,EACX,YAAY,EACZ,IAAI,EAAE,EAAE,KAAK,EAAE,GAChB,GACF,GAAG,YAAY,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAAC;IAErC,IAAI,OAAO,CAAC,eAAe,CAAC,EAAE,KAAK,YAAY;QAAE,OAAO,IAAI,CAAC;IAC7D,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,OAAO,KAAC,SAAS,IAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,GAAI,CAAC;AAC7C,CAAC;AAOD,SAAS,SAAS,CAAC,KAAqB;IACtC,MAAM,cAAc,GAAG,qBAAqB,EAAE,CAAC;IAE/C,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC5B,OAAO,CACL,cACE,KAAK,EAAE;YACL,GAAG,MAAM;YACT,SAAS,EAAE,cAAc,CAAC,sBAAsB;YAChD,MAAM;YACN,eAAe,EAAE,cAAc;SAChC,GACD,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -31,12 +31,6 @@ interface IntegralYScaleOptions {
|
|
|
31
31
|
}
|
|
32
32
|
declare function getIntegralYScale(options: IntegralYScaleOptions): import("d3-scale").ScaleLinear<number, number, never>;
|
|
33
33
|
declare function getYScaleWithRation(options: IntegralYScaleOptions): import("d3-scale").ScaleLinear<number, number, never>;
|
|
34
|
-
declare function reScaleY(scale: number, { domain, height, margin }: {
|
|
35
|
-
domain: any;
|
|
36
|
-
height: any;
|
|
37
|
-
margin: any;
|
|
38
|
-
}): number[];
|
|
39
34
|
declare function useScaleX(): (spectrumId?: null) => import("d3-scale").ScaleLinear<number, number, never>;
|
|
40
|
-
|
|
41
|
-
export { useScaleX, useScaleY, getXScale, getYScale, getIntegralYScale, reScaleY, getYScaleWithRation, getInsetXScale, getInsetYScale, };
|
|
35
|
+
export { useScaleX, getXScale, getYScale, getIntegralYScale, getYScaleWithRation, getInsetXScale, getInsetYScale, };
|
|
42
36
|
//# sourceMappingURL=scale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/utilities/scale.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../../src/component/1d/utilities/scale.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAGlC,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AACD,UAAU,aAAc,SAAQ,kBAAkB;IAChD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,UAAU,aAAc,SAAQ,kBAAkB;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,iBAAiB,CAAC;CAClC;AAED,iBAAS,cAAc,CAAC,OAAO,EAAE,kBAAkB,yDAOlD;AAED,iBAAS,cAAc,CAAC,OAAO,EAAE,kBAAkB,yDAIlD;AAED,iBAAS,SAAS,CAChB,OAAO,EAAE,aAAa,EACtB,UAAU,GAAE,MAAM,GAAG,IAAI,GAAG,MAAa,yDAQ1C;AAED,iBAAS,SAAS,CAChB,OAAO,EAAE,aAAa,EACtB,UAAU,GAAE,MAAM,GAAG,IAAI,GAAG,MAAa,yDA4B1C;AAED,UAAU,qBAAqB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,iBAAS,iBAAiB,CAAC,OAAO,EAAE,qBAAqB,yDAOxD;AACD,iBAAS,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,yDAO1D;AAED,iBAAS,SAAS,iFAcjB;AAED,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { scaleLinear
|
|
1
|
+
import { scaleLinear } from 'd3';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { useChartData } from '../../context/ChartContext.js';
|
|
4
|
-
import { useSpectraBottomMargin } from '../../hooks/useSpectraBottomMargin.js';
|
|
5
|
-
import { useVerticalAlign } from '../../hooks/useVerticalAlign.js';
|
|
6
4
|
import { useIsInset } from '../inset/InsetProvider.js';
|
|
7
5
|
function getInsetXScale(options) {
|
|
8
6
|
const { width, margin, xDomain, mode } = options;
|
|
@@ -52,14 +50,6 @@ function getYScaleWithRation(options) {
|
|
|
52
50
|
const [min, max] = yDomain;
|
|
53
51
|
return scaleLinear([min * scaleRatio, max * scaleRatio], [height - margin.bottom - spectraBottomMargin, margin.top]);
|
|
54
52
|
}
|
|
55
|
-
function reScaleY(scale, { domain, height, margin }) {
|
|
56
|
-
const _scale = scaleLinear(domain, [height - margin.bottom, margin.top]);
|
|
57
|
-
const t = zoomIdentity
|
|
58
|
-
.translate(0, _scale(0))
|
|
59
|
-
.scale(scale)
|
|
60
|
-
.translate(0, -_scale(0));
|
|
61
|
-
return t.rescaleY(_scale).domain();
|
|
62
|
-
}
|
|
63
53
|
function useScaleX() {
|
|
64
54
|
const { margin, mode, width, xDomain, xDomains } = useChartData();
|
|
65
55
|
const isInset = useIsInset();
|
|
@@ -70,32 +60,5 @@ function useScaleX() {
|
|
|
70
60
|
return getXScale({ margin, mode, width, xDomain, xDomains }, spectrumId);
|
|
71
61
|
}, [isInset, margin, mode, width, xDomain, xDomains]);
|
|
72
62
|
}
|
|
73
|
-
|
|
74
|
-
const { margin, height, yDomain, yDomains } = useChartData();
|
|
75
|
-
const verticalAlign = useVerticalAlign();
|
|
76
|
-
const isInset = useIsInset();
|
|
77
|
-
const spectraBottomMargin = useSpectraBottomMargin();
|
|
78
|
-
return useCallback((spectrumId = null) => {
|
|
79
|
-
if (isInset) {
|
|
80
|
-
return getInsetYScale({ margin, height, yDomain, spectraBottomMargin });
|
|
81
|
-
}
|
|
82
|
-
return getYScale({
|
|
83
|
-
margin,
|
|
84
|
-
height,
|
|
85
|
-
verticalAlign,
|
|
86
|
-
yDomain,
|
|
87
|
-
yDomains,
|
|
88
|
-
spectraBottomMargin,
|
|
89
|
-
}, spectrumId);
|
|
90
|
-
}, [
|
|
91
|
-
isInset,
|
|
92
|
-
margin,
|
|
93
|
-
height,
|
|
94
|
-
verticalAlign,
|
|
95
|
-
yDomain,
|
|
96
|
-
yDomains,
|
|
97
|
-
spectraBottomMargin,
|
|
98
|
-
]);
|
|
99
|
-
}
|
|
100
|
-
export { useScaleX, useScaleY, getXScale, getYScale, getIntegralYScale, reScaleY, getYScaleWithRation, getInsetXScale, getInsetYScale, };
|
|
63
|
+
export { useScaleX, getXScale, getYScale, getIntegralYScale, getYScaleWithRation, getInsetXScale, getInsetYScale, };
|
|
101
64
|
//# sourceMappingURL=scale.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale.js","sourceRoot":"","sources":["../../../../src/component/1d/utilities/scale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"scale.js","sourceRoot":"","sources":["../../../../src/component/1d/utilities/scale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAA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AAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { PhaseCorrectionTraceData, TraceDirection } from '../../../reducer/Reducer.js';
|
|
2
|
+
interface UseActivePhaseTracesReturn extends PhaseCorrectionTraceData {
|
|
3
|
+
activeTraceDirection: TraceDirection;
|
|
3
4
|
color: string;
|
|
4
5
|
addTracesToBothDirections: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
pivot: import("../../../reducer/Reducer.js").Pivot | null;
|
|
9
|
-
scaleRatio: number;
|
|
10
|
-
};
|
|
6
|
+
}
|
|
7
|
+
export declare function useActivePhaseTraces(): UseActivePhaseTracesReturn;
|
|
8
|
+
export {};
|
|
11
9
|
//# sourceMappingURL=useActivePhaseTraces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActivePhaseTraces.d.ts","sourceRoot":"","sources":["../../../../../src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useActivePhaseTraces.d.ts","sourceRoot":"","sources":["../../../../../src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACf,MAAM,6BAA6B,CAAC;AAErC,UAAU,0BAA2B,SAAQ,wBAAwB;IACnE,oBAAoB,EAAE,cAAc,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB,EAAE,OAAO,CAAC;CACpC;AAED,wBAAgB,oBAAoB,IAAI,0BAA0B,CAmBjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActivePhaseTraces.js","sourceRoot":"","sources":["../../../../../src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"useActivePhaseTraces.js","sourceRoot":"","sources":["../../../../../src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAYhE,MAAM,UAAU,oBAAoB;IAClC,MAAM,EACJ,WAAW,EAAE,EACX,IAAI,EAAE,EACJ,2BAA2B,EAAE,EAC3B,MAAM,EACN,oBAAoB,EACpB,yBAAyB,GAC1B,GACF,GACF,GACF,GAAG,YAAY,EAAE,CAAC;IACnB,MAAM,KAAK,GAAG,oBAAoB,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC5E,OAAO;QACL,GAAG,MAAM,CAAC,oBAAoB,CAAC;QAC/B,oBAAoB;QACpB,KAAK;QACL,yBAAyB;KAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -3,6 +3,5 @@ interface Chart2DProps {
|
|
|
3
3
|
spectra?: Spectrum1D[];
|
|
4
4
|
}
|
|
5
5
|
export declare function SVGContent2D({ spectra }: Chart2DProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function SVGContent2DWithSpectra(): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
8
7
|
//# sourceMappingURL=SVGContent2D.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGContent2D.d.ts","sourceRoot":"","sources":["../../../src/component/2d/SVGContent2D.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"SVGContent2D.d.ts","sourceRoot":"","sources":["../../../src/component/2d/SVGContent2D.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAchD,UAAU,YAAY;IACpB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,YAAY,2CAsBrD"}
|
|
@@ -6,15 +6,10 @@ import XAxis from './XAxis.js';
|
|
|
6
6
|
import YAxis from './YAxis.js';
|
|
7
7
|
import { FidContainer } from './fid/FidContainer.js';
|
|
8
8
|
import { FTContainer } from './ft/FTContainer.js';
|
|
9
|
-
import { useTracesSpectra } from './useTracesSpectra.js';
|
|
10
9
|
import IndicationLines from './zones/IndicationLines.js';
|
|
11
10
|
import Zones from './zones/Zones.js';
|
|
12
11
|
import ZonesAssignmentsLabels from './zones/ZonesAssignmentsLabels.js';
|
|
13
12
|
export function SVGContent2D({ spectra }) {
|
|
14
13
|
return (_jsxs("g", { children: [_jsx(FTContainer, { spectra: spectra }), _jsx(FidContainer, {}), _jsx(ClipPathContainer, { children: _jsxs(ShareDataProvider, { children: [_jsx(Zones, {}), _jsx(ZonesAssignmentsLabels, {})] }) }), _jsx(IndicationLines, { axis: "X", show: true }), _jsx(IndicationLines, { axis: "Y", show: true }), _jsx(SpectrumInfoBlock, {}), _jsxs("g", { className: "container", style: { pointerEvents: 'none' }, children: [_jsx(XAxis, {}), _jsx(YAxis, {})] })] }));
|
|
15
14
|
}
|
|
16
|
-
export function SVGContent2DWithSpectra() {
|
|
17
|
-
const spectra = useTracesSpectra();
|
|
18
|
-
return _jsx(SVGContent2D, { spectra: spectra });
|
|
19
|
-
}
|
|
20
15
|
//# sourceMappingURL=SVGContent2D.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGContent2D.js","sourceRoot":"","sources":["../../../src/component/2d/SVGContent2D.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBA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,KAAG,EAErB,aAAG,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,aACvD,KAAC,KAAK,KAAG,EACT,KAAC,KAAK,KAAG,IACP,IACF,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PivotIndicator.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/tools/PivotIndicator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PivotIndicator.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/tools/PivotIndicator.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,cAAc,mDAgC7B"}
|
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useChartData } from '../../context/ChartContext.js';
|
|
3
|
+
import { useIndicatorLineColor } from '../../hooks/useIndicatorLineColor.js';
|
|
3
4
|
import { options } from '../../toolbar/ToolTypes.js';
|
|
4
5
|
import { useActivePhaseTraces } from '../1d-tracer/phase-correction-traces/useActivePhaseTraces.js';
|
|
5
6
|
import { get2DXScale, get2DYScale } from '../utilities/scale.js';
|
|
6
|
-
function getStyle(direction, translate) {
|
|
7
|
+
function getStyle(direction, translate, indicatorColor) {
|
|
7
8
|
const base = {
|
|
8
9
|
transformOrigin: 'top left',
|
|
9
10
|
position: 'absolute',
|
|
10
11
|
top: '0px',
|
|
11
12
|
left: '0px',
|
|
12
|
-
backgroundColor:
|
|
13
|
+
backgroundColor: indicatorColor,
|
|
13
14
|
zIndex: 9,
|
|
14
15
|
};
|
|
15
16
|
if (direction === 'horizontal') {
|
|
16
17
|
return {
|
|
17
18
|
...base,
|
|
18
|
-
width: '
|
|
19
|
+
width: '2px',
|
|
19
20
|
height: '100%',
|
|
20
|
-
transform: `translateX(${translate}px)`,
|
|
21
|
+
transform: `translateX(${translate}px) translateX(-50%)`,
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
return {
|
|
24
25
|
...base,
|
|
25
26
|
width: '100%',
|
|
26
|
-
height: '
|
|
27
|
-
transform: `translateY(${translate}px)`,
|
|
27
|
+
height: '2px',
|
|
28
|
+
transform: `translateY(${translate}px) translateY(-50%)`,
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
export function PivotIndicator() {
|
|
31
32
|
const { pivot, activeTraceDirection } = useActivePhaseTraces();
|
|
32
33
|
const { toolOptions: { selectedTool }, width, height, margin, yDomain, xDomain, mode, } = useChartData();
|
|
34
|
+
const indicatorColor = useIndicatorLineColor();
|
|
33
35
|
if (options.phaseCorrectionTwoDimensions.id !== selectedTool || !pivot) {
|
|
34
36
|
return null;
|
|
35
37
|
}
|
|
@@ -42,6 +44,6 @@ export function PivotIndicator() {
|
|
|
42
44
|
const scale = get2DYScale({ height, margin, yDomain });
|
|
43
45
|
translate = scale(pivot.value);
|
|
44
46
|
}
|
|
45
|
-
return _jsx("div", { style: getStyle(activeTraceDirection, translate) });
|
|
47
|
+
return (_jsx("div", { style: getStyle(activeTraceDirection, translate, indicatorColor) }));
|
|
46
48
|
}
|
|
47
49
|
//# sourceMappingURL=PivotIndicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PivotIndicator.js","sourceRoot":"","sources":["../../../../src/component/2d/tools/PivotIndicator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"PivotIndicator.js","sourceRoot":"","sources":["../../../../src/component/2d/tools/PivotIndicator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAC;AACpG,OAAO,EAAE,WAA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,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,IAAI,oBAAoB,KAAK,UAAU,EAAE,CAAC;QACxC,MAAM,KAAK,GAAG,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;QACvD,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,CACL,cAAK,KAAK,EAAE,QAAQ,CAAC,oBAAoB,EAAE,SAAS,EAAE,cAAc,CAAC,GAAI,CAC1E,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { NmrData2D } from 'cheminfo-types';
|
|
2
2
|
import type { Margin, SpectraDirection } from '../../reducer/Reducer.js';
|
|
3
|
-
import type { Layout } from './DimensionLayout.js';
|
|
4
3
|
interface Scale2DXOptions {
|
|
5
4
|
width: number;
|
|
6
5
|
margin: Pick<Margin, 'left' | 'right'>;
|
|
@@ -16,23 +15,6 @@ interface Scale2DYOptions {
|
|
|
16
15
|
}
|
|
17
16
|
declare function get2DYScale(options: Scale2DYOptions, reverse?: boolean): import("d3-scale").ScaleLinear<number, number, never>;
|
|
18
17
|
declare function useScale2DY(reverse?: boolean): import("d3-scale").ScaleLinear<number, number, never>;
|
|
19
|
-
interface TopLayout {
|
|
20
|
-
width: number;
|
|
21
|
-
margin: {
|
|
22
|
-
right: number;
|
|
23
|
-
left: number;
|
|
24
|
-
};
|
|
25
|
-
xDomain: number[];
|
|
26
|
-
}
|
|
27
|
-
interface LeftLayout {
|
|
28
|
-
height: number;
|
|
29
|
-
margin: {
|
|
30
|
-
bottom: number;
|
|
31
|
-
top: number;
|
|
32
|
-
};
|
|
33
|
-
yDomain: number[];
|
|
34
|
-
}
|
|
35
|
-
declare function get1DXScale(props: TopLayout | LeftLayout, layout: Layout): import("d3-scale").ScaleLinear<number, number, never> | undefined;
|
|
36
18
|
declare function get1DYScale(yDomain: number[], height: number, margin?: number): import("d3-scale").ScaleLinear<number, number, never>;
|
|
37
19
|
declare function use1DTraceYScale(SpectrumId: string, height: number, verticalMargin: number): import("d3-scale").ScaleLinear<number, number, never>;
|
|
38
20
|
interface SliceYScaleOptions {
|
|
@@ -40,5 +22,5 @@ interface SliceYScaleOptions {
|
|
|
40
22
|
scaleRatio?: number;
|
|
41
23
|
}
|
|
42
24
|
declare function getSliceYScale(data: NmrData2D, size: number, mode: SpectraDirection, options?: SliceYScaleOptions): import("d3-scale").ScaleLinear<number, number, never>;
|
|
43
|
-
export { get2DXScale, getSliceYScale, get2DYScale,
|
|
25
|
+
export { get2DXScale, getSliceYScale, get2DYScale, get1DYScale, useScale2DX, useScale2DY, use1DTraceYScale, };
|
|
44
26
|
//# sourceMappingURL=scale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/utilities/scale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,
|
|
1
|
+
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../../src/component/2d/utilities/scale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,iBAAS,WAAW,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,OAAO,yDAO/D;AAED,iBAAS,WAAW,CAA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