diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-04 14:08:09 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-04 14:08:09 -0500 |
commit | d5d5fd6f77f2d778ab099d52f1acaad762712822 (patch) | |
tree | ababfba81c28c102b932e2713c1614260a424285 /src/lib/utils | |
parent | e5bc336f9586b1f5515be3f1d239d2194489e9c5 (diff) | |
download | tanzanite-d5d5fd6f77f2d778ab099d52f1acaad762712822.tar.gz tanzanite-d5d5fd6f77f2d778ab099d52f1acaad762712822.tar.bz2 tanzanite-d5d5fd6f77f2d778ab099d52f1acaad762712822.zip |
explicit member accessibility & jsdocs & typings
Diffstat (limited to 'src/lib/utils')
-rw-r--r-- | src/lib/utils/CanvasProgressBar.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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; } } |