Fork me on GitHub

editor/editableMathlist

This module contains the definition of a data structure representing a list of math atoms that can be edited. It is an in-memory representation of a mathematical expression whose elements, math atoms, can be removed, inserted or re-arranged. In addition, the data structure keeps track of a selection, which can be either an insertion point — the selection is then said to be collapsed — or a range of atoms.

See EditableMathlist

Methods

atomContains(atom: MathAtom, target: MathAtom) → booleanprivateinner

atom MathAtom
target MathAtom
boolean   

True if atom is the target, or if one of the children of atom contains the target

Source