(state)
| 91 | } |
| 92 | |
| 93 | applyState(state) { |
| 94 | this.main.resize(state.sizew, state.sizeh); |
| 95 | this.main.ctx.putImageData(state.data, 0, 0); |
| 96 | this.main.adjustSizeFull(); |
| 97 | this.main.select.hide(); |
| 98 | } |
| 99 | |
| 100 | undoState() { |
| 101 | if (this.current.prev !== null) { |
no test coverage detected