We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd78b5 commit 7d851efCopy full SHA for 7d851ef
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "scratchcard-js",
3
- "version": "1.5.3",
+ "version": "1.5.4",
4
"description": "Create scratch card in browser.",
5
"main": "./build/scratchcard.min.js",
6
"scripts": {
types/ScratchCard.d.ts
@@ -1,11 +1,12 @@
import { SC_CONFIG, SCRATCH_TYPE } from './ScratchCardConfig';
declare class ScratchCard {
+ get canvas(): HTMLCanvasElement;
readonly config: SC_CONFIG;
readonly scratchType: SCRATCH_TYPE;
readonly ctx: CanvasRenderingContext2D;
7
readonly container: HTMLElement;
8
private position;
- private canvas;
9
+ private _canvas;
10
private readyToClear;
11
private brush;
12
private callbackDone;
0 commit comments