nmrium 0.61.1-pre.1742812740 → 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/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/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 +1 -1
- 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/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.js +8 -12
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js +1 -2
- package/lib/component/modal/editRange/forms/validation/EditRangeValidation.js.map +1 -1
- package/lib/component/modal/editRange/utils/mapCouplings.js +1 -1
- package/lib/component/modal/editRange/utils/mapCouplings.js.map +1 -1
- 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/{mapSignals.js → mapRange.js} +6 -5
- 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/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 +0 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js +2 -2
- 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/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/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/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/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 +5 -12
- package/src/component/1d/Viewer1D.tsx +2 -2
- package/src/component/1d/inset/InsetProvider.tsx +0 -6
- package/src/component/1d/matrix/Boxplot.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +1 -1
- 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/modal/PredictSpectraModal.tsx +1 -3
- package/src/component/modal/changeSum/ChangeSumModal.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +8 -15
- package/src/component/modal/editRange/forms/validation/EditRangeValidation.ts +2 -2
- package/src/component/modal/editRange/utils/mapCouplings.ts +1 -1
- package/src/component/modal/editRange/utils/{mapSignals.ts → mapRange.ts} +5 -4
- 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/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 +2 -2
- package/src/component/panels/databasePanel/DatabasePanel.tsx +1 -1
- 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/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/modal/editRange/utils/mapSignals.d.ts +0 -25
- package/lib/component/modal/editRange/utils/mapSignals.d.ts.map +0 -1
- package/lib/component/modal/editRange/utils/mapSignals.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/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
|
@@ -53,11 +53,11 @@ function FooterBanner({ layout, data1D }) {
|
|
|
53
53
|
}
|
|
54
54
|
if (selectedTool !== options.slicing.id) {
|
|
55
55
|
switch (trackID) {
|
|
56
|
-
case LAYOUT.
|
|
57
|
-
case LAYOUT.
|
|
56
|
+
case LAYOUT.top:
|
|
57
|
+
case LAYOUT.main: {
|
|
58
58
|
return get2DXScale({ width, margin, xDomain, mode });
|
|
59
59
|
}
|
|
60
|
-
case LAYOUT.
|
|
60
|
+
case LAYOUT.left: {
|
|
61
61
|
return get2DYScale({ height, margin, yDomain });
|
|
62
62
|
}
|
|
63
63
|
default:
|
|
@@ -83,15 +83,15 @@ function FooterBanner({ layout, data1D }) {
|
|
|
83
83
|
}
|
|
84
84
|
if (selectedTool !== options.slicing.id) {
|
|
85
85
|
switch (trackID) {
|
|
86
|
-
case LAYOUT.
|
|
86
|
+
case LAYOUT.main: {
|
|
87
87
|
return get2DYScale({ height, margin, yDomain });
|
|
88
88
|
}
|
|
89
|
-
case LAYOUT.
|
|
89
|
+
case LAYOUT.top: {
|
|
90
90
|
return data1D[0]
|
|
91
91
|
? get1DYScale(yDomains[data1D[0].id], margin.top)
|
|
92
92
|
: null;
|
|
93
93
|
}
|
|
94
|
-
case LAYOUT.
|
|
94
|
+
case LAYOUT.left: {
|
|
95
95
|
return data1D[1]
|
|
96
96
|
? get1DYScale(yDomains[data1D[1].id], margin.left)
|
|
97
97
|
: null;
|
|
@@ -116,9 +116,9 @@ function FooterBanner({ layout, data1D }) {
|
|
|
116
116
|
}
|
|
117
117
|
const getRealYValue = (coordinate) => {
|
|
118
118
|
let index: number | null = null;
|
|
119
|
-
if (trackID === LAYOUT.
|
|
119
|
+
if (trackID === LAYOUT.top) {
|
|
120
120
|
index = 0;
|
|
121
|
-
} else if (trackID === LAYOUT.
|
|
121
|
+
} else if (trackID === LAYOUT.left) {
|
|
122
122
|
index = 1;
|
|
123
123
|
}
|
|
124
124
|
if (index != null && scaleX != null && data1D[index]) {
|
|
@@ -132,11 +132,11 @@ function FooterBanner({ layout, data1D }) {
|
|
|
132
132
|
const getXValue = (x: number | null = null) => {
|
|
133
133
|
if (scaleX != null) {
|
|
134
134
|
switch (trackID) {
|
|
135
|
-
case LAYOUT.
|
|
136
|
-
case LAYOUT.
|
|
135
|
+
case LAYOUT.main:
|
|
136
|
+
case LAYOUT.top: {
|
|
137
137
|
return scaleX.invert(x || position.x);
|
|
138
138
|
}
|
|
139
|
-
case LAYOUT.
|
|
139
|
+
case LAYOUT.left: {
|
|
140
140
|
return scaleX.invert(x || position.y);
|
|
141
141
|
}
|
|
142
142
|
default:
|
|
@@ -149,11 +149,11 @@ function FooterBanner({ layout, data1D }) {
|
|
|
149
149
|
const getYValue = () => {
|
|
150
150
|
if (scaleY != null) {
|
|
151
151
|
switch (trackID) {
|
|
152
|
-
case LAYOUT.
|
|
153
|
-
case LAYOUT.
|
|
152
|
+
case LAYOUT.main:
|
|
153
|
+
case LAYOUT.top: {
|
|
154
154
|
return scaleY.invert(position.y);
|
|
155
155
|
}
|
|
156
|
-
case LAYOUT.
|
|
156
|
+
case LAYOUT.left: {
|
|
157
157
|
return scaleY.invert(position.x);
|
|
158
158
|
}
|
|
159
159
|
default:
|
|
@@ -165,13 +165,13 @@ function FooterBanner({ layout, data1D }) {
|
|
|
165
165
|
|
|
166
166
|
const getRation = () => {
|
|
167
167
|
switch (trackID) {
|
|
168
|
-
case LAYOUT.
|
|
168
|
+
case LAYOUT.top: {
|
|
169
169
|
return (
|
|
170
170
|
(getRealYValue(startX) / (getRealYValue(endX) || Number.MIN_VALUE)) *
|
|
171
171
|
100
|
|
172
172
|
).toFixed(2);
|
|
173
173
|
}
|
|
174
|
-
case LAYOUT.
|
|
174
|
+
case LAYOUT.left: {
|
|
175
175
|
return (
|
|
176
176
|
(getRealYValue(startY) / (getRealYValue(endY) || Number.MIN_VALUE)) *
|
|
177
177
|
100
|
|
@@ -184,10 +184,10 @@ function FooterBanner({ layout, data1D }) {
|
|
|
184
184
|
|
|
185
185
|
const getDeltaX = () => {
|
|
186
186
|
switch (trackID) {
|
|
187
|
-
case LAYOUT.
|
|
187
|
+
case LAYOUT.top: {
|
|
188
188
|
return (getXValue(startX) - getXValue(endX)).toPrecision(6);
|
|
189
189
|
}
|
|
190
|
-
case LAYOUT.
|
|
190
|
+
case LAYOUT.left: {
|
|
191
191
|
return (getXValue(startY) - getXValue(endY)).toPrecision(6);
|
|
192
192
|
}
|
|
193
193
|
default:
|
|
@@ -196,7 +196,7 @@ function FooterBanner({ layout, data1D }) {
|
|
|
196
196
|
};
|
|
197
197
|
|
|
198
198
|
const getLabel = (label2d, label1d, nucleus) => {
|
|
199
|
-
return trackID === LAYOUT.
|
|
199
|
+
return trackID === LAYOUT.main ? (
|
|
200
200
|
<Fragment>
|
|
201
201
|
{label2d} ( <MF mf={nucleus} /> )
|
|
202
202
|
</Fragment>
|
|
@@ -208,7 +208,7 @@ function FooterBanner({ layout, data1D }) {
|
|
|
208
208
|
const getZValue = () => {
|
|
209
209
|
const spectrum = spectra[activeSpectrum.index];
|
|
210
210
|
|
|
211
|
-
if (trackID === LAYOUT.
|
|
211
|
+
if (trackID === LAYOUT.main && isSpectrum2D(spectrum)) {
|
|
212
212
|
const { data } = spectrum;
|
|
213
213
|
const { maxX, maxY, minX, minY, z } = isFid2DData(data)
|
|
214
214
|
? data.re
|
|
@@ -8,7 +8,6 @@ import XAxis from './XAxis.js';
|
|
|
8
8
|
import YAxis from './YAxis.js';
|
|
9
9
|
import { FidContainer } from './fid/FidContainer.js';
|
|
10
10
|
import { FTContainer } from './ft/FTContainer.js';
|
|
11
|
-
import { useTracesSpectra } from './useTracesSpectra.js';
|
|
12
11
|
import IndicationLines from './zones/IndicationLines.js';
|
|
13
12
|
import Zones from './zones/Zones.js';
|
|
14
13
|
import ZonesAssignmentsLabels from './zones/ZonesAssignmentsLabels.js';
|
|
@@ -40,8 +39,3 @@ export function SVGContent2D({ spectra }: Chart2DProps) {
|
|
|
40
39
|
</g>
|
|
41
40
|
);
|
|
42
41
|
}
|
|
43
|
-
|
|
44
|
-
export function SVGContent2DWithSpectra() {
|
|
45
|
-
const spectra = useTracesSpectra();
|
|
46
|
-
return <SVGContent2D spectra={spectra} />;
|
|
47
|
-
}
|
|
@@ -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';
|
|
@@ -64,23 +64,22 @@ function Viewer2D(props: Viewer2DProps) {
|
|
|
64
64
|
<CrossLinePointer />
|
|
65
65
|
<XYLabelPointer data1D={spectrumData} layout={DIMENSION} />
|
|
66
66
|
|
|
67
|
-
<BrushXY
|
|
68
|
-
brushType={BRUSH_TYPE.XY}
|
|
69
|
-
dimensionBorder={DIMENSION.CENTER_2D}
|
|
70
|
-
/>
|
|
67
|
+
<BrushXY axis="XY" dimensionBorder={DIMENSION.MAIN} />
|
|
71
68
|
<>
|
|
72
69
|
{spectrumData[0] && (
|
|
73
70
|
<BrushXY
|
|
74
|
-
|
|
75
|
-
dimensionBorder={DIMENSION.
|
|
71
|
+
axis="X"
|
|
72
|
+
dimensionBorder={DIMENSION.TOP}
|
|
76
73
|
height={margin.top}
|
|
74
|
+
margin={{ ...margin, top: 0, bottom: 0 }}
|
|
77
75
|
/>
|
|
78
76
|
)}
|
|
79
77
|
{spectrumData[1] && (
|
|
80
78
|
<BrushXY
|
|
81
|
-
|
|
82
|
-
dimensionBorder={DIMENSION.
|
|
79
|
+
axis="Y"
|
|
80
|
+
dimensionBorder={DIMENSION.LEFT}
|
|
83
81
|
width={margin.left}
|
|
82
|
+
margin={{ ...margin, left: 0, right: 0 }}
|
|
84
83
|
/>
|
|
85
84
|
)}
|
|
86
85
|
</>
|
|
@@ -52,11 +52,11 @@ function XYLabelPointer({ layout, data1D }) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
switch (trackID) {
|
|
55
|
-
case LAYOUT.
|
|
56
|
-
case LAYOUT.
|
|
55
|
+
case LAYOUT.top:
|
|
56
|
+
case LAYOUT.main: {
|
|
57
57
|
return scale2DX;
|
|
58
58
|
}
|
|
59
|
-
case LAYOUT.
|
|
59
|
+
case LAYOUT.left: {
|
|
60
60
|
return scale2DY;
|
|
61
61
|
}
|
|
62
62
|
default:
|
|
@@ -69,15 +69,15 @@ function XYLabelPointer({ layout, data1D }) {
|
|
|
69
69
|
return scale2DY;
|
|
70
70
|
}
|
|
71
71
|
switch (trackID) {
|
|
72
|
-
case LAYOUT.
|
|
72
|
+
case LAYOUT.main: {
|
|
73
73
|
return scale2DY;
|
|
74
74
|
}
|
|
75
|
-
case LAYOUT.
|
|
75
|
+
case LAYOUT.top: {
|
|
76
76
|
return data1D[0]
|
|
77
77
|
? get1DYScale(yDomains[data1D[0].id], margin.top)
|
|
78
78
|
: null;
|
|
79
79
|
}
|
|
80
|
-
case LAYOUT.
|
|
80
|
+
case LAYOUT.left: {
|
|
81
81
|
return data1D[1]
|
|
82
82
|
? get1DYScale(yDomains[data1D[1].id], margin.left)
|
|
83
83
|
: null;
|
|
@@ -108,11 +108,11 @@ function XYLabelPointer({ layout, data1D }) {
|
|
|
108
108
|
|
|
109
109
|
const getXValue = (x = null) => {
|
|
110
110
|
switch (trackID) {
|
|
111
|
-
case LAYOUT.
|
|
112
|
-
case LAYOUT.
|
|
111
|
+
case LAYOUT.main:
|
|
112
|
+
case LAYOUT.top: {
|
|
113
113
|
return scaleX?.invert(x || position.x);
|
|
114
114
|
}
|
|
115
|
-
case LAYOUT.
|
|
115
|
+
case LAYOUT.left: {
|
|
116
116
|
return scaleX?.invert(x || position.y);
|
|
117
117
|
}
|
|
118
118
|
default:
|
|
@@ -122,11 +122,11 @@ function XYLabelPointer({ layout, data1D }) {
|
|
|
122
122
|
|
|
123
123
|
const getYValue = () => {
|
|
124
124
|
switch (trackID) {
|
|
125
|
-
case LAYOUT.
|
|
126
|
-
case LAYOUT.
|
|
125
|
+
case LAYOUT.main:
|
|
126
|
+
case LAYOUT.top: {
|
|
127
127
|
return scaleY?.invert(position.y);
|
|
128
128
|
}
|
|
129
|
-
case LAYOUT.
|
|
129
|
+
case LAYOUT.left: {
|
|
130
130
|
return scaleY?.invert(position.x);
|
|
131
131
|
}
|
|
132
132
|
default:
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import type { BrushCoordination } from '../../EventsTrackers/BrushTracker.js';
|
|
2
|
+
|
|
1
3
|
const LAYOUT = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
main: 'MAIN',
|
|
5
|
+
top: 'TOP',
|
|
6
|
+
left: 'LEFT',
|
|
5
7
|
} as const;
|
|
6
8
|
|
|
7
|
-
type Layout = keyof typeof LAYOUT;
|
|
9
|
+
type Layout = (typeof LAYOUT)[keyof typeof LAYOUT];
|
|
8
10
|
|
|
9
11
|
interface MarginProps {
|
|
10
12
|
top: number;
|
|
@@ -21,21 +23,21 @@ function get2DDimensionLayout({
|
|
|
21
23
|
width: number;
|
|
22
24
|
height: number;
|
|
23
25
|
margin: MarginProps;
|
|
24
|
-
}) {
|
|
26
|
+
}): Record<Layout, BrushCoordination> {
|
|
25
27
|
return {
|
|
26
|
-
|
|
28
|
+
MAIN: {
|
|
27
29
|
startX: margin.left,
|
|
28
30
|
startY: margin.top,
|
|
29
31
|
endX: width - margin.right,
|
|
30
32
|
endY: height - margin.bottom,
|
|
31
33
|
},
|
|
32
|
-
|
|
34
|
+
TOP: {
|
|
33
35
|
startX: margin.left,
|
|
34
36
|
startY: 0,
|
|
35
37
|
endX: width - margin.right,
|
|
36
38
|
endY: margin.top,
|
|
37
39
|
},
|
|
38
|
-
|
|
40
|
+
LEFT: {
|
|
39
41
|
startX: 0,
|
|
40
42
|
startY: margin.top,
|
|
41
43
|
endX: margin.left,
|
|
@@ -5,9 +5,6 @@ import { useMemo } from 'react';
|
|
|
5
5
|
import { useChartData } from '../../context/ChartContext.js';
|
|
6
6
|
import type { Margin, SpectraDirection } from '../../reducer/Reducer.js';
|
|
7
7
|
|
|
8
|
-
import type { Layout } from './DimensionLayout.js';
|
|
9
|
-
import { LAYOUT } from './DimensionLayout.js';
|
|
10
|
-
|
|
11
8
|
interface Scale2DXOptions {
|
|
12
9
|
width: number;
|
|
13
10
|
margin: Pick<Margin, 'left' | 'right'>;
|
|
@@ -56,39 +53,6 @@ function useScale2DY(reverse?: boolean) {
|
|
|
56
53
|
);
|
|
57
54
|
}
|
|
58
55
|
|
|
59
|
-
interface TopLayout {
|
|
60
|
-
width: number;
|
|
61
|
-
margin: { right: number; left: number };
|
|
62
|
-
xDomain: number[];
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface LeftLayout {
|
|
66
|
-
height: number;
|
|
67
|
-
margin: { bottom: number; top: number };
|
|
68
|
-
yDomain: number[];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function get1DXScale(props: TopLayout | LeftLayout, layout: Layout) {
|
|
72
|
-
if (!['TOP_1D', 'LEFT_1D'].includes(layout)) {
|
|
73
|
-
throw new Error(
|
|
74
|
-
`layout is required and must be ${LAYOUT.TOP_1D} or ${LAYOUT.LEFT_1D} `,
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
switch (layout) {
|
|
79
|
-
case LAYOUT.TOP_1D: {
|
|
80
|
-
const { width, margin, xDomain } = props as TopLayout;
|
|
81
|
-
return scaleLinear(xDomain, [width - margin.right, margin.left]);
|
|
82
|
-
}
|
|
83
|
-
case LAYOUT.LEFT_1D: {
|
|
84
|
-
const { height, margin, yDomain } = props as LeftLayout;
|
|
85
|
-
return scaleLinear(yDomain, [height - margin.bottom, margin.top]);
|
|
86
|
-
}
|
|
87
|
-
default:
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
56
|
function get1DYScale(yDomain: number[], height: number, margin = 10) {
|
|
93
57
|
return scaleLinear(yDomain, [height - margin, margin]);
|
|
94
58
|
}
|
|
@@ -96,10 +60,10 @@ function get1DYScale(yDomain: number[], height: number, margin = 10) {
|
|
|
96
60
|
function use1DTraceYScale(
|
|
97
61
|
SpectrumId: string,
|
|
98
62
|
height: number,
|
|
99
|
-
|
|
63
|
+
leftMargin: number,
|
|
100
64
|
) {
|
|
101
65
|
const { yDomains } = useChartData();
|
|
102
|
-
return get1DYScale(yDomains[SpectrumId], height,
|
|
66
|
+
return get1DYScale(yDomains[SpectrumId], height, leftMargin);
|
|
103
67
|
}
|
|
104
68
|
|
|
105
69
|
interface SliceYScaleOptions {
|
|
@@ -139,7 +103,6 @@ export {
|
|
|
139
103
|
get2DXScale,
|
|
140
104
|
getSliceYScale,
|
|
141
105
|
get2DYScale,
|
|
142
|
-
get1DXScale,
|
|
143
106
|
get1DYScale,
|
|
144
107
|
useScale2DX,
|
|
145
108
|
useScale2DY,
|
|
@@ -223,7 +223,7 @@ interface Boundary {
|
|
|
223
223
|
height: number;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
|
|
226
|
+
function AssignmentLabel(props: AssignmentLabelProps) {
|
|
227
227
|
const { zone } = props;
|
|
228
228
|
const { id, x, y, assignment } = zone;
|
|
229
229
|
const dispatch = useDispatch();
|
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
import type { ActionType } from '../reducer/types/ActionType.js';
|
|
12
12
|
|
|
13
13
|
type Step = 'initial' | 'start' | 'end' | 'brushing';
|
|
14
|
+
|
|
15
|
+
export type BrushAxis = 'X' | 'Y' | 'XY';
|
|
14
16
|
export interface BrushTrackerData {
|
|
15
17
|
step: Step;
|
|
16
18
|
startX: number;
|
|
@@ -28,16 +30,25 @@ const MouseButtons: Record<number, MouseButton> = {
|
|
|
28
30
|
0: 'main',
|
|
29
31
|
2: 'secondary',
|
|
30
32
|
} as const;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
export interface BrushCoordination {
|
|
33
35
|
startX: number;
|
|
34
36
|
endX: number;
|
|
35
37
|
startY: number;
|
|
36
38
|
endY: number;
|
|
39
|
+
}
|
|
40
|
+
interface BrushScreenCoordination {
|
|
37
41
|
startScreenX: number;
|
|
38
42
|
startScreenY: number;
|
|
39
43
|
startClientX: number;
|
|
40
44
|
startClientY: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface BrushTrackerState
|
|
48
|
+
extends BrushTrackerData,
|
|
49
|
+
BrushCoordination,
|
|
50
|
+
BrushScreenCoordination {
|
|
51
|
+
step: Step;
|
|
41
52
|
boundingRect: DOMRect | null;
|
|
42
53
|
}
|
|
43
54
|
|
|
@@ -61,7 +72,7 @@ function stopPageScrolling(event) {
|
|
|
61
72
|
event.preventDefault();
|
|
62
73
|
}
|
|
63
74
|
|
|
64
|
-
|
|
75
|
+
const BrushContext = createContext<BrushTrackerData>(initialState);
|
|
65
76
|
|
|
66
77
|
export function useBrushTracker() {
|
|
67
78
|
if (!BrushContext) {
|
|
@@ -70,7 +81,7 @@ export function useBrushTracker() {
|
|
|
70
81
|
return useContext(BrushContext);
|
|
71
82
|
}
|
|
72
83
|
|
|
73
|
-
|
|
84
|
+
interface Position {
|
|
74
85
|
x: number;
|
|
75
86
|
y: number;
|
|
76
87
|
}
|
|
@@ -349,3 +360,50 @@ function reducer(
|
|
|
349
360
|
return state;
|
|
350
361
|
}
|
|
351
362
|
}
|
|
363
|
+
|
|
364
|
+
interface DetectBrushingResult extends BrushCoordination {
|
|
365
|
+
type: BrushAxis;
|
|
366
|
+
scaleX: number;
|
|
367
|
+
scaleY: number;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export function detectBrushing(
|
|
371
|
+
coordination: BrushCoordination,
|
|
372
|
+
width: number,
|
|
373
|
+
height: number,
|
|
374
|
+
threshold = 0.03,
|
|
375
|
+
): DetectBrushingResult {
|
|
376
|
+
const { startX, endX, startY, endY } = coordination;
|
|
377
|
+
const xDiff = Math.abs(endX - startX);
|
|
378
|
+
const yDiff = Math.abs(endY - startY);
|
|
379
|
+
const xThreshold = width * threshold;
|
|
380
|
+
const yThreshold = height * threshold;
|
|
381
|
+
const scaleY = (endY - startY) / height;
|
|
382
|
+
const scaleX = (endX - startX) / width;
|
|
383
|
+
|
|
384
|
+
if (xDiff >= xThreshold && yDiff < yThreshold) {
|
|
385
|
+
return {
|
|
386
|
+
type: 'X',
|
|
387
|
+
startX,
|
|
388
|
+
endX,
|
|
389
|
+
startY: 0,
|
|
390
|
+
endY: height,
|
|
391
|
+
scaleX,
|
|
392
|
+
scaleY: 1,
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (yDiff >= yThreshold && xDiff < xThreshold) {
|
|
397
|
+
return {
|
|
398
|
+
type: 'Y',
|
|
399
|
+
startX: 0,
|
|
400
|
+
endX: width,
|
|
401
|
+
startY,
|
|
402
|
+
endY,
|
|
403
|
+
scaleX: 1,
|
|
404
|
+
scaleY,
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
return { type: 'XY', startX, startY, endX, endY, scaleX, scaleY };
|
|
409
|
+
}
|
|
@@ -6,7 +6,7 @@ interface MouseTrackerData {
|
|
|
6
6
|
y: number;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const MouseContext = createContext<MouseTrackerData | null>(null);
|
|
10
10
|
const MouseProvider = MouseContext.Provider;
|
|
11
11
|
|
|
12
12
|
export function useMouseTracker() {
|
|
@@ -11,7 +11,7 @@ export type Axis = 'x' | 'y';
|
|
|
11
11
|
* - The key (`Axis`) represents the **axis** (`'x'` or `'y'`).
|
|
12
12
|
* - The value (`string[]`) contains the **assigned diaIDs** for that axis.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
type Assignment = Record<Axis, string[]>;
|
|
15
15
|
/**
|
|
16
16
|
* An object that associates each unique ID to their corresponding axis assignments.
|
|
17
17
|
*
|
|
@@ -20,8 +20,7 @@ export type Assignment = Record<Axis, string[]>;
|
|
|
20
20
|
*/
|
|
21
21
|
export type Assignments = Record<string, Assignment>;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
export interface AssignmentItem {
|
|
23
|
+
interface AssignmentItem {
|
|
25
24
|
id: string;
|
|
26
25
|
axis: Axis | null;
|
|
27
26
|
}
|
|
@@ -72,8 +71,6 @@ export interface AssignmentsData extends AssignmentStatus {
|
|
|
72
71
|
|
|
73
72
|
export const assignmentContext = createContext<AssignmentContext | null>(null);
|
|
74
73
|
|
|
75
|
-
export const AssignmentProvider = assignmentContext.Provider;
|
|
76
|
-
|
|
77
74
|
export function useAssignmentContext() {
|
|
78
75
|
const context = useContext(assignmentContext);
|
|
79
76
|
|
|
@@ -5,7 +5,7 @@ import { useViewportSize } from '../hooks/useViewportSize.js';
|
|
|
5
5
|
import type { State } from '../reducer/Reducer.js';
|
|
6
6
|
import { initialState } from '../reducer/Reducer.js';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const ChartContext = createContext<State>(initialState);
|
|
9
9
|
export const ChartDataProvider = ChartContext.Provider;
|
|
10
10
|
|
|
11
11
|
export function useChartData() {
|
|
@@ -40,9 +40,9 @@ export type Action =
|
|
|
40
40
|
// // eslint-disable-next-line @typescript-eslint/ban-types
|
|
41
41
|
// | { type: string & {}; payload?: Object };
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
type Dispatch = (action: Action) => void;
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
const dispatchContext = createContext<Dispatch>(() => null);
|
|
46
46
|
|
|
47
47
|
export const DispatchProvider = dispatchContext.Provider;
|
|
48
48
|
|
|
@@ -2,7 +2,7 @@ import { createContext, useContext } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { useInsetViewerRootRef } from '../1d/inset/InsetViewerRoot.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const GlobalContext = createContext<{
|
|
6
6
|
rootRef: HTMLDivElement | null;
|
|
7
7
|
elementsWrapperRef: HTMLDivElement | null;
|
|
8
8
|
viewerRef: HTMLDivElement | null;
|
|
@@ -32,7 +32,7 @@ const defaultKeyModifiersState: KeyModifiersState = {
|
|
|
32
32
|
modifiersKey: null,
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
const KeyModifierContext = createContext<KeyModifiersState>(
|
|
36
36
|
defaultKeyModifiersState,
|
|
37
37
|
);
|
|
38
38
|
|
|
@@ -57,7 +57,7 @@ export function getModifiers(event: KeyboardEvent | MouseEvent) {
|
|
|
57
57
|
return { ctrlKey, shiftKey, altKey };
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
function toModifiersKey(keyModifiers: KeyModifiers): ModifiersKey {
|
|
61
61
|
const { shiftKey, altKey, ctrlKey } = keyModifiers;
|
|
62
62
|
return `shift[${shiftKey ? 'true' : 'false'}]_ctrl[${ctrlKey ? 'true' : 'false'}]_alt[${altKey ? 'true' : 'false'}]`;
|
|
63
63
|
}
|
|
@@ -15,7 +15,7 @@ import { LogsHistoryModal } from '../modal/LogsHistoryModal.js';
|
|
|
15
15
|
|
|
16
16
|
import { usePreferences } from './PreferencesContext.js';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const LoggerContext = createContext<{
|
|
19
19
|
logger: FifoLogger;
|
|
20
20
|
logsHistory: LogEntry[];
|
|
21
21
|
markAsRead: () => void;
|
|
@@ -7,12 +7,12 @@ import type {
|
|
|
7
7
|
import { preferencesInitialState } from '../reducer/preferences/preferencesReducer.js';
|
|
8
8
|
import { isReadOnlyWorkspace } from '../reducer/preferences/utilities/isReadOnlyWorkspace.js';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
interface PreferencesContextData extends PreferencesState {
|
|
11
11
|
isCurrentWorkspaceReadOnly: boolean;
|
|
12
12
|
current: WorkspaceWithSource;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
const PreferencesContext = createContext<PreferencesState>(
|
|
16
16
|
preferencesInitialState,
|
|
17
17
|
);
|
|
18
18
|
export const PreferencesProvider = PreferencesContext.Provider;
|
|
@@ -30,7 +30,7 @@ const scaleInitialState: ScaleState = {
|
|
|
30
30
|
spectraBottomMargin: 10,
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
const ScaleContext = createContext<ScaleState>(scaleInitialState);
|
|
34
34
|
|
|
35
35
|
export function useScale() {
|
|
36
36
|
return useContext(ScaleContext);
|
|
@@ -234,7 +234,7 @@ type ElementProps<E = unknown> = E extends ElementType
|
|
|
234
234
|
? ComponentPropsWithoutRef<E>
|
|
235
235
|
: never;
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
interface InnerButtonProps<E extends ElementType = 'button'>
|
|
238
238
|
extends Partial<ButtonStyle> {
|
|
239
239
|
toolTip?: string;
|
|
240
240
|
tooltipOrientation?: TooltipOrientation;
|
|
@@ -243,9 +243,8 @@ export interface InnerButtonProps<E extends ElementType = 'button'>
|
|
|
243
243
|
as?: E;
|
|
244
244
|
disabled?: boolean;
|
|
245
245
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
Omit<ElementProps<E>, 'color' | 'style' | 'disabled' | 'fill'>;
|
|
246
|
+
type ButtonProps<E extends ElementType = 'button'> = InnerButtonProps<E> &
|
|
247
|
+
Omit<ElementProps<E>, 'color' | 'style' | 'disabled' | 'fill'>;
|
|
249
248
|
|
|
250
249
|
function Button<E extends ElementType = 'button'>(props: ButtonProps<E>) {
|
|
251
250
|
const { theme = 'light', ...buttonProps } = props;
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
import { Menu, MenuItem, showContextMenu, Tooltip } from '@blueprintjs/core';
|
|
7
7
|
import type { ComponentProps, ElementType, MouseEvent, ReactNode } from 'react';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
type ContextMenuCheck = boolean | ((data: any) => boolean);
|
|
10
10
|
export interface ContextMenuItem extends Omit<MenuItemProps, 'disabled'> {
|
|
11
11
|
data?: object;
|
|
12
12
|
tooltip?: TooltipProps;
|
|
@@ -23,7 +23,7 @@ export interface BaseContextMenuProps {
|
|
|
23
23
|
onSelect: (data?: object) => void;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
interface ContextMenuProps<E>
|
|
27
27
|
extends BaseContextMenuProps,
|
|
28
28
|
Omit<BluePrintContextMenuProps, 'onSelect' | 'content' | 'children'> {
|
|
29
29
|
as?: E;
|
|
@@ -6,7 +6,7 @@ import { Input2Controller } from './Input2Controller.js';
|
|
|
6
6
|
import type { LabelStyle } from './Label.js';
|
|
7
7
|
import Label from './Label.js';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const formatFieldInputStyle: CSSProperties = {
|
|
10
10
|
textAlign: 'center',
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@ import { Controller } from 'react-hook-form';
|
|
|
6
6
|
import type { Input2Props } from './Input2.js';
|
|
7
7
|
import { Input2 } from './Input2.js';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
interface InputMapValueFunctions {
|
|
10
10
|
mapOnChangeValue?: (value: string) => any;
|
|
11
11
|
mapValue?: (value: any) => string;
|
|
12
12
|
}
|