v1.0.0-rc.31
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user