Added UI backend that can do computations with context

This commit is contained in:
Thaum Rystra
2020-04-23 14:26:05 +02:00
parent 7416101a34
commit 95bfcd79c9
16 changed files with 294 additions and 40 deletions

View File

@@ -16,7 +16,7 @@ export default function evaluateCalculation(string, memo){
if (node.isSymbolNode) {
let val = computedValueOfVariableName(node.name, memo);
if (val === null) return node;
return new math.expression.node.ConstantNode(val);
return new math.ConstantNode(val);
}
else {
return node;