plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.89k stars 281 forks source link

Add Clone and PartialEq traits to SeriesLabelPosition and ShapeStyle #558

Closed vpochapuis closed 8 months ago

vpochapuis commented 8 months ago

Hello! Firstly thank you so much for this crate, its very useful and Rust ecosystem really needs such crate! I have encountered some little roadblocks when using it in our Yew based application and would like to know if it was ok to integrate those changes that seem to benefit to other applications too.

What

Why

Those traits can be quite useful in diverse applications (at least it is when integrating Plotters in WASM Yew based application where the Component Properties must be PartialEq and Clone ).

Notes

If there is any other Struct/Enum where we could add those that you think might be relevant too, I could add them in this PR too!

Thank you for your time