Skip to content

DisplayExpression.js

Asmita Dulan edited this page Jan 11, 2020 · 6 revisions

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.

Version 1 13/10/2019

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

Version 29/10/2019

returns the list of cards with signs for constants only works with expressions for "ax+b = c"

Version 18/10/2019

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 $

Version 11/01/2020

Can now take in different levels with fractions or no fractions

Clone this wiki locally