hitTest for circles

as i needed this recently … this is a small extension for a hittest of circles.

it takes half of elements width as radius.

arguments are a sourceElement and a HTMLCollection to check against.
returns element, its id and classList

there’s also an example regarding a drag and drop … attached

web
circleHittest.hype.zip (15.9 KB)

8 Likes

Thanks Hans!

2 Likes