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 grapher branch view #323

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

stefanhahmann
Copy link
Collaborator

@stefanhahmann stefanhahmann commented Sep 6, 2024

This PR adds a new Window to Mastodon: the Grapher Branch View

grafik

  • The Grapher Branch View can be used to plot of features on the branch graph, i.e. BranchSpot and BranchLink features
  • This is similar to the existing Grapher that can show features on Spot level

In order to avoid too much of duplicated code in Grapher and Grapher Branch, this PR adds a new class: GrapherInitializer

  • The intention of this class is to allow creating a GrapherView for Spot+Link and BranchSpot+BranchLink while reducing code duplication
  • Methods that will be needed for both type of views, such as menu generation, color registration, creation of dataframe and datapanel can be found in this class

Since with the default max zoom in settings, it was sometimes not possible to see the labels of the branchspots, I introduced parameters and initialized the Grapher Branch View with higher max zoom in settings

* The intention of this class is to allow creating a GrapherView for Spot+Link and BranchSpot+BranchLink in the future and at the same time avoid code duplication as much as possible
* Methods that will be needed for both type of views, such as menu generation, color registration, creation of dataframe and datapanel can be found in this class
* Similarly to the existing Grapher that can show features on Spot level, the new window can be used to show features on the branch spot level
@stefanhahmann stefanhahmann self-assigned this Sep 6, 2024
@stefanhahmann stefanhahmann marked this pull request as ready for review September 6, 2024 11:25
* Reflects the purpose of these variables in the grapher screen transform handler a bit better
* MIN_SIBLINGS_ON_CANVAS -> DEFAULT_MIN_SCALE_X
* MIN_TIMEPOINTS_ON_CANVAS -> DEFAULT_MIN_SCALE_Y
…mEventHandler in grapher package

* Initialized with the existing static default values
@tinevez tinevez merged commit 9eb7c9f into mastodon-sc:dev Sep 23, 2024
1 check 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