-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored drawing and custom drawing approach. The aim is to make drawing of custom shapes more transparent and solve interaction and visualization of custom drawn shapes in graph context described here #99. Introduction of `NodeDisplay` trait which allows to simply switch draw implementation for any element node or edge. Breaking: * GraphView generic structure * New generics for custom drawing functions * Explicit * WidgetState -> DrawContext * `Node` and `Edge` api changes * Data -> Payload * Removed radius from node and style information from edge as it is the scope of `NodeDisplay` or `EdgeDisplay` implementations * Transform api * Custom draw api
- Loading branch information
Showing
29 changed files
with
1,226 additions
and
1,012 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "egui_graphs" | ||
version = "0.15.0" | ||
version = "0.16.0-beta.0" | ||
authors = ["Dmitrii Samsonov <[email protected]>"] | ||
license = "MIT" | ||
homepage = "https://github.com/blitzarx1/egui_graphs" | ||
|
@@ -11,7 +11,10 @@ edition = "2021" | |
[dependencies] | ||
egui = { version = "0.23", default-features = false } | ||
rand = "0.8" | ||
petgraph = { version = "0.6", default-features = false, features = ["stable_graph", "matrix_graph"] } | ||
petgraph = { version = "0.6", default-features = false, features = [ | ||
"stable_graph", | ||
"matrix_graph", | ||
] } | ||
crossbeam = { version = "0.8", optional = true } | ||
serde = { version = "1.0", features = ["derive"], optional = true } | ||
serde_json = { version = "1.0", optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.