feat: retrieve bounding rectangle of element & store in rectangle

This commit is contained in:
karishmas6
2024-06-05 06:31:58 +05:30
parent 59f778a0c6
commit cf85b238f0

View File

@@ -22,6 +22,7 @@ export const getRect = async (page: Page, coordinates: Coordinates) => {
const { parentElement } = el;
// Match the logic in recorder.ts for link clicks
const element = parentElement?.tagName === 'A' ? parentElement : el;
const rectangle = element?.getBoundingClientRect();
}},