From d5d5fd6f77f2d778ab099d52f1acaad762712822 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 4 Feb 2022 14:08:09 -0500 Subject: explicit member accessibility & jsdocs & typings --- src/lib/utils/CanvasProgressBar.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/utils') diff --git a/src/lib/utils/CanvasProgressBar.ts b/src/lib/utils/CanvasProgressBar.ts index cd86532..1ba0e8b 100644 --- a/src/lib/utils/CanvasProgressBar.ts +++ b/src/lib/utils/CanvasProgressBar.ts @@ -22,7 +22,7 @@ export class CanvasProgressBar { this.ctx = ctx; } - draw(): void { + public draw(): void { // ----------------- this.p = this.percentage * this.w; if (this.p <= this.h) { @@ -57,7 +57,7 @@ export class CanvasProgressBar { this.ctx.fill(); } - // showWholeProgressBar(){ + // public showWholeProgressBar(){ // this.ctx.beginPath(); // this.ctx.arc(this.h / 2 + this.x, this.h / 2 + this.y, this.h / 2, Math.PI / 2, 3 / 2 * Math.PI); // this.ctx.lineTo(this.w - this.h + this.x, 0 + this.y); @@ -68,11 +68,11 @@ export class CanvasProgressBar { // this.ctx.closePath(); // } - get PPercentage(): number { + public get PPercentage(): number { return this.percentage * 100; } - set PPercentage(x: number) { + public set PPercentage(x: number) { this.percentage = x / 100; } } -- cgit