Skip to content

Commit cfb5408

Browse files
authored
0.22.0 (#215)
* bumped egui version * fixed default usages
1 parent 77a7eaa commit cfb5408

File tree

22 files changed

+585
-654
lines changed

22 files changed

+585
-654
lines changed

Cargo.lock

Lines changed: 503 additions & 541 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egui_graphs"
3-
version = "0.21.1"
3+
version = "0.22.0"
44
authors = ["Dmitrii Samsonov <blitzarx1@gmail.com>"]
55
license = "MIT"
66
homepage = "https://github.com/blitzarx1/egui_graphs"
@@ -11,7 +11,7 @@ keywords = ["egui", "ui", "graph", "node-graph"]
1111
categories = ["gui", "visualization"]
1212

1313
[dependencies]
14-
egui = { version = "0.28", default-features = false }
14+
egui = { version = "0.29", default-features = false }
1515
rand = "0.8"
1616
petgraph = { version = "0.6", default-features = false, features = [
1717
"stable_graph",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Combining this feature with custom node draw function allows to implement custom
3535
### Persistence
3636
To use egui `persistence` feature you need to enable `egui_persistence` feature of this crate. For example:
3737
```toml
38-
egui_graphs = { version = "0.21", features = ["egui_persistence"]}
39-
egui = {version="0.23", features = ["persistence"]}
38+
egui_graphs = { version = "0.22", features = ["egui_persistence"]}
39+
egui = {version="0.29", features = ["persistence"]}
4040
```
4141

4242
## Examples

examples/animated_nodes/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ edition = "2021"
77

88
[dependencies]
99
egui_graphs = { path = "../../" }
10-
egui = "0.28"
11-
eframe = "0.28"
10+
egui = "0.29"
11+
eframe = "0.29"
1212
petgraph = "0.6"

examples/basic/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ edition = "2021"
77

88
[dependencies]
99
egui_graphs = { path = "../../" }
10-
egui = "0.28"
11-
eframe = "0.28"
10+
egui = "0.29"
11+
eframe = "0.29"
1212
petgraph = "0.6"

examples/bevy_basic/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "MIT"
66
edition = "2021"
77

88
[dependencies]
9-
egui_graphs = { path = "../../" }
10-
bevy = "0.14.2"
11-
bevy_egui = "0.29.0"
9+
egui_graphs = "0.21"
10+
bevy = "0.14"
11+
bevy_egui = "0.29"
1212
petgraph = "0.6"

examples/bevy_basic/src/main.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use bevy::prelude::*;
22
use bevy_egui::{egui, EguiContexts, EguiPlugin};
3-
use egui_graphs::{DefaultEdgeShape, DefaultNodeShape, Graph, GraphView};
3+
use egui_graphs::{Graph, GraphView};
44
use petgraph::stable_graph::StableGraph;
55

66
fn main() {
@@ -46,13 +46,6 @@ fn update_graph(mut contexts: EguiContexts, mut q_graph: Query<&mut BasicGraph>)
4646
let mut graph = q_graph.single_mut();
4747

4848
egui::CentralPanel::default().show(ctx, |ui| {
49-
ui.add(&mut GraphView::<
50-
_,
51-
_,
52-
_,
53-
_,
54-
DefaultNodeShape,
55-
DefaultEdgeShape,
56-
>::new(&mut graph.0));
49+
ui.add(&mut GraphView::new(&mut graph.0));
5750
});
5851
}

examples/demo/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ edition = "2021"
77

88
[dependencies]
99
egui_graphs = { path = "../../", features = ["events"] }
10-
egui = "0.28"
11-
eframe = "0.28"
10+
egui = "0.29"
11+
eframe = "0.29"
1212
serde_json = "1.0"
1313
petgraph = "0.6"
1414
fdg = { git = "https://github.com/grantshandy/fdg" }

examples/demo/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use drawers::ValuesSectionDebug;
55
use eframe::{run_native, App, CreationContext};
66
use egui::{CollapsingHeader, Context, Pos2, ScrollArea, Ui, Vec2};
77
use egui_graphs::events::Event;
8-
use egui_graphs::{to_graph, DefaultEdgeShape, DefaultNodeShape, Edge, Graph, GraphView, Node};
8+
use egui_graphs::{to_graph, Edge, Graph, GraphView, Node};
99
use fdg::fruchterman_reingold::{FruchtermanReingold, FruchtermanReingoldConfiguration};
1010
use fdg::nalgebra::{Const, OPoint};
1111
use fdg::{Force, ForceGraph};
@@ -511,7 +511,7 @@ impl App for DemoApp {
511511
let settings_style = &egui_graphs::SettingsStyle::new()
512512
.with_labels_always(self.settings_style.labels_always);
513513
ui.add(
514-
&mut GraphView::<_, _, _, _, DefaultNodeShape, DefaultEdgeShape>::new(&mut self.g)
514+
&mut GraphView::new(&mut self.g)
515515
.with_interactions(settings_interaction)
516516
.with_navigations(settings_navigation)
517517
.with_styles(settings_style)

examples/flex_nodes/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ edition = "2021"
77

88
[dependencies]
99
egui_graphs = { path = "../../" }
10-
egui = "0.28"
11-
eframe = "0.28"
10+
egui = "0.29"
11+
eframe = "0.29"
1212
petgraph = "0.6"

0 commit comments

Comments
 (0)