Fork me on GitHub



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