components/plot/Plot#
selectFrequencyDisplayUnit#
const selectFrequencyDisplayUnit: (state) => FrequencyUnit & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
} & {
dependencies: [(state) => FrequencyUnit];
dependencyRecomputations: () => number;
lastResult: () => FrequencyUnit;
memoizedResultFunc: (resultFuncArgs_0) => FrequencyUnit & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
};
recomputations: () => number;
resetDependencyRecomputations: () => void;
resetRecomputations: () => void;
resultFunc: (resultFuncArgs_0) => FrequencyUnit;
} & {
argsMemoize: any;
memoize: any;
};
Type Declaration#
clearCache#
Returns#
void
resetResultsCount#
Returns#
void
resultsCount#
Returns#
number
Type Declaration#
dependencies#
dependencyRecomputations#
Returns#
number
lastResult#
Returns#
FrequencyUnit
memoizedResultFunc#
memoizedResultFunc: (resultFuncArgs_0) => FrequencyUnit & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
};
Type Declaration#
clearCache#
Returns#
void
resetResultsCount#
Returns#
void
resultsCount#
Returns#
number
recomputations#
Returns#
number
resetDependencyRecomputations#
Returns#
void
resetRecomputations#
Returns#
void
resultFunc#
Parameters#
| Parameter | Type |
|---|---|
resultFuncArgs_0 |
FrequencyUnit |
Returns#
FrequencyUnit
Type Declaration#
argsMemoize#
memoize#
selectPlotConfig#
const selectPlotConfig: (state) => PlotsConfig & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
} & {
dependencies: [(state) => PlotsConfig];
dependencyRecomputations: () => number;
lastResult: () => PlotsConfig;
memoizedResultFunc: (resultFuncArgs_0) => PlotsConfig & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
};
recomputations: () => number;
resetDependencyRecomputations: () => void;
resetRecomputations: () => void;
resultFunc: (resultFuncArgs_0) => PlotsConfig;
} & {
argsMemoize: any;
memoize: any;
};
Type Declaration#
clearCache#
Returns#
void
resetResultsCount#
Returns#
void
resultsCount#
Returns#
number
Type Declaration#
dependencies#
dependencyRecomputations#
Returns#
number
lastResult#
Returns#
PlotsConfig
memoizedResultFunc#
memoizedResultFunc: (resultFuncArgs_0) => PlotsConfig & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
};
Type Declaration#
clearCache#
Returns#
void
resetResultsCount#
Returns#
void
resultsCount#
Returns#
number
recomputations#
Returns#
number
resetDependencyRecomputations#
Returns#
void
resetRecomputations#
Returns#
void
resultFunc#
Parameters#
| Parameter | Type |
|---|---|
resultFuncArgs_0 |
PlotsConfig |
Returns#
PlotsConfig
Type Declaration#
argsMemoize#
memoize#
selectPlotSettingsById#
const selectPlotSettingsById: (plotId) => (state) => PlotsSettings & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
} & {
dependencies: [(state) => PlotsSettingsRecord];
dependencyRecomputations: () => number;
lastResult: () => PlotsSettings;
memoizedResultFunc: (resultFuncArgs_0) => PlotsSettings & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
};
recomputations: () => number;
resetDependencyRecomputations: () => void;
resetRecomputations: () => void;
resultFunc: (resultFuncArgs_0) => PlotsSettings;
} & {
argsMemoize: any;
memoize: any;
};
Parameters#
| Parameter | Type |
|---|---|
plotId |
string |
Returns#
(state) => PlotsSettings & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
} & {
dependencies: [(state) => PlotsSettingsRecord];
dependencyRecomputations: () => number;
lastResult: () => PlotsSettings;
memoizedResultFunc: (resultFuncArgs_0) => PlotsSettings & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
};
recomputations: () => number;
resetDependencyRecomputations: () => void;
resetRecomputations: () => void;
resultFunc: (resultFuncArgs_0) => PlotsSettings;
} & {
argsMemoize: any;
memoize: any;
}
PlotExtraConfig#
Custom config extensions supported by the D3FC plot provider.
Properties#
autoFitYOnXZoom?#
doubleClick?#
edits?#
referenceFrequencyHz?#
userDraw?#
xUnitsLabel?#
PlotProps#
Properties#
aspectRatio?#
bottomComponent?#
contourThreshold?#
Override the contour threshold multiplier (d3fc default 0.075). Higher
filters out low-level contours so peaks read more clearly in small
previews. Applied to type: 'contour' traces only.
data?#
extraConfig?#
extraLayout?#
headerElements?#
Extra elements injected into PlotFlipper's header toolbar (right side)
linesOnly?#
Force every trace to render lines-only (strips markers from saved trace settings). Used by small ambient previews like the cockpit live readout.
logX?#
logY?#
mergeWithRedux?#
noCaptureRoot?#
When true, omits data-plot-capture-root so a parent can provide it instead
noFlip?#
onClearOverlays?#
Returns#
void
onClick?#
Parameters#
| Parameter | Type |
|---|---|
event |
PlotlyClickEvent |
Returns#
void
onHover?#
Parameters#
| Parameter | Type |
|---|---|
event |
PlotlyHoverEvent |
Returns#
void
onRelayout?#
Parameters#
| Parameter | Type |
|---|---|
event |
Record<string, unknown> |
Returns#
void
onShapeRemove?#
Fired when the user clicks the ✕ remove button on a shape
Parameters#
| Parameter | Type |
|---|---|
detail |
{ removeKey: string; } |
detail.removeKey |
string |
Returns#
void
onShapeUpdate?#
Fired when the user finishes dragging a shape handle
Parameters#
| Parameter | Type |
|---|---|
detail |
{ shapeIndex: number; x0: number; x1: number; y0?: number; y1?: number; } |
detail.shapeIndex |
number |
detail.x0 |
number |
detail.x1 |
number |
detail.y0? |
number |
detail.y1? |
number |
Returns#
void
onUnhover?#
Returns#
void
onUserDraw?#
Fired when the user finishes a right-click+drag draw gesture (requires config.userDraw)
Parameters#
| Parameter | Type |
|---|---|
detail |
{ x0: number; x1: number; y0?: number; y1?: number; } |
detail.x0 |
number |
detail.x1 |
number |
detail.y0? |
number |
detail.y1? |
number |
Returns#
void
overlayGroupTitle?#
paddedHeight?#
plotId#
rapid?#
When true, disables useDeferredValue for rapid/streaming data updates
showHiddenTraces?#
Force every trace visible, ignoring visible: false from the handler
(e.g. 1D spectra hide Imag/Abs by default). Used by the cockpit readout
to show all components at a glance.
sideElement?#
Element rendered to the right of the plot content (e.g. action sidebar)
style?#
title#
xLabel?#
yLabel?#
PlotlyClickEvent#
Properties#
points#
x#
y#
PlotlyHoverEvent#
Properties#
points#
x#
y#
z?#
Plot#
Re-exports Plot