v1.0.0-rc.34
This commit is contained in:
@@ -14,6 +14,9 @@ export enum PlotType {
|
||||
STRONG_PIXELS,
|
||||
ROI_SUM,
|
||||
ROI_MAX_COUNT,
|
||||
ROI_MEAN,
|
||||
ROI_X,
|
||||
ROI_Y,
|
||||
RECEIVER_FREE_SEND_BUFS,
|
||||
INDEXING_UNIT_CELL,
|
||||
INDEXING_UNIT_CELL_ANGLE,
|
||||
@@ -53,9 +56,11 @@ function AxisTypeY(plot: PlotType) : string {
|
||||
return "Efficiency";
|
||||
case PlotType.SPOT_COUNT:
|
||||
return "Spot count";
|
||||
case PlotType.AZIM_INT:
|
||||
return "Arbitrary units";
|
||||
case PlotType.ROI_MAX_COUNT:
|
||||
case PlotType.ROI_SUM:
|
||||
case PlotType.AZIM_INT:
|
||||
case PlotType.ROI_MEAN:
|
||||
case PlotType.BKG_ESTIMATE:
|
||||
return "Photon count";
|
||||
case PlotType.INDEXING_RATE:
|
||||
@@ -73,6 +78,9 @@ function AxisTypeY(plot: PlotType) : string {
|
||||
return "Angle [deg]";
|
||||
case PlotType.MAX_VALUE:
|
||||
return "Max pixel value";
|
||||
case PlotType.ROI_X:
|
||||
case PlotType.ROI_Y:
|
||||
return "Position [pixel]";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,6 +200,27 @@ class DataProcessingPlot extends Component<MyProps, MyState> {
|
||||
this.setState({connection_error: true});
|
||||
});
|
||||
break;
|
||||
case PlotType.ROI_MEAN:
|
||||
DefaultService.getPlotRoiMean(this.props.binning)
|
||||
.then(data => this.setState({plots: data, connection_error: false}))
|
||||
.catch(error => {
|
||||
this.setState({connection_error: true});
|
||||
});
|
||||
break;
|
||||
case PlotType.ROI_X:
|
||||
DefaultService.getPlotRoiX(this.props.binning)
|
||||
.then(data => this.setState({plots: data, connection_error: false}))
|
||||
.catch(error => {
|
||||
this.setState({connection_error: true});
|
||||
});
|
||||
break;
|
||||
case PlotType.ROI_Y:
|
||||
DefaultService.getPlotRoiY(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