Fork me on GitHub




Checks if the argument is a valid Mathfield. After a Mathfield has been destroyed (for example by calling revertToOriginalContent() the Mathfield is no longer valid. However, there may be some pending operations invoked via requestAnimationFrame() for example, that would need to ensure the mathfield is still valid by the time they're executed.

nearestElementFromPoint(el: HTMLElement, x: number, y: number)private

Return a tuple of an element and a distance from point (x, y)

el : HTMLElement
x : number
y : number

_findElementWithCaret(el: DomElement)privateinner

Utility function that returns the element which has the caret

el : DomElement

validateStyle(style: object)privateinner

Validate a style specification object

style : object