I\'m scraping one page with diagrams. There is an event listener which detects the cursor\'s position on the diagram and according to that generates some data and overwrites