Skip to content

Commit

Permalink
Param order
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrudesill committed Aug 9, 2023
1 parent 5f7f6ce commit 4971915
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"devDependencies": {
"@parcel/transformer-image": "2.8.3",
"@size-limit/preset-big-lib": "^8.2.4",
"@types/jest": "^29.5.3",
"@types/mocha": "^10.0.1",
"canvas": "^2.11.2",
"chai": "4.3.7",
Expand Down
4 changes: 2 additions & 2 deletions src/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ export class Context {
var a = arguments,
_context = this._context;
if (a.length === 3) {
_context.drawImage(image, dx, dy);
_context.drawImage(image, sx, sy);
} else if (a.length === 5) {
_context.drawImage(image, dx, dy, dWidth, dHeight);
_context.drawImage(image, sx, sy, sWidth, sHeight);
} else if (a.length === 9) {
_context.drawImage(
image,
Expand Down

0 comments on commit 4971915

Please sign in to comment.