The trick here is that all those SVG child elements like <g> and <rect> have x and y of 0,0. Please see this thread here in which @OSUblake explains getBBox() and provides a helper function that takes into account transforms.     Its probably a bit more than you need for this, but its a great utility to have around.     I used his getBBox() function to figure out the distance between the x and y of each chicken and the box using a function-based va
    • Like
    5