From 86bc4bd1176bc4b4a494b5ec9e51342b740a39ed Mon Sep 17 00:00:00 2001 From: eggfly Date: Tue, 4 Jan 2022 11:05:50 +0800 Subject: [PATCH] Improve documentation for arcToPoint's rotation units. (flutter/engine#30613) --- engine/src/flutter/lib/ui/painting.dart | 4 ++-- .../src/flutter/lib/web_ui/lib/src/engine/html/path/path.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index 2b59b8b048..7fb35cf74c 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -2386,7 +2386,7 @@ class Path extends NativeFieldWrapperClass1 { double startAngle, double sweepAngle, bool forceMoveTo) native 'Path_arcTo'; /// Appends up to four conic curves weighted to describe an oval of `radius` - /// and rotated by `rotation`. + /// and rotated by `rotation` (measured in degrees and clockwise). /// /// The first curve begins from the last point in the path and the last ends /// at `arcEnd`. The curves follow a path in a direction determined by @@ -2414,7 +2414,7 @@ class Path extends NativeFieldWrapperClass1 { /// Appends up to four conic curves weighted to describe an oval of `radius` - /// and rotated by `rotation`. + /// and rotated by `rotation` (measured in degrees and clockwise). /// /// The last path point is described by (px, py). /// diff --git a/engine/src/flutter/lib/web_ui/lib/src/engine/html/path/path.dart b/engine/src/flutter/lib/web_ui/lib/src/engine/html/path/path.dart index c0b8a56f64..74f78a4428 100644 --- a/engine/src/flutter/lib/web_ui/lib/src/engine/html/path/path.dart +++ b/engine/src/flutter/lib/web_ui/lib/src/engine/html/path/path.dart @@ -654,7 +654,7 @@ class SurfacePath implements ui.Path { } /// Appends up to four conic curves weighted to describe an oval of `radius` - /// and rotated by `rotation`. + /// and rotated by `rotation` (measured in degrees and clockwise). /// /// The first curve begins from the last point in the path and the last ends /// at `arcEnd`. The curves follow a path in a direction determined by @@ -845,7 +845,7 @@ class SurfacePath implements ui.Path { } /// Appends up to four conic curves weighted to describe an oval of `radius` - /// and rotated by `rotation`. + /// and rotated by `rotation` (measured in degrees and clockwise). /// /// The last path point is described by (px, py). ///