Hit-testing SVG shapes?

The SVG 1.1 DOM has just the right method (unfortunately it’s not yet implemented in mozilla):

var nodelist = svgroot.getIntersectionList(hitrect, null);

For a full working example see here.

Leave a Comment