"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getElementSize(domElement) {
    var x;
    var y;
    if (domElement.offsetWidth === undefined) {
        var rect = domElement.getBoundingClientRect();
        x = rect.width;
        y = rect.height;
    }
    else {
        x = domElement.offsetWidth;
        y = domElement.offsetHeight;
    }
    return {
        x: x,
        y: y,
    };
}
exports.default = getElementSize;
//# sourceMappingURL=getElementSize.js.map