Skip to content

Commit

Permalink
Changed nodes API. Added interactice example (#27)
Browse files Browse the repository at this point in the history
-  Dynamic generation selection 
-  Node.radius is private field
-  selection depth param in SettingsStyle
-  primary selection color in SettingsStyle for directly selected node
-  secondary selection color in SettingsStyle for sub selections
-  added interactive example
  • Loading branch information
blitzarx1 authored May 1, 2023
1 parent 31e4942 commit 0e222fb
Show file tree
Hide file tree
Showing 18 changed files with 1,234 additions and 808 deletions.
20 changes: 15 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "egui_graphs"
version = "0.2.0"
version = "0.3.0"
authors = ["Dmitrii Samsonov <[email protected]>"]
license = "MIT"
homepage = "https://github.com/blitzarx1/egui_graphs"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ You can further customize the appearance and behavior of your graph by modifying

### Interactive

You can check more advanced [interactive example](https://github.com/blitzarx1/egui_graph/tree/master/examples/interactive) for usage references and settings description.
You can check more advanced [configurable demo](https://github.com/blitzarx1/egui_graph/tree/master/examples/configurable) for usage references and settings description.

## Gallery
![ezgif-4-3e4e4469e6](https://user-images.githubusercontent.com/32969427/233863786-11459176-b741-4343-8b42-7d9b3a8239ee.gif)
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "basic"
version = "0.2.0"
version = "0.3.0"
authors = ["Dmitrii Samsonov <[email protected]>"]
license = "MIT"
edition = "2021"
Expand Down
14 changes: 14 additions & 0 deletions examples/configurable/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "configurable"
version = "0.3.0"
authors = ["Dmitrii Samsonov <[email protected]>"]
license = "MIT"
edition = "2021"

[dependencies]
egui_graphs = { path = "../../" }
egui = "0.21.0"
eframe = "0.21.3"
petgraph = "0.6"
fdg-sim = "0.9.1"
rand = "0.8.4"
8 changes: 8 additions & 0 deletions examples/configurable/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Configurable
Configurable example where you can toggle settings of the `GraphView` widget and see the result immediately.
It also contains controls to play with the graph.

## run
```bash
cargo run --release -p configurable
```
Loading

0 comments on commit 0e222fb

Please sign in to comment.