File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class BitmapSkin extends Skin {
90
90
this . _costumeResolution = costumeResolution || 2 ;
91
91
this . _textureSize = BitmapSkin . _getBitmapSize ( bitmapData ) ;
92
92
93
- if ( typeof rotationCenter === 'undefined' ) rotationCenter = this . calculateRotationCenter ( ) ;
93
+ if ( typeof rotationCenter === 'undefined' ) rotationCenter = this . _calculateRotationCenter ( ) ;
94
94
this . _nativeRotationCenter [ 0 ] = rotationCenter [ 0 ] ;
95
95
this . _nativeRotationCenter [ 1 ] = rotationCenter [ 1 ] ;
96
96
Original file line number Diff line number Diff line change @@ -753,7 +753,7 @@ class RenderWebGL extends EventEmitter {
753
753
*/
754
754
getSkinRotationCenter ( skinID ) {
755
755
const skin = this . _allSkins [ skinID ] ;
756
- return skin . calculateRotationCenter ( ) ;
756
+ return skin . nativeRotationCenter ;
757
757
}
758
758
759
759
/**
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ class SVGSkin extends Skin {
300
300
}
301
301
this . _nativeSize [ 0 ] = width ;
302
302
this . _nativeSize [ 1 ] = height ;
303
- if ( typeof rotationCenter === 'undefined' ) rotationCenter = this . calculateRotationCenter ( ) ;
303
+ if ( typeof rotationCenter === 'undefined' ) rotationCenter = this . _calculateRotationCenter ( ) ;
304
304
this . _nativeRotationCenter [ 0 ] = rotationCenter [ 0 ] ;
305
305
this . _nativeRotationCenter [ 1 ] = rotationCenter [ 1 ] ;
306
306
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ class Skin extends EventEmitter {
125
125
* Get the center of the current bounding box
126
126
* @return {Array<number> } the center of the current bounding box
127
127
*/
128
- calculateRotationCenter ( ) {
128
+ _calculateRotationCenter ( ) {
129
129
return [ this . nativeSize [ 0 ] / 2 , this . nativeSize [ 1 ] / 2 ] ;
130
130
}
131
131
You can’t perform that action at this time.
0 commit comments