[roll] Update third-party dart packages
Updated:
Change-Id: Ic283c653c96c32d7649cf56ca5b70d33c87f56c2
diff --git a/path_drawing/.gitignore b/path_drawing/.gitignore
index ea35217..4bb599d 100644
--- a/path_drawing/.gitignore
+++ b/path_drawing/.gitignore
@@ -9,3 +9,5 @@
coverage/
.flutter-plugins
+
+pubspec.lock
diff --git a/path_drawing/BUILD.gn b/path_drawing/BUILD.gn
index 0708a77..e4788ca 100644
--- a/path_drawing/BUILD.gn
+++ b/path_drawing/BUILD.gn
@@ -1,4 +1,4 @@
-# This file is generated by importer.py for path_drawing-0.4.0
+# This file is generated by importer.py for path_drawing-0.4.1
import("//build/dart/dart_library.gni")
diff --git a/path_drawing/CHANGELOG.md b/path_drawing/CHANGELOG.md
index c001dd3..aee1f8a 100644
--- a/path_drawing/CHANGELOG.md
+++ b/path_drawing/CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG
+## 0.4.1
+
+- Consume latest path_parsing version.
+
## 0.4.0
- Implement path trimming routine
diff --git a/path_drawing/pubspec.yaml b/path_drawing/pubspec.yaml
index e5eaff6..2199956 100644
--- a/path_drawing/pubspec.yaml
+++ b/path_drawing/pubspec.yaml
@@ -1,5 +1,5 @@
name: path_drawing
-version: 0.4.0
+version: 0.4.1
description: >
A flutter library to help with (Canvas) Path creation and manipulation
author: Dan Field <dfield@gmail.com>
@@ -8,7 +8,7 @@
dependencies:
vector_math: ">=2.0.6 <3.0.0"
meta: ">=1.1.2 <2.0.0"
- path_parsing: ^0.1.3
+ path_parsing: ^0.1.4
flutter:
sdk: flutter
diff --git a/path_parsing/BUILD.gn b/path_parsing/BUILD.gn
index 4af291a..10130b0 100644
--- a/path_parsing/BUILD.gn
+++ b/path_parsing/BUILD.gn
@@ -1,4 +1,4 @@
-# This file is generated by importer.py for path_parsing-0.1.3
+# This file is generated by importer.py for path_parsing-0.1.4
import("//build/dart/dart_library.gni")
diff --git a/path_parsing/CHANGELOG.md b/path_parsing/CHANGELOG.md
index 54519e6..2c127f3 100644
--- a/path_parsing/CHANGELOG.md
+++ b/path_parsing/CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG
+## 0.1.4
+
+- Fix implementation of `_PathOffset`'s `==` operator.
+
## 0.1.3
- Fix a bug in decompose cubic curve - avoid trying to call `toInt()` on `double.infinity`
diff --git a/path_parsing/lib/src/path_parsing.dart b/path_parsing/lib/src/path_parsing.dart
index 6846f11..992b3a7 100644
--- a/path_parsing/lib/src/path_parsing.dart
+++ b/path_parsing/lib/src/path_parsing.dart
@@ -77,7 +77,7 @@
@override
bool operator ==(Object other) {
- return other is _PathOffset && other.dx == other.dy;
+ return other is _PathOffset && other.dx == dx && other.dy == dy;
}
// TODO(dnfield): Use a real hashing function - but this should at least be better than the default.
@@ -703,7 +703,7 @@
final double d = delta.dx * delta.dx + delta.dy * delta.dy;
final double scaleFactorSquared = math.max(1.0 / d - 0.25, 0.0);
double scaleFactor = math.sqrt(scaleFactorSquared);
- if (scaleFactor == double.infinity || scaleFactor == double.negativeInfinity) {
+ if (!scaleFactor.isFinite) {
scaleFactor = 0.0;
}
diff --git a/path_parsing/pubspec.yaml b/path_parsing/pubspec.yaml
index 94b7ceb..d7c4887 100644
--- a/path_parsing/pubspec.yaml
+++ b/path_parsing/pubspec.yaml
@@ -1,5 +1,5 @@
name: path_parsing
-version: 0.1.3
+version: 0.1.4
description: >
A Dart library to help with SVG Path parsing and code generation. Used by Flutter SVG.
author: Dan Field <dfield@gmail.com>