(
widget: &PlotWidget,
data_min: Option<DVec2>,
data_max: Option<DVec2>,
)
| 959 | self.update_axis_links(); |
| 960 | } |
| 961 | |
| 962 | fn cursor_world_data(&self, viewport: DVec2) -> Option<[f64; 2]> { |
| 963 | let plot = self.camera.screen_to_world( |
| 964 | DVec2::new(self.cursor_position.x as f64, self.cursor_position.y as f64), |
| 965 | viewport, |
| 966 | ); |
| 967 | plot_point_to_data([plot.x, plot.y], self.x_axis_scale, self.y_axis_scale) |
| 968 | } |
| 969 | } |
| 970 | |
| 971 | #[derive(Debug, Clone)] |
| 972 | pub(crate) struct FillSpan { |
| 973 | pub(crate) color: Color, |
| 974 | /// Triangle list vertices in plot/world coordinates. |
| 975 | pub(crate) vertices: Arc<[[f64; 2]]>, |
| 976 | } |
| 977 | |
| 978 | enum FillEndpoint<'a> { |
| 979 | Series(&'a crate::Series), |
| 980 | HLine(&'a HLine), |
| 981 | VLine(&'a VLine), |
no test coverage detected