Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Clone and PartialEq traits to SeriesLabelPosition and ShapeStyle #558

Merged

Conversation

vpochapuis
Copy link

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

  • Add Debug, Clone, PartialEq traits to SeriesLabelPosition
  • Add Debug, PartialEq traits to ShapeStyle

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

Copy link
Member

@AaronErhardt AaronErhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@AaronErhardt AaronErhardt merged commit af0b63c into plotters-rs:master Mar 1, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants