Return a rectangle that is the tight bounding box of the path (i.e. without curve control points).
Invisible path segments do not affect the bounding box. If the path contains no visible segments, a bounding box with
0 width and
0 height is returned, with the coordinates of the
end point of the last path segment. If the path has no segments at all,
null is returned.