mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Param order
This commit is contained in:
parent
5f7f6ce3ff
commit
4971915bb4
@ -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",
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user