nmrium 0.61.1-pre.1742387637 → 0.62.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/SVGContent1D.js +1 -1
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/Viewer1D.js +2 -2
- package/lib/component/1d/Viewer1D.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 +8 -11
- 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/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/1d-2d/tools/BrushXY.d.ts +5 -7
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +12 -20
- package/lib/component/1d-2d/tools/BrushXY.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/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +14 -5
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.js +20 -20
- package/lib/component/2d/FooterBanner.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/Viewer2D.d.ts.map +1 -1
- package/lib/component/2d/Viewer2D.js +2 -2
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/tools/XYLabelPointer.js +12 -12
- package/lib/component/2d/tools/XYLabelPointer.js.map +1 -1
- package/lib/component/2d/utilities/DimensionLayout.d.ts +6 -24
- package/lib/component/2d/utilities/DimensionLayout.d.ts.map +1 -1
- package/lib/component/2d/utilities/DimensionLayout.js +6 -6
- package/lib/component/2d/utilities/DimensionLayout.js.map +1 -1
- package/lib/component/2d/utilities/scale.d.ts +2 -20
- package/lib/component/2d/utilities/scale.d.ts.map +1 -1
- package/lib/component/2d/utilities/scale.js +3 -21
- 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 +14 -2
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +33 -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/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 +0 -6
- package/lib/component/elements/Sections.d.ts.map +1 -1
- package/lib/component/elements/Sections.js +3 -1
- 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/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 +1 -29
- 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/useFormatNumberByNucleus.d.ts +2 -1
- package/lib/component/hooks/useFormatNumberByNucleus.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/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/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/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 +25 -56
- 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/mapRange.d.ts +3 -0
- package/lib/component/modal/editRange/utils/mapRange.d.ts.map +1 -0
- package/lib/component/modal/editRange/utils/mapRange.js +19 -0
- package/lib/component/modal/editRange/utils/mapRange.js.map +1 -0
- package/lib/component/modal/setting/GeneralSettings.js +1 -1
- package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +1 -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/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +14 -1
- 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/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 +35 -40
- 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 +3 -4
- 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/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 +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.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/panels/spectrumSimulation/SpectrumSimulation.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +2 -12
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +6 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts +21 -0
- package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts.map +1 -0
- package/lib/component/panels/spectrumSimulation/simulationValidation.js +23 -0
- package/lib/component/panels/spectrumSimulation/simulationValidation.js.map +1 -0
- 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 +1 -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/actions/ToolsActions.d.ts +2 -2
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +3 -3
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +2 -3
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +6 -6
- 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/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/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/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/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 +1 -6
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +1 -10
- 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/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 +26 -34
- package/src/component/1d/SVGContent1D.tsx +1 -1
- package/src/component/1d/Viewer1D.tsx +2 -2
- 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 +8 -13
- 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/utilities/scale.ts +1 -51
- package/src/component/1d-2d/tools/BrushXY.tsx +30 -28
- package/src/component/2d/1d-tracer/phase-correction-traces/useActivePhaseTraces.ts +11 -1
- package/src/component/2d/BrushTracker2D.tsx +23 -4
- package/src/component/2d/FooterBanner.tsx +20 -20
- package/src/component/2d/SVGContent2D.tsx +0 -6
- package/src/component/2d/Viewer2D.tsx +8 -9
- package/src/component/2d/tools/XYLabelPointer.tsx +12 -12
- package/src/component/2d/utilities/DimensionLayout.ts +10 -8
- package/src/component/2d/utilities/scale.ts +2 -39
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +62 -4
- 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 +3 -1
- 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 +2 -2
- 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/useFormatNumberByNucleus.ts +1 -1
- 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/PredictSpectraModal.tsx +1 -3
- package/src/component/modal/changeSum/ChangeSumModal.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +28 -81
- 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 +24 -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/mapRange.ts +28 -0
- package/src/component/modal/setting/GeneralSettings.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +1 -1
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +28 -0
- package/src/component/panels/Panels.tsx +5 -3
- 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 +48 -41
- package/src/component/panels/databasePanel/DatabasePanel.tsx +4 -5
- 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/hooks/useApodization.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +1 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +3 -8
- package/src/component/panels/spectrumSimulation/SpectrumSimulation.tsx +2 -19
- package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +8 -2
- package/src/component/panels/spectrumSimulation/simulationValidation.ts +34 -0
- 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 +1 -1
- package/src/component/reducer/actions/RangesActions.ts +6 -0
- package/src/component/reducer/actions/SpectraActions.ts +5 -0
- package/src/component/reducer/actions/ToolsActions.ts +8 -5
- package/src/component/reducer/helper/ZoomHistoryManager.ts +8 -8
- package/src/component/reducer/helper/getActiveSpectraAsObject.ts +0 -7
- package/src/component/reducer/helper/getTwoDimensionPhaseCorrectionOptions.ts +0 -15
- 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 +0 -16
- package/src/component/utility/formatNumber.ts +1 -7
- 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/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/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,43 +1,5 @@
|
|
|
1
|
-
import { useCallback,
|
|
1
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
2
2
|
import { newClipboardItem, read, readText, write, writeText, } from './clipboard.js';
|
|
3
|
-
export function useNavigatorPermission(now, permissionName, onGranted, onError = reportError) {
|
|
4
|
-
const [state, setState] = useState();
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
if (!now)
|
|
7
|
-
return;
|
|
8
|
-
let canceled = false;
|
|
9
|
-
let status;
|
|
10
|
-
function onPermissionChange() {
|
|
11
|
-
if (canceled)
|
|
12
|
-
return;
|
|
13
|
-
setState(status.state);
|
|
14
|
-
if (status.state === 'granted') {
|
|
15
|
-
onGranted?.();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
void navigator.permissions
|
|
19
|
-
.query({ name: permissionName })
|
|
20
|
-
.then((pStatus) => {
|
|
21
|
-
if (canceled)
|
|
22
|
-
return;
|
|
23
|
-
status = pStatus;
|
|
24
|
-
setState(status.state);
|
|
25
|
-
status.addEventListener('change', onPermissionChange);
|
|
26
|
-
})
|
|
27
|
-
.catch((error) => {
|
|
28
|
-
if (canceled)
|
|
29
|
-
return;
|
|
30
|
-
onError(error);
|
|
31
|
-
});
|
|
32
|
-
return () => {
|
|
33
|
-
canceled = true;
|
|
34
|
-
if (status) {
|
|
35
|
-
status.removeEventListener('change', onPermissionChange);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}, [now, permissionName, onGranted, onError]);
|
|
39
|
-
return { state, isGranted: state === 'granted' };
|
|
40
|
-
}
|
|
41
3
|
/**
|
|
42
4
|
* Give you a wrapped clipboard api and a shouldFallback state.
|
|
43
5
|
* ignore if read and readText return promise filled with undefined, and rely on shouldFallback to display an alternative interaction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboardHooks.js","sourceRoot":"","sources":["../../../src/utils/clipboard/clipboardHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"clipboardHooks.js","sourceRoot":"","sources":["../../../src/utils/clipboard/clipboardHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,GACV,MAAM,gBAAgB,CAAC;AA6DxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,EAEjD,CAAC;IACJ,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,EAAsB,CAAC;IACvD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAsB,CAAC;IACzD,MAAM,mBAAmB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC3C,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAC7B,OAAO,CAAC,SAAS,CAAC,CAAC;QACnB,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CAAC,CAAC;QACL,KAAK,CAAC,IAAI;YACR,IAAI,CAAC;gBACH,OAAO,MAAM,IAAI,EAAE,CAAC;YACtB,CAAC;YAAC,MAAM,CAAC;gBACP,iBAAiB,CAAC,MAAM,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;QACD,KAAK,CAAC,QAAQ;YACZ,IAAI,CAAC;gBACH,OAAO,MAAM,QAAQ,EAAE,CAAC;YAC1B,CAAC;YAAC,MAAM,CAAC;gBACP,iBAAiB,CAAC,UAAU,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;QACD,KAAK,CAAC,KAAK,CAAC,IAAoB;YAC9B,IAAI,CAAC;gBACH,OAAO,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;YAC3B,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAC7B,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAC1C,CAAC;gBACF,QAAQ,CAAC,KAAK,CAAC,CAAC;gBAChB,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC;QACD,KAAK,CAAC,gBAAgB,CAAC,IAAY,EAAE,IAAI,GAAG,YAAY;YACtD,IAAI,CAAC;gBACH,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC;oBAClC,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC;iBACnC,CAAC,CAAC;gBACH,OAAO,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YAC7B,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,CAAC,IAAI,CAAC,CAAC;gBACd,iBAAiB,CAAC,WAAW,CAAC,CAAC;YACjC,CAAC;QACH,CAAC;QACD,KAAK,CAAC,SAAS,CAAC,IAAY;YAC1B,IAAI,CAAC;gBACH,OAAO,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,CAAC,IAAI,CAAC,CAAC;gBACd,iBAAiB,CAAC,WAAW,CAAC,CAAC;YACjC,CAAC;QACH,CAAC;KACF,CAAC,EACF,EAAE,CACH,CAAC;IAEF,OAAO;QACL,GAAG,YAAY;QACf,cAAc;QACd,IAAI;QACJ,KAAK;QACL,mBAAmB;KACpB,CAAC;AACJ,CAAC"}
|
package/lib/versionInfo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.d.ts","sourceRoot":"","sources":["../src/versionInfo.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"versionInfo.d.ts","sourceRoot":"","sources":["../src/versionInfo.ts"],"names":[],"mappings":";;;AAAA,wBAAsC"}
|
package/lib/versionInfo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default { version: 'v0.
|
|
1
|
+
export default { version: 'v0.62.0' };
|
|
2
2
|
//# sourceMappingURL=versionInfo.js.map
|
package/lib/versionInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionInfo.js","sourceRoot":"","sources":["../src/versionInfo.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"versionInfo.js","sourceRoot":"","sources":["../src/versionInfo.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nmrium",
|
|
3
3
|
"description": "React component to display and process nuclear magnetic resonance (NMR) spectra.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.62.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": "./lib/component/main/index.js",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"eslint": "eslint . --cache",
|
|
25
25
|
"eslint-fix": "npm run eslint -- --fix",
|
|
26
26
|
"install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start",
|
|
27
|
+
"knip": "knip",
|
|
27
28
|
"playwright": "playwright test --ui",
|
|
28
29
|
"prepack": "npm run clean-lib && npm run compile",
|
|
29
30
|
"prepublishOnly": "npm run set-version-npm",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"start": "npm run dev",
|
|
35
36
|
"stylelint": "stylelint \"**/*.{css,tsx}\"",
|
|
36
37
|
"stylelint-fix": "npm run stylelint -- --fix",
|
|
37
|
-
"test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types && npm run stylelint && npm run build-no-minify && npm run test-e2e",
|
|
38
|
+
"test": "npm run test-only && npm run eslint && npm run prettier && npm run check-types && npm run stylelint && npm run knip && npm run build-no-minify && npm run test-e2e",
|
|
38
39
|
"test-only": "vitest run --coverage",
|
|
39
40
|
"test-e2e": "playwright test --project chromium",
|
|
40
41
|
"test-e2e-server": "serve -l tcp://localhost:3000 build"
|
|
@@ -57,16 +58,15 @@
|
|
|
57
58
|
"nmr-correlation": "2.3.3"
|
|
58
59
|
},
|
|
59
60
|
"dependencies": {
|
|
60
|
-
"@blueprintjs/core": "^5.17.
|
|
61
|
-
"@blueprintjs/icons": "^5.
|
|
62
|
-
"@blueprintjs/select": "^5.3.
|
|
61
|
+
"@blueprintjs/core": "^5.17.6",
|
|
62
|
+
"@blueprintjs/icons": "^5.20.0",
|
|
63
|
+
"@blueprintjs/select": "^5.3.18",
|
|
63
64
|
"@emotion/react": "^11.14.0",
|
|
64
65
|
"@emotion/styled": "^11.14.0",
|
|
65
66
|
"@hookform/resolvers": "^4.1.3",
|
|
66
67
|
"cheminfo-font": "^1.13.1",
|
|
67
68
|
"cheminfo-types": "^1.8.1",
|
|
68
69
|
"clipboard-polyfill": "^4.1.1",
|
|
69
|
-
"convert-to-jcamp": "^5.4.11",
|
|
70
70
|
"d3": "^7.9.0",
|
|
71
71
|
"dlv": "^1.1.3",
|
|
72
72
|
"eventemitter3": "^5.0.1",
|
|
@@ -76,27 +76,20 @@
|
|
|
76
76
|
"immer": "^10.1.1",
|
|
77
77
|
"jszip": "^3.10.1",
|
|
78
78
|
"lodash": "^4.17.21",
|
|
79
|
-
"mf-parser": "^3.
|
|
80
|
-
"ml-array-max": "^1.2.4",
|
|
79
|
+
"mf-parser": "^3.4.2",
|
|
81
80
|
"ml-array-mean": "^1.1.6",
|
|
82
81
|
"ml-array-median": "^1.1.6",
|
|
83
|
-
"ml-array-xy-equally-spaced": "^1.2.1",
|
|
84
|
-
"ml-baseline-correction-regression": "^2.0.1",
|
|
85
82
|
"ml-conrec": "^5.0.3",
|
|
86
83
|
"ml-gsd": "^12.1.8",
|
|
87
|
-
"ml-matrix": "^6.12.0",
|
|
88
84
|
"ml-signal-processing": "^1.2.0",
|
|
89
85
|
"ml-spectra-processing": "^14.10.0",
|
|
90
|
-
"ml-stat": "^1.3.3",
|
|
91
86
|
"ml-tree-similarity": "^2.2.0",
|
|
92
|
-
"multiplet-analysis": "^2.1.5",
|
|
93
87
|
"nmr-correlation": "2.3.3",
|
|
94
|
-
"nmr-load-save": "^3.
|
|
95
|
-
"nmr-processing": "^17.
|
|
96
|
-
"nmredata": "^0.9.11",
|
|
88
|
+
"nmr-load-save": "^3.3.0",
|
|
89
|
+
"nmr-processing": "^17.1.3",
|
|
97
90
|
"numeral": "^2.0.6",
|
|
98
|
-
"openchemlib": "^8.
|
|
99
|
-
"openchemlib-utils": "^6.
|
|
91
|
+
"openchemlib": "^8.19.0",
|
|
92
|
+
"openchemlib-utils": "^6.7.0",
|
|
100
93
|
"papaparse": "^5.5.2",
|
|
101
94
|
"react-d3-utils": "^3.0.0",
|
|
102
95
|
"react-dropzone": "^14.3.8",
|
|
@@ -104,15 +97,14 @@
|
|
|
104
97
|
"react-hook-form": "^7.54.2",
|
|
105
98
|
"react-icons": "^5.5.0",
|
|
106
99
|
"react-inspector": "^6.0.2",
|
|
107
|
-
"react-mf": "^3.
|
|
100
|
+
"react-mf": "^3.1.0",
|
|
108
101
|
"react-ocl": "^7.0.2",
|
|
109
102
|
"react-ocl-nmr": "^3.1.0",
|
|
110
103
|
"react-plot": "^3.0.0",
|
|
111
104
|
"react-rnd": "^10.5.2",
|
|
112
|
-
"react-science": "^
|
|
105
|
+
"react-science": "^17.0.0",
|
|
113
106
|
"react-table": "^7.8.0",
|
|
114
|
-
"
|
|
115
|
-
"smart-array-filter": "^4.0.2",
|
|
107
|
+
"smart-array-filter": "^4.1.1",
|
|
116
108
|
"use-resize-observer": "^9.1.0",
|
|
117
109
|
"yup": "^1.6.1"
|
|
118
110
|
},
|
|
@@ -120,38 +112,38 @@
|
|
|
120
112
|
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
|
|
121
113
|
"@babel/preset-react": "^7.26.3",
|
|
122
114
|
"@babel/preset-typescript": "^7.26.0",
|
|
123
|
-
"@playwright/test": "^1.51.
|
|
115
|
+
"@playwright/test": "^1.51.1",
|
|
124
116
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
125
117
|
"@types/d3": "^7.4.3",
|
|
126
118
|
"@types/dlv": "^1.1.5",
|
|
127
119
|
"@types/lodash": "^4.17.16",
|
|
128
|
-
"@types/node": "^22.13.
|
|
120
|
+
"@types/node": "^22.13.12",
|
|
129
121
|
"@types/papaparse": "^5.3.15",
|
|
130
122
|
"@types/react": "^18.3.13",
|
|
131
123
|
"@types/react-dom": "^18.3.1",
|
|
132
124
|
"@types/react-table": "^7.7.20",
|
|
133
|
-
"@vitejs/plugin-react-swc": "^3.8.
|
|
134
|
-
"@vitest/coverage-v8": "^3.0.
|
|
125
|
+
"@vitejs/plugin-react-swc": "^3.8.1",
|
|
126
|
+
"@vitest/coverage-v8": "^3.0.9",
|
|
135
127
|
"cross-env": "^7.0.3",
|
|
136
128
|
"cspell": "^8.17.5",
|
|
137
|
-
"eslint": "^9.
|
|
138
|
-
"eslint-config-cheminfo-react": "^
|
|
139
|
-
"eslint-config-cheminfo-typescript": "^
|
|
140
|
-
"
|
|
129
|
+
"eslint": "^9.23.0",
|
|
130
|
+
"eslint-config-cheminfo-react": "^16.0.0",
|
|
131
|
+
"eslint-config-cheminfo-typescript": "^18.0.0",
|
|
132
|
+
"knip": "^5.46.0",
|
|
141
133
|
"modern-normalize": "^3.0.1",
|
|
142
134
|
"postcss-styled-syntax": "^0.7.1",
|
|
143
135
|
"prettier": "^3.5.3",
|
|
144
136
|
"rc-menu": "^9.16.1",
|
|
145
137
|
"react": "^18.3.1",
|
|
146
138
|
"react-dom": "^18.3.1",
|
|
147
|
-
"react-router-dom": "^7.
|
|
139
|
+
"react-router-dom": "^7.4.0",
|
|
148
140
|
"rimraf": "^6.0.1",
|
|
149
141
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
150
142
|
"serve": "^14.2.4",
|
|
151
|
-
"stylelint": "^16.
|
|
143
|
+
"stylelint": "^16.16.0",
|
|
152
144
|
"stylelint-config-standard": "^37.0.0",
|
|
153
145
|
"typescript": "^5.8.2",
|
|
154
|
-
"vite": "^6.2.
|
|
155
|
-
"vitest": "^3.0.
|
|
146
|
+
"vite": "^6.2.3",
|
|
147
|
+
"vitest": "^3.0.9"
|
|
156
148
|
}
|
|
157
149
|
}
|
|
@@ -32,7 +32,6 @@ export function SVGContent1D() {
|
|
|
32
32
|
<Ranges />
|
|
33
33
|
<Peaks peaksSource="ranges" />
|
|
34
34
|
<MultiplicityTrees />
|
|
35
|
-
<JGraph />
|
|
36
35
|
<MultiAnalysisRanges />
|
|
37
36
|
<BaseLineZones />
|
|
38
37
|
<ExclusionZonesAnnotations />
|
|
@@ -45,6 +44,7 @@ export function SVGContent1D() {
|
|
|
45
44
|
|
|
46
45
|
<SimilarityTree />
|
|
47
46
|
</ClipPathContainer>
|
|
47
|
+
<JGraph />
|
|
48
48
|
|
|
49
49
|
<g className="container" style={{ pointerEvents: 'none' }}>
|
|
50
50
|
<XAxis1D />
|
|
@@ -3,7 +3,7 @@ import { ResponsiveChart } from 'react-d3-utils';
|
|
|
3
3
|
|
|
4
4
|
import { SVGRootContainer } from '../1d-2d/components/SVGRootContainer.js';
|
|
5
5
|
import { ViewerResponsiveWrapper } from '../1d-2d/components/ViewerResponsiveWrapper.js';
|
|
6
|
-
import BrushXY
|
|
6
|
+
import BrushXY from '../1d-2d/tools/BrushXY.js';
|
|
7
7
|
import CrossLinePointer from '../1d-2d/tools/CrossLinePointer.js';
|
|
8
8
|
import { MouseTracker } from '../EventsTrackers/MouseTracker.js';
|
|
9
9
|
import { useChartData } from '../context/ChartContext.js';
|
|
@@ -47,7 +47,7 @@ function InnerViewer1D(props: InnerViewer1DProps) {
|
|
|
47
47
|
}}
|
|
48
48
|
>
|
|
49
49
|
<CrossLinePointer />
|
|
50
|
-
<BrushXY
|
|
50
|
+
<BrushXY axis="X" />
|
|
51
51
|
<XLabelPointer />
|
|
52
52
|
<PeakPointer />
|
|
53
53
|
<FooterBanner />
|
|
@@ -24,12 +24,6 @@ interface InsetPagContextProps extends BaseInsetPagContextProps {
|
|
|
24
24
|
|
|
25
25
|
const InsetContext = createContext<InsetPagContextProps | null>(null);
|
|
26
26
|
|
|
27
|
-
export function isInsetNotNull(
|
|
28
|
-
inset: InsetPagContextProps | null,
|
|
29
|
-
): inset is InsetPagContextProps {
|
|
30
|
-
return !!inset;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
27
|
export function useInsetOptions() {
|
|
34
28
|
return useContext(InsetContext);
|
|
35
29
|
}
|
|
@@ -1,24 +1,53 @@
|
|
|
1
|
+
import type { ScaleLinear } from 'd3';
|
|
2
|
+
import { useRef } from 'react';
|
|
3
|
+
import { useLinearPrimaryTicks } from 'react-d3-utils';
|
|
4
|
+
|
|
1
5
|
import { useChartData } from '../../context/ChartContext.js';
|
|
2
|
-
import {
|
|
6
|
+
import { D3Axis } from '../../elements/D3Axis.js';
|
|
3
7
|
|
|
4
8
|
import { useJGraph } from './JGraphContext.js';
|
|
5
9
|
|
|
6
10
|
export function JGraphVerticalAxis() {
|
|
7
11
|
const { width, margin } = useChartData();
|
|
8
|
-
const {
|
|
12
|
+
const { scaleY } = useJGraph();
|
|
9
13
|
|
|
10
14
|
if (!scaleY) return null;
|
|
11
15
|
|
|
12
16
|
return (
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
<LinearVerticalAxis
|
|
18
|
+
x={margin.left + 12}
|
|
19
|
+
y={0}
|
|
20
|
+
scale={scaleY}
|
|
21
|
+
width={width - margin.right}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface VerticalAxisProps {
|
|
27
|
+
width: number;
|
|
28
|
+
scale: ScaleLinear<number, number>;
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function LinearVerticalAxis(props: VerticalAxisProps) {
|
|
34
|
+
const { scale, x, y, width } = props;
|
|
35
|
+
const ref = useRef<SVGGElement>(null);
|
|
36
|
+
const { scale: ticksScale, ticks } = useLinearPrimaryTicks(
|
|
37
|
+
scale,
|
|
38
|
+
'vertical',
|
|
39
|
+
ref,
|
|
40
|
+
);
|
|
41
|
+
return (
|
|
42
|
+
<D3Axis
|
|
43
|
+
ref={ref}
|
|
44
|
+
transform={`translate(${x}, ${y})`}
|
|
45
|
+
scale={ticksScale}
|
|
46
|
+
axisPosition="left"
|
|
47
|
+
gridSize={width - x}
|
|
48
|
+
ticks={ticks}
|
|
49
|
+
showGrid
|
|
50
|
+
primaryGridProps={{ strokeDasharray: '0' }}
|
|
51
|
+
/>
|
|
23
52
|
);
|
|
24
53
|
}
|
|
@@ -137,7 +137,7 @@ export function Boxplot() {
|
|
|
137
137
|
|
|
138
138
|
return <InnerBoxplot scaleRatio={scaleRatio} />;
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
function InnerBoxplot(props: InnerBoxplotProps) {
|
|
141
141
|
const { scaleRatio } = props;
|
|
142
142
|
const data = useBoxPlot();
|
|
143
143
|
|
|
@@ -46,7 +46,7 @@ function useStocsy(chemicalShift: number): StocsyData | null {
|
|
|
46
46
|
const { color, y } = matrixToStocsy(matrixY, cIndex);
|
|
47
47
|
const yDomain = extent(y) as number[];
|
|
48
48
|
return {
|
|
49
|
-
color,
|
|
49
|
+
color: color as string[],
|
|
50
50
|
y,
|
|
51
51
|
yDomain,
|
|
52
52
|
x,
|
|
@@ -89,7 +89,7 @@ export function Stocsy() {
|
|
|
89
89
|
return <InnerStocsy scaleRatio={scaleRatio} chemicalShift={chemicalShift} />;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
function InnerStocsy({ scaleRatio, chemicalShift }) {
|
|
93
93
|
const stocsyData = useStocsy(chemicalShift);
|
|
94
94
|
const data = useSliceStocsyData(stocsyData);
|
|
95
95
|
|
|
@@ -33,8 +33,9 @@ interface MultiplicityTreeProps {
|
|
|
33
33
|
const treeLevelsColors: string[] = ['red', 'green', 'blue', 'magenta'];
|
|
34
34
|
const marginBottom = 20;
|
|
35
35
|
const headTextMargin = 5;
|
|
36
|
-
const
|
|
36
|
+
const tailLength = 10;
|
|
37
37
|
const boxPadding = 20;
|
|
38
|
+
const headerTextSize = 12;
|
|
38
39
|
|
|
39
40
|
export default function MultiplicityTree(props: MultiplicityTreeProps) {
|
|
40
41
|
const { range } = props;
|
|
@@ -99,13 +100,7 @@ function Tree(props: TreeProps) {
|
|
|
99
100
|
widthRatio = (scaleX()(from) - scaleX()(to)) / width;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
|
-
const
|
|
103
|
-
const rationTextSize = widthRatio * 30;
|
|
104
|
-
let multiplicityTextSize = rationTextSize;
|
|
105
|
-
|
|
106
|
-
if (multiplicityTextSize < 10) {
|
|
107
|
-
multiplicityTextSize = 10;
|
|
108
|
-
}
|
|
103
|
+
const isRationLabelsVisible = widthRatio > 0.1;
|
|
109
104
|
|
|
110
105
|
const isMassive = ['m', 's'].includes(multiplicity);
|
|
111
106
|
const levelLength = isMassive ? tailLength : tailLength * 2;
|
|
@@ -143,10 +138,9 @@ function Tree(props: TreeProps) {
|
|
|
143
138
|
const isHighlighted = highlight.isActive || isAssignmentActive;
|
|
144
139
|
const padding = boxPadding * widthRatio;
|
|
145
140
|
const x = scaleX()(max) - padding;
|
|
146
|
-
const y = startY - headTextMargin -
|
|
141
|
+
const y = startY - headTextMargin - headerTextSize - padding;
|
|
147
142
|
const boxWidth = treeWidth + padding * 2;
|
|
148
|
-
const boxHeight =
|
|
149
|
-
treeHeight + headTextMargin + multiplicityTextSize + padding * 2;
|
|
143
|
+
const boxHeight = treeHeight + headTextMargin + headerTextSize + padding * 2;
|
|
150
144
|
|
|
151
145
|
const actionsButtons: ActionsButtonsPopoverProps['buttons'] = [
|
|
152
146
|
{
|
|
@@ -203,7 +197,7 @@ function Tree(props: TreeProps) {
|
|
|
203
197
|
x={headX}
|
|
204
198
|
y={startY - headTextMargin}
|
|
205
199
|
textAnchor="middle"
|
|
206
|
-
fontSize={
|
|
200
|
+
fontSize={headerTextSize}
|
|
207
201
|
fill="black"
|
|
208
202
|
>
|
|
209
203
|
{multiplicity}
|
|
@@ -233,6 +227,7 @@ function Tree(props: TreeProps) {
|
|
|
233
227
|
</g>
|
|
234
228
|
<g className="multiplicity-tree-ration-labels">
|
|
235
229
|
{!isMassive &&
|
|
230
|
+
isRationLabelsVisible &&
|
|
236
231
|
otherNodes.map((node, index) => {
|
|
237
232
|
const { x, level, ratio } = node;
|
|
238
233
|
const x1 = scaleX()(x);
|
|
@@ -248,7 +243,7 @@ function Tree(props: TreeProps) {
|
|
|
248
243
|
y={startY + y}
|
|
249
244
|
textAnchor="middle"
|
|
250
245
|
alignmentBaseline="middle"
|
|
251
|
-
fontSize=
|
|
246
|
+
fontSize="10px"
|
|
252
247
|
fill={levelColor}
|
|
253
248
|
>
|
|
254
249
|
{ratio}
|
|
@@ -28,12 +28,12 @@ interface SpreadNMRPeak1D extends NMRPeak1DWithParentKeys {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export type Peak = Required<SpreadPeak1D | SpreadNMRPeak1D>;
|
|
31
|
-
|
|
31
|
+
type PeaksMode = 'spread' | 'single';
|
|
32
32
|
export type PeaksSource = 'peaks' | 'ranges';
|
|
33
33
|
|
|
34
34
|
type FilterPeaksBy = `Source[${PeaksSource}]_Mode[${PeaksMode}]`;
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
interface BasePeaksProps {
|
|
37
37
|
peaksSource: PeaksSource;
|
|
38
38
|
displayerKey: string;
|
|
39
39
|
xDomain: number[];
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { scaleLinear
|
|
1
|
+
import { scaleLinear } from 'd3';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
|
|
4
4
|
import { useChartData } from '../../context/ChartContext.js';
|
|
5
|
-
import { useSpectraBottomMargin } from '../../hooks/useSpectraBottomMargin.js';
|
|
6
|
-
import { useVerticalAlign } from '../../hooks/useVerticalAlign.js';
|
|
7
5
|
import type {
|
|
8
6
|
Domains,
|
|
9
7
|
Margin,
|
|
@@ -118,17 +116,6 @@ function getYScaleWithRation(options: IntegralYScaleOptions) {
|
|
|
118
116
|
);
|
|
119
117
|
}
|
|
120
118
|
|
|
121
|
-
function reScaleY(scale: number, { domain, height, margin }) {
|
|
122
|
-
const _scale = scaleLinear(domain, [height - margin.bottom, margin.top]);
|
|
123
|
-
|
|
124
|
-
const t = zoomIdentity
|
|
125
|
-
.translate(0, _scale(0))
|
|
126
|
-
.scale(scale)
|
|
127
|
-
.translate(0, -_scale(0));
|
|
128
|
-
|
|
129
|
-
return t.rescaleY(_scale).domain();
|
|
130
|
-
}
|
|
131
|
-
|
|
132
119
|
function useScaleX() {
|
|
133
120
|
const { margin, mode, width, xDomain, xDomains } = useChartData();
|
|
134
121
|
const isInset = useIsInset();
|
|
@@ -144,49 +131,12 @@ function useScaleX() {
|
|
|
144
131
|
[isInset, margin, mode, width, xDomain, xDomains],
|
|
145
132
|
);
|
|
146
133
|
}
|
|
147
|
-
function useScaleY() {
|
|
148
|
-
const { margin, height, yDomain, yDomains } = useChartData();
|
|
149
|
-
const verticalAlign = useVerticalAlign();
|
|
150
|
-
const isInset = useIsInset();
|
|
151
|
-
const spectraBottomMargin = useSpectraBottomMargin();
|
|
152
|
-
|
|
153
|
-
return useCallback(
|
|
154
|
-
(spectrumId = null) => {
|
|
155
|
-
if (isInset) {
|
|
156
|
-
return getInsetYScale({ margin, height, yDomain, spectraBottomMargin });
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return getYScale(
|
|
160
|
-
{
|
|
161
|
-
margin,
|
|
162
|
-
height,
|
|
163
|
-
verticalAlign,
|
|
164
|
-
yDomain,
|
|
165
|
-
yDomains,
|
|
166
|
-
spectraBottomMargin,
|
|
167
|
-
},
|
|
168
|
-
spectrumId,
|
|
169
|
-
);
|
|
170
|
-
},
|
|
171
|
-
[
|
|
172
|
-
isInset,
|
|
173
|
-
margin,
|
|
174
|
-
height,
|
|
175
|
-
verticalAlign,
|
|
176
|
-
yDomain,
|
|
177
|
-
yDomains,
|
|
178
|
-
spectraBottomMargin,
|
|
179
|
-
],
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
134
|
|
|
183
135
|
export {
|
|
184
136
|
useScaleX,
|
|
185
|
-
useScaleY,
|
|
186
137
|
getXScale,
|
|
187
138
|
getYScale,
|
|
188
139
|
getIntegralYScale,
|
|
189
|
-
reScaleY,
|
|
190
140
|
getYScaleWithRation,
|
|
191
141
|
getInsetXScale,
|
|
192
142
|
getInsetYScale,
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
detectBrushing,
|
|
5
|
+
useBrushTracker,
|
|
6
|
+
} from '../../EventsTrackers/BrushTracker.js';
|
|
7
|
+
import type { BrushAxis } from '../../EventsTrackers/BrushTracker.js';
|
|
4
8
|
import { useChartData } from '../../context/ChartContext.js';
|
|
9
|
+
import type { Margin } from '../../reducer/Reducer.js';
|
|
5
10
|
import { options } from '../../toolbar/ToolTypes.js';
|
|
6
11
|
|
|
7
12
|
const styles: Record<'container', CSSProperties> = {
|
|
@@ -38,12 +43,6 @@ const allowTools = new Set([
|
|
|
38
43
|
options.inset.id,
|
|
39
44
|
]);
|
|
40
45
|
|
|
41
|
-
export const BRUSH_TYPE = {
|
|
42
|
-
X: 1,
|
|
43
|
-
Y: 2,
|
|
44
|
-
XY: 3,
|
|
45
|
-
};
|
|
46
|
-
|
|
47
46
|
const defaultDimensionBorder: {
|
|
48
47
|
startX: number;
|
|
49
48
|
startY: number;
|
|
@@ -55,7 +54,7 @@ const defaultDimensionBorder: {
|
|
|
55
54
|
};
|
|
56
55
|
|
|
57
56
|
interface BrushXYProps {
|
|
58
|
-
|
|
57
|
+
axis: BrushAxis;
|
|
59
58
|
dimensionBorder?: {
|
|
60
59
|
startX: number;
|
|
61
60
|
startY: number;
|
|
@@ -64,19 +63,24 @@ interface BrushXYProps {
|
|
|
64
63
|
};
|
|
65
64
|
width?: number;
|
|
66
65
|
height?: number;
|
|
66
|
+
margin?: Margin;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export default function BrushXY({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
export default function BrushXY(props: BrushXYProps) {
|
|
70
|
+
const {
|
|
71
|
+
axis = 'XY',
|
|
72
|
+
dimensionBorder = defaultDimensionBorder,
|
|
73
|
+
width: widthProps,
|
|
74
|
+
height: heightProps,
|
|
75
|
+
margin: externalMargin,
|
|
76
|
+
} = props;
|
|
75
77
|
const {
|
|
76
78
|
width,
|
|
77
79
|
height,
|
|
78
80
|
toolOptions: { selectedTool },
|
|
81
|
+
margin: innerMargin,
|
|
79
82
|
} = useChartData();
|
|
83
|
+
const margin = externalMargin ?? innerMargin;
|
|
80
84
|
const brushTracker = useBrushTracker();
|
|
81
85
|
const { step, mouseButton } = brushTracker;
|
|
82
86
|
let { startX, endX, startY, endY } = brushTracker;
|
|
@@ -99,8 +103,8 @@ export default function BrushXY({
|
|
|
99
103
|
return null;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
const finalWidth = widthProps || width;
|
|
103
|
-
const finalHeight = heightProps || height;
|
|
106
|
+
const finalWidth = widthProps || width - margin.left - margin.right;
|
|
107
|
+
const finalHeight = heightProps || height - margin.top - margin.bottom;
|
|
104
108
|
|
|
105
109
|
endX =
|
|
106
110
|
dimensionBorder.endX && endX > dimensionBorder.endX
|
|
@@ -114,20 +118,18 @@ export default function BrushXY({
|
|
|
114
118
|
: dimensionBorder.startY && endY < dimensionBorder.startY
|
|
115
119
|
? dimensionBorder.startY
|
|
116
120
|
: endY;
|
|
121
|
+
const brush = detectBrushing(
|
|
122
|
+
{ startX, startY, endX, endY },
|
|
123
|
+
finalWidth,
|
|
124
|
+
finalHeight,
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
const scaleX = axis === 'X' || axis === 'XY' ? brush.scaleX : 1;
|
|
128
|
+
const scaleY = axis === 'Y' || axis === 'XY' ? brush.scaleY : 1;
|
|
117
129
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
? (endX - startX) / finalWidth
|
|
121
|
-
: 1;
|
|
122
|
-
startX =
|
|
123
|
-
brushType === BRUSH_TYPE.X || brushType === BRUSH_TYPE.XY ? startX : 0;
|
|
130
|
+
startX = axis === 'Y' ? margin.left : brush.startX || margin.left;
|
|
131
|
+
startY = axis === 'X' ? margin.top : brush.startY || margin.top;
|
|
124
132
|
|
|
125
|
-
const scaleY =
|
|
126
|
-
brushType === BRUSH_TYPE.Y || brushType === BRUSH_TYPE.XY
|
|
127
|
-
? (endY - startY) / finalHeight
|
|
128
|
-
: 1;
|
|
129
|
-
startY =
|
|
130
|
-
brushType === BRUSH_TYPE.Y || brushType === BRUSH_TYPE.XY ? startY : 0;
|
|
131
133
|
return (
|
|
132
134
|
<div
|
|
133
135
|
style={{
|