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

Fix [BUG] Rotated labels overlap with the chart #551 #555

Conversation

AliMMehr
Copy link

@AliMMehr AliMMehr commented Feb 28, 2024

Do not override the label_style.pos value if it has been defined by the user.

This is the related discussion for issue #551 . I also commented out a rational for the fix in here

This is a breaking change, but the only breaking change is that the type of TextStyle.pos changes from text_anchor::Pos to Option<text_anchor::Pos>. It is a breaking change because TextStyle.pos is a public attribute.

I don't know if this kind of breaking change is allowed. I also don't know if this is a good fix for this issue. Please advise any type of change you would want me to do, and I can do it. Thank you

Monadic-Cat and others added 30 commits August 2, 2022 12:05
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Release notes](https://github.com/bheisler/criterion.rs/releases)
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](bheisler/criterion.rs@0.3.6...0.4.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
…criterion-0.4.0

Update criterion requirement from 0.3.6 to 0.4.0
Updates the requirements on [ttf-parser](https://github.com/RazrFalcon/ttf-parser) to permit the latest version.
- [Release notes](https://github.com/RazrFalcon/ttf-parser/releases)
- [Changelog](https://github.com/RazrFalcon/ttf-parser/blob/master/CHANGELOG.md)
- [Commits](RazrFalcon/ttf-parser@v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: ttf-parser
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Export the `doc` macro, to use of `define_color`
…ttf-parser-0.17.0

Update ttf-parser requirement from 0.15.0 to 0.17.0
Signed-off-by: Aaron Erhardt <[email protected]>
Signed-off-by: Aaron Erhardt <[email protected]>
AaronErhardt and others added 26 commits October 17, 2023 17:39
Minor: Resolved this warning associated with a "Non-Standard" default
* Properly propagate error of nested result
Added primitive types implementation of the `LogScalable` trait
- also hide the count! macro, since it is only used as a helper
Enable macro usage for users to define colormaps
docs - annotate objects who depend on features
…not override the user-defined `label_style.pos`
Some(_) => label_style,
None => &label_style_with_new_pos,
};
area.draw_text(t, &label_style, (text_x, text_y))?;

Check warning

Code scanning / clippy

this expression creates a reference which is immediately dereferenced by the compiler Warning

this expression creates a reference which is immediately dereferenced by the compiler
@AaronErhardt
Copy link
Member

I don't know if this kind of breaking change is allowed. I also don't know if this is a good fix for this issue. Please advise any type of change you would want me to do, and I can do it. Thank you

The fix looks good to me, but breaking changes are not accepted on the master branch. For breaking changes, please submit a merge request to next-release-devel. Unfortunately however, due to lack of maintainers, there is no estimate currently when the next major version will be published.

@AliMMehr AliMMehr changed the base branch from master to next-release-devel March 5, 2024 08:12
@AliMMehr AliMMehr closed this Mar 5, 2024
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.