How far outside the rectangle still counts as inside, in pixels.
Returns boolean
true if the point is inside the rectangle grown by margin.
Description
Check whether a point falls within a rectangle, with a tolerance band so a near miss still
counts — useful for hit-testing against a pointer, which rarely lands exactly on target.
pointInsideRect