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

Simplify some Cairo drawing #1671

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

QuLogic
Copy link
Contributor

@QuLogic QuLogic commented Mar 5, 2024

Instead of generating paths twice, once for filling and once for stroking, use the path-preserving fill_preserve operator instead. As well, do the filling before stroking for consistency, or else the stroke might be accidentally covered, as occurred with the child rings.

Also, simplify the map marker which seems to have drawn the elliptical portion twice.

@QuLogic QuLogic force-pushed the simplify-draws branch 2 times, most recently from dc52a25 to 75245cc Compare March 5, 2024 11:01
@hgohel
Copy link
Member

hgohel commented Mar 6, 2024

@QuLogic Love all your enhancements. How do we validate the changes?

@QuLogic
Copy link
Contributor Author

QuLogic commented Mar 6, 2024

For the fan charts, you can just open them like normal, and they should not have changed (except the strokes on the child rings).

For the map markers, I'm actually not sure how to get the maps to use the coloured markers. I just edited the view files and forced it to use a hard-coded colour instead of the stock image while testing.

Instead of generating paths twice, once for filling and once for
stroking, use the path-preserving `fill_preserve` operator instead. As
well, do the filling before stroking for consistency, or else the stroke
might be accidentally covered, as occurred with the child rings.

Also, simplify the map marker which seems to have drawn the elliptical
portion twice.
@Nick-Hall
Copy link
Member

Rebased.

@Nick-Hall Nick-Hall merged commit 3442876 into gramps-project:master Apr 15, 2024
2 checks passed
@QuLogic QuLogic deleted the simplify-draws branch April 21, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants