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