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

Function resolve_fill_endpoint

src/plot_state.rs:929–940  ·  view source on GitHub ↗
(widget: &'a PlotWidget, id: ShapeId)

Source from the content-addressed store, hash-verified

927 self.camera.half_extents.x *= zoom_factor;
928 }
929 if zoom_y {
930 self.camera.half_extents.y *= zoom_factor;
931 }
932
933 let cursor_render_after = self.camera.screen_to_render(
934 DVec2::new(self.cursor_position.x as f64, self.cursor_position.y as f64),
935 viewport,
936 );
937
938 // Only adjust the axes that were zoomed so the cursor stays anchored.
939 let render_delta = cursor_render_before - cursor_render_after;
940 if zoom_x {
941 self.camera.position.x += render_delta.x;
942 }
943 if zoom_y {

Callers 1

build_fill_spanFunction · 0.85

Calls 4

SeriesClass · 0.85
HLineClass · 0.85
VLineClass · 0.85
getMethod · 0.80

Tested by

no test coverage detected