()
| 51 | } |
| 52 | |
| 53 | initCanvas() { |
| 54 | this.canvas = new Interface(null, 'canvas'); |
| 55 | this.canvas.css({ |
| 56 | position: 'absolute', |
| 57 | left: 10, |
| 58 | top: 10 |
| 59 | }); |
| 60 | this.context = this.canvas.element.getContext('2d'); |
| 61 | this.add(this.canvas); |
| 62 | } |
| 63 | |
| 64 | addListeners() { |
| 65 | this.element.addEventListener('mouseenter', this.onHover); |
no test coverage detected