Max Bruckner
|
6c2cd7f7b7
|
Node: add method 'getContent()'
The 'getContent' method returns the next node down the node tree that
isn't a ParenthesisNode.
|
2015-05-07 10:12:41 +02:00 |
|
Max Bruckner
|
dca94e67b7
|
Node.toTex: improve 'not implemented' error message to contain the type.
|
2015-04-29 23:59:31 +02:00 |
|
Max Bruckner
|
250707b668
|
Convert the isNode function into a boolean property.
|
2015-04-28 09:56:01 +02:00 |
|
jos
|
d3d3212633
|
Refactored all nodes into factory functions (see #342)
|
2015-04-26 21:25:31 +02:00 |
|
Max Bruckner
|
13e35217b7
|
Latex restructure
|
2015-04-05 14:25:54 +02:00 |
|
Max Bruckner
|
47f76f35ac
|
Limit custom toTex with multiple callbacks to FunctionNodes
Now only FunctionNode's toTex can be overwritten mit a map of callbacks
|
2015-03-17 18:14:14 +01:00 |
|
Max Bruckner
|
af763aa996
|
Fix breaking change (Node.toTex should return an empty string)
|
2015-03-13 21:23:14 +01:00 |
|
Max Bruckner
|
0fee9173c8
|
Enable custom toTex functions
|
2015-03-13 21:23:14 +01:00 |
|
Max Bruckner
|
35ce7f7fb4
|
Make Node.toTex a wrapper like Node.compile
Node.prototype.toTex is now a wrapper that calls the node's _toTex
|
2015-03-13 21:23:14 +01:00 |
|
Max Bruckner
|
d593e749e9
|
New function getIdentifier() for Nodes
getIdentifier() returns a String that contains the name of the node and
the function associated with it ( in case of FunctionNode and
OperatorNode ).
|
2015-03-01 10:35:03 +01:00 |
|
jos
|
a1f60db0d1
|
Created Node.map, changed traverse to use Node.map
|
2014-11-14 11:25:48 +01:00 |
|
jos
|
20c96894ab
|
Enforcing implementation of _traverse on Nodes
|
2014-11-13 22:16:57 +01:00 |
|
jos
|
bd1981ecd0
|
Renamed Node.map and Node.forEach back to traverse and transform
|
2014-10-13 21:42:48 +02:00 |
|
jos
|
238281e28a
|
Renamed traverse and transform to forEach and map
|
2014-10-12 19:32:51 +02:00 |
|
jos
|
ba70c07509
|
Added unit tests for Node.clone
|
2014-10-11 22:29:48 +02:00 |
|
jos
|
95a49fe156
|
Node.transform first clones the node tree
|
2014-10-11 21:59:47 +02:00 |
|
jos
|
839e596772
|
Implemented transform and traverse
|
2014-10-11 18:03:41 +02:00 |
|
jos
|
5f08307391
|
Implemented a function replace for nodes of a parsed expression.
|
2014-10-11 15:33:23 +02:00 |
|
jos
|
8a12c8e9bc
|
Fixed #200: A new instanceof of math.js must now be created as math.create([options]) instead of math([options])
|
2014-08-03 21:42:12 +02:00 |
|
Niels Heisterkamp
|
b7fe0bfbf1
|
Added LaTeX conversion of expressions using toTex() on expression.
Also added some basic tests, which cover some use cases; but should be expanded.
|
2014-05-19 08:20:06 +02:00 |
|
josdejong
|
24b1e1c854
|
More unit tests added
|
2014-03-23 21:36:36 +01:00 |
|
josdejong
|
b046c7ee98
|
Completed unit tests for all expression nodes
|
2014-03-01 15:55:20 +01:00 |
|
josdejong
|
42548e1cf0
|
More unit tests
|
2014-02-28 22:50:46 +01:00 |
|
josdejong
|
f6acb12e4d
|
Implemented expression compilation for 80%
|
2014-01-01 20:46:30 +01:00 |
|