jsketcher/modules/ui/positionUtils.js
2018-07-05 22:42:25 -07:00

7 lines
118 B
JavaScript

export function aboveElement(el) {
let r = el.getBoundingClientRect();
return {
x: r.left,
y: r.top
}
}