MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / point_position

Method point_position

src/plot_widget.rs:422–428  ·  view source on GitHub ↗

Get the position of a point in the plot.

(&self, point_id: PointId)

Source from the content-addressed store, hash-verified

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()

Callers 3

update_plotFunction · 0.80
updateMethod · 0.80
updateFunction · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected