"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var getDomEventPosition_1 = require("./getDomEventPosition");
function getLocalDomEventPosition(event, domElement) {
    var doc = domElement.ownerDocument;
    var viewPosition = getDomEventPosition_1.default(event, doc);
    var elementRect = domElement.getBoundingClientRect();
    var x = viewPosition.x - elementRect.left;
    var y = viewPosition.y - elementRect.top;
    return {
        x: ~~x,
        y: ~~y,
        pageX: viewPosition.x,
        pageY: viewPosition.y,
    };
}
exports.default = getLocalDomEventPosition;
//# sourceMappingURL=getLocalDomEventPosition.js.map