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

Method zoom_at_cursor

src/plot_state.rs:875–892  ·  view source on GitHub ↗
(&mut self, scroll_y: f32, viewport: DVec2)

Source from the content-addressed store, hash-verified

873 handled
874 }
875
876 fn apply_click_action(
877 &mut self,
878 action: ClickAction,
879 widget: &PlotWidget,
880 publish_hover_pick: &mut Option<HoverPickEvent>,
881 ) -> bool {
882 match action {
883 ClickAction::Autoscale => {
884 self.autoscale(true);
885 true
886 }
887 ClickAction::Pick => {
888 self.pick_highlighted_point(widget, publish_hover_pick);
889 false
890 }
891 ClickAction::ClearPick => {
892 *publish_hover_pick = Some(HoverPickEvent::ClearPick);
893 false
894 }
895 }

Callers 1

handle_mouse_eventMethod · 0.80

Calls 3

screen_to_renderMethod · 0.80
update_axis_linksMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected