How to get DOM element by using mouse pointing position in dart script? -
How to obtain a DOM element using a mouse pointing position in a dart script? Is there a library for darts?
document
is a method what you should do, but I think That it is not useful in practice. Often times you have some elements that you want to find by the mouse, or you need all the elements under a point, not just the top The most is one.
Find an element, but you have to be careful because one element is not always the case where it claims that the CSS conversion can throw things in a special way.
Here's the basic idea:
Akshay & lt; Element & gt; GetElementsAt (Element Container, Point P) = & gt; Container.Calendar. There ((c) => contains point (c. Offset, p)); Point in the bowl (rectangle, point-p) = & gt; R. Left & lt; = P. X & amp; R. Write & gt; = P.X & amp; Amp; R.top
Comments
Post a Comment