pathfinder
pathfinder copied to clipboard
cannot get bounding box of a path
there's no way to get the bounding box of a path without cloning the path and calling into_outline on the clone. this is slow.
the solution would be to add a get_bounds method to path which calls flush_current_contour and returns outline.bounds
I assume you are talking about the Path in pathfinder_canvas ? It doesn't even need to call flush. Just call bounds() on the outlines and current_contour and compute their union.