Fork me on GitHub



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

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

el : Element
x : number
y : number

_findElementWithCaret(el: DomElement)privateinner

Utility function that returns the element which has the caret

el : DomElement

validateStyle(style: object)inner

Validate a style specification object

style : object