@@ -48,11 +48,11 @@ test('translate by costume center', t => {
4848 drawable . skin = new MockSkin ( ) ;
4949 drawable . skin . size = [ 200 , 50 ] ;
5050
51- drawable . skin . setRotationCenter ( 1 , 0 ) ;
51+ drawable . skin . rotationCenter = [ 1 , 0 ] ;
5252 expected . initFromBounds ( - 1 , 199 , - 50 , 0 ) ;
5353 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
5454
55- drawable . skin . setRotationCenter ( 0 , - 2 ) ;
55+ drawable . skin . rotationCenter = [ 0 , - 2 ] ;
5656 expected . initFromBounds ( 0 , 200 , - 52 , - 2 ) ;
5757 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
5858
@@ -73,7 +73,7 @@ test('translate and rotate', t => {
7373 expected . initFromBounds ( - 49 , 1 , - 198 , 2 ) ;
7474 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
7575
76- drawable . skin . setRotationCenter ( 100 , 25 ) ;
76+ drawable . skin . rotationCenter = [ 100 , 25 ] ;
7777 drawable . updateProperties ( { direction : 270 , position : [ 0 , 0 ] } ) ;
7878 expected . initFromBounds ( - 100 , 100 , - 25 , 25 ) ;
7979 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
@@ -89,7 +89,7 @@ test('rotate by non-right-angles', t => {
8989 const drawable = new Drawable ( ) ;
9090 drawable . skin = new MockSkin ( ) ;
9191 drawable . skin . size = [ 10 , 10 ] ;
92- drawable . skin . setRotationCenter ( 5 , 5 ) ;
92+ drawable . skin . rotationCenter = [ 5 , 5 ] ;
9393
9494 expected . initFromBounds ( - 5 , 5 , - 5 , 5 ) ;
9595 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
@@ -111,11 +111,11 @@ test('scale', t => {
111111 expected . initFromBounds ( 0 , 200 , - 25 , 0 ) ;
112112 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
113113
114- drawable . skin . setRotationCenter ( 0 , 25 ) ;
114+ drawable . skin . rotationCenter = [ 0 , 25 ] ;
115115 expected . initFromBounds ( 0 , 200 , - 12.5 , 12.5 ) ;
116116 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
117117
118- drawable . skin . setRotationCenter ( 150 , 50 ) ;
118+ drawable . skin . rotationCenter = [ 150 , 50 ] ;
119119 drawable . updateProperties ( { scale : [ 50 , 50 ] } ) ;
120120 expected . initFromBounds ( - 75 , 25 , 0 , 25 ) ;
121121 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
@@ -129,12 +129,12 @@ test('rotate and scale', t => {
129129 drawable . skin = new MockSkin ( ) ;
130130 drawable . skin . size = [ 100 , 1000 ] ;
131131
132- drawable . skin . setRotationCenter ( 50 , 50 ) ;
132+ drawable . skin . rotationCenter = [ 50 , 50 ] ;
133133 expected . initFromBounds ( - 50 , 50 , - 950 , 50 ) ;
134134 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
135135
136136 drawable . updateProperties ( { scale : [ 40 , 60 ] } ) ;
137- drawable . skin . setRotationCenter ( 50 , 50 ) ;
137+ drawable . skin . rotationCenter = [ 50 , 50 ] ;
138138 expected . initFromBounds ( - 20 , 20 , - 570 , 30 ) ;
139139 t . same ( snapToNearest ( drawable . getAABB ( ) ) , expected ) ;
140140
0 commit comments