Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Dec 31, 2024
1 parent 9e7ae81 commit 10cc0b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions egui_plot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ use std::{cmp::Ordering, ops::RangeInclusive, sync::Arc};

use ahash::HashMap;
use egui::{
epaint, remap_clamp, vec2, Align2, Color32, CursorIcon, Id, Layout, NumExt, PointerButton,
Pos2, Rangef, Rect, Response, Rounding, Sense, Shape, Stroke, TextStyle, Ui, Vec2, Vec2b,
WidgetText,
emath::GuiRounding, epaint, remap_clamp, vec2, Align2, Color32, CursorIcon, Id, Layout, NumExt,

Check failure on line 22 in egui_plot/src/lib.rs

View workflow job for this annotation

GitHub Actions / Check wasm32

unresolved import `egui::emath::GuiRounding`
PointerButton, Pos2, Rangef, Rect, Response, Rounding, Sense, Shape, Stroke, TextStyle, Ui,
Vec2, Vec2b, WidgetText,
};
use emath::Float as _;

Expand Down Expand Up @@ -1666,8 +1666,8 @@ impl<'a> PreparedPlot<'a> {

if self.sharp_grid_lines {
// Round to avoid aliasing
p0 = ui.painter().round_pos_to_pixels(p0);
p1 = ui.painter().round_pos_to_pixels(p1);
p0 = p0.round_to_pixels(ui.pixels_per_point());
p1 = p1.round_to_pixels(ui.pixels_per_point());
}

shapes.push((
Expand Down

0 comments on commit 10cc0b8

Please sign in to comment.