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

Better estimation of fan chart size #186

Merged
merged 1 commit into from
Feb 26, 2023

Conversation

digitaltembo
Copy link
Contributor

Pretty similar to #184, although here it is a bit easier to get the actual sizes

Instead of assuming that the fan chart is a perfect circle of radius 60 * + 30, this calculates the bounding box of the ancestor arcs that are actually drawn.

Before:

Screen.Recording.2023-02-25.at.11.22.24.PM.mov

After:

Screen.Recording.2023-02-25.at.11.04.23.PM.mov

Instead of assuming that the fan chart is a perfect circle of radius 60 * <ancestor generations> + 30,
this calculates the bounding box of the ancestor arcs that are actually drawn.
@DavidMStraub
Copy link
Member

Awesome 🚀

@DavidMStraub DavidMStraub merged commit a4813fa into gramps-project:main Feb 26, 2023
@digitaltembo digitaltembo deleted the fix/fan_graph_size branch February 26, 2023 20:27
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