Skip to content

Commit 249cfea

Browse files
authored
feat: straighten public API after performance optmization (#12)
1 parent d440081 commit 249cfea

File tree

9 files changed

+798
-366
lines changed

9 files changed

+798
-366
lines changed

flutter/mesh/analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,5 @@ linter:
203203
- use_string_in_part_of_directives
204204
- use_super_parameters
205205
- use_test_throws_matchers
206-
- use_to_and_as_if_applicable
207206
- valid_regexps
208207
- void_checks

flutter/mesh/example/lib/examples/custom_animation.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CustomAnimation extends StatefulWidget {
99
// Some syntax-sugarring
1010
1111
extension on OVertex {
12-
OVertex to(OVertex b, double t) => OVertex.lerp(this, b, t);
12+
OVertex to(OVertex b, double t) => lerpTo(b, t);
1313
}
1414
1515
extension on Color? {
@@ -190,7 +190,7 @@ class _CustomAnimationState extends State<CustomAnimation>
190190
}
191191

192192
extension on OVertex {
193-
OVertex to(OVertex b, double t) => OVertex.lerp(this, b, t);
193+
OVertex to(OVertex b, double t) => lerpTo(b, t);
194194
}
195195

196196
extension on Color? {

flutter/mesh/lib/src/data/omesh_rect.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class OMeshRect {
104104
smoothColors: b.smoothColors,
105105
vertices: [
106106
for (int i = 0; i < b.vertices.length; i++)
107-
OVertex.lerp(a.vertices[i], b.vertices[i], t),
107+
a.vertices[i].lerpTo(b.vertices[i], t),
108108
],
109109
colors: [
110110
for (int i = 0; i < b.colors.length; i++)

0 commit comments

Comments
 (0)