-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
Added mathematics tool. #124
base: master
Are you sure you want to change the base?
Conversation
Perhaps the failed checks failed because of the edits to the pencil tool? |
It was not the change to the pencil tool. I'm not sure why this issue only arises in the |
This sounds great. Would you guess that this pull request is in a state where I could reasonably integrate it intro my whiteboards for classes starting in under two weeks? |
I've been using it in my classes for 5 weeks with no problem. |
If the mathjax a standard 2.7, or did you have to customize it? If it's standard, is there any reason not to source it from a CDN? |
When I merge this with my code, I'm getting a problem in the preview, which unfortunately is pretty high priority for my plans to manage my dozen breakout rooms. :( Edit: Never mind. I now realize I was looking at an incorrect path. (Embarrassing!) |
I'm not sure how to directly contribute to someone else's pull request, so I'll note the one change I had to make here:
Thanks for this great tool! |
I notice that when I use math like |
It is standard mathjax, called with |
Thanks for the contribution. I can't find Once I understand that ... I also don't know the best way for you to edit a pr, but I guess you could submit a pr to my repository, which I accept, thereby updating the branch for this pr too. |
I had thought of trying to move the textbox up a bit but couldn't quickly figure it out so gave up. Transparency is a much better idea. I'll give it a go in the coming week. |
Apparently I didn't make a pull request that I thought I had. At least I can't find record of it. So it seems that |
Hi @dazsmith , I just sent a pull request to you with some useful changes, hopefully you can merge it into this just fine. |
Update to latest base version of WBO
Add missing space and reference to `xmlns:xlink` in svg root node.
Note that this PR uses setting of |
@sents I would like to come back to working on this. I think if you submit a pull request to me, then I can merge it into this one. Your plan to filter |
Will you merge this PR @lovasoa? This PR seems to be great |
This code adds a "mathematics tool" which accepts (La)TeX code in a text box, formats it using mathjax, and displays it on the page. This is designed to address #109.
Explanation of code
aria-label
attribute of the svg element created by mathjax. I don't think this is contrary to the designated use of this accessibility attribute, as it is reasonable to expect that a screen reader would benefit from accessing the input LaTeX code.stroke
attribute of the rectangle of classclickhelper
.clickhelper
is appended to the output of mathjax to make it easier to select the displayed mathematics for future edits & moves using the move tool.fill
attribute should not be set tonone
. Therefore, a new class,nofill
, was created for those tools providing the original functionality.Some comments