### Log Mousemove Coordinates Source: https://github.com/mapgrab/map-grab-packages/blob/main/e2e-tests/interface-tests/mapbox/test.html Logs the pageX and pageY coordinates continuously as the mouse pointer moves over a target div. ```javascript document.querySelector('div').addEventListener('mousemove', ({ pageX, pageY }) => console.log(pageX, pageY)); ``` -------------------------------- ### Log Mouseenter Coordinates Source: https://github.com/mapgrab/map-grab-packages/blob/main/e2e-tests/interface-tests/mapbox/test.html Logs the pageX and pageY coordinates when the mouse pointer enters a target div. ```javascript document.querySelector('div').addEventListener('mouseenter', ({ pageX, pageY }) => console.log(pageX, pageY)); ``` -------------------------------- ### Log Click Coordinates Source: https://github.com/mapgrab/map-grab-packages/blob/main/e2e-tests/interface-tests/mapbox/test.html Logs the 'click' event along with the pageX and pageY coordinates when the target div is clicked. ```javascript document.querySelector('div').addEventListener('click', ({ pageX, pageY }) => console.log('click', pageX, pageY)); ``` -------------------------------- ### Log Mouseleave Coordinates Source: https://github.com/mapgrab/map-grab-packages/blob/main/e2e-tests/interface-tests/mapbox/test.html Logs the pageX and pageY coordinates when the mouse pointer leaves a target div. ```javascript document.querySelector('div').addEventListener('mouseleave', ({ pageX, pageY }) => console.log(pageX, pageY)); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.