fix: del adjusted height & width

This commit is contained in:
karishmas6
2024-06-16 14:01:01 +05:30
parent 54efdb370b
commit fa621e2a8c

View File

@@ -36,8 +36,6 @@ export const Highlighter = ({ unmodifiedRect, displayedSelector = '', width, hei
height: unmodifiedRect.height,
};
const adjustedWidth = Math.min(rect.width, width - rect.left); // Adjust width if it extends beyond canvas boundary
const adjustedHeight = Math.min(rect.height, height - rect.top); // Adjust height if it extends beyond canvas boundary
console.log('unmodifiedRect:', unmodifiedRect)
console.log('rectangle:', rect)