export function getElementPosition(element) {
    const { x, y, width, height } = element.getBoundingClientRect();
    return [
        Math.floor(x + window.pageXOffset + width / 2),
        Math.floor(y + window.pageYOffset + height / 2),
    ];
}
//# sourceMappingURL=utils.js.map