nmrium 2.7.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +15 -14
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +3 -3
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/Viewer1D.d.ts.map +1 -1
- package/lib/component/1d/Viewer1D.js +2 -1
- package/lib/component/1d/Viewer1D.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts +0 -23
- package/lib/component/1d/inset/SpectraInsets.d.ts.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.js +1 -1
- package/lib/component/1d/inset/SpectraInsets.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.d.ts +1 -2
- package/lib/component/1d/peaks/PeaksShapes.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.js +31 -17
- package/lib/component/1d/peaks/PeaksShapes.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -2
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +2 -3
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/plugin_chart_brush_tracker.d.ts +2 -0
- package/lib/component/1d/plugin_chart_brush_tracker.d.ts.map +1 -0
- package/lib/component/1d/plugin_chart_brush_tracker.js +41 -0
- package/lib/component/1d/plugin_chart_brush_tracker.js.map +1 -0
- package/lib/component/1d/plugin_svg_chart.d.ts +1 -1
- package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -1
- package/lib/component/1d/plugin_svg_chart.js +16 -11
- package/lib/component/1d/plugin_svg_chart.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.js +23 -6
- package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/utilities/DimensionLayout.d.ts +1 -1
- package/lib/component/2d/utilities/DimensionLayout.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +1 -84
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +70 -3
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts +93 -0
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts.map +1 -0
- package/lib/component/EventsTrackers/brush_tracker.types.js +2 -0
- package/lib/component/EventsTrackers/brush_tracker.types.js.map +1 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts +7 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts.map +1 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js +15 -0
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js.map +1 -0
- package/lib/component/context/LoggerContext.js +1 -1
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +1 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts +3 -2
- package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -1
- package/lib/component/context/processings_mutations_context.api.js +82 -10
- package/lib/component/context/processings_mutations_context.api.js.map +1 -1
- package/lib/component/elements/Anchor.d.ts +1 -1
- package/lib/component/elements/Anchor.d.ts.map +1 -1
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/EditableColumn.d.ts +6 -2
- package/lib/component/elements/EditableColumn.d.ts.map +1 -1
- package/lib/component/elements/EditableColumn.js +35 -25
- package/lib/component/elements/EditableColumn.js.map +1 -1
- package/lib/component/elements/ResizerWithScale.js +1 -1
- package/lib/component/elements/ResizerWithScale.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts +1 -1
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/tanstack_table/create_action_column.d.ts +11 -0
- package/lib/component/elements/tanstack_table/create_action_column.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/create_action_column.js +24 -0
- package/lib/component/elements/tanstack_table/create_action_column.js.map +1 -0
- package/lib/component/elements/tanstack_table/create_column_helper.d.ts +5 -0
- package/lib/component/elements/tanstack_table/create_column_helper.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/create_column_helper.js +5 -0
- package/lib/component/elements/tanstack_table/create_column_helper.js.map +1 -0
- package/lib/component/elements/{ReactTable/BaseReactTable.d.ts → tanstack_table/elements/base_react_table.d.ts} +1 -1
- package/lib/component/elements/tanstack_table/elements/base_react_table.d.ts.map +1 -0
- package/lib/component/elements/{ReactTable/BaseReactTable.js → tanstack_table/elements/base_react_table.js} +1 -1
- package/lib/component/elements/tanstack_table/elements/base_react_table.js.map +1 -0
- package/lib/component/elements/{ReactTable/Elements/EmptyDataRow.d.ts → tanstack_table/elements/empty_data_row.d.ts} +1 -1
- package/lib/component/elements/tanstack_table/elements/empty_data_row.d.ts.map +1 -0
- package/lib/component/elements/{ReactTable/Elements/EmptyDataRow.js → tanstack_table/elements/empty_data_row.js} +1 -1
- package/lib/component/elements/tanstack_table/elements/empty_data_row.js.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts +4 -0
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_context.js +11 -0
- package/lib/component/elements/tanstack_table/elements/table_context.js.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts +12 -0
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_header.js +42 -0
- package/lib/component/elements/tanstack_table/elements/table_header.js.map +1 -0
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts +12 -0
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts.map +1 -0
- package/lib/component/elements/{ReactTable/Elements/ReactTableRow.js → tanstack_table/elements/table_row.js} +18 -17
- package/lib/component/elements/tanstack_table/elements/table_row.js.map +1 -0
- package/lib/component/elements/tanstack_table/features.d.ts +21 -0
- package/lib/component/elements/tanstack_table/features.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/features.js +14 -0
- package/lib/component/elements/tanstack_table/features.js.map +1 -0
- package/lib/component/elements/tanstack_table/index.d.ts +6 -0
- package/lib/component/elements/tanstack_table/index.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/index.js +6 -0
- package/lib/component/elements/tanstack_table/index.js.map +1 -0
- package/lib/component/elements/tanstack_table/table.d.ts +26 -0
- package/lib/component/elements/tanstack_table/table.d.ts.map +1 -0
- package/lib/component/elements/{ReactTable/ReactTable.js → tanstack_table/table.js} +30 -38
- package/lib/component/elements/tanstack_table/table.js.map +1 -0
- package/lib/component/elements/tanstack_table/types.d.ts +47 -0
- package/lib/component/elements/tanstack_table/types.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/types.js +2 -0
- package/lib/component/elements/tanstack_table/types.js.map +1 -0
- package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.js +1 -1
- package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
- package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +1 -1
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +1 -1
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/use_axis_unit.d.ts +3 -3
- package/lib/component/main/InnerNMRiumContents.d.ts +4 -4
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/NMRium.d.ts +1 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +4 -2
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewer.d.ts +1 -1
- package/lib/component/main/NMRiumViewer.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/types.d.ts +2 -2
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +96 -73
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +44 -40
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js +2 -2
- package/lib/component/modal/changeSum/SelectMolecule.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 +48 -44
- 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 +36 -32
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.d.ts.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +15 -14
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +9 -9
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +10 -10
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +27 -27
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +29 -26
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralTable.js +70 -76
- package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +1 -1
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js +33 -29
- package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts +1 -0
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +30 -6
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +8 -6
- package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksTable.js +116 -126
- package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
- package/lib/component/panels/PeaksPanel/peaksToTSV.d.ts +2 -2
- package/lib/component/panels/PeaksPanel/peaksToTSV.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/peaksToTSV.js +9 -11
- package/lib/component/panels/PeaksPanel/peaksToTSV.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +3 -2
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +33 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +37 -26
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js +56 -52
- package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +23 -20
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +171 -153
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js +27 -24
- package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.js +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +2 -6
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js +9 -9
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
- package/lib/component/panels/informationPanel/InformationEditionModal.js +69 -64
- package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +17 -20
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js +25 -20
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js +41 -36
- package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +14 -15
- package/lib/component/panels/spectrumSimulation/SpinSystemTable.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +5 -6
- 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/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +3 -2
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts +2 -3
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +4 -5
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -0
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +33 -11
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/processings_actions.d.ts +1 -0
- package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -1
- package/lib/component/reducer/actions/processings_actions.js +4 -2
- package/lib/component/reducer/actions/processings_actions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +2 -2
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/utility/Events.d.ts +1 -1
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_operator_brush.commons.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_brush.commons.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_brush.commons.js +15 -0
- package/lib/component/utility/core_slots/core_operator_brush.commons.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.d.ts +7 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.js +82 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush.commons.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.d.ts +8 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.js +11 -0
- package/lib/component/utility/core_slots/core_operator_chart_brush_tracker.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.js +14 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.js +1 -13
- package/lib/component/utility/core_slots/core_operator_chart_svg.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts +1 -1
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_slot.d.ts +1 -1
- package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.js +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +2 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +2 -2
- package/lib/data/data2d/Spectrum2D/get2DColor.js +5 -5
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +2 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +34 -36
- package/src/component/1d/BrushTracker1D.tsx +19 -21
- package/src/component/1d/SVGContent1D.tsx +3 -3
- package/src/component/1d/Viewer1D.tsx +2 -0
- package/src/component/1d/inset/DraggableInset.tsx +2 -1
- package/src/component/1d/inset/InsetProvider.tsx +1 -2
- package/src/component/1d/inset/SpectraInsets.tsx +1 -32
- package/src/component/1d/peaks/PeaksShapes.tsx +62 -40
- package/src/component/1d/peaks/usePeakShapesPath.ts +2 -4
- package/src/component/1d/plugin_chart_brush_tracker.tsx +63 -0
- package/src/component/1d/plugin_svg_chart.tsx +26 -15
- package/src/component/1d-2d/tools/BrushXY.tsx +1 -1
- package/src/component/1d-2d/tools/CrossLinePointer.tsx +1 -1
- package/src/component/1d-2d/tools/CursorToolIcon.tsx +38 -16
- package/src/component/2d/BrushTracker2D.tsx +5 -5
- package/src/component/2d/utilities/DimensionLayout.ts +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +119 -119
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +1 -1
- package/src/component/EventsTrackers/brush_tracker.types.ts +111 -0
- package/src/component/EventsTrackers/brush_tracker_events_listeners.ts +32 -0
- package/src/component/context/LoggerContext.tsx +1 -1
- package/src/component/context/ScaleContext.tsx +2 -1
- package/src/component/context/processings_mutations_context.api.ts +115 -17
- package/src/component/elements/Anchor.tsx +1 -1
- package/src/component/elements/DraggableDialog.tsx +2 -2
- package/src/component/elements/EditableColumn.tsx +93 -63
- package/src/component/elements/ResizerWithScale.tsx +1 -1
- package/src/component/elements/export/ExportManager.tsx +1 -1
- package/src/component/elements/tanstack_table/create_action_column.tsx +43 -0
- package/src/component/elements/tanstack_table/create_column_helper.ts +11 -0
- package/src/component/elements/tanstack_table/elements/table_context.ts +15 -0
- package/src/component/elements/tanstack_table/elements/table_header.tsx +111 -0
- package/src/component/elements/{ReactTable/Elements/ReactTableRow.tsx → tanstack_table/elements/table_row.tsx} +51 -50
- package/src/component/elements/tanstack_table/features.ts +33 -0
- package/src/component/elements/tanstack_table/index.ts +5 -0
- package/src/component/elements/{ReactTable/ReactTable.tsx → tanstack_table/table.tsx} +79 -158
- package/src/component/elements/tanstack_table/types.ts +86 -0
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +1 -1
- package/src/component/header/Header.tsx +1 -1
- package/src/component/hooks/reduce2DSpectrum.ts +1 -1
- package/src/component/hooks/useCombinedRefs.ts +3 -3
- package/src/component/hooks/useSaveSettings.tsx +1 -1
- package/src/component/main/InnerNMRiumContents.tsx +4 -4
- package/src/component/main/NMRiumRefAPI.ts +1 -1
- package/src/component/main/NMRiumStateProvider.tsx +4 -2
- package/src/component/main/NMRiumViewer.tsx +1 -1
- package/src/component/main/NMRiumViewerWrapper.tsx +1 -1
- package/src/component/main/types.ts +3 -3
- package/src/component/modal/ImportPublicationStringModal.tsx +167 -136
- package/src/component/modal/LogsHistoryModal.tsx +32 -25
- package/src/component/modal/changeSum/SelectMolecule.tsx +2 -2
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +28 -24
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +27 -25
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +19 -15
- package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +27 -25
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +1 -1
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +75 -89
- package/src/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.tsx +68 -60
- package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +40 -8
- package/src/component/panels/PeaksPanel/PeaksTable.tsx +126 -124
- package/src/component/panels/PeaksPanel/peaksToTSV.ts +14 -15
- package/src/component/panels/RangesPanel/RangesTable.tsx +3 -2
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +2 -2
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +52 -2
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +58 -36
- package/src/component/panels/SpectraPanel/SpectrumListPanel.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +31 -35
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +25 -20
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +2 -2
- package/src/component/panels/databasePanel/DatabasePanel.tsx +1 -1
- package/src/component/panels/databasePanel/DatabaseTable.tsx +189 -183
- package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +20 -20
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +2 -2
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +2 -2
- package/src/component/panels/filtersPanel/processings/processing_item.tsx +1 -1
- package/src/component/panels/filtersPanel/processings/use_live_edit.ts +9 -17
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +40 -37
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +23 -24
- package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +33 -24
- package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +34 -31
- package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +19 -18
- package/src/component/reducer/Reducer.ts +7 -4
- package/src/component/reducer/actions/DatabaseActions.ts +4 -3
- package/src/component/reducer/actions/InsetActions.ts +8 -10
- package/src/component/reducer/actions/RangesActions.ts +78 -20
- package/src/component/reducer/actions/ToolsActions.ts +1 -1
- package/src/component/reducer/actions/processings_actions.ts +5 -2
- package/src/component/reducer/helper/Zoom1DManager.ts +1 -1
- package/src/component/reducer/helper/ZoomHistoryManager.ts +2 -2
- package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -1
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +1 -1
- package/src/component/utility/Events.tsx +1 -1
- package/src/component/utility/core_slots/core_operator_brush.commons.ts +18 -0
- package/src/component/utility/core_slots/core_operator_chart_brush.commons.ts +138 -0
- package/src/component/utility/core_slots/core_operator_chart_brush_tracker.tsx +27 -0
- package/src/component/utility/core_slots/core_operator_chart_mouse_icon.tsx +32 -0
- package/src/component/utility/core_slots/core_operator_chart_svg.tsx +2 -17
- package/src/component/utility/filterDatabaseInfoEntry.ts +1 -1
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +3 -0
- package/src/data/data2d/Spectrum2D/contours.ts +2 -2
- package/src/data/data2d/Spectrum2D/get2DColor.ts +5 -5
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +4 -0
- package/src/utils/clipboard/clipboardComponents.tsx +5 -5
- package/src/versionInfo.ts +1 -1
- package/lib/component/elements/ReactTable/BaseReactTable.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/BaseReactTable.js.map +0 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js.map +0 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts +0 -10
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js +0 -27
- package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js.map +0 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +0 -16
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +0 -1
- package/lib/component/elements/ReactTable/ReactTable.d.ts +0 -64
- package/lib/component/elements/ReactTable/ReactTable.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/ReactTable.js.map +0 -1
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts +0 -4
- package/lib/component/elements/ReactTable/utility/ReactTableContext.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/utility/ReactTableContext.js +0 -11
- package/lib/component/elements/ReactTable/utility/ReactTableContext.js.map +0 -1
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +0 -19
- package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js +0 -36
- package/lib/component/elements/ReactTable/utility/addCustomColumn.js.map +0 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +0 -9
- package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts.map +0 -1
- package/lib/component/elements/ReactTable/utility/useRowSpan.js +0 -40
- package/lib/component/elements/ReactTable/utility/useRowSpan.js.map +0 -1
- package/src/component/elements/ReactTable/Elements/ReactTableHeader.tsx +0 -81
- package/src/component/elements/ReactTable/utility/ReactTableContext.ts +0 -14
- package/src/component/elements/ReactTable/utility/addCustomColumn.tsx +0 -75
- package/src/component/elements/ReactTable/utility/useRowSpan.ts +0 -61
- /package/src/component/elements/{ReactTable/BaseReactTable.tsx → tanstack_table/elements/base_react_table.tsx} +0 -0
- /package/src/component/elements/{ReactTable/Elements/EmptyDataRow.tsx → tanstack_table/elements/empty_data_row.tsx} +0 -0
|
@@ -14,7 +14,6 @@ import type { Reducer } from 'react';
|
|
|
14
14
|
|
|
15
15
|
import type { StateMoleculeExtended } from '../../data/molecules/Molecule.js';
|
|
16
16
|
import type { UsedColors } from '../../types/UsedColors.js';
|
|
17
|
-
import type { Insets } from '../1d/inset/SpectraInsets.js';
|
|
18
17
|
import type { Action } from '../context/DispatchContext.js';
|
|
19
18
|
import { DefaultTolerance } from '../panels/SummaryPanel/CorrelationTable/Constants.js';
|
|
20
19
|
import type { Tool } from '../toolbar/ToolTypes.js';
|
|
@@ -120,6 +119,7 @@ export function getDefaultViewState(): ViewState {
|
|
|
120
119
|
currentSimulatedSpectrumKey: null,
|
|
121
120
|
units1D: {},
|
|
122
121
|
units2D: {},
|
|
122
|
+
insets: {},
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
export const getInitialState = (): State => ({
|
|
@@ -195,13 +195,17 @@ export const getInitialState = (): State => ({
|
|
|
195
195
|
},
|
|
196
196
|
},
|
|
197
197
|
usedColors: { '1d': [], '2d': [] },
|
|
198
|
-
insets: {},
|
|
199
198
|
});
|
|
200
199
|
|
|
201
200
|
export const initialState = getInitialState();
|
|
202
201
|
|
|
203
202
|
export type VerticalAlignment = 'bottom' | 'center' | 'stack';
|
|
204
203
|
|
|
204
|
+
export interface LiveEdit {
|
|
205
|
+
checked: boolean;
|
|
206
|
+
shouldProcessNext: boolean;
|
|
207
|
+
}
|
|
208
|
+
|
|
205
209
|
export interface State {
|
|
206
210
|
/**
|
|
207
211
|
* Last action type
|
|
@@ -359,7 +363,7 @@ export interface State {
|
|
|
359
363
|
|
|
360
364
|
processingOperators: {
|
|
361
365
|
selected: ProcessingOperatorId | undefined;
|
|
362
|
-
liveEdit:
|
|
366
|
+
liveEdit: LiveEdit | undefined;
|
|
363
367
|
liveOperation: SpectrumProcessingOperation<unknown, unknown> | undefined;
|
|
364
368
|
};
|
|
365
369
|
|
|
@@ -421,7 +425,6 @@ export interface State {
|
|
|
421
425
|
usedColors: UsedColors;
|
|
422
426
|
|
|
423
427
|
errorAction?: any; // should be an Error
|
|
424
|
-
insets: Insets;
|
|
425
428
|
}
|
|
426
429
|
|
|
427
430
|
export function initState(state: State): State {
|
|
@@ -2,6 +2,7 @@ import type { Info1D } from '@zakodium/nmr-types';
|
|
|
2
2
|
import type { Spectrum } from '@zakodium/nmrium-core';
|
|
3
3
|
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
4
4
|
import type { Draft } from 'immer';
|
|
5
|
+
import { current } from 'immer';
|
|
5
6
|
import type { DatabaseNMREntry } from 'nmr-processing';
|
|
6
7
|
|
|
7
8
|
import {
|
|
@@ -157,10 +158,10 @@ function handleResurrectSpectrumFromRangesOrSignals(
|
|
|
157
158
|
if (isSpectrum1D(activeSpectrum)) {
|
|
158
159
|
const {
|
|
159
160
|
data: { x },
|
|
160
|
-
info:
|
|
161
|
-
} = activeSpectrum;
|
|
161
|
+
info: activeSpectrumInfo,
|
|
162
|
+
} = current(activeSpectrum);
|
|
162
163
|
options = { from: x[0], to: x.at(-1) };
|
|
163
|
-
info = { ...
|
|
164
|
+
info = { ...activeSpectrumInfo, ...info };
|
|
164
165
|
} else {
|
|
165
166
|
const domain = DEFAULT_DATABASE_SPECTRUM_DOMAINS[nucleus || '1H'];
|
|
166
167
|
options = { ...domain };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
Inset,
|
|
3
|
+
InsetBounding,
|
|
4
|
+
InsetView,
|
|
2
5
|
IntegralsViewState,
|
|
3
6
|
PeaksViewState,
|
|
4
7
|
RangesViewState,
|
|
@@ -9,13 +12,8 @@ import { zoomIdentity } from 'd3-zoom';
|
|
|
9
12
|
import type { Draft } from 'immer';
|
|
10
13
|
|
|
11
14
|
import { insetMargin } from '../../1d/inset/InsetProvider.js';
|
|
12
|
-
import type {
|
|
13
|
-
Inset,
|
|
14
|
-
InsetBounding,
|
|
15
|
-
InsetView,
|
|
16
|
-
} from '../../1d/inset/SpectraInsets.js';
|
|
17
15
|
import { getInsetXScale } from '../../1d/utilities/scale.js';
|
|
18
|
-
import type { ZoomOptions } from '../../EventsTrackers/
|
|
16
|
+
import type { ZoomOptions } from '../../EventsTrackers/brush_tracker.types.ts';
|
|
19
17
|
import { defaultIntegralsViewState } from '../../hooks/useActiveSpectrumIntegralsViewState.js';
|
|
20
18
|
import { defaultPeaksViewState } from '../../hooks/useActiveSpectrumPeaksViewState.js';
|
|
21
19
|
import { getDefaultRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
@@ -113,10 +111,10 @@ function handleAddInset(draft: Draft<State>, action: AddInsetAction) {
|
|
|
113
111
|
yDomain,
|
|
114
112
|
view: {
|
|
115
113
|
spectra: { activeTab: nucleus },
|
|
114
|
+
insets,
|
|
116
115
|
},
|
|
117
116
|
width: baseWidth,
|
|
118
117
|
height: baseHeight,
|
|
119
|
-
insets,
|
|
120
118
|
} = draft;
|
|
121
119
|
const { id: spectrumKey } = spectrum;
|
|
122
120
|
|
|
@@ -157,8 +155,8 @@ function handleDeleteInset(draft: Draft<State>, action: DeleteInsetAction) {
|
|
|
157
155
|
const {
|
|
158
156
|
view: {
|
|
159
157
|
spectra: { activeTab },
|
|
158
|
+
insets,
|
|
160
159
|
},
|
|
161
|
-
insets,
|
|
162
160
|
} = draft;
|
|
163
161
|
|
|
164
162
|
if (!activeTab) return;
|
|
@@ -172,11 +170,11 @@ function getInset(draft: Draft<State>, insetKey: string) {
|
|
|
172
170
|
const {
|
|
173
171
|
view: {
|
|
174
172
|
spectra: { activeTab },
|
|
173
|
+
insets,
|
|
175
174
|
},
|
|
176
175
|
} = draft;
|
|
177
176
|
|
|
178
|
-
|
|
179
|
-
return insets.find((inset) => inset.id === insetKey);
|
|
177
|
+
return insets[activeTab].find((inset) => inset.id === insetKey);
|
|
180
178
|
}
|
|
181
179
|
|
|
182
180
|
function handleChangeInsetBounding(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Range, Signal1D, SignalKind } from '@zakodium/nmr-types';
|
|
1
|
+
import type { Range, Signal1D, SignalKind, Zone } from '@zakodium/nmr-types';
|
|
2
2
|
import type {
|
|
3
3
|
BoundingBox,
|
|
4
4
|
RangesViewState,
|
|
@@ -165,7 +165,13 @@ type DeleteRangePeakAction = ActionType<
|
|
|
165
165
|
>;
|
|
166
166
|
type Change1DSignalAssignmentLabelAction = ActionType<
|
|
167
167
|
'CHANGE_1D_SIGNAL_ASSIGNMENT_LABEL',
|
|
168
|
-
{
|
|
168
|
+
{
|
|
169
|
+
rangeId: string;
|
|
170
|
+
signalId?: string;
|
|
171
|
+
value: string;
|
|
172
|
+
spectrumId?: string;
|
|
173
|
+
isAutoAssignment?: boolean;
|
|
174
|
+
}
|
|
169
175
|
>;
|
|
170
176
|
|
|
171
177
|
type ChangeRangesViewFloatingBoxBoundingAction = ActionType<
|
|
@@ -483,6 +489,7 @@ function handleAssign1DSignal(
|
|
|
483
489
|
if (!isSpectrum1D(spectrum) || keys.length !== 2) return;
|
|
484
490
|
|
|
485
491
|
if (keys.length !== 2) return;
|
|
492
|
+
|
|
486
493
|
const [{ index: rangeIndex }, { index: signalIndex }] = keys;
|
|
487
494
|
const range = spectrum.ranges.values[rangeIndex];
|
|
488
495
|
|
|
@@ -494,39 +501,83 @@ function handleAssign1DSignal(
|
|
|
494
501
|
|
|
495
502
|
if (assignment && !signal.assignment) {
|
|
496
503
|
signal.assignment = assignment;
|
|
504
|
+
signal.isAutoAssignment = true;
|
|
497
505
|
}
|
|
498
506
|
|
|
499
507
|
signal.diaIDs = diaIDs;
|
|
500
508
|
signal.nbAtoms = nbAtoms + (signal.nbAtoms || 0);
|
|
501
509
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
)
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
const spectrum = getSpectrum(draft);
|
|
510
|
-
if (!isSpectrum1D(spectrum)) return;
|
|
511
|
-
|
|
512
|
-
const uniqueDiaIds = new Set(diaIDs);
|
|
513
|
-
const {
|
|
514
|
-
ranges: { values },
|
|
515
|
-
} = spectrum;
|
|
510
|
+
function hasDiaId(
|
|
511
|
+
diaIds: string[] | undefined,
|
|
512
|
+
uniqueDiaIds: Set<string>,
|
|
513
|
+
): boolean {
|
|
514
|
+
return diaIds?.some((id) => uniqueDiaIds.has(id)) ?? false;
|
|
515
|
+
}
|
|
516
516
|
|
|
517
|
-
|
|
517
|
+
function updateRangeSignalsAssignment(
|
|
518
|
+
ranges: Range[],
|
|
519
|
+
previousAssignment: string | undefined,
|
|
520
|
+
assignment: string | undefined,
|
|
521
|
+
uniqueDiaIds: Set<string>,
|
|
522
|
+
): void {
|
|
523
|
+
for (const range of ranges) {
|
|
518
524
|
const { signals = [] } = range;
|
|
519
|
-
|
|
520
525
|
for (const signal of signals) {
|
|
521
526
|
if (
|
|
522
527
|
previousAssignment === signal.assignment &&
|
|
523
|
-
signal.diaIDs
|
|
528
|
+
hasDiaId(signal.diaIDs, uniqueDiaIds) &&
|
|
529
|
+
signal.isAutoAssignment
|
|
524
530
|
) {
|
|
525
531
|
signal.assignment = assignment;
|
|
526
532
|
}
|
|
527
533
|
}
|
|
528
534
|
}
|
|
529
535
|
}
|
|
536
|
+
|
|
537
|
+
function updateZoneAssignments(
|
|
538
|
+
zones: Zone[],
|
|
539
|
+
previousAssignment: string | undefined,
|
|
540
|
+
assignment: string | undefined,
|
|
541
|
+
uniqueDiaIds: Set<string>,
|
|
542
|
+
): void {
|
|
543
|
+
for (const zone of zones) {
|
|
544
|
+
if (
|
|
545
|
+
previousAssignment === zone.assignment &&
|
|
546
|
+
zone.isAutoAssignment &&
|
|
547
|
+
(hasDiaId(zone.x.diaIDs, uniqueDiaIds) ||
|
|
548
|
+
hasDiaId(zone.y.diaIDs, uniqueDiaIds))
|
|
549
|
+
) {
|
|
550
|
+
zone.assignment = assignment;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
//action
|
|
556
|
+
function handleChangeRangesAssignmentLabelsByDiaIds(
|
|
557
|
+
draft: Draft<State>,
|
|
558
|
+
action: ChangeRangesAssignmentsLabelsByDiaIdsAction,
|
|
559
|
+
) {
|
|
560
|
+
const { diaIDs, assignment, previousAssignment } = action.payload;
|
|
561
|
+
const uniqueDiaIds = new Set(diaIDs);
|
|
562
|
+
|
|
563
|
+
for (const spectrum of draft.data) {
|
|
564
|
+
if (isSpectrum1D(spectrum)) {
|
|
565
|
+
updateRangeSignalsAssignment(
|
|
566
|
+
spectrum.ranges.values,
|
|
567
|
+
previousAssignment,
|
|
568
|
+
assignment,
|
|
569
|
+
uniqueDiaIds,
|
|
570
|
+
);
|
|
571
|
+
} else {
|
|
572
|
+
updateZoneAssignments(
|
|
573
|
+
spectrum.zones.values,
|
|
574
|
+
previousAssignment,
|
|
575
|
+
assignment,
|
|
576
|
+
uniqueDiaIds,
|
|
577
|
+
);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
530
581
|
//action
|
|
531
582
|
function handleResizeRange(draft: Draft<State>, action: ResizeRangeAction) {
|
|
532
583
|
const { range, spectrumKey } = action.payload;
|
|
@@ -742,7 +793,13 @@ function handleChange1DSignalAssignmentLabel(
|
|
|
742
793
|
draft: Draft<State>,
|
|
743
794
|
action: Change1DSignalAssignmentLabelAction,
|
|
744
795
|
) {
|
|
745
|
-
const {
|
|
796
|
+
const {
|
|
797
|
+
rangeId,
|
|
798
|
+
signalId,
|
|
799
|
+
value,
|
|
800
|
+
spectrumId,
|
|
801
|
+
isAutoAssignment = false,
|
|
802
|
+
} = action.payload;
|
|
746
803
|
|
|
747
804
|
const spectrum = getSpectrum(draft, spectrumId);
|
|
748
805
|
if (!isSpectrum1D(spectrum)) return;
|
|
@@ -764,6 +821,7 @@ function handleChange1DSignalAssignmentLabel(
|
|
|
764
821
|
if (!signal) return;
|
|
765
822
|
|
|
766
823
|
signal.assignment = value;
|
|
824
|
+
signal.isAutoAssignment = isAutoAssignment;
|
|
767
825
|
}
|
|
768
826
|
|
|
769
827
|
function handleChangeRangesViewFloatingBoxBounding(
|
|
@@ -10,7 +10,7 @@ import { get2DXScale, get2DYScale } from '../../2d/utilities/scale.js';
|
|
|
10
10
|
import type {
|
|
11
11
|
BrushAxis,
|
|
12
12
|
ZoomOptions,
|
|
13
|
-
} from '../../EventsTrackers/
|
|
13
|
+
} from '../../EventsTrackers/brush_tracker.types.ts';
|
|
14
14
|
import type { Tool } from '../../toolbar/ToolTypes.js';
|
|
15
15
|
import { options as Tools } from '../../toolbar/ToolTypes.js';
|
|
16
16
|
import { getSpectraByNucleus } from '../../utility/getSpectraByNucleus.js';
|
|
@@ -24,6 +24,7 @@ type SetSpectrumLiveProcessed = ActionType<
|
|
|
24
24
|
'SET_SPECTRUM_LIVE_PROCESSED',
|
|
25
25
|
{
|
|
26
26
|
spectrumLiveProcessed: Spectrum | undefined;
|
|
27
|
+
updateView: boolean;
|
|
27
28
|
}
|
|
28
29
|
>;
|
|
29
30
|
|
|
@@ -66,10 +67,12 @@ export function setSpectrumLiveProcessed(
|
|
|
66
67
|
draft: Draft<State>,
|
|
67
68
|
action: SetSpectrumLiveProcessed,
|
|
68
69
|
) {
|
|
69
|
-
const { spectrumLiveProcessed } = action.payload;
|
|
70
|
+
const { spectrumLiveProcessed, updateView } = action.payload;
|
|
70
71
|
|
|
71
72
|
draft.spectrumLiveProcessed = spectrumLiveProcessed;
|
|
72
73
|
|
|
74
|
+
if (!updateView) return;
|
|
75
|
+
|
|
73
76
|
updateLiveProcessedView(draft);
|
|
74
77
|
}
|
|
75
78
|
|
|
@@ -91,7 +94,7 @@ export function selectProcessingOperator(
|
|
|
91
94
|
draft.processingOperators.liveOperation = undefined;
|
|
92
95
|
setSpectrumLiveProcessed(draft, {
|
|
93
96
|
type: 'SET_SPECTRUM_LIVE_PROCESSED',
|
|
94
|
-
payload: { spectrumLiveProcessed: undefined },
|
|
97
|
+
payload: { spectrumLiveProcessed: undefined, updateView: true },
|
|
95
98
|
});
|
|
96
99
|
}
|
|
97
100
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Draft } from 'immer';
|
|
2
2
|
|
|
3
|
-
import type { ZoomOptions } from '../../EventsTrackers/
|
|
3
|
+
import type { ZoomOptions } from '../../EventsTrackers/brush_tracker.types.ts';
|
|
4
4
|
import type { State } from '../Reducer.js';
|
|
5
5
|
|
|
6
6
|
import { getActiveSpectrum } from './getActiveSpectrum.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Draft } from 'immer';
|
|
2
2
|
|
|
3
|
-
import type { BrushAxis } from '../../EventsTrackers/
|
|
3
|
+
import type { BrushAxis } from '../../EventsTrackers/brush_tracker.types.ts';
|
|
4
4
|
import type { State } from '../Reducer.js';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
interface HistoryItem {
|
|
7
7
|
xDomain: number[];
|
|
8
8
|
yDomain: number[];
|
|
9
9
|
}
|
|
@@ -2,7 +2,7 @@ import type { MatrixOptions } from '@zakodium/nmr-types';
|
|
|
2
2
|
import type { MatrixGenerationOptions } from '@zakodium/nmrium-core';
|
|
3
3
|
import type { Draft } from 'immer';
|
|
4
4
|
|
|
5
|
-
import type { ZoomOptions } from '../../../EventsTrackers/
|
|
5
|
+
import type { ZoomOptions } from '../../../EventsTrackers/brush_tracker.types.ts';
|
|
6
6
|
import type { FilterType } from '../../../utility/filterType.js';
|
|
7
7
|
import { toScaleRatio } from '../../helper/Zoom1DManager.js';
|
|
8
8
|
import type { ActionType } from '../../types/ActionType.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import type { FallbackProps } from 'react-error-boundary';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* UI error rendering does not apply in this context.
|
|
6
|
+
* Used for error boundaries in chart tree.
|
|
7
|
+
*
|
|
8
|
+
* @param props
|
|
9
|
+
*/
|
|
10
|
+
export function LogError(props: FallbackProps) {
|
|
11
|
+
const { error } = props;
|
|
12
|
+
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
reportError(error);
|
|
15
|
+
}, [error]);
|
|
16
|
+
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
BrushTrackerEvents,
|
|
3
|
+
BrushTrackerEventsOnClickEvent,
|
|
4
|
+
BrushTrackerEventsTrackerEvent,
|
|
5
|
+
BrushTrackerEventsZoomEvent,
|
|
6
|
+
} from '@zakodium/nmrium-core';
|
|
7
|
+
import type { Optional } from '@zakodium/utils';
|
|
8
|
+
import { useEffect } from 'react';
|
|
9
|
+
import { useEventCallback } from 'usehooks-ts';
|
|
10
|
+
|
|
11
|
+
import type {
|
|
12
|
+
BrushTrackerData,
|
|
13
|
+
ClickOptions,
|
|
14
|
+
ZoomOptions,
|
|
15
|
+
} from '../../EventsTrackers/brush_tracker.types.ts';
|
|
16
|
+
import type {
|
|
17
|
+
BrushTrackerEventEmitter,
|
|
18
|
+
BrushTrackerEventEmitterSupportedEvents,
|
|
19
|
+
} from '../../EventsTrackers/brush_tracker_events_listeners.ts';
|
|
20
|
+
import { useBrushTrackerEventEmitter } from '../../EventsTrackers/brush_tracker_events_listeners.ts';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Hook to forward to `ProcessingOperatorUI.ChartBrushTracker`.
|
|
24
|
+
* @param events
|
|
25
|
+
*/
|
|
26
|
+
export function useBrushTrackerEvent(events: BrushTrackerEvents) {
|
|
27
|
+
const emitter = useBrushTrackerEventEmitter();
|
|
28
|
+
|
|
29
|
+
//
|
|
30
|
+
// Integration mapping to core events listening stabilized
|
|
31
|
+
//
|
|
32
|
+
|
|
33
|
+
const onBrushStable = useEventCallback((data: BrushTrackerData) => {
|
|
34
|
+
const event = brushDataToCoreBrushEvent(data);
|
|
35
|
+
|
|
36
|
+
events.onBrush?.(event);
|
|
37
|
+
});
|
|
38
|
+
const onBrushEndStable = useEventCallback((data: BrushTrackerData) => {
|
|
39
|
+
const event = brushDataToCoreBrushEvent(data);
|
|
40
|
+
|
|
41
|
+
events.onBrushEnd?.(event);
|
|
42
|
+
});
|
|
43
|
+
const onZoomStable = useEventCallback((data: ZoomOptions) => {
|
|
44
|
+
const event = zoomOptionsToCoreZoomEvent(data);
|
|
45
|
+
|
|
46
|
+
events.onZoom?.(event);
|
|
47
|
+
});
|
|
48
|
+
const onClickStable = useEventCallback((options: ClickOptions) => {
|
|
49
|
+
const event = clickOptionsToCoreClickEvent(options);
|
|
50
|
+
|
|
51
|
+
events.onClick?.(event);
|
|
52
|
+
});
|
|
53
|
+
const onDoubleClickStable = useEventCallback((options: ClickOptions) => {
|
|
54
|
+
const event = clickOptionsToCoreClickEvent(options);
|
|
55
|
+
|
|
56
|
+
events.onDoubleClick?.(event);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
//
|
|
60
|
+
// Use stable version if the event is defined.
|
|
61
|
+
// It registers callback when needed and avoid to unregister - register at each render.
|
|
62
|
+
//
|
|
63
|
+
|
|
64
|
+
const onBrush = events.onBrush && onBrushStable;
|
|
65
|
+
const onBrushEnd = events.onBrushEnd && onBrushEndStable;
|
|
66
|
+
const onZoom = events.onZoom && onZoomStable;
|
|
67
|
+
const onClick = events.onClick && onClickStable;
|
|
68
|
+
const onDoubleClick = events.onDoubleClick && onDoubleClickStable;
|
|
69
|
+
|
|
70
|
+
//
|
|
71
|
+
// Forward the events listeners
|
|
72
|
+
//
|
|
73
|
+
|
|
74
|
+
useRegisterListener(emitter, 'brush', onBrush);
|
|
75
|
+
useRegisterListener(emitter, 'brush-end', onBrushEnd);
|
|
76
|
+
useRegisterListener(emitter, 'zoom', onZoom);
|
|
77
|
+
useRegisterListener(emitter, 'click', onClick);
|
|
78
|
+
useRegisterListener(emitter, 'click-double', onDoubleClick);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function useRegisterListener(
|
|
82
|
+
emitter: BrushTrackerEventEmitter,
|
|
83
|
+
event: BrushTrackerEventEmitterSupportedEvents,
|
|
84
|
+
listener: Optional<Parameters<BrushTrackerEventEmitter['on']>[1]>,
|
|
85
|
+
) {
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
if (!listener) return;
|
|
88
|
+
|
|
89
|
+
emitter.on(event, listener);
|
|
90
|
+
return () => void emitter.off(event, listener);
|
|
91
|
+
}, [emitter, event, listener]);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function brushDataToCoreBrushEvent(
|
|
95
|
+
event: BrushTrackerData,
|
|
96
|
+
): BrushTrackerEventsTrackerEvent {
|
|
97
|
+
const {
|
|
98
|
+
step,
|
|
99
|
+
mouseButton,
|
|
100
|
+
ctrlKey,
|
|
101
|
+
altKey,
|
|
102
|
+
metaKey,
|
|
103
|
+
shiftKey,
|
|
104
|
+
startX,
|
|
105
|
+
startY,
|
|
106
|
+
endX,
|
|
107
|
+
endY,
|
|
108
|
+
} = event;
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
step,
|
|
112
|
+
mouseButton,
|
|
113
|
+
modifiersKey: { ctrlKey, altKey, shiftKey, metaKey },
|
|
114
|
+
positionStart: { x: startX, y: startY },
|
|
115
|
+
positionEnd: { x: endX, y: endY },
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function zoomOptionsToCoreZoomEvent(
|
|
120
|
+
event: ZoomOptions,
|
|
121
|
+
): BrushTrackerEventsZoomEvent {
|
|
122
|
+
const { x, y, invertScroll, isBidirectionalZoom, ...wheelEvent } = event;
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
domEvent: wheelEvent,
|
|
126
|
+
position: { x, y },
|
|
127
|
+
isBidirectionalZoom,
|
|
128
|
+
invertScroll,
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function clickOptionsToCoreClickEvent(
|
|
133
|
+
event: ClickOptions,
|
|
134
|
+
): BrushTrackerEventsOnClickEvent {
|
|
135
|
+
const { x, y, ...domEvent } = event;
|
|
136
|
+
|
|
137
|
+
return { domEvent, position: { x, y } };
|
|
138
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ProcessingOperatorId } from '@zakodium/nmr-types';
|
|
2
|
+
import type {
|
|
3
|
+
ProcessingOperatorUI,
|
|
4
|
+
ProcessingOperatorUIChartBrushTrackerProps,
|
|
5
|
+
} from '@zakodium/nmrium-core';
|
|
6
|
+
import { ErrorBoundary } from 'react-error-boundary';
|
|
7
|
+
|
|
8
|
+
import { LogError } from './core_operator_brush.commons.ts';
|
|
9
|
+
|
|
10
|
+
interface CoreOperatorChartBrushTrackerProps extends ProcessingOperatorUIChartBrushTrackerProps<ProcessingOperatorId> {
|
|
11
|
+
operatorUI: ProcessingOperatorUI<ProcessingOperatorId>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function CoreOperatorChartBrushTracker(
|
|
15
|
+
props: CoreOperatorChartBrushTrackerProps,
|
|
16
|
+
) {
|
|
17
|
+
const { operatorUI, ...otherProps } = props;
|
|
18
|
+
|
|
19
|
+
const { ChartBrushTracker } = operatorUI;
|
|
20
|
+
if (!ChartBrushTracker) return null;
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<ErrorBoundary FallbackComponent={LogError}>
|
|
24
|
+
<ChartBrushTracker {...otherProps} />
|
|
25
|
+
</ErrorBoundary>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ProcessingOperatorId } from '@zakodium/nmr-types';
|
|
2
|
+
import type {
|
|
3
|
+
NMRiumCore,
|
|
4
|
+
ProcessingOperatorUIChartMouseIconProps,
|
|
5
|
+
} from '@zakodium/nmrium-core';
|
|
6
|
+
import { ErrorBoundary } from 'react-error-boundary';
|
|
7
|
+
|
|
8
|
+
import { LogError } from './core_operator_brush.commons.ts';
|
|
9
|
+
|
|
10
|
+
interface CoreOperatorChartMouseIconProps extends ProcessingOperatorUIChartMouseIconProps {
|
|
11
|
+
core: NMRiumCore;
|
|
12
|
+
selected: ProcessingOperatorId | undefined;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function CoreOperatorChartMouseIcon(
|
|
16
|
+
props: CoreOperatorChartMouseIconProps,
|
|
17
|
+
) {
|
|
18
|
+
const { core, selected, size } = props;
|
|
19
|
+
|
|
20
|
+
if (!selected) return null;
|
|
21
|
+
|
|
22
|
+
const operatorUI = core.slotOperator(selected);
|
|
23
|
+
const ChartMouseIcon = operatorUI?.ChartMouseIcon;
|
|
24
|
+
|
|
25
|
+
if (!ChartMouseIcon) return null;
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<ErrorBoundary FallbackComponent={LogError}>
|
|
29
|
+
<ChartMouseIcon size={size} />
|
|
30
|
+
</ErrorBoundary>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -3,10 +3,10 @@ import type {
|
|
|
3
3
|
ProcessingOperatorUI,
|
|
4
4
|
ProcessingOperatorUIChartSVGProps,
|
|
5
5
|
} from '@zakodium/nmrium-core';
|
|
6
|
-
import { useEffect } from 'react';
|
|
7
|
-
import type { FallbackProps } from 'react-error-boundary';
|
|
8
6
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
9
7
|
|
|
8
|
+
import { LogError } from './core_operator_brush.commons.ts';
|
|
9
|
+
|
|
10
10
|
interface CoreOperatorChartSVGProps extends ProcessingOperatorUIChartSVGProps<ProcessingOperatorId> {
|
|
11
11
|
operatorUI: ProcessingOperatorUI<ProcessingOperatorId>;
|
|
12
12
|
}
|
|
@@ -44,18 +44,3 @@ export function CoreOperatorChartSVG(props: CoreOperatorChartSVGProps) {
|
|
|
44
44
|
</ErrorBoundary>
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* SVG context. No friendly error rendering method.
|
|
50
|
-
*
|
|
51
|
-
* @param props
|
|
52
|
-
*/
|
|
53
|
-
function LogError(props: FallbackProps) {
|
|
54
|
-
const { error } = props;
|
|
55
|
-
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
reportError(error);
|
|
58
|
-
}, [error]);
|
|
59
|
-
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
@@ -59,6 +59,9 @@ export function initiateDatum1D(
|
|
|
59
59
|
spectrumObj.originalData = sliceData1D(spectrumObj.data);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
spectrumObj.processingInfo ??= {};
|
|
63
|
+
spectrumObj.originalProcessingInfo ??= {};
|
|
64
|
+
|
|
62
65
|
spectrumObj.meta = { ...spectrum.meta };
|
|
63
66
|
spectrumObj.customInfo = { ...spectrum.customInfo };
|
|
64
67
|
|
|
@@ -36,11 +36,11 @@ interface WheelOptions extends BaseWheelOptions {
|
|
|
36
36
|
const DEFAULT_CONTOURS_OPTIONS: ContourOptions = {
|
|
37
37
|
positive: {
|
|
38
38
|
contourLevels: [15, 100],
|
|
39
|
-
numberOfLayers:
|
|
39
|
+
numberOfLayers: 20,
|
|
40
40
|
},
|
|
41
41
|
negative: {
|
|
42
42
|
contourLevels: [15, 100],
|
|
43
|
-
numberOfLayers:
|
|
43
|
+
numberOfLayers: 20,
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -72,9 +72,9 @@ type ExperimentType = 'cosy' | 'roesy' | 'noesy' | 'tocsy' | 'hsqc' | 'hmbc';
|
|
|
72
72
|
|
|
73
73
|
export const color2D: Readonly<Record<ExperimentType, Color2D>> = {
|
|
74
74
|
cosy: { positiveColor: 'darkblue', negativeColor: 'blue' },
|
|
75
|
-
roesy: { positiveColor: '
|
|
76
|
-
noesy: { positiveColor: '
|
|
77
|
-
tocsy: { positiveColor: 'green', negativeColor: '
|
|
78
|
-
hsqc: { positiveColor: 'black', negativeColor: '
|
|
79
|
-
hmbc: { positiveColor: 'darkviolet', negativeColor: '
|
|
75
|
+
roesy: { positiveColor: 'mediumvioletred', negativeColor: '#ffbf00' },
|
|
76
|
+
noesy: { positiveColor: 'mediumvioletred', negativeColor: '#ffbf00' },
|
|
77
|
+
tocsy: { positiveColor: 'green', negativeColor: '#ffbf00' },
|
|
78
|
+
hsqc: { positiveColor: 'black', negativeColor: '#ffbf00' },
|
|
79
|
+
hmbc: { positiveColor: 'darkviolet', negativeColor: '#ffbf00' },
|
|
80
80
|
};
|