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

bug: Fix grainline arrows #1210

Merged
merged 7 commits into from
Nov 23, 2024
Merged

bug: Fix grainline arrows #1210

merged 7 commits into from
Nov 23, 2024

Conversation

DSCaskey
Copy link
Contributor

@DSCaskey DSCaskey commented Nov 12, 2024

This PR:

  • Fixes the grainline arrow heads so they scale with the zoom, and are not fixed at a constant size.

  • Adds a preference for the arrow head length. It's range is from 25 to 200 pixels.
    image

  • Refactors the grainlineitem class and related code to clean it up.

This issue closes #1201

DSCaskey and others added 3 commits November 12, 2024 00:25
@DSCaskey
Copy link
Contributor Author

DSCaskey commented Nov 23, 2024

I added a limit on the length of the grainline, which is twice the length of an arrow head (as set in the prefs). This prevents the grainline from collapsing on itself and going in a negative direction.

image

In the case of a single arrow head there will always be a leader line at least the length of an arrowhead.

image

@DSCaskey DSCaskey requested a review from csett86 November 23, 2024 08:29
@DSCaskey DSCaskey merged commit 041ef3b into develop Nov 23, 2024
10 checks passed
@DSCaskey DSCaskey deleted the fix-grainline-arrows branch November 23, 2024 12:36
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.

BUG: Grainlines should be changing size according to the scene zoom
2 participants