Skip to content

Commit b453a4d

Browse files
committed
docs: readme
1 parent 417c239 commit b453a4d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
1010
### 🏠 [Homepage](https://github.com/ifakejs/signature)
1111

12+
[DEMO](https://ifakejs.github.io/signature/) is here.
13+
1214
## Install
1315
Make sure you have node.js installed on your machine before proceeding.
1416
```sh
@@ -44,7 +46,7 @@ interface Options {
4446
strokeStyle?: string | CanvasGradient | CanvasPattern
4547
fullPage?: boolean
4648
degree?: number
47-
canvasProcessor?: (ctx: HTMLCanvasElement) => void
49+
canvasProcessor?: (canvas: HTMLCanvasElement) => void
4850
ctxProcessor?: (ctx: CanvasRenderingContext2D) => void
4951
}
5052
```

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ifake/signature",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"description": "A signature library for web.",
55
"main": "dist/index.umd.js",
66
"module": "lib/index.esm.js",
@@ -17,6 +17,9 @@
1717
"postpublish": "git push origin --all; git push origin --tags",
1818
"postversion": "npm publish"
1919
},
20+
"publishConfig": {
21+
"access": "public"
22+
},
2023
"files": [
2124
"lib",
2225
"dist"

src/Options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface DefOptions {
99
readonly isMobile: boolean
1010
readonly devicePixelRatio: number
1111
readonly degree: number
12-
ctxProcessor?: (ctx: CanvasRenderingContext2D) => void
12+
ctxProcessor?: (canvas: CanvasRenderingContext2D) => void
1313
canvasProcessor?: (ctx: HTMLCanvasElement) => void
1414
}
1515

0 commit comments

Comments
 (0)