nmrium 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/ApodizationLine.js +2 -2
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +15 -14
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/Line.js +2 -2
- package/lib/component/1d/Line.js.map +1 -1
- package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
- package/lib/component/1d/SVGContent1D.js +4 -1
- 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/baseline/BaselinePreview.js +2 -2
- package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +2 -2
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +2 -2
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/matrix/Boxplot.js +5 -5
- package/lib/component/1d/matrix/Boxplot.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +2 -2
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +12 -3
- package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +2 -2
- 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 +2 -0
- package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -0
- package/lib/component/1d/plugin_svg_chart.js +43 -0
- package/lib/component/1d/plugin_svg_chart.js.map +1 -0
- package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.js +1 -7
- package/lib/component/1d-2d/components/RangeIndicator.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/2d/1d-tracer/HorizontalSliceChart.js +2 -2
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +2 -2
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.js +2 -2
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js +2 -2
- package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js +3 -3
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/ft/Contours.js +2 -2
- package/lib/component/2d/ft/Contours.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/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/ScaleContext.d.ts +1 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +15 -32
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportContent.js +2 -2
- package/lib/component/elements/export/ExportContent.js.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js +9 -3
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts +1 -0
- package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.js +5 -0
- package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.js +6 -25
- package/lib/component/elements/print/PrintContent.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} +29 -37
- 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/elements/utilities/transferStyles.d.ts +2 -0
- package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -0
- package/lib/component/elements/utilities/transferStyles.js +29 -0
- package/lib/component/elements/utilities/transferStyles.js.map +1 -0
- package/lib/component/header/AutoPeakPickingOptionPanel.js +1 -1
- package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
- package/lib/component/hooks/useIntegralPath.js +2 -2
- package/lib/component/hooks/useIntegralPath.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +91 -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/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 +106 -105
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +106 -105
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +106 -105
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +15 -15
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +12 -10
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +32 -40
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +91 -90
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +61 -17
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +79 -28
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +15 -15
- 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/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/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/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/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/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/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/processings_sections_panel.js +1 -1
- package/lib/component/panels/filtersPanel/processings_sections_panel.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/AlignSpectra.d.ts +3 -3
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +69 -56
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +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/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 +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.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/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 +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.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/toolbar/nmr_toolbar.js +1 -1
- package/lib/component/toolbar/nmr_toolbar.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/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_svg.d.ts +8 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.js +11 -0
- package/lib/component/utility/core_slots/core_operator_chart_svg.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts +2 -8
- package/lib/component/utility/core_slots/core_operator_panel_tool.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_operator_panel_tool.js +8 -6
- package/lib/component/utility/core_slots/core_operator_panel_tool.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts +11 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.js +30 -0
- package/lib/component/utility/core_slots/core_operator_tool.commons.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_tool.d.ts +2 -8
- package/lib/component/utility/core_slots/core_operator_tool.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_operator_tool.js +8 -6
- package/lib/component/utility/core_slots/core_operator_tool.js.map +1 -1
- package/lib/component/utility/export.d.ts +5 -0
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +22 -0
- package/lib/component/utility/export.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +23 -10
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts +13 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +40 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts +27 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +230 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts +227 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +67 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts +4 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.d.ts.map +1 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +42 -0
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -0
- package/lib/data/utilities/calculateSanPlot.d.ts +3 -1
- package/lib/data/utilities/calculateSanPlot.d.ts.map +1 -1
- package/lib/data/utilities/calculateSanPlot.js +2 -2
- package/lib/data/utilities/calculateSanPlot.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +7 -8
- package/src/component/1d/ApodizationLine.tsx +2 -2
- package/src/component/1d/BrushTracker1D.tsx +19 -21
- package/src/component/1d/Line.tsx +2 -2
- package/src/component/1d/SVGContent1D.tsx +6 -0
- package/src/component/1d/Viewer1D.tsx +2 -0
- package/src/component/1d/baseline/BaselinePreview.tsx +2 -2
- package/src/component/1d/database/DatabaseSpectrum.tsx +2 -2
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
- package/src/component/1d/matrix/Boxplot.tsx +5 -5
- package/src/component/1d/matrix/Stocsy.tsx +2 -2
- package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +17 -3
- package/src/component/1d/peaks/usePeakShapesPath.ts +2 -2
- package/src/component/1d/plugin_chart_brush_tracker.tsx +63 -0
- package/src/component/1d/plugin_svg_chart.tsx +60 -0
- package/src/component/1d-2d/components/RangeIndicator.tsx +8 -9
- package/src/component/1d-2d/tools/BrushXY.tsx +1 -1
- package/src/component/1d-2d/tools/CrossLinePointer.tsx +1 -1
- package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +2 -2
- package/src/component/2d/1d-tracer/Left1DChart.tsx +2 -2
- package/src/component/2d/1d-tracer/Top1DChart.tsx +2 -2
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +2 -2
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +3 -3
- package/src/component/2d/BrushTracker2D.tsx +5 -5
- package/src/component/2d/ft/Contours.tsx +2 -2
- package/src/component/2d/utilities/DimensionLayout.ts +1 -1
- package/src/component/EventsTrackers/BrushTracker.tsx +118 -115
- 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/ScaleContext.tsx +1 -1
- package/src/component/elements/D3Axis.tsx +49 -67
- package/src/component/elements/export/ExportContent.tsx +3 -2
- package/src/component/elements/export/ExportOptionsModal.tsx +32 -1
- package/src/component/elements/export/useExportConfigurer.tsx +6 -0
- package/src/component/elements/print/PrintContent.tsx +6 -27
- 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} +78 -157
- package/src/component/elements/tanstack_table/types.ts +86 -0
- package/src/component/elements/utilities/transferStyles.ts +32 -0
- package/src/component/header/AutoPeakPickingOptionPanel.tsx +1 -1
- package/src/component/hooks/useIntegralPath.ts +2 -2
- package/src/component/modal/ImportPublicationStringModal.tsx +160 -136
- package/src/component/modal/LogsHistoryModal.tsx +32 -25
- 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/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +47 -57
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +100 -28
- package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +27 -25
- package/src/component/panels/IntegralsPanel/IntegralTable.tsx +75 -89
- package/src/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.tsx +68 -60
- 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/SpectraPanel/SpectraTable.tsx +58 -36
- 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/processings_sections_panel.tsx +1 -1
- package/src/component/panels/informationPanel/InformationEditionModal.tsx +40 -37
- package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +128 -98
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
- 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/actions/DatabaseActions.ts +4 -3
- package/src/component/reducer/actions/InsetActions.ts +1 -1
- package/src/component/reducer/actions/ToolsActions.ts +1 -1
- package/src/component/reducer/helper/Zoom1DManager.ts +1 -1
- package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -1
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +1 -1
- package/src/component/toolbar/nmr_toolbar.tsx +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_svg.tsx +46 -0
- package/src/component/utility/core_slots/core_operator_panel_tool.tsx +9 -27
- package/src/component/utility/core_slots/core_operator_tool.commons.ts +63 -0
- package/src/component/utility/core_slots/core_operator_tool.tsx +9 -27
- package/src/component/utility/export.ts +34 -0
- package/src/data/data2d/Spectrum2D/contours.ts +40 -14
- package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +67 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +432 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +431 -0
- package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +59 -0
- package/src/data/utilities/calculateSanPlot.ts +2 -1
- 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/lib/component/elements/export/utilities/transferDocumentStyles.d.ts +0 -2
- package/lib/component/elements/export/utilities/transferDocumentStyles.d.ts.map +0 -1
- package/lib/component/elements/export/utilities/transferDocumentStyles.js +0 -21
- package/lib/component/elements/export/utilities/transferDocumentStyles.js.map +0 -1
- package/lib/component/utility/PathBuilder.d.ts +0 -10
- package/lib/component/utility/PathBuilder.d.ts.map +0 -1
- package/lib/component/utility/PathBuilder.js +0 -38
- package/lib/component/utility/PathBuilder.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/export/utilities/transferDocumentStyles.ts +0 -21
- package/src/component/utility/PathBuilder.ts +0 -41
- /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
|
@@ -4,18 +4,24 @@ import { useCallback, useMemo } from 'react';
|
|
|
4
4
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
5
5
|
import { FaPlus, FaRegTrashAlt } from 'react-icons/fa';
|
|
6
6
|
import { Button } from 'react-science/ui';
|
|
7
|
-
import type { CellProps } from 'react-table';
|
|
8
7
|
|
|
9
8
|
import { Input2Controller } from '../../../elements/Input2Controller.js';
|
|
10
|
-
import
|
|
11
|
-
|
|
9
|
+
import {
|
|
10
|
+
TanStackTable,
|
|
11
|
+
createTanStackColumnHelper,
|
|
12
|
+
} from '../../../elements/tanstack_table/index.ts';
|
|
12
13
|
|
|
13
14
|
export function AnalysisTablePreferences() {
|
|
14
|
-
const { setValue, control } = useFormContext();
|
|
15
|
-
const
|
|
15
|
+
const { setValue, control, getValues } = useFormContext();
|
|
16
|
+
const watchedAnalysisColumns = useWatch({ name: 'analysisOptions.columns' });
|
|
17
|
+
const analysisColumns = useMemo(
|
|
18
|
+
() => watchedAnalysisColumns ?? [],
|
|
19
|
+
[watchedAnalysisColumns],
|
|
20
|
+
);
|
|
16
21
|
|
|
17
22
|
const addNewColumn = useCallback(
|
|
18
|
-
(index: any
|
|
23
|
+
(index: any) => {
|
|
24
|
+
const columns = getValues('analysisOptions.columns') ?? [];
|
|
19
25
|
setValue('analysisOptions.columns', [
|
|
20
26
|
...columns,
|
|
21
27
|
{
|
|
@@ -27,28 +33,31 @@ export function AnalysisTablePreferences() {
|
|
|
27
33
|
},
|
|
28
34
|
]);
|
|
29
35
|
},
|
|
30
|
-
[setValue],
|
|
36
|
+
[getValues, setValue],
|
|
31
37
|
);
|
|
32
38
|
|
|
33
39
|
const handleDelete = useCallback(
|
|
34
|
-
(index: any
|
|
40
|
+
(index: any) => {
|
|
41
|
+
const columns = getValues('analysisOptions.columns') ?? [];
|
|
35
42
|
setValue(
|
|
36
43
|
'analysisOptions.columns',
|
|
37
44
|
columns.filter((_: any, colIndex: any) => colIndex !== index),
|
|
38
45
|
);
|
|
39
46
|
},
|
|
40
|
-
[setValue],
|
|
47
|
+
[getValues, setValue],
|
|
41
48
|
);
|
|
42
49
|
|
|
43
|
-
const COLUMNS = useMemo
|
|
44
|
-
|
|
50
|
+
const COLUMNS = useMemo(() => {
|
|
51
|
+
const columnHelper = createTanStackColumnHelper<any>();
|
|
52
|
+
return columnHelper.columns([
|
|
45
53
|
{
|
|
46
|
-
|
|
47
|
-
|
|
54
|
+
id: 'rowNumber',
|
|
55
|
+
header: '#',
|
|
56
|
+
accessorFn: (_: any, index) => index + 1,
|
|
48
57
|
},
|
|
49
58
|
{
|
|
50
|
-
|
|
51
|
-
|
|
59
|
+
header: 'Label',
|
|
60
|
+
cell: ({ row }) => (
|
|
52
61
|
<Input2Controller
|
|
53
62
|
control={control}
|
|
54
63
|
name={`analysisOptions.columns.${row.index}.tempKey`}
|
|
@@ -58,8 +67,8 @@ export function AnalysisTablePreferences() {
|
|
|
58
67
|
),
|
|
59
68
|
},
|
|
60
69
|
{
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
header: 'Value',
|
|
71
|
+
cell: ({ row }) => {
|
|
63
72
|
const isFormulaColumn =
|
|
64
73
|
row.original.type === ANALYSIS_COLUMN_TYPES.FORMULA;
|
|
65
74
|
return (
|
|
@@ -74,17 +83,17 @@ export function AnalysisTablePreferences() {
|
|
|
74
83
|
},
|
|
75
84
|
},
|
|
76
85
|
{
|
|
77
|
-
|
|
78
|
-
style: { width: '70px' },
|
|
86
|
+
header: '',
|
|
87
|
+
meta: { style: { width: '70px' } },
|
|
79
88
|
id: 'actions-button',
|
|
80
|
-
|
|
89
|
+
cell: ({ row }) => {
|
|
81
90
|
return (
|
|
82
91
|
<div style={{ display: 'flex', justifyContent: 'space-evenly' }}>
|
|
83
92
|
<Button
|
|
84
93
|
size="small"
|
|
85
94
|
intent="success"
|
|
86
95
|
variant="outlined"
|
|
87
|
-
onClick={() => addNewColumn(row.index + 1
|
|
96
|
+
onClick={() => addNewColumn(row.index + 1)}
|
|
88
97
|
>
|
|
89
98
|
<FaPlus className={Classes.ICON} />
|
|
90
99
|
</Button>
|
|
@@ -92,7 +101,7 @@ export function AnalysisTablePreferences() {
|
|
|
92
101
|
size="small"
|
|
93
102
|
variant="outlined"
|
|
94
103
|
intent="danger"
|
|
95
|
-
onClick={() => handleDelete(row.index
|
|
104
|
+
onClick={() => handleDelete(row.index)}
|
|
96
105
|
>
|
|
97
106
|
<FaRegTrashAlt className={Classes.ICON} />
|
|
98
107
|
</Button>
|
|
@@ -100,8 +109,8 @@ export function AnalysisTablePreferences() {
|
|
|
100
109
|
);
|
|
101
110
|
},
|
|
102
111
|
},
|
|
103
|
-
];
|
|
112
|
+
]);
|
|
104
113
|
}, [addNewColumn, control, handleDelete]);
|
|
105
114
|
|
|
106
|
-
return <
|
|
115
|
+
return <TanStackTable columns={COLUMNS} data={analysisColumns} />;
|
|
107
116
|
}
|
|
@@ -3,18 +3,19 @@ import type { LegendField, PredefinedLegendField } from '@zakodium/nmrium-core';
|
|
|
3
3
|
import { useCallback, useMemo } from 'react';
|
|
4
4
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
5
5
|
import { FaPlus, FaRegTrashAlt } from 'react-icons/fa';
|
|
6
|
-
import type { CellProps } from 'react-table';
|
|
7
6
|
|
|
8
7
|
import { useChartData } from '../../../context/ChartContext.js';
|
|
9
8
|
import { CheckController } from '../../../elements/CheckController.js';
|
|
10
9
|
import { Input2Controller } from '../../../elements/Input2Controller.js';
|
|
11
|
-
import
|
|
12
|
-
|
|
10
|
+
import {
|
|
11
|
+
TanStackTable,
|
|
12
|
+
createTanStackColumnHelper,
|
|
13
|
+
} from '../../../elements/tanstack_table/index.ts';
|
|
13
14
|
import { convertPathArrayToString } from '../../../utility/convertPathArrayToString.js';
|
|
14
15
|
import { getSpectraObjectPaths } from '../../../utility/getSpectraObjectPaths.js';
|
|
15
16
|
|
|
16
17
|
function LegendsPreferences() {
|
|
17
|
-
const { setValue, control } = useFormContext();
|
|
18
|
+
const { setValue, control, getValues } = useFormContext();
|
|
18
19
|
const { data } = useChartData();
|
|
19
20
|
const { datalist, paths } = useMemo(
|
|
20
21
|
() => getSpectraObjectPaths(data),
|
|
@@ -24,12 +25,13 @@ function LegendsPreferences() {
|
|
|
24
25
|
const fields = useWatch({ name: 'legendsFields' });
|
|
25
26
|
|
|
26
27
|
const addHandler = useCallback(
|
|
27
|
-
(
|
|
28
|
-
let columns
|
|
28
|
+
(index: number) => {
|
|
29
|
+
let columns = [];
|
|
29
30
|
const emptyField = {
|
|
30
31
|
jpath: null,
|
|
31
32
|
visible: true,
|
|
32
33
|
};
|
|
34
|
+
const data = getValues('legendsFields');
|
|
33
35
|
if (data && Array.isArray(data)) {
|
|
34
36
|
columns = [...data.slice(0, index), emptyField, ...data.slice(index)];
|
|
35
37
|
} else {
|
|
@@ -37,29 +39,31 @@ function LegendsPreferences() {
|
|
|
37
39
|
}
|
|
38
40
|
setValue('legendsFields', columns);
|
|
39
41
|
},
|
|
40
|
-
[setValue],
|
|
42
|
+
[getValues, setValue],
|
|
41
43
|
);
|
|
42
44
|
|
|
43
45
|
const deleteHandler = useCallback(
|
|
44
|
-
(
|
|
46
|
+
(index: number) => {
|
|
47
|
+
const data = getValues('legendsFields');
|
|
45
48
|
const _fields = data.filter(
|
|
46
49
|
(_: any, columnIndex: any) => columnIndex !== index,
|
|
47
50
|
);
|
|
48
51
|
setValue('legendsFields', _fields);
|
|
49
52
|
},
|
|
50
|
-
[setValue],
|
|
53
|
+
[getValues, setValue],
|
|
51
54
|
);
|
|
52
55
|
|
|
53
|
-
const COLUMNS = useMemo
|
|
54
|
-
()
|
|
56
|
+
const COLUMNS = useMemo(() => {
|
|
57
|
+
const columnHelper = createTanStackColumnHelper<LegendField>();
|
|
58
|
+
return columnHelper.columns([
|
|
55
59
|
{
|
|
56
|
-
|
|
57
|
-
style: { width: '25px' },
|
|
58
|
-
|
|
60
|
+
header: '#',
|
|
61
|
+
meta: { style: { width: '25px' } },
|
|
62
|
+
accessorFn: (_, index) => index + 1,
|
|
59
63
|
},
|
|
60
64
|
{
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
header: 'Field',
|
|
66
|
+
cell: ({ row }) => {
|
|
63
67
|
const predefinedColumn = row.original as PredefinedLegendField;
|
|
64
68
|
if (predefinedColumn?.name) {
|
|
65
69
|
return (
|
|
@@ -74,7 +78,7 @@ function LegendsPreferences() {
|
|
|
74
78
|
control={control}
|
|
75
79
|
name={`legendsFields.${row.index}.jpath`}
|
|
76
80
|
filterItems={datalist}
|
|
77
|
-
mapOnChangeValue={(key) =>
|
|
81
|
+
mapOnChangeValue={(key) => paths[key] || null}
|
|
78
82
|
mapValue={convertPathArrayToString}
|
|
79
83
|
style={{ backgroundColor: 'transparent' }}
|
|
80
84
|
noShadowBox
|
|
@@ -83,9 +87,9 @@ function LegendsPreferences() {
|
|
|
83
87
|
},
|
|
84
88
|
},
|
|
85
89
|
{
|
|
86
|
-
|
|
87
|
-
style: { width: '30px', textAlign: 'center' },
|
|
88
|
-
|
|
90
|
+
header: 'Visible',
|
|
91
|
+
meta: { style: { width: '30px', textAlign: 'center' } },
|
|
92
|
+
cell: ({ row }) => (
|
|
89
93
|
<CheckController
|
|
90
94
|
control={control}
|
|
91
95
|
style={{ margin: 0 }}
|
|
@@ -94,18 +98,18 @@ function LegendsPreferences() {
|
|
|
94
98
|
),
|
|
95
99
|
},
|
|
96
100
|
{
|
|
97
|
-
|
|
98
|
-
style: { width: '70px' },
|
|
101
|
+
header: '',
|
|
102
|
+
meta: { style: { width: '70px' } },
|
|
99
103
|
id: 'operation-button',
|
|
100
|
-
|
|
101
|
-
const record
|
|
104
|
+
cell: ({ row }) => {
|
|
105
|
+
const record = row.original;
|
|
102
106
|
return (
|
|
103
107
|
<div style={{ display: 'flex', justifyContent: 'space-evenly' }}>
|
|
104
108
|
<Button
|
|
105
109
|
size="small"
|
|
106
110
|
intent="success"
|
|
107
111
|
variant="outlined"
|
|
108
|
-
onClick={() => addHandler(
|
|
112
|
+
onClick={() => addHandler(row.index + 1)}
|
|
109
113
|
>
|
|
110
114
|
<FaPlus className={Classes.ICON} />
|
|
111
115
|
</Button>
|
|
@@ -113,8 +117,8 @@ function LegendsPreferences() {
|
|
|
113
117
|
size="small"
|
|
114
118
|
variant="outlined"
|
|
115
119
|
intent="danger"
|
|
116
|
-
onClick={() => deleteHandler(
|
|
117
|
-
disabled={record
|
|
120
|
+
onClick={() => deleteHandler(row.index)}
|
|
121
|
+
disabled={'name' in record}
|
|
118
122
|
>
|
|
119
123
|
<FaRegTrashAlt className={Classes.ICON} />
|
|
120
124
|
</Button>
|
|
@@ -122,12 +126,11 @@ function LegendsPreferences() {
|
|
|
122
126
|
);
|
|
123
127
|
},
|
|
124
128
|
},
|
|
125
|
-
]
|
|
126
|
-
|
|
127
|
-
);
|
|
129
|
+
]);
|
|
130
|
+
}, [addHandler, control, datalist, deleteHandler, paths]);
|
|
128
131
|
|
|
129
132
|
return (
|
|
130
|
-
<
|
|
133
|
+
<TanStackTable
|
|
131
134
|
data={fields}
|
|
132
135
|
columns={COLUMNS}
|
|
133
136
|
style={{ table: { height: '100%' } }}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { useFormContext, useWatch } from 'react-hook-form';
|
|
4
|
-
import type { CellProps } from 'react-table';
|
|
5
4
|
|
|
6
5
|
import { NumberInput2Controller } from '../../elements/NumberInput2Controller.js';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import {
|
|
7
|
+
TanStackTable,
|
|
8
|
+
createTanStackColumnHelper,
|
|
9
|
+
} from '../../elements/tanstack_table/index.ts';
|
|
10
10
|
|
|
11
11
|
const cellStyle: CSSProperties = {
|
|
12
12
|
padding: '1px',
|
|
@@ -26,16 +26,17 @@ export function SpinSystemTable(props: SpinSystemTableProps) {
|
|
|
26
26
|
const data = useWatch({ name: 'data' });
|
|
27
27
|
|
|
28
28
|
const tableColumns = useMemo(() => {
|
|
29
|
-
const
|
|
29
|
+
const columnHelper = createTanStackColumnHelper<SpinSystemElement>();
|
|
30
|
+
const columns = columnHelper.columns([
|
|
30
31
|
{
|
|
31
32
|
id: 'rowLabel',
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
header: '',
|
|
34
|
+
accessorFn: (_, index) => spinSystem.at(index),
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
|
-
|
|
37
|
-
style: cellStyle,
|
|
38
|
-
|
|
37
|
+
header: 'Delta',
|
|
38
|
+
meta: { style: cellStyle },
|
|
39
|
+
cell: ({ row }) => (
|
|
39
40
|
<NumberInput2Controller
|
|
40
41
|
control={control}
|
|
41
42
|
name={`data.${row.index}.0`}
|
|
@@ -44,16 +45,15 @@ export function SpinSystemTable(props: SpinSystemTableProps) {
|
|
|
44
45
|
/>
|
|
45
46
|
),
|
|
46
47
|
},
|
|
47
|
-
];
|
|
48
|
-
let i = 0;
|
|
48
|
+
]);
|
|
49
49
|
|
|
50
|
+
let i = 0;
|
|
50
51
|
for (const label of spinSystem.slice(0, -1)) {
|
|
51
52
|
const columnIndex = i + 1;
|
|
52
|
-
|
|
53
|
+
columns.push({
|
|
53
54
|
id: label,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Cell: function cellRender({ row }: CellProps<SpinSystemElement>) {
|
|
55
|
+
meta: { style: cellStyle },
|
|
56
|
+
cell: function cellRender({ row }) {
|
|
57
57
|
const val = row.original?.[columnIndex] ?? null;
|
|
58
58
|
if (val !== null) {
|
|
59
59
|
return (
|
|
@@ -67,12 +67,13 @@ export function SpinSystemTable(props: SpinSystemTableProps) {
|
|
|
67
67
|
}
|
|
68
68
|
return <div />;
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
header: () => (
|
|
71
71
|
<span>
|
|
72
72
|
J<sub>{label}-X</sub>(Hz)
|
|
73
73
|
</span>
|
|
74
74
|
),
|
|
75
75
|
});
|
|
76
|
+
|
|
76
77
|
i++;
|
|
77
78
|
}
|
|
78
79
|
return columns;
|
|
@@ -82,5 +83,5 @@ export function SpinSystemTable(props: SpinSystemTableProps) {
|
|
|
82
83
|
return null;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
return <
|
|
86
|
+
return <TanStackTable columns={tableColumns} data={data} />;
|
|
86
87
|
}
|
|
@@ -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 };
|
|
@@ -15,7 +15,7 @@ import type {
|
|
|
15
15
|
InsetView,
|
|
16
16
|
} from '../../1d/inset/SpectraInsets.js';
|
|
17
17
|
import { getInsetXScale } from '../../1d/utilities/scale.js';
|
|
18
|
-
import type { ZoomOptions } from '../../EventsTrackers/
|
|
18
|
+
import type { ZoomOptions } from '../../EventsTrackers/brush_tracker.types.ts';
|
|
19
19
|
import { defaultIntegralsViewState } from '../../hooks/useActiveSpectrumIntegralsViewState.js';
|
|
20
20
|
import { defaultPeaksViewState } from '../../hooks/useActiveSpectrumPeaksViewState.js';
|
|
21
21
|
import { getDefaultRangesViewState } from '../../hooks/useActiveSpectrumRangesViewState.js';
|
|
@@ -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';
|
|
@@ -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,6 +1,6 @@
|
|
|
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
|
export interface HistoryItem {
|
|
@@ -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';
|
|
@@ -536,7 +536,7 @@ export default function NMRToolbar() {
|
|
|
536
536
|
pluginTools.map((operatorUI) => (
|
|
537
537
|
<CoreOperatorTool
|
|
538
538
|
key={operatorUI.id}
|
|
539
|
-
|
|
539
|
+
operatorUI={operatorUI}
|
|
540
540
|
spectrum={stableSpectrum}
|
|
541
541
|
activeOperatorId={activeOperatorId}
|
|
542
542
|
onTriggerOperation={(operation) => {
|
|
@@ -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
|
+
}
|