@@ -448,19 +448,24 @@ export class LineChartRenderer extends LineRadarRenderer {
448
448
// result = true;
449
449
}
450
450
451
- if ( isAndroid || dataSet . isDashedLineEnabled ( ) ) {
452
- trans . pathValueToPixel ( this . linePath ) ;
453
- this . drawPath ( c , this . linePath , this . mRenderPaint ) ;
454
- } else {
455
- const points = res [ 0 ] ;
456
- const length = res [ 1 ] ;
457
- c . drawLines ( points , 0 , length , this . mRenderPaint , trans . getValueToPixelMatrix ( ) ) ;
458
- }
451
+ // if (isAndroid || dataSet.isDashedLineEnabled()) {
452
+ trans . pathValueToPixel ( this . linePath ) ;
453
+ this . drawPath ( c , this . linePath , this . mRenderPaint ) ;
454
+ // } else {
455
+ // const points = res[0];
456
+ // const length = res[1];
457
+ // this .drawLines(c, points, 0, length, this.mRenderPaint, trans.getValueToPixelMatrix());
458
+ // }
459
459
460
460
return result ;
461
461
}
462
462
463
463
@profile
464
+ drawLines ( canvas : Canvas , points : number [ ] , offest , length , paint : Paint , matrix : Matrix ) {
465
+ console . log ( 'drawLines' , points . length , length , typeof points , Array . isArray ( points ) ) ;
466
+ canvas . drawLines ( points , offest , length , paint , matrix ) ;
467
+ }
468
+
464
469
protected drawFill ( c : Canvas , dataSet : ILineDataSet , spline : Path , trans : Transformer , bounds : XBounds ) {
465
470
const xKey = dataSet . xProperty ;
466
471
let fillMin = dataSet . getFillFormatter ( ) . getFillLinePosition ( dataSet , this . mChart ) ;
0 commit comments