Find the closest item the the given coordinates
| painter |
The painter to use for calculations |
| x |
The x coordinate of the point |
| y |
The y coordinate of the point |
| max_distance |
The maximum distance for items |
|
The closest item or null if none |