hitTest for circles

(Hans-Gerd Claßen) #1

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

circleHittest.hype.zip (15.9 KB)

How do you make an element draggable?
(Greg) #2

Thanks Hans!