#yew #flowchart #trunk

yewflow

A flowchart library for Yew, inspired by React Flow

2 unstable releases

0.2.0 Feb 22, 2024
0.1.0 Feb 11, 2024

#558 in GUI

25 downloads per month

MIT license

50KB
941 lines

Yewflow

A library inspired by React Flow, but made for Yew.

It is not a perfect copy, nor does it include all the features that React Flow has.

The current features are:

  • A fully-functional panel that can be dragged and zoomed in.
  • Nodes that can be dragged around and customized to your liking.
  • Straight edges that can be customized to your liking.

Some major features that are missing:

  • There is only a single edge type (straight).
  • There is no default styling for nodes or edges. One must be provided by the user.

To get started, I recommend you check out the example in the examples folder.

"Example of Yewflow in action"

Contribution

Naturally, contributions are welcome. Just open a pull request and I will be notified.

DISCLAIMER: This is my first proper project in Rust. Any feedback on the code is appreciated.

License

This project is licensed under MIT license. See LICENSE-MIT for more information.

Dependencies

~11–20MB
~271K SLoC