Get Svg Element Under Mouse. Just pass the mouse X and Y values to this function. Mind the s in elements This returns an array of all element objects under the given point.
To get more than one element at eg. Function getInnermostHovered var n documentquerySelector hover. However if you want to avoid mousemove and this is a good idea in general you can just look for the innermost hovered element eg.
Function getInnermostHovered var n documentquerySelector hover.
However if you want to avoid mousemove and this is a good idea in general you can just look for the innermost hovered element eg. MXR is your friend. Mind the s in elements This returns an array of all element objects under the given point. While n nn n.