-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: renamed and refactored custom_draw
- Loading branch information
Showing
6 changed files
with
40 additions
and
22 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.
2 changes: 1 addition & 1 deletion
2
examples/custom_draw/Cargo.toml → examples/animated_nodes/Cargo.toml
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,5 +1,5 @@ | ||
[package] | ||
name = "custom_draw" | ||
name = "animated_nodes" | ||
version = "0.1.0" | ||
authors = ["Dmitrii Samsonov <[email protected]>"] | ||
license = "MIT" | ||
|
4 changes: 2 additions & 2 deletions
4
examples/custom_draw/README.md → examples/animated_nodes/README.md
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,9 +1,9 @@ | ||
# Custom draw | ||
# Animated nodes | ||
Example demonstrates how to use custom drawing functions nodes, handle animation state and access `node` payload in the drawing function. | ||
|
||
Nodes are drawn as squares with labels in their center. Node is rotating when it is in the state of dragging. It is rotating clockwise if the `node` payload has `clockwise` field setting set to `true` and vice-verse. | ||
|
||
## run | ||
```bash | ||
cargo run --release -p custom_draw | ||
cargo run --release -p animated_nodes | ||
``` |
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
File renamed without changes.
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