()
| 140 | } |
| 141 | |
| 142 | reCalcCropperCords() { |
| 143 | const ratio = this.getScale(); |
| 144 | this.area.topl = [ |
| 145 | Math.round(((this.rectLeft() - this.main.elLeft())) / ratio), |
| 146 | Math.round(((this.rectTop() - this.main.elTop())) / ratio)]; |
| 147 | |
| 148 | this.area.bottoml = [ |
| 149 | Math.round(this.area.topl[0] + ((this.area.rect.clientWidth + 2) / ratio)), |
| 150 | Math.round(this.area.topl[1] + ((this.area.rect.clientHeight + 2) / ratio))]; |
| 151 | } |
| 152 | |
| 153 | adjustPosition() { |
| 154 | if (!this.shown) { |
no test coverage detected