Skip to content

Commit

Permalink
Fixed edge draw bug (#23)
Browse files Browse the repository at this point in the history
* Fixed edge draw bug

* fixed readme
  • Loading branch information
blitzarx1 authored Apr 29, 2023
1 parent 566a7a7 commit 9f8fcda
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 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.1.2"
version = "0.1.3"
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 @@ -8,7 +8,7 @@ Graph visualization with rust and [egui](https://github.com/emilk/egui)

## Features
* Customization and interactivity;
* Ability to draw arbitrarily complex graphs with self-references, loops, etc.;
* Arbitrarily complex graphs with self-references, multiple edges, loops, etc.;
* Zoom & pan;
* Dragging, Selecting;
* The `GraphView` widget does not modify the provided graph and properties, instead in case of any interactions, it generates changes which the client can apply;
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.1.2"
version = "0.1.3"
authors = ["Dmitrii Samsonov <[email protected]>"]
license = "MIT"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion examples/interactive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "interactive"
version = "0.1.2"
version = "0.1.3"
authors = ["Dmitrii Samsonov <[email protected]>"]
license = "MIT"
edition = "2021"
Expand Down
3 changes: 3 additions & 0 deletions src/graph_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,9 @@ impl<'a> GraphView<'a> {
shapes.push(Shape::line_segment([tip_point, head_point_2], stroke));

if !e.selected {
quadratic_shapes.into_iter().for_each(|shape| {
p.add(shape);
});
shapes.into_iter().for_each(|shape| {
p.add(shape);
});
Expand Down

0 comments on commit 9f8fcda

Please sign in to comment.