position
position(
element):ElemPosition
Defined in: core/dom/geometry.ts:47
Returns the position of an element from the top left of the page, in pixels.
Adds up offsetLeft and offsetTop along the chain of offsetParents, so
the result does not change when the page is scrolled.
Parameters
Section titled “Parameters”element
Section titled “element”HTMLElement
Element to measure.