Skip to content

Commit

Permalink
chore: update packges
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkzt committed May 20, 2020
1 parent d56d0c4 commit 10d41a9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 321 deletions.
22 changes: 11 additions & 11 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"lib/index.min.js": {
"bundled": 12217,
"minified": 12208,
"gzipped": 3754
"bundled": 13305,
"minified": 13296,
"gzipped": 4087
},
"lib/index.cjs.js": {
"bundled": 21163,
"minified": 12991,
"gzipped": 3821
"bundled": 23408,
"minified": 14196,
"gzipped": 4168
},
"lib/index.esm.js": {
"bundled": 20559,
"minified": 12586,
"gzipped": 3720,
"bundled": 22804,
"minified": 13791,
"gzipped": 4068,
"treeshaked": {
"rollup": {
"code": 79,
"code": 91,
"import_statements": 14
},
"webpack": {
"code": 1063
"code": 1075
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ useSvgDrawing options.
```javascript
const [renderRef, draw] = useSvgDrawing({
penWidth: 10, // pen width
penColor: '#e00' // pen color
close: true // Use close command for path. Default is false.
penColor: '#e00', // pen color
close: true, // Use close command for path. Default is false.
curve: false, // Use curve command for path. Default is true.
delay: 60, // Set how many ms to draw points every.
fill: ''// Set fill attribute for path. default is `none`
Expand All @@ -48,7 +48,7 @@ const [renderRef, draw] = useSvgDrawing()
// Call the SvgDrawing. Access the current settings of penWidth, penColor etc
// Details are https://github.com/kmkzt/svg-drawing.
console.log(draw.instance.penColor) // #333
console.log(draw.instance.penWidth // 1
console.log(draw.instance.penWidth) // 1

// Erase all drawing.
draw.clear()
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"release": "release-it"
},
"dependencies": {
"svg-drawing": "2.0.0"
"svg-drawing": "2.1.0"
},
"peerDependencies": {
"react": ">=16.8.0"
Expand Down Expand Up @@ -73,7 +73,6 @@
"@types/webpack": "4.41.13",
"@types/webpack-dev-server": "3.10.1",
"@types/webpack-merge": "4.1.5",
"@types/workbox-webpack-plugin": "4.1.0",
"@typescript-eslint/eslint-plugin": "2.34.0",
"@typescript-eslint/parser": "2.34.0",
"@typescript-eslint/typescript-estree": "2.34.0",
Expand Down Expand Up @@ -109,7 +108,6 @@
"webpack": "4.43.0",
"webpack-cli": "3.3.11",
"webpack-dev-server": "3.11.0",
"webpack-merge": "4.2.2",
"workbox-webpack-plugin": "4.3.1"
"webpack-merge": "4.2.2"
}
}
Loading

0 comments on commit 10d41a9

Please sign in to comment.