Skip to content

Commit

Permalink
Merge pull request #13 from tomtuamnuq/update-egui-deps
Browse files Browse the repository at this point in the history
update deps egui and eframe
  • Loading branch information
Gip-Gip authored Feb 25, 2024
2 parents 2a4b060 + 30edfed commit 00888c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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

0 comments on commit 00888c0

Please sign in to comment.