MathJax-src icon indicating copy to clipboard operation
MathJax-src copied to clipboard

Better visitors

Open dpvc opened this issue 3 years ago • 0 comments

This PR abstracts the visitor classes to allow visitors on arbitrary node classes, and adds a walkTree() method to the abstract wrapper class, so it is always available.

(The original impetus for this PR was to make it possible to use the visitor class to define a visitor on the wrapped nodes rather than only on the internal MathML nodes. This is used in the line breaking code to make visitor to determine automatic line break positions.)

dpvc avatar Jun 09 '22 23:06 dpvc