Add arc diagrams to docs (flutter/engine#35757)
This commit is contained in:
@@ -2567,6 +2567,10 @@ class Path extends NativeFieldWrapperClass1 {
|
||||
/// crosses the horizontal line that intersects the center of the
|
||||
/// rectangle and with positive angles going clockwise around the
|
||||
/// oval.
|
||||
///
|
||||
/// 
|
||||
///
|
||||
/// 
|
||||
void addArc(Rect oval, double startAngle, double sweepAngle) {
|
||||
assert(_rectIsValid(oval));
|
||||
_addArc(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle);
|
||||
@@ -5002,6 +5006,8 @@ class Canvas extends NativeFieldWrapperClass1 {
|
||||
/// closed back to the center, forming a circle sector. Otherwise, the arc is
|
||||
/// not closed, forming a circle segment.
|
||||
///
|
||||
/// 
|
||||
///
|
||||
/// This method is optimized for drawing arcs and should be faster than [Path.arcTo].
|
||||
void drawArc(Rect rect, double startAngle, double sweepAngle, bool useCenter, Paint paint) {
|
||||
assert(_rectIsValid(rect));
|
||||
|
||||
Reference in New Issue
Block a user