-
Notifications
You must be signed in to change notification settings - Fork 0
DisplayExpression.js
This function was first in EqDisplay.js, however this led to problems displaying an equation once you drag and move a card. This was then changed to be put in EqSpace.js but here the problem was onDragEnd needed to access the cards which was not possible from this. I then put this in it's own separate file and exported the function. This allowed me to use the function in both EqDisplay.js and EqSpace.js.
returns the card first with an id and with a the variable to show on the card. However this became a problem because I had to try and find a way to parse the content which became difficult. A way to solve this was putting the parsed expression in the list of cards
returns the list of cards with signs for constants only works with expressions for "ax+b = c"
Completed helper mode, display expression contains 5 arguements with 3 for helper mode if helper is on:
- show signs = shows all the signs and the 1 if "1x"
- unpack 2x ->
$2 \times x $
Can now take in different levels with fractions or no fractions