I have a simple project idea, the project is that you click on the display and create a point and click again to make the second point and connect these two points, my problem is how to create HTML
elements in the same mouse position.
For example, I click on the position: X: 69, Y: 41 I want to create the HTML
element in the same position, I know how to get the mouse position:
const mousePos = (e: PointerEvent) => {
const _Xpos: number = e.clientX;
const _Ypos: number = e.clientY;
};
window.addEventListener("click", mousePos);