(img, ...args)
| 418 | } |
| 419 | |
| 420 | drawImage(img, ...args) { |
| 421 | this._drawCtx.drawImage(img, ...args); |
| 422 | |
| 423 | if (args.length <= 4) { |
| 424 | const [x, y] = args; |
| 425 | this._damage(x, y, img.width, img.height); |
| 426 | } else { |
| 427 | const [,, sw, sh, dx, dy] = args; |
| 428 | this._damage(dx, dy, sw, sh); |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | autoscale(containerWidth, containerHeight) { |
| 433 | let scaleRatio; |
no test coverage detected