Skip to content

Fix bracket ends for graphtool intervals with the useBracketEnds setting. #1211

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

Merged

Conversation

drgrice1
Copy link
Member

In #1157 I made it so that the up, down, and drag handlers for the defining points of graph objects are not added to static graph objects. However, in doing so for intervals I also made it so that the paired point association is not made. For most graph objects those associations are only needed when the handlers are added since they are used to prevent points from being moved in such a way to prevent degeneracy for the object. But for intervals that association is also used to determine which direction the brackets or parentheses should face when the useBracketEnds option is used. As such, now correct answer graphs always show those facing to the right even if they are on the right end.

@drgrice1 drgrice1 force-pushed the graphtool-interval-bracket-ends-fix branch from c197d1b to e6db612 Compare March 18, 2025 21:27
…tting.

In openwebwork#1157 I made it so that the `up`, `down`, and `drag` handlers for
the defining points of graph objects are not added to static graph
objects.  However, in doing so for intervals I also made it so that the
paired point association is not made.  For most graph objects those
associations are only needed when the handlers are added since they are
used to prevent points from being moved in such a way to prevent
degeneracy for the object.  But for intervals that association is also
used to determine which direction the brackets or parentheses should
face when the `useBracketEnds` option is used.  As such, now correct
answer graphs always show those facing to the right even if they are
on the right end.
@drgrice1 drgrice1 force-pushed the graphtool-interval-bracket-ends-fix branch from e6db612 to e0578a7 Compare March 24, 2025 10:22
Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

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

Fixes the issue.

@pstaabp pstaabp merged commit ab6d4dd into openwebwork:develop Mar 25, 2025
3 checks passed
@drgrice1 drgrice1 deleted the graphtool-interval-bracket-ends-fix branch March 25, 2025 18:32
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.

3 participants