Skip to content

Fix an issue with GraphTool interval arrows at infinity disappearing. (hotfix of #1539) - #1540

Merged
pstaabp merged 1 commit into
openwebwork:mainfrom
drgrice1:bugfix/graphtool-number-line-inf-point-hotfix
Sep 21, 2026
Merged

pstaabp merged 1 commit into
openwebwork:mainfrom
drgrice1:bugfix/graphtool-number-line-inf-point-hotfix

Conversation

@drgrice1

Copy link
Copy Markdown
Member

This is caused by a change in how JSXGraph sets opacity for arrow heads for version 1.13. It sets the opacity using the opacity of the line the arrow head is attached to, and reasserts this setting after creation. Since the line for the points at infinity is always completely transparent, and so this makes the arrows transparent as well, since the interval tool setting of the fill attribute is overridden. To fix this the fill is set via an inline style instead which overrides the JSXGraph attribute and so it doesn't matter what JSXGraph internally sets its attribute to.

This is caused by a change in how JSXGraph sets opacity for arrow heads
for version 1.13.  It sets the opacity using the opacity of the line the
arrow head is attached to, and reasserts this setting after creation.
Since the line for the points at infinity is always completely
transparent, and so this makes the arrows transparent as well, since the
interval tool setting of the `fill` attribute is overridden.  To fix
this the fill is set via an inline style instead which overrides the
JSXGraph attribute and so it doesn't matter what JSXGraph internally
sets its attribute to.
@pstaabp
pstaabp merged commit 8f02150 into openwebwork:main Sep 21, 2026
3 checks passed
@drgrice1
drgrice1 deleted the bugfix/graphtool-number-line-inf-point-hotfix branch September 21, 2026 12: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.

3 participants