Convert world position to screen position
(
x: f64,
camera: &Camera,
bounds: &Rectangle,
)
| 1951 | |
| 1952 | impl PlotWidget { |
| 1953 | pub(crate) fn pick_hit(&self, state: &mut PlotState) -> Option<PointId> { |
| 1954 | let PlotState { |
| 1955 | picking: pick_state, |
| 1956 | cursor_position, |
| 1957 | hover_radius_px, |
| 1958 | points, |
| 1959 | series, |
| 1960 | camera, |
| 1961 | bounds, |
| 1962 | .. |
| 1963 | } = state; |
| 1964 | let force_cpu_picking = self.render_strategy.force_cpu_picking(); |
| 1965 | |
| 1966 | pick_state.request_pick_hit( |
| 1967 | self.instance_id, |
| 1968 | *cursor_position, |
| 1969 | *hover_radius_px, |
no outgoing calls
no test coverage detected