(x, y)
| 1397 | } |
| 1398 | |
| 1399 | resize(x, y) { |
| 1400 | this.info.innerHTML = `${x}<span>x</span>${y}<br>${(this.originalMime || 'png').replace('image/', '')}`; |
| 1401 | this.size = { |
| 1402 | w: x, |
| 1403 | h: y, |
| 1404 | ratio: x / y, |
| 1405 | }; |
| 1406 | this.canvas.setAttribute('width', this.size.w); |
| 1407 | this.canvas.setAttribute('height', this.size.h); |
| 1408 | } |
| 1409 | |
| 1410 | syncToolElement() { |
| 1411 | const w = Math.round(this.canvas.documentClientWidth); |
no outgoing calls
no test coverage detected