@@ -69,10 +69,9 @@ export class YAxisRenderer extends AxisRenderer {
69
69
70
70
this . drawYLabels ( c , xPos , positions , yoffset ) ;
71
71
if ( dependency == AxisDependency . LEFT ) {
72
- this . drawMarkTicket ( c , this . mViewPortHandler . contentLeft ( ) , positions , - xoffset / 2 ) ;
73
-
72
+ this . drawMarkTicket ( c , this . mViewPortHandler . contentLeft ( ) , positions , - xoffset / 2 ) ;
74
73
} else {
75
- this . drawMarkTicket ( c , this . mViewPortHandler . contentRight ( ) , positions , + xoffset / 2 ) ;
74
+ this . drawMarkTicket ( c , this . mViewPortHandler . contentRight ( ) , positions , + xoffset / 2 ) ;
76
75
}
77
76
}
78
77
@@ -116,20 +115,17 @@ export class YAxisRenderer extends AxisRenderer {
116
115
* @param length
117
116
*/
118
117
119
- protected drawMarkTicket ( c : Canvas , fixedPosition , positions , ticklength ) {
118
+ protected drawMarkTicket ( c : Canvas , fixedPosition , positions , ticklength ) {
120
119
const mYAxis = this . mYAxis ;
121
- if ( ! mYAxis . isDrawMarkTicksEnabled ( ) ) return ;
120
+ if ( ! mYAxis . isDrawMarkTicksEnabled ( ) ) return ;
122
121
123
122
const from = mYAxis . isDrawBottomYLabelEntryEnabled ( ) ? 0 : 1 ;
124
- const to = mYAxis . isDrawTopYLabelEntryEnabled ( )
125
- ? mYAxis . mEntryCount
126
- : ( mYAxis . mEntryCount - 1 ) ;
123
+ const to = mYAxis . isDrawTopYLabelEntryEnabled ( ) ? mYAxis . mEntryCount : mYAxis . mEntryCount - 1 ;
127
124
128
125
// draw
129
126
for ( let i = from ; i < to ; i ++ ) {
130
- c . drawLine ( fixedPosition , positions [ i * 2 + 1 ] , fixedPosition + ticklength , positions [ i * 2 + 1 ] , this . mAxisLinePaint ) ;
127
+ c . drawLine ( fixedPosition , positions [ i * 2 + 1 ] , fixedPosition + ticklength , positions [ i * 2 + 1 ] , this . mAxisLinePaint ) ;
131
128
}
132
-
133
129
}
134
130
135
131
// protected mRenderGridLinesPath = new Path();
@@ -198,7 +194,7 @@ export class YAxisRenderer extends AxisRenderer {
198
194
* @return
199
195
*/
200
196
protected getTransformedPositions ( ) {
201
- const length = this . mYAxis . mEntryCount * 2
197
+ const length = this . mYAxis . mEntryCount * 2 ;
202
198
if ( this . mGetTransformedPositionsBuffer . length != length ) {
203
199
this . mGetTransformedPositionsBuffer = Utils . createArrayBuffer ( length ) ;
204
200
}
@@ -208,7 +204,7 @@ export class YAxisRenderer extends AxisRenderer {
208
204
positions [ i ] = 0 ;
209
205
positions [ i + 1 ] = this . mYAxis . mEntries [ i / 2 ] ;
210
206
}
211
- const result = Utils . pointsFromBuffer ( positions )
207
+ const result = Utils . pointsFromBuffer ( positions ) ;
212
208
this . mTrans . pointValuesToPixel ( result ) ;
213
209
return Utils . nativeArrayToArray ( result ) ;
214
210
}
@@ -279,7 +275,7 @@ export class YAxisRenderer extends AxisRenderer {
279
275
280
276
pts [ 1 ] = l . getLimit ( ) ;
281
277
this . mTrans . pointValuesToPixel ( pts ) ;
282
-
278
+
283
279
if ( lineWidth > 0 ) {
284
280
limitLinePath . moveTo ( this . mViewPortHandler . contentLeft ( ) , pts [ 1 ] ) ;
285
281
limitLinePath . lineTo ( this . mViewPortHandler . contentRight ( ) , pts [ 1 ] ) ;
0 commit comments