v1.0.0-rc.31

This commit is contained in:
2025-03-02 13:15:28 +01:00
parent aeabc81a4c
commit ddf4c75645
309 changed files with 8705 additions and 1421 deletions

View File

@@ -16,7 +16,8 @@ export enum PlotType {
ROI_MAX_COUNT,
RECEIVER_FREE_SEND_BUFS,
INDEXING_UNIT_CELL,
INDEXING_UNIT_CELL_ANGLE
INDEXING_UNIT_CELL_ANGLE,
MAX_VALUE
}
type MyProps = {
@@ -70,6 +71,8 @@ function AxisTypeY(plot: PlotType) : string {
return "Length [Å]";
case PlotType.INDEXING_UNIT_CELL_ANGLE:
return "Angle [deg]";
case PlotType.MAX_VALUE:
return "Max pixel value";
}
}
@@ -182,6 +185,13 @@ class DataProcessingPlot extends Component<MyProps, MyState> {
this.setState({connection_error: true});
});
break;
case PlotType.MAX_VALUE:
DefaultService.getPlotMaxValue(this.props.binning)
.then(data => this.setState({plots: data, connection_error: false}))
.catch(error => {
this.setState({connection_error: true});
});
break;
}
}