diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-27 22:01:17 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-27 22:01:17 -0400 |
commit | 7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09 (patch) | |
tree | 35bd9c8a686daafc7cbfef235afade0ef0c8a104 /lib/common/CanvasProgressBar.ts | |
parent | b72d58843e853b0f260527a3689f76b13946bcb8 (diff) | |
download | tanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.tar.gz tanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.tar.bz2 tanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.zip |
node-canvas -> @napi-rs/canvas
ts 4.7.4 -> 4.8.2
Diffstat (limited to 'lib/common/CanvasProgressBar.ts')
-rw-r--r-- | lib/common/CanvasProgressBar.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common/CanvasProgressBar.ts b/lib/common/CanvasProgressBar.ts index fb4f778..279df13 100644 --- a/lib/common/CanvasProgressBar.ts +++ b/lib/common/CanvasProgressBar.ts @@ -1,4 +1,4 @@ -import { CanvasRenderingContext2D } from 'canvas'; +import { SKRSContext2D } from '@napi-rs/canvas'; /** * I just copy pasted this code from stackoverflow don't yell at me if there is issues for it @@ -12,10 +12,10 @@ export class CanvasProgressBar { private readonly color: string; private percentage: number; private p?: number; - private ctx: CanvasRenderingContext2D; + private ctx: SKRSContext2D; public constructor( - ctx: CanvasRenderingContext2D, + ctx: SKRSContext2D, dimension: { x: number; y: number; width: number; height: number }, color: string, percentage: number |