ele.addEventListener('mousedown', function (e) {// Get the targetconst target = e.target;// Get the bounding rectangle of targetconst rect = target.getBoundingClientRect();// Mouse positionconst x = e.clientX - rect.left;const y = e.clientY - rect.top;});