Does anyone know how to add a point where the mouse position is clicked? Using the Typescript (or) JavaScript code.
I think for some how I know the solution but I don't know how to implement it. The thing that I know is how to get the X co-ordinates and Y co-ordinates at that particular point and the thing that I don't know is how to implement that.
function getClickPosition(e) {
var xPosition = e.clientX;
var yPosition = e.clientY;
}