We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77a7eaa commit cfb5408Copy full SHA for cfb5408
Cargo.lock
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "egui_graphs"
3
-version = "0.21.1"
+version = "0.22.0"
4
authors = ["Dmitrii Samsonov <blitzarx1@gmail.com>"]
5
license = "MIT"
6
homepage = "https://github.com/blitzarx1/egui_graphs"
@@ -11,7 +11,7 @@ keywords = ["egui", "ui", "graph", "node-graph"]
11
categories = ["gui", "visualization"]
12
13
[dependencies]
14
-egui = { version = "0.28", default-features = false }
+egui = { version = "0.29", default-features = false }
15
rand = "0.8"
16
petgraph = { version = "0.6", default-features = false, features = [
17
"stable_graph",
README.md
@@ -35,8 +35,8 @@ Combining this feature with custom node draw function allows to implement custom
35
### Persistence
36
To use egui `persistence` feature you need to enable `egui_persistence` feature of this crate. For example:
37
```toml
38
-egui_graphs = { version = "0.21", features = ["egui_persistence"]}
39
-egui = {version="0.23", features = ["persistence"]}
+egui_graphs = { version = "0.22", features = ["egui_persistence"]}
+egui = {version="0.29", features = ["persistence"]}
40
```
41
42
## Examples
examples/animated_nodes/Cargo.toml
@@ -7,6 +7,6 @@ edition = "2021"
7
8
9
egui_graphs = { path = "../../" }
10
-egui = "0.28"
-eframe = "0.28"
+egui = "0.29"
+eframe = "0.29"
petgraph = "0.6"
examples/basic/Cargo.toml
examples/bevy_basic/Cargo.toml
@@ -6,7 +6,7 @@ license = "MIT"
edition = "2021"
-egui_graphs = { path = "../../" }
-bevy = "0.14.2"
-bevy_egui = "0.29.0"
+egui_graphs = "0.21"
+bevy = "0.14"
+bevy_egui = "0.29"
examples/bevy_basic/src/main.rs
use bevy::prelude::*;
use bevy_egui::{egui, EguiContexts, EguiPlugin};
-use egui_graphs::{DefaultEdgeShape, DefaultNodeShape, Graph, GraphView};
+use egui_graphs::{Graph, GraphView};
use petgraph::stable_graph::StableGraph;
fn main() {
@@ -46,13 +46,6 @@ fn update_graph(mut contexts: EguiContexts, mut q_graph: Query<&mut BasicGraph>)
46
let mut graph = q_graph.single_mut();
47
48
egui::CentralPanel::default().show(ctx, |ui| {
49
- ui.add(&mut GraphView::<
50
- _,
51
52
53
54
- DefaultNodeShape,
55
- DefaultEdgeShape,
56
- >::new(&mut graph.0));
+ ui.add(&mut GraphView::new(&mut graph.0));
57
});
58
}
examples/demo/Cargo.toml
@@ -7,8 +7,8 @@ edition = "2021"
egui_graphs = { path = "../../", features = ["events"] }
serde_json = "1.0"
fdg = { git = "https://github.com/grantshandy/fdg" }
examples/demo/src/main.rs
@@ -5,7 +5,7 @@ use drawers::ValuesSectionDebug;
use eframe::{run_native, App, CreationContext};
use egui::{CollapsingHeader, Context, Pos2, ScrollArea, Ui, Vec2};
use egui_graphs::events::Event;
-use egui_graphs::{to_graph, DefaultEdgeShape, DefaultNodeShape, Edge, Graph, GraphView, Node};
+use egui_graphs::{to_graph, Edge, Graph, GraphView, Node};
use fdg::fruchterman_reingold::{FruchtermanReingold, FruchtermanReingoldConfiguration};
use fdg::nalgebra::{Const, OPoint};
use fdg::{Force, ForceGraph};
@@ -511,7 +511,7 @@ impl App for DemoApp {
511
let settings_style = &egui_graphs::SettingsStyle::new()
512
.with_labels_always(self.settings_style.labels_always);
513
ui.add(
514
- &mut GraphView::<_, _, _, _, DefaultNodeShape, DefaultEdgeShape>::new(&mut self.g)
+ &mut GraphView::new(&mut self.g)
515
.with_interactions(settings_interaction)
516
.with_navigations(settings_navigation)
517
.with_styles(settings_style)
examples/flex_nodes/Cargo.toml
0 commit comments