From the api docs, MapView.toMap support to take screenPoint or MouseEvent (which shows as a DOM mouse event type) and return a map Point. However, when implementing the code, I notice that the MouseEvent must be esri supported event (https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#events-summary).
In my case, I need to let a div element to catch the right click event and convert the mouse position to be a map point, instead of relying on the mapView.on('click', clickCB). Thus, Im not able to directly get the esri supported event. I wonder Is there any public utils I can use to convert dom mouse event to esri supported event, or directly to screenPoint.
Here is what i found from the code, there is
screenUtils.createScreenPointFromNativeEvent(MapRef.current, event)
to convert dom mouse click to screenPoint, but I dont find it in the esri docs. does anyone know if I can use it in my code?