Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9995e370
Unverified
Commit
9995e370
authored
Oct 18, 2022
by
Greg Spencer
Committed by
GitHub
Oct 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix StarBorder operator== (#113588)
parent
021f8a54
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
103 additions
and
61 deletions
+103
-61
star_border.dart
dev/manual_tests/lib/star_border.dart
+0
-2
star_border.0.dart
examples/api/lib/painting/star_border/star_border.0.dart
+0
-1
star_border.dart
packages/flutter/lib/src/painting/star_border.dart
+8
-1
star_border_test.dart
packages/flutter/test/painting/star_border_test.dart
+95
-57
No files found.
dev/manual_tests/lib/star_border.dart
View file @
9995e370
...
...
@@ -72,7 +72,6 @@ class _MyHomePageState extends State<MyHomePage> {
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
<
Widget
>[
Container
(
key:
UniqueKey
(),
alignment:
Alignment
.
center
,
width:
300
,
height:
200
,
...
...
@@ -94,7 +93,6 @@ class _MyHomePageState extends State<MyHomePage> {
child:
const
Text
(
'Polygon'
),
),
Container
(
key:
UniqueKey
(),
alignment:
Alignment
.
center
,
width:
300
,
height:
200
,
...
...
examples/api/lib/painting/star_border/star_border.0.dart
View file @
9995e370
...
...
@@ -144,7 +144,6 @@ class ExampleBorder extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
key:
UniqueKey
(),
alignment:
Alignment
.
center
,
padding:
const
EdgeInsets
.
all
(
20
),
width:
150
,
...
...
packages/flutter/lib/src/painting/star_border.dart
View file @
9995e370
...
...
@@ -422,7 +422,14 @@ class StarBorder extends OutlinedBorder {
if
(
other
.
runtimeType
!=
runtimeType
)
{
return
false
;
}
return
other
is
StarBorder
&&
other
.
side
==
side
;
return
other
is
StarBorder
&&
other
.
side
==
side
&&
other
.
points
==
points
&&
other
.
_innerRadiusRatio
==
_innerRadiusRatio
&&
other
.
pointRounding
==
pointRounding
&&
other
.
valleyRounding
==
valleyRounding
&&
other
.
_rotationRadians
==
_rotationRadians
&&
other
.
squash
==
squash
;
}
@override
...
...
packages/flutter/test/painting/star_border_test.dart
View file @
9995e370
...
...
@@ -76,6 +76,41 @@ void main() {
expect
(
const
StarBorder
(),
equals
(
const
StarBorder
().
copyWith
()));
expect
(
copy
,
equals
(
expected
));
expect
(
copy
.
hashCode
,
equals
(
expected
.
hashCode
));
// Test that all properties are checked in operator==
expect
(
const
StarBorder
(),
isNot
(
equals
(
const
StarBorderSubclass
())));
expect
(
copy
,
isNot
(
equals
(
'Not a StarBorder'
)));
// Test that two StarBorders where the only difference is polygon vs star
// constructor compare as different (which they are, because
// _innerRadiusRatio is null on the polygon).
expect
(
const
StarBorder
(
points:
3
,
innerRadiusRatio:
1
,
pointRounding:
0.2
,
rotation:
180
,
squash:
0.4
,
),
isNot
(
equals
(
const
StarBorder
.
polygon
(
sides:
3
,
pointRounding:
0.2
,
rotation:
180
,
squash:
0.4
,
),
)),
);
// Test that copies are unequal whenever any one of the properties changes.
expect
(
copy
,
equals
(
copy
));
expect
(
copy
,
isNot
(
equals
(
copy
.
copyWith
(
side:
const
BorderSide
()))));
expect
(
copy
,
isNot
(
equals
(
copy
.
copyWith
(
points:
10
))));
expect
(
copy
,
isNot
(
equals
(
copy
.
copyWith
(
innerRadiusRatio:
0.5
))));
expect
(
copy
,
isNot
(
equals
(
copy
.
copyWith
(
pointRounding:
0.5
))));
expect
(
copy
,
isNot
(
equals
(
copy
.
copyWith
(
valleyRounding:
0.5
))));
expect
(
copy
,
isNot
(
equals
(
copy
.
copyWith
(
rotation:
10
))));
expect
(
copy
,
isNot
(
equals
(
copy
.
copyWith
(
squash:
0.0
))));
});
testWidgets
(
'StarBorder basic geometry'
,
(
WidgetTester
tester
)
async
{
...
...
@@ -87,14 +122,14 @@ void main() {
await
testBorder
(
tester
,
'points_6'
,
const
StarBorder
(
points:
6
));
await
testBorder
(
tester
,
'points_2'
,
const
StarBorder
(
points:
2
));
await
testBorder
(
tester
,
'inner_radius_0'
,
const
StarBorder
(
innerRadiusRatio:
0.0
));
await
testBorder
(
tester
,
'inner_radius_2'
,
const
StarBorder
(
innerRadiusRatio:
0.2
));
await
testBorder
(
tester
,
'inner_radius_7'
,
const
StarBorder
(
innerRadiusRatio:
0.7
));
await
testBorder
(
tester
,
'point_rounding_2'
,
const
StarBorder
(
pointRounding:
0.2
));
await
testBorder
(
tester
,
'point_rounding_7'
,
const
StarBorder
(
pointRounding:
0.7
));
await
testBorder
(
tester
,
'point_rounding_10'
,
const
StarBorder
(
pointRounding:
1.0
));
await
testBorder
(
tester
,
'valley_rounding_2'
,
const
StarBorder
(
valleyRounding:
0.2
));
await
testBorder
(
tester
,
'valley_rounding_7'
,
const
StarBorder
(
valleyRounding:
0.7
));
await
testBorder
(
tester
,
'valley_rounding_10'
,
const
StarBorder
(
valleyRounding:
1.0
));
await
testBorder
(
tester
,
'inner_radius_2
0
'
,
const
StarBorder
(
innerRadiusRatio:
0.2
));
await
testBorder
(
tester
,
'inner_radius_7
0
'
,
const
StarBorder
(
innerRadiusRatio:
0.7
));
await
testBorder
(
tester
,
'point_rounding_2
0
'
,
const
StarBorder
(
pointRounding:
0.2
));
await
testBorder
(
tester
,
'point_rounding_7
0
'
,
const
StarBorder
(
pointRounding:
0.7
));
await
testBorder
(
tester
,
'point_rounding_10
0
'
,
const
StarBorder
(
pointRounding:
1.0
));
await
testBorder
(
tester
,
'valley_rounding_2
0
'
,
const
StarBorder
(
valleyRounding:
0.2
));
await
testBorder
(
tester
,
'valley_rounding_7
0
'
,
const
StarBorder
(
valleyRounding:
0.7
));
await
testBorder
(
tester
,
'valley_rounding_10
0
'
,
const
StarBorder
(
valleyRounding:
1.0
));
await
testBorder
(
tester
,
'squash_2'
,
const
StarBorder
(
squash:
0.2
));
await
testBorder
(
tester
,
'squash_7'
,
const
StarBorder
(
squash:
0.7
));
await
testBorder
(
tester
,
'squash_10'
,
const
StarBorder
(
squash:
1.0
));
...
...
@@ -104,32 +139,27 @@ void main() {
await
testBorder
(
tester
,
'side_none'
,
const
StarBorder
(
side:
BorderSide
(
style:
BorderStyle
.
none
)));
await
testBorder
(
tester
,
'side_1'
,
const
StarBorder
(
side:
BorderSide
(
color:
Color
(
0xffff0000
))));
await
testBorder
(
tester
,
'side_10'
,
const
StarBorder
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
width:
10
)));
await
testBorder
(
tester
,
'side_align_center'
,
const
StarBorder
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
strokeAlign:
BorderSide
.
strokeAlignCenter
)));
await
testBorder
(
tester
,
'side_align_outside'
,
const
StarBorder
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
strokeAlign:
BorderSide
.
strokeAlignOutside
)));
await
testBorder
(
tester
,
'side_align_center'
,
const
StarBorder
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
strokeAlign:
BorderSide
.
strokeAlignCenter
)));
await
testBorder
(
tester
,
'side_align_outside'
,
const
StarBorder
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
strokeAlign:
BorderSide
.
strokeAlignOutside
)));
});
testWidgets
(
'StarBorder.polygon parameters'
,
(
WidgetTester
tester
)
async
{
await
testBorder
(
tester
,
'poly_sides_6'
,
const
StarBorder
.
polygon
(
sides:
6
));
await
testBorder
(
tester
,
'poly_sides_2'
,
const
StarBorder
.
polygon
(
sides:
2
));
await
testBorder
(
tester
,
'poly_point_rounding_2'
,
const
StarBorder
.
polygon
(
pointRounding:
0.2
));
await
testBorder
(
tester
,
'poly_point_rounding_7'
,
const
StarBorder
.
polygon
(
pointRounding:
0.7
));
await
testBorder
(
tester
,
'poly_point_rounding_10'
,
const
StarBorder
.
polygon
(
pointRounding:
1.0
));
await
testBorder
(
tester
,
'poly_squash_2'
,
const
StarBorder
.
polygon
(
squash:
0.2
));
await
testBorder
(
tester
,
'poly_squash_7'
,
const
StarBorder
.
polygon
(
squash:
0.7
));
await
testBorder
(
tester
,
'poly_squash_10'
,
const
StarBorder
.
polygon
(
squash:
1.0
));
await
testBorder
(
tester
,
'poly_point_rounding_2
0
'
,
const
StarBorder
.
polygon
(
pointRounding:
0.2
));
await
testBorder
(
tester
,
'poly_point_rounding_7
0
'
,
const
StarBorder
.
polygon
(
pointRounding:
0.7
));
await
testBorder
(
tester
,
'poly_point_rounding_10
0
'
,
const
StarBorder
.
polygon
(
pointRounding:
1.0
));
await
testBorder
(
tester
,
'poly_squash_2
0
'
,
const
StarBorder
.
polygon
(
squash:
0.2
));
await
testBorder
(
tester
,
'poly_squash_7
0
'
,
const
StarBorder
.
polygon
(
squash:
0.7
));
await
testBorder
(
tester
,
'poly_squash_10
0
'
,
const
StarBorder
.
polygon
(
squash:
1.0
));
await
testBorder
(
tester
,
'poly_rotate_27'
,
const
StarBorder
.
polygon
(
rotation:
27
));
await
testBorder
(
tester
,
'poly_rotate_270'
,
const
StarBorder
.
polygon
(
rotation:
270
));
await
testBorder
(
tester
,
'poly_rotate_360'
,
const
StarBorder
.
polygon
(
rotation:
360
));
await
testBorder
(
tester
,
'poly_side_none'
,
const
StarBorder
.
polygon
(
side:
BorderSide
(
style:
BorderStyle
.
none
)));
await
testBorder
(
tester
,
'poly_side_1'
,
const
StarBorder
.
polygon
(
side:
BorderSide
(
color:
Color
(
0xffff0000
))));
await
testBorder
(
tester
,
'poly_side_10'
,
const
StarBorder
.
polygon
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
width:
10
)));
await
testBorder
(
tester
,
'poly_side_align_center'
,
const
StarBorder
.
polygon
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
strokeAlign:
BorderSide
.
strokeAlignCenter
)));
await
testBorder
(
tester
,
'poly_side_align_outside'
,
const
StarBorder
.
polygon
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
strokeAlign:
BorderSide
.
strokeAlignOutside
)));
await
testBorder
(
tester
,
'poly_side_10'
,
const
StarBorder
.
polygon
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
width:
10
)));
await
testBorder
(
tester
,
'poly_side_align_center'
,
const
StarBorder
.
polygon
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
strokeAlign:
BorderSide
.
strokeAlignCenter
)));
await
testBorder
(
tester
,
'poly_side_align_outside'
,
const
StarBorder
.
polygon
(
side:
BorderSide
(
color:
Color
(
0xffff0000
),
strokeAlign:
BorderSide
.
strokeAlignOutside
)));
});
testWidgets
(
"StarBorder doesn't try to scale an infinite scale matrix"
,
(
WidgetTester
tester
)
async
{
...
...
@@ -141,7 +171,7 @@ void main() {
width:
100
,
height:
100
,
child:
Stack
(
children:
<
Widget
>
[
children:
<
Widget
>[
Positioned
.
fromRelativeRect
(
rect:
const
RelativeRect
.
fromLTRB
(
100
,
100
,
100
,
100
),
child:
Container
(
...
...
@@ -169,37 +199,41 @@ void main() {
innerRadiusRatio:
0.5
,
rotation:
90
,
);
await
testBorder
(
tester
,
'to_star_border_2'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_star_border_7'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_star_border_10'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_star_border_2'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_star_border_7'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_star_border_10'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'to_star_border_2
0
'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_star_border_7
0
'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_star_border_10
0
'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_star_border_2
0
'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_star_border_7
0
'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_star_border_10
0
'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
1.0
);
});
testWidgets
(
'StarBorder lerped with CircleBorder'
,
(
WidgetTester
tester
)
async
{
const
StarBorder
from
=
StarBorder
();
const
ShapeBorder
otherBorder
=
CircleBorder
();
const
ShapeBorder
eccentricCircle
=
CircleBorder
(
eccentricity:
0.6
);
await
testBorder
(
tester
,
'to_circle_border_2'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_circle_border_7'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_circle_border_10'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_circle_border_2'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_circle_border_7'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_circle_border_10'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'to_eccentric_circle_border'
,
from
,
lerpTo:
eccentricCircle
,
lerpAmount:
0.4
);
await
testBorder
(
tester
,
'from_eccentric_circle_border'
,
from
,
lerpFrom:
eccentricCircle
,
lerpAmount:
0.4
);
await
testBorder
(
tester
,
'to_circle_border_20'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_circle_border_70'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_circle_border_100'
,
from
,
lerpTo:
otherBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_circle_border_20'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_circle_border_70'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_circle_border_100'
,
from
,
lerpFrom:
otherBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'to_eccentric_circle_border_20'
,
from
,
lerpTo:
eccentricCircle
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_eccentric_circle_border_70'
,
from
,
lerpTo:
eccentricCircle
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_eccentric_circle_border_100'
,
from
,
lerpTo:
eccentricCircle
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_eccentric_circle_border_20'
,
from
,
lerpFrom:
eccentricCircle
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_eccentric_circle_border_70'
,
from
,
lerpFrom:
eccentricCircle
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_eccentric_circle_border_100'
,
from
,
lerpFrom:
eccentricCircle
,
lerpAmount:
1.0
);
});
testWidgets
(
'StarBorder lerped with RoundedRectangleBorder'
,
(
WidgetTester
tester
)
async
{
const
StarBorder
from
=
StarBorder
();
const
RoundedRectangleBorder
rectangleBorder
=
RoundedRectangleBorder
();
await
testBorder
(
tester
,
'to_rect_border_2'
,
from
,
lerpTo:
rectangleBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_rect_border_7'
,
from
,
lerpTo:
rectangleBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_rect_border_10'
,
from
,
lerpTo:
rectangleBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_rect_border_2'
,
from
,
lerpFrom:
rectangleBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_rect_border_7'
,
from
,
lerpFrom:
rectangleBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_rect_border_10'
,
from
,
lerpFrom:
rectangleBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'to_rect_border_2
0
'
,
from
,
lerpTo:
rectangleBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_rect_border_7
0
'
,
from
,
lerpTo:
rectangleBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_rect_border_10
0
'
,
from
,
lerpTo:
rectangleBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_rect_border_2
0
'
,
from
,
lerpFrom:
rectangleBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_rect_border_7
0
'
,
from
,
lerpFrom:
rectangleBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_rect_border_10
0
'
,
from
,
lerpFrom:
rectangleBorder
,
lerpAmount:
1.0
);
const
RoundedRectangleBorder
roundedRectBorder
=
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
only
(
...
...
@@ -207,23 +241,27 @@ void main() {
bottomRight:
Radius
.
circular
(
10.0
),
),
);
await
testBorder
(
tester
,
'to_rrect_border_2'
,
from
,
lerpTo:
roundedRectBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_rrect_border_7'
,
from
,
lerpTo:
roundedRectBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_rrect_border_10'
,
from
,
lerpTo:
roundedRectBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_rrect_border_2'
,
from
,
lerpFrom:
roundedRectBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_rrect_border_7'
,
from
,
lerpFrom:
roundedRectBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_rrect_border_10'
,
from
,
lerpFrom:
roundedRectBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'to_rrect_border_2
0
'
,
from
,
lerpTo:
roundedRectBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_rrect_border_7
0
'
,
from
,
lerpTo:
roundedRectBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_rrect_border_10
0
'
,
from
,
lerpTo:
roundedRectBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_rrect_border_2
0
'
,
from
,
lerpFrom:
roundedRectBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_rrect_border_7
0
'
,
from
,
lerpFrom:
roundedRectBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_rrect_border_10
0
'
,
from
,
lerpFrom:
roundedRectBorder
,
lerpAmount:
1.0
);
});
testWidgets
(
'StarBorder lerped with StadiumBorder'
,
(
WidgetTester
tester
)
async
{
const
StarBorder
from
=
StarBorder
();
const
StadiumBorder
stadiumBorder
=
StadiumBorder
();
await
testBorder
(
tester
,
'to_stadium_border_2'
,
from
,
lerpTo:
stadiumBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_stadium_border_7'
,
from
,
lerpTo:
stadiumBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_stadium_border_10'
,
from
,
lerpTo:
stadiumBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_stadium_border_2'
,
from
,
lerpFrom:
stadiumBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_stadium_border_7'
,
from
,
lerpFrom:
stadiumBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_stadium_border_10'
,
from
,
lerpFrom:
stadiumBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'to_stadium_border_2
0
'
,
from
,
lerpTo:
stadiumBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'to_stadium_border_7
0
'
,
from
,
lerpTo:
stadiumBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'to_stadium_border_10
0
'
,
from
,
lerpTo:
stadiumBorder
,
lerpAmount:
1.0
);
await
testBorder
(
tester
,
'from_stadium_border_2
0
'
,
from
,
lerpFrom:
stadiumBorder
,
lerpAmount:
0.2
);
await
testBorder
(
tester
,
'from_stadium_border_7
0
'
,
from
,
lerpFrom:
stadiumBorder
,
lerpAmount:
0.7
);
await
testBorder
(
tester
,
'from_stadium_border_10
0
'
,
from
,
lerpFrom:
stadiumBorder
,
lerpAmount:
1.0
);
});
}
class
StarBorderSubclass
extends
StarBorder
{
const
StarBorderSubclass
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment