Get the position of a point in the plot.
(&self, point_id: PointId)
| 420 | } else { |
| 421 | [point.x, point.y] |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | /// Update tooltip positions for all hovered and picked points |
| 426 | /// This should be called when the plot canvas position changes |
| 427 | fn update_tooltip_positions(&mut self) { |
| 428 | if let Some(camera_bounds) = &self.camera_bounds { |
| 429 | for (highlight_point, tooltip) in self |
| 430 | .hovered_points |
| 431 | .values_mut() |
no test coverage detected