How can be determined a point's situation relative to element ( inside or outside ) by javascript? elementFromPoint() return topmost element.Can be find bottom element?
<svg width="500" height="300" >
<polygon points="200,10 250,190 160,210" style="fill:white;stroke:black" />
</svg>
Html code is just an example.Vertexs may be much more.One possible solution could be trigger an event from point and get the event's target.Is there any ready Javascript method to trigger event from point?Another sugesstion is appriciated too.