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

Scale annotations on change of time graph scale factor #260

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

PatrickTasse
Copy link
Contributor

  • Add the scale factor to the constructor and as a field of a time graph annotation. Use this scale factor when rendering the annotation.

  • Rename scaleStateLabels() to scaleComponents() and make the method scale both state labels and annotations. This prevents annotations from being stretched or compressed on zoom.

Signed-off-by: Patrick Tasse patrick.tasse@gmail.com

- Add the scale factor to the constructor and as a field of a time graph
annotation. Use this scale factor when rendering the annotation.

- Rename scaleStateLabels() to scaleComponents() and make the method
scale both state labels and annotations. This prevents annotations from
being stretched or compressed on zoom.

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

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

Works well. Thanks for the improvement!

@PatrickTasse PatrickTasse merged commit 54cccd4 into eclipse-cdt-cloud:master Jul 14, 2023
2 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