Param order

This commit is contained in:
Joshua Rudesill 2023-08-09 17:44:29 -05:00
parent 5f7f6ce3ff
commit 4971915bb4
2 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -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,