Merge pull request #6 from rive-app/misc-fixes

Normalized use of circle constant
This commit is contained in:
Matt Sullivan
2020-08-02 18:39:54 -07:00
committed by GitHub
2 changed files with 8 additions and 8 deletions

View File

@ -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];

View File

@ -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"