public static void HitTestCore(SvgElement root, SvgHitChain chain, float x, float y)
{
//1.
chain.AddHit(root, x, y);
//2. find hit child
var child = root.GetFirstNode();
while (child != null)
{
var node = child.Value;
if (node.HitTestCore(chain, x, y))
{
break;
}
child = child.Next;
}
}