I am encountering an issue related to a bug documented here: https://code.google.com/p/svg-edit/wiki/BrowserBugs#getBBox_on_paths_with_curves_includes_control_points
When dealing with arcs (defined by center, radius, startAngle, endAngle), I can calculate points along the path and their bounding box. However, in Safari and Chrome, there is a bug that includes control points of the arc in the bounding box. This causes gradient fills to be applied differently depending on whether the browser is affected by the bug or not.
My inquiry is: How can I mathematically calculate the extra control points of an arc in a path to correct for the safari/chrome bug without relying on the getBBox() API? The parameters given are (center, radius, startAngle, endAngle).
This adjustment does not need to accommodate bezier curves or ellipses, just a straightforward circular arc. Any insights would be greatly appreciated!