Skip to content

Commit 4325ae9

Browse files
committed
fix: drawFrameRate property name fix
1 parent 7e54b85 commit 4325ae9

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/canvas.android.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,17 +578,17 @@ class CanvasView extends CanvasBase {
578578
});
579579
this.nativeViewProtected.drawListener = new com.akylas.canvas.DrawListener({
580580
onDraw: (canvas: android.graphics.Canvas) => {
581-
const drawFameRate = this.drawFameRate;
581+
const drawFrameRate = this.drawFrameRate;
582582
let startTime;
583-
if (drawFameRate) {
583+
if (drawFrameRate) {
584584
startTime = Date.now();
585585
}
586586
const scale = this.density;
587587
canvas.save();
588588
canvas.scale(scale, scale); // always scale to device density to work with dp
589589
this.augmentedCanvas.mNative = canvas;
590590
this.onDraw(this.augmentedCanvas as any);
591-
if (drawFameRate) {
591+
if (drawFrameRate) {
592592
const end = Date.now();
593593
if (!this.frameRatePaint) {
594594
this.frameRatePaint = new Paint() as any;

src/canvas.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export abstract class CanvasBase extends View {
5252
public density;
5353
public hardwareAccelerated;
5454

55-
drawFameRate = false;
55+
drawFrameRate = false;
5656

5757
getOrCreateShapes() {
5858
if (!this.mShapes) {

src/canvas.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ declare class CanvasView extends View {
317317
cached: boolean;
318318
hardwareAccelerated: boolean;
319319
density: number;
320-
drawFameRate: boolean;
320+
drawFrameRate: boolean;
321321

322322
shapes: ObservableArray<Shape>;
323323

src/canvas.ios.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,8 +2034,8 @@ export class UICustomCanvasView extends UIView {
20342034
if (!owner) {
20352035
return;
20362036
}
2037-
const drawFameRate = owner.drawFameRate;
2038-
if (drawFameRate) {
2037+
const drawFrameRate = owner.drawFrameRate;
2038+
if (drawFrameRate) {
20392039
}
20402040
if (!this._canvas) {
20412041
this._canvas = new Canvas(0, 0);
@@ -2061,7 +2061,7 @@ export class UICustomCanvasView extends UIView {
20612061
if (!owner.callDrawBeforeShapes) {
20622062
owner.onDraw(this._canvas);
20632063
}
2064-
if (drawFameRate) {
2064+
if (drawFrameRate) {
20652065
const end = Date.now();
20662066
if (!this.frameRatePaint) {
20672067
this.frameRatePaint = new Paint();

0 commit comments

Comments
 (0)