desmosinc / mathquill Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mathquill/mathquill
Magic textboxes where you can type math as easily as writing!
Home Page: mathquill.com
This project forked from mathquill/mathquill
Magic textboxes where you can type math as easily as writing!
Home Page: mathquill.com
I was seeing issues with evaluations in the graphing calculator that we sometimes use a real minus sign and sometimes use a special unicode one. We should investigate what's going on and make sure that efficient latex updates use the correct minus sign. I think the issue was that mathquill started off with the special minus sign. Then the slider went positive. This caused the minus sign to disappear. When the number went back negative we used a different minus sign in the efficient update logic than mathquill originally inserted.
In (most?) browsers, double clicking a word selects it, and triple clicking selects an entire paragraph.
In MathQuill, double and triple clicking currently do nothing, as far as I can tell.
Proposal:
Shift-End
from the keyboard, but would select an entire block instead of just the part of it that is to the right of the cursor mathquill/src/services/keystroke.ts
Lines 56 to 58 in aab6ed2
This feature request is somewhat important to Desmos because Desmos had previously disabled mouse events on static mathquills, which allowed the user to get native selection behavior on static mathquills and in particular, allowed them to double or triple click on static mathquills used to display calculator expression evaluations.
Desmos is now using MQ's mouse events on static mathquills, which is an improvement in some ways, but turns out to be a regression in terms of double and triple click behavior.
Since the fork does not have an npm package, could it be merged back with the original repo?
I noticed that a number of the tests in test/visual.html
don't work on the main
branch, but do on before-remove-jquery
Tested on windows 10 and linux in Firefox and Chrome.
I managed to fix #235 the textcolor one (quoting issue when translating jquery to the new style), but I wasn't sure what was wrong in the other cases.
\MathQuillMathField
doesn't workIn test/visual.html the x^2+y^2
inside the square root cannot be clicked when using the main branch, but does work in before-remove-jquery
.
In both branches you can use tab to get into the square root and edit, but mouse clicks only work on before-remove-jquery.
Only clicking directly inside the MathField work. The larger outer box doesn't work for clicking.
Textcolor
section doesn't work"Colors should match their names: " but they are all black
"Nested \textcolor: the 2 should be red, the "a+" green, the 4 blue, and the "+b" green again. " but all are black
In before-remove-jquery
the field in "Selection Tests" is selected, but in main
it is the first field on the page.
Are you guys able to create an NPM user and update your CI config to publish the builds to the public NPM repository?
This would greatly improve the installation and update process for your library.
Currently, I need to download the source for the version I want, build and copy-paste the artifacts into my project to get things rolling.
Thanks & cheers!
Basically #129 but with autoCommands
instead of autoOperatorNames
.
There is a subset of autoCommands
that just aren't useful in subscripts and only get in the way of typing other strings. For instance, trying to type x_{intercept}
will expand the int
into an integral sign inside the subscript and place your cursor in the lower limit, which is almost certainly not something you'd ever want.
The autoCommands
that only result in a symbol substitution (x_{beta}
-> x_{β}
) are useful. They might be slightly annoying in some situations (P_{pink}
-> P_{πink}
), but they're still useful: alpha beta theta phi pi tau infinity infty
.
The autoCommands
that "expand" are only annoying (ans
doesn't expand, but no need to un-italicize it): sqrt nthroot cbrt sum prod int ans percent
. For these, we should prevent the default behavior inside of simple subscripts.
Repro:
Try pasting \overleftrightarrow{AB}
into the calculator on
I suspect this regressed when we merged mathquill/mathquill
into desmosinc/mathquill
in #164
Too many times I've watched people highlight (2,3) and type (
expecting to get blank parens and instead getting ((2,3))
.
Because it's so easy to open and close parens, it doesn't feel like highlight & type should wrap (like we do with square roots and fractions).
Final proposed designs:
If the highlighted content is wrapped in parentheses and you type the same kind of parentheses, it erases the content and you're left with empty (and hardened) parentheses instead of double-paren-wrapping the contents.
browser: Safari on iPadOS 13
Our scientific keypad appears.
Nothing! The scientific keypad and native keypad do not show up.
Note from Eric in slack:
Hi Jason!
I'm Charles from the Safari and WebKit engineering teams at Apple.
We'd like to ask you to make a small change to your wonderful website desmos.com.
Desmos's math field editor on your calculator pages creates hidden textareas for text entry. We'd like to request adding an inputmode="none" attribute to these invisible textarea elements when you have your own virtual keyboard on screen. This indicates that your web page implements your own keyboard input control.
Thank you! Please let us know if you have any questions!
Best,
Charles
Some warning flags regarding symbols that I found while doing #273:
\parallel
, \nparallel
, and \perp
are in both advancedSymbols and basicSymbols\bigtriangledown
but not \triangledown
.I opened mathquill#1006 only to find that development in that repo is dead. I would like to use an updated version from here but there are no downloadable releases, and the one in the upstream doesn't seem like it'll be updated anytime soon
The example configuration object at the top doesn't include all the configuration options listed below.
I'm not sure if something like this already exists internally, but as most of the people reading this probably know, the current state of the mathquill codebase is quite a mess. Thus, I think a simple TODO list could help us get this project to easier maintenance speed.
Note: I do think that a new release of MathQuill should probably be breaking to reduce any legacy backwards code (with a migration guide, of course)
TODO:
And with that, MathQuill will be a proper module, which should allow it to connect to faster tooling, giving everyone involved a better developer experience.
If the upstream still can't be merged, it would be safe to assume that desmos should publish an NPM package for MathQuill.
I'm personally fine with doing the rest, but the tests completely broke and its quite a nightmare -- ill see what I can do about it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.