plugin-api/TuneOperationRegistry#
useTuneOperations()#
Returns all registered tune operations sorted by order, re-rendering on changes.
Returns#
tuneOperationRegistry#
TuneMode#
Properties#
id#
label#
paramsOverride?#
Params to merge into the call when this mode is selected.
TuneOperationDef#
Properties#
capability?#
Device capability required to show this tab. Hidden when absent.
component?#
Full custom component. If provided, rendered instead of the generic schema-driven form. Receives TuneOperationProps for generic operations, but plugins can provide any component (rendered with no props — the plugin manages its own state via context/hooks).
defaultParams?#
Static default parameters when no schema topic is defined.
icon?#
Optional tab icon component.
id#
Unique identifier, e.g. 'core:tune-frequency' or 'nanalysis:shim'.
label#
Tab label — string or lazy function for i18n.
modes?#
Quick/Full or custom modes shown as a toggle.
order#
Sort order. Built-in operations use 100–500.
paramsSchemaTopic?#
Topic to fetch dynamic parameter schema from the device.
plotId?#
Plot ID for results visualization.
pluginTopic#
Plugin topic to call when user clicks Start, e.g. 'nmr_tuning.tune_frequency'.
resultTopic?#
Topic for async results, e.g. 'nmr_tuning.tune_frequency_result'.
TuneOperationProps#
Properties#
isRunning#
onCancel#
Returns#
void
onStart#
Parameters#
| Parameter | Type |
|---|---|
params |
Record<string, unknown> |
Returns#
void