mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibGfx+LibWeb: Move out the EllipticArcTo() logic into Path
At its previous state, the interface allowed invalid "ellipses" to be specified, instead of doing that, simply use the parameters that SVG uses :^)
This commit is contained in:
parent
cb04a441cf
commit
1ea466661f
4 changed files with 90 additions and 74 deletions
|
@ -154,11 +154,7 @@ public:
|
|||
invalidate_split_lines();
|
||||
}
|
||||
|
||||
void elliptical_arc_to(const FloatPoint& point, const FloatPoint& center, const FloatPoint& radii, float x_axis_rotation, float theta_1, float theta_delta)
|
||||
{
|
||||
append_segment<EllipticalArcSegment>(point, center, radii, x_axis_rotation, theta_1, theta_delta);
|
||||
invalidate_split_lines();
|
||||
}
|
||||
void elliptical_arc_to(const FloatPoint& point, const FloatPoint& radii, double x_axis_rotation, bool large_arc, bool sweep);
|
||||
|
||||
void close();
|
||||
void close_all_subpaths();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue