MCPcopy Create free account
hub / github.com/devforth/painterro / applyState

Method applyState

js/worklog.js:93–98  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

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) {

Callers 3

loadWorklogFromStringMethod · 0.95
undoStateMethod · 0.95
redoStateMethod · 0.95

Calls 3

resizeMethod · 0.80
adjustSizeFullMethod · 0.80
hideMethod · 0.45

Tested by

no test coverage detected