Skip to content

Commit

Permalink
fix: getImageData and bump version to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet committed Sep 11, 2018
1 parent 51a1b36 commit 40e2d77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "canvas-constructor",
"version": "1.1.0",
"version": "1.1.1",
"description": "A ES6 class for node-canvas with built-in functions and chained methods.",
"main": "index",
"types": "typings/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class CanvasConstructor {
* @see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData
*/
getImageData(dx = 0, dy = 0, width = this.width, height = this.height, callback) {
if (typeof x === 'function') {
if (typeof dx === 'function') {
callback = dx;
dx = 0;
}
Expand Down

0 comments on commit 40e2d77

Please sign in to comment.