jared-hughes / DesThree

Desmos bindings for three.js
3 stars 0 forks source link

Put @3 prefix in expression id instead of latex #64

Open jared-hughes opened 3 years ago

jared-hughes commented 3 years ago

This is a very simple solution to many problems.

Main difficulty with this would be changing the expression id in place without (a) moving the expression or (b) recalculating everything. setExpression would not work because that keeps id constant. Could probably just remove the expression then tap into Calc.controller pretty easily to dispatch a new expression event.

Alternatively, use some other property of expressions (like colorLatex or pointOpacity or something else that supports arbitrary strings) to store all metadata, including being a DesThree expression.