"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTextRect = getTextRect;
function getTextRect(system, node) {
    const { api: { document }, } = system;
    const range = document.createRange();
    range.selectNodeContents(node);
    const rect = range.getBoundingClientRect();
    return rect;
}
//# sourceMappingURL=getTextRect.js.map