Function
The event to read.
The pointer position, or undefined for an event that carries none.
Read the pointer position out of an event, whichever kind it is. A GradumEvent yields its scaled position, so the result already accounts for a panned or zoomed canvas; a native pointer event yields raw client coordinates.
getEventPosition