()
| 35 | } |
| 36 | |
| 37 | init() { |
| 38 | this.css({ |
| 39 | position: 'relative', |
| 40 | width: this.width + 20, |
| 41 | height: this.height + 20, |
| 42 | cursor: 'pointer', |
| 43 | pointerEvents: 'auto', |
| 44 | webkitUserSelect: 'none', |
| 45 | userSelect: 'none', |
| 46 | opacity: 0 |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | initCanvas() { |
| 51 | this.canvas = new Interface(null, 'canvas'); |