Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update deps egui and eframe #13

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ Cargo.lock

/target
/Cargo.lock

# Project dependend vscode-settings
.vscode
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ exclude = [
timechart = ["dep:instant"]

[dependencies]
egui = "0.22"
egui = "0.25"
plotters-backend = "0.3"
plotters = "0.3"
# if you are using egui then chances are you're using trunk which uses wasm bindgen
instant = { version = "0.1", features = ["wasm-bindgen"], optional = true }

[dev-dependencies]
eframe = "0.22.0"
eframe = "0.25.0"
# Hacky way to enable features during testing
egui-plotter = { path = ".", version = "0.3.0", features = ["timechart"]}
egui-plotter = { path = ".", version = "0.3", features = ["timechart"]}

[package.metadata.docs.rs]
features = ["timechart"]
Expand Down
2 changes: 1 addition & 1 deletion src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ impl<'a> DrawingBackend for EguiBackend<'a> {
if !galley.is_empty() {
painter.add(TextShape {
angle,
..TextShape::new(rect.min, galley)
..TextShape::new(rect.min, galley, Color32::PLACEHOLDER)
});
}

Expand Down