(x, y)
| 1432 | } |
| 1433 | |
| 1434 | async getPixel(x, y) { |
| 1435 | const canvas = await this.get_rendered_canvas(window.devicePixelRatio); |
| 1436 | const context = canvas.getContext('2d'); |
| 1437 | const pixel = context.getImageData( |
| 1438 | x * window.devicePixelRatio, |
| 1439 | y * window.devicePixelRatio, |
| 1440 | 1, |
| 1441 | 1 |
| 1442 | ); |
| 1443 | return pixel.data; |
| 1444 | } |
| 1445 | |
| 1446 | change_theme() { |
| 1447 | this.el.classList.remove(this.model.previous('theme')); |
no test coverage detected