mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-06-29 03:07:17 +08:00
Merge pull request #6 from rive-app/misc-fixes
Normalized use of circle constant
This commit is contained in:
@ -99,8 +99,8 @@ abstract class Path extends PathBase {
|
|||||||
}
|
}
|
||||||
List<PathVertex> renderPoints = [];
|
List<PathVertex> renderPoints = [];
|
||||||
int pl = pts.length;
|
int pl = pts.length;
|
||||||
const arcConstant = circleConstant;
|
const double iarcConstant = 1.0 - circleConstant;
|
||||||
const double iarcConstant = 1.0 - arcConstant;
|
|
||||||
PathVertex previous = isClosed ? pts[pl - 1] : null;
|
PathVertex previous = isClosed ? pts[pl - 1] : null;
|
||||||
for (int i = 0; i < pl; i++) {
|
for (int i = 0; i < pl; i++) {
|
||||||
PathVertex point = pts[i];
|
PathVertex point = pts[i];
|
||||||
|
12
pubspec.lock
12
pubspec.lock
@ -21,7 +21,7 @@ packages:
|
|||||||
name: characters
|
name: characters
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0-nullsafety"
|
version: "1.0.0"
|
||||||
charcode:
|
charcode:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -42,7 +42,7 @@ packages:
|
|||||||
name: collection
|
name: collection
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.15.0-nullsafety"
|
version: "1.14.13"
|
||||||
fake_async:
|
fake_async:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -80,7 +80,7 @@ packages:
|
|||||||
name: meta
|
name: meta
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0-nullsafety"
|
version: "1.1.8"
|
||||||
path:
|
path:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -141,13 +141,13 @@ packages:
|
|||||||
name: typed_data
|
name: typed_data
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.0-nullsafety"
|
version: "1.2.0"
|
||||||
vector_math:
|
vector_math:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: vector_math
|
name: vector_math
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.0-nullsafety"
|
version: "2.0.8"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.9.0-18.0 <2.9.0"
|
dart: ">=2.9.0-14.0.dev <3.0.0"
|
||||||
|
Reference in New Issue
Block a user