()
| 106 | } |
| 107 | |
| 108 | clear() { |
| 109 | this._target.style.cursor = 'none'; |
| 110 | this._canvas.width = 0; |
| 111 | this._canvas.height = 0; |
| 112 | this._position.x = this._position.x + this._hotSpot.x; |
| 113 | this._position.y = this._position.y + this._hotSpot.y; |
| 114 | this._hotSpot.x = 0; |
| 115 | this._hotSpot.y = 0; |
| 116 | } |
| 117 | |
| 118 | // Mouse events might be emulated, this allows |
| 119 | // moving the cursor in such cases |