File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -578,17 +578,17 @@ class CanvasView extends CanvasBase {
578
578
} ) ;
579
579
this . nativeViewProtected . drawListener = new com . akylas . canvas . DrawListener ( {
580
580
onDraw : ( canvas : android . graphics . Canvas ) => {
581
- const drawFameRate = this . drawFameRate ;
581
+ const drawFrameRate = this . drawFrameRate ;
582
582
let startTime ;
583
- if ( drawFameRate ) {
583
+ if ( drawFrameRate ) {
584
584
startTime = Date . now ( ) ;
585
585
}
586
586
const scale = this . density ;
587
587
canvas . save ( ) ;
588
588
canvas . scale ( scale , scale ) ; // always scale to device density to work with dp
589
589
this . augmentedCanvas . mNative = canvas ;
590
590
this . onDraw ( this . augmentedCanvas as any ) ;
591
- if ( drawFameRate ) {
591
+ if ( drawFrameRate ) {
592
592
const end = Date . now ( ) ;
593
593
if ( ! this . frameRatePaint ) {
594
594
this . frameRatePaint = new Paint ( ) as any ;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export abstract class CanvasBase extends View {
52
52
public density ;
53
53
public hardwareAccelerated ;
54
54
55
- drawFameRate = false ;
55
+ drawFrameRate = false ;
56
56
57
57
getOrCreateShapes ( ) {
58
58
if ( ! this . mShapes ) {
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ declare class CanvasView extends View {
317
317
cached : boolean ;
318
318
hardwareAccelerated : boolean ;
319
319
density : number ;
320
- drawFameRate : boolean ;
320
+ drawFrameRate : boolean ;
321
321
322
322
shapes : ObservableArray < Shape > ;
323
323
Original file line number Diff line number Diff line change @@ -2034,8 +2034,8 @@ export class UICustomCanvasView extends UIView {
2034
2034
if ( ! owner ) {
2035
2035
return ;
2036
2036
}
2037
- const drawFameRate = owner . drawFameRate ;
2038
- if ( drawFameRate ) {
2037
+ const drawFrameRate = owner . drawFrameRate ;
2038
+ if ( drawFrameRate ) {
2039
2039
}
2040
2040
if ( ! this . _canvas ) {
2041
2041
this . _canvas = new Canvas ( 0 , 0 ) ;
@@ -2061,7 +2061,7 @@ export class UICustomCanvasView extends UIView {
2061
2061
if ( ! owner . callDrawBeforeShapes ) {
2062
2062
owner . onDraw ( this . _canvas ) ;
2063
2063
}
2064
- if ( drawFameRate ) {
2064
+ if ( drawFrameRate ) {
2065
2065
const end = Date . now ( ) ;
2066
2066
if ( ! this . frameRatePaint ) {
2067
2067
this . frameRatePaint = new Paint ( ) ;
You can’t perform that action at this time.
0 commit comments