()
| 162 | y_max: -Infinity, |
| 163 | |
| 164 | pointerdown() { |
| 165 | this.x_min = pointer.x; |
| 166 | this.x_max = pointer.x + 1; |
| 167 | this.y_min = pointer.y; |
| 168 | this.y_max = pointer.y + 1; |
| 169 | this.points = []; |
| 170 | this.preview_canvas = make_canvas(main_canvas.width, main_canvas.height); |
| 171 | |
| 172 | // End prior selection, drawing it to the canvas |
| 173 | deselect(); |
| 174 | }, |
| 175 | paint(_ctx, _x, _y) { |
| 176 | // Constrain the pointer to the canvas |
| 177 | pointer.x = Math.min(main_canvas.width, pointer.x); |
nothing calls this directly
no test coverage detected