import { ElementPosition } from './elementPosition.interfaces' ; /**
 * Get the position of the element to the top of the DOM
 */ export default function getElementPositionTopDom ( element ) { return { height : element . offsetHeight , width : element . offsetWidth , x : element . offsetLeft , y : element . offsetTop , } ; }