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