(e)
| 148 | } |
| 149 | |
| 150 | getColorLightAtClick(e) { |
| 151 | let x = e.clientX - this.canvasLight.documentOffsetLeft; |
| 152 | x = (x < 1 && 1) || x; |
| 153 | x = (x > this.w - 1 && this.w - 1) || x; |
| 154 | this.lightPosition = x; |
| 155 | this.colorRegulator.style.left = `${x}px`; |
| 156 | this.regetColor(); |
| 157 | } |
| 158 | |
| 159 | getAlphaAtClick(e) { |
| 160 | let x = e.clientX - this.canvasAlpha.documentOffsetLeft; |
no test coverage detected