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

Method doClearArea

js/selecter.js:112–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 }
111
112 doClearArea() {
113 this.ctx.beginPath();
114 this.ctx.clearRect(
115 this.area.topl[0], this.area.topl[1],
116 this.area.bottoml[0] - this.area.topl[0], this.area.bottoml[1] - this.area.topl[1]);
117 this.ctx.rect(this.area.topl[0], this.area.topl[1],
118 this.area.bottoml[0] - this.area.topl[0], this.area.bottoml[1] - this.area.topl[1]);
119 this.ctx.fillStyle = this.main.currentBackground;
120 this.ctx.fill();
121 this.main.worklog.captureState();
122 }
123
124 selectAll() {
125 this.setLeft(0);

Callers 1

handleKeyDownMethod · 0.95

Calls 1

captureStateMethod · 0.80

Tested by

no test coverage detected